2 lines
9.6 KiB
JavaScript
2 lines
9.6 KiB
JavaScript
import{_ as U}from"./index.ff137ca9.js";import{K as S,I,C as R,D as q,w as j,G as T,H as O,F as K}from"./element-plus.61695454.js";import{_ as N}from"./picker.832550d5.js";import{g as G,s as J}from"./wx_oa.bc4d0e76.js";import{u as L}from"./index.1dd80bf2.js";import{d as A,a0 as M,s as z,am as D,o as F,c as H,W as u,O as t,a as e,u as l,P as p,M as c,T as n}from"./@vue.c3e77981.js";import"./@vueuse.a48d0173.js";import"./@element-plus.12c58ce2.js";import"./lodash-es.2b5acb28.js";import"./dayjs.16ed1fda.js";import"./axios.a8078129.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.b082b0c1.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.3446e7c2.js";import"./index.cb97c6de.js";import"./index.vue_vue_type_script_setup_true_lang.33ea11c1.js";import"./index.ae7d0ef2.js";import"./index.ebe9ee83.js";import"./index.vue_vue_type_script_setup_true_lang.09ad5ba8.js";import"./usePaging.d25ebf19.js";import"./vue3-video-play.4813c60b.js";import"./vuedraggable.5825c4b1.js";import"./vue.74758107.js";import"./sortablejs.275d9d20.js";import"./lodash.a2abcd4b.js";import"./vue-router.43c06794.js";import"./pinia.b5130627.js";import"./css-color-function.975e80a5.js";import"./color.d986aa86.js";import"./clone.704d8332.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.ded7f805.js";import"./vue-clipboard3.987889a8.js";import"./clipboard.af74a91f.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b8b719e9.js";const P=e("div",{class:"font-medium mb-7"},"\u5FAE\u4FE1\u516C\u4F17\u53F7",-1),W={class:"w-80"},Z={class:"w-80"},Q=e("div",{class:"form-tips"},"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A\u5BBD400px*\u9AD8400px\u3002jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F",-1),X=e("div",{class:"font-medium mb-7"},"\u516C\u4F17\u53F7\u5F00\u53D1\u8005\u4FE1\u606F",-1),Y={class:"w-80"},$={class:"w-80"},uu=e("div",{class:"form-tips"}," \u5C0F\u7A0B\u5E8F\u8D26\u53F7\u767B\u5F55\u5FAE\u4FE1\u516C\u4F17\u5E73\u53F0\uFF0C\u70B9\u51FB\u5F00\u53D1>\u5F00\u53D1\u8BBE\u7F6E->\u5F00\u53D1\u8005ID\uFF0C\u8BBE\u7F6EAppID\u548CAppSecret ",-1),eu=e("div",{class:"font-medium mb-7"},"\u670D\u52A1\u5668\u914D\u7F6E",-1),ou={class:"flex-1 min-w-0"},lu={class:"sm:flex"},tu={class:"mr-4 sm:w-80 flex"},su=e("div",{class:"form-tips"}," \u767B\u5F55\u5FAE\u4FE1\u516C\u4F17\u5E73\u53F0\uFF0C\u70B9\u51FB\u5F00\u53D1>\u57FA\u672C\u914D\u7F6E>\u670D\u52A1\u5668\u914D\u7F6E\uFF0C\u586B\u5199\u670D\u52A1\u5668\u5730\u5740\uFF08URL\uFF09 ",-1),au={class:"flex-1 min-w-0"},iu={class:"w-80"},du=e("div",{class:"form-tips"}," \u767B\u5F55\u5FAE\u4FE1\u516C\u4F17\u5E73\u53F0\uFF0C\u70B9\u51FB\u5F00\u53D1>\u57FA\u672C\u914D\u7F6E>\u670D\u52A1\u5668\u914D\u7F6E\uFF0C\u8BBE\u7F6E\u4EE4\u724CToken\u3002\u4E0D\u586B\u9ED8\u8BA4\u4E3A\u201Clikeshop\u201D ",-1),nu={class:"flex-1 min-w-0"},Fu={class:"w-80"},mu=e("div",{class:"form-tips"}," \u6D88\u606F\u52A0\u5BC6\u5BC6\u94A5\u753143\u4F4D\u5B57\u7B26\u7EC4\u6210\uFF0C\u5B57\u7B26\u8303\u56F4\u4E3AA-Z,a-z,0-9 ",-1),ru={class:"flex-1 min-w-0"},_u=e("div",{class:"font-medium mb-7"},"\u529F\u80FD\u8BBE\u7F6E",-1),pu={class:"flex-1 min-w-0"},cu={class:"sm:flex"},Bu={class:"mr-4 sm:w-80 flex"},Eu=e("div",{class:"form-tips"}," \u767B\u5F55\u5FAE\u4FE1\u516C\u4F17\u5E73\u53F0\uFF0C\u70B9\u51FB\u8BBE\u7F6E>\u516C\u4F17\u53F7\u8BBE\u7F6E>\u529F\u80FD\u8BBE\u7F6E\uFF0C\u586B\u5199\u4E1A\u52A1\u57DF\u540D ",-1),fu={class:"flex-1 min-w-0"},Cu={class:"sm:flex"},Du={class:"mr-4 sm:w-80 flex"},Au=e("div",{class:"form-tips"}," \u767B\u5F55\u5FAE\u4FE1\u516C\u4F17\u5E73\u53F0\uFF0C\u70B9\u51FB\u8BBE\u7F6E>\u516C\u4F17\u53F7\u8BBE\u7F6E>\u529F\u80FD\u8BBE\u7F6E\uFF0C\u586B\u5199JS\u63A5\u53E3\u5B89\u5168\u57DF\u540D ",-1),vu={class:"flex-1 min-w-0"},bu={class:"sm:flex"},wu={class:"mr-4 sm:w-80 flex"},Vu=e("div",{class:"form-tips"}," \u767B\u5F55\u5FAE\u4FE1\u516C\u4F17\u5E73\u53F0\uFF0C\u70B9\u51FB\u8BBE\u7F6E>\u516C\u4F17\u53F7\u8BBE\u7F6E>\u529F\u80FD\u8BBE\u7F6E\uFF0C\u586B\u5199\u7F51\u9875\u6388\u6743\u57DF\u540D ",-1),hu=A({name:"wxOaConfig"}),De=A({...hu,setup(gu){const v=L(),o=M({name:"",original_id:" ",qr_code:"",app_id:"",app_secret:"",url:"",token:"",encoding_aes_key:"",encryption_type:1,business_domain:"",js_secure_domain:"",web_auth_domain:""}),f=z(),b={app_id:[{required:!0,message:"\u8BF7\u8F93\u5165AppID",trigger:["blur","change"]}],app_secret:[{required:!0,message:"\u8BF7\u8F93\u5165AppSecret",trigger:["blur","change"]}]},C=async()=>{const m=await G();for(const s in o)o[s]=m[s]},w=async()=>{var m;await((m=f.value)==null?void 0:m.validate()),await J(o),C()};return C(),(m,s)=>{const V=S,r=I,d=R,i=q,h=N,_=j,E=T,g=O,x=K,y=U,B=D("copy"),k=D("perms");return F(),H("div",null,[u(r,{class:"!border-none",shadow:"never"},{default:t(()=>[u(V,{type:"warning",title:"\u6E29\u99A8\u63D0\u793A\uFF1A\u586B\u5199\u5FAE\u4FE1\u516C\u4F17\u53F7\u5F00\u53D1\u914D\u7F6E\uFF0C\u8BF7\u524D\u5F80\u5FAE\u4FE1\u516C\u4F17\u5E73\u53F0\u7533\u8BF7\u670D\u52A1\u53F7\u5E76\u5B8C\u6210\u8BA4\u8BC1",closable:!1,"show-icon":""})]),_:1}),u(x,{ref_key:"formRef",ref:f,model:l(o),rules:b,"label-width":l(v).isMobile?"80px":"160px"},{default:t(()=>[u(r,{class:"!border-none mt-4",shadow:"never"},{default:t(()=>[P,u(i,{label:"\u516C\u4F17\u53F7\u540D\u79F0",prop:"name"},{default:t(()=>[e("div",W,[u(d,{modelValue:l(o).name,"onUpdate:modelValue":s[0]||(s[0]=a=>l(o).name=a),placeholder:"\u8BF7\u8F93\u5165\u516C\u4F17\u53F7\u540D\u79F0"},null,8,["modelValue"])])]),_:1}),u(i,{label:"\u539F\u59CBID",prop:"original_id"},{default:t(()=>[e("div",Z,[u(d,{modelValue:l(o).original_id,"onUpdate:modelValue":s[1]||(s[1]=a=>l(o).original_id=a),placeholder:"\u8BF7\u8F93\u5165\u539F\u59CBID"},null,8,["modelValue"])])]),_:1}),u(i,{label:"\u516C\u4F17\u53F7\u4E8C\u7EF4\u7801",prop:"qr_code"},{default:t(()=>[e("div",null,[e("div",null,[u(h,{modelValue:l(o).qr_code,"onUpdate:modelValue":s[2]||(s[2]=a=>l(o).qr_code=a),limit:1},null,8,["modelValue"])]),Q])]),_:1})]),_:1}),u(r,{class:"!border-none mt-4",shadow:"never"},{default:t(()=>[X,u(i,{label:"AppID",prop:"app_id"},{default:t(()=>[e("div",Y,[u(d,{modelValue:l(o).app_id,"onUpdate:modelValue":s[3]||(s[3]=a=>l(o).app_id=a),placeholder:"\u8BF7\u8F93\u5165AppID"},null,8,["modelValue"])])]),_:1}),u(i,{label:"AppSecret",prop:"app_secret"},{default:t(()=>[e("div",$,[u(d,{modelValue:l(o).app_secret,"onUpdate:modelValue":s[4]||(s[4]=a=>l(o).app_secret=a),placeholder:"\u8BF7\u8F93\u5165AppSecret"},null,8,["modelValue"])])]),_:1}),u(i,null,{default:t(()=>[uu]),_:1})]),_:1}),u(r,{class:"!border-none mt-4",shadow:"never"},{default:t(()=>[eu,u(i,{label:"URL"},{default:t(()=>[e("div",ou,[e("div",lu,[e("div",tu,[u(d,{modelValue:l(o).url,"onUpdate:modelValue":s[5]||(s[5]=a=>l(o).url=a),disabled:""},null,8,["modelValue"])]),p((F(),c(_,null,{default:t(()=>[n("\u590D\u5236")]),_:1})),[[B,l(o).url]])]),su])]),_:1}),u(i,{label:"Token",prop:"Token"},{default:t(()=>[e("div",au,[e("div",iu,[u(d,{modelValue:l(o).token,"onUpdate:modelValue":s[6]||(s[6]=a=>l(o).token=a),placeholder:"\u8BF7\u8F93\u5165Token"},null,8,["modelValue"])]),du])]),_:1}),u(i,{label:"EncodingAESKey",prop:"encoding_aes_key"},{default:t(()=>[e("div",nu,[e("div",Fu,[u(d,{modelValue:l(o).encoding_aes_key,"onUpdate:modelValue":s[7]||(s[7]=a=>l(o).encoding_aes_key=a),placeholder:"\u8BF7\u8F93\u5165EncodingAESKey"},null,8,["modelValue"])]),mu])]),_:1}),u(i,{label:"\u6D88\u606F\u52A0\u5BC6\u65B9\u5F0F",required:"",prop:"encryption_type"},{default:t(()=>[e("div",ru,[u(g,{class:"flex-col !items-start min-w-0",modelValue:l(o).encryption_type,"onUpdate:modelValue":s[8]||(s[8]=a=>l(o).encryption_type=a)},{default:t(()=>[u(E,{label:1},{default:t(()=>[n(" \u660E\u6587\u6A21\u5F0F (\u4E0D\u4F7F\u7528\u6D88\u606F\u4F53\u52A0\u89E3\u5BC6\u529F\u80FD\uFF0C\u5B89\u5168\u7CFB\u6570\u8F83\u4F4E) ")]),_:1}),u(E,{label:2},{default:t(()=>[n(" \u517C\u5BB9\u6A21\u5F0F (\u660E\u6587\u3001\u5BC6\u6587\u5C06\u5171\u5B58\uFF0C\u65B9\u4FBF\u5F00\u53D1\u8005\u8C03\u8BD5\u548C\u7EF4\u62A4) ")]),_:1}),u(E,{label:3},{default:t(()=>[n(" \u5B89\u5168\u6A21\u5F0F\uFF08\u63A8\u8350\uFF09 (\u6D88\u606F\u5305\u4E3A\u7EAF\u5BC6\u6587\uFF0C\u9700\u8981\u5F00\u53D1\u8005\u52A0\u5BC6\u548C\u89E3\u5BC6\uFF0C\u5B89\u5168\u7CFB\u6570\u9AD8) ")]),_:1})]),_:1},8,["modelValue"])])]),_:1})]),_:1}),u(r,{class:"!border-none mt-4",shadow:"never"},{default:t(()=>[_u,u(i,{label:"\u4E1A\u52A1\u57DF\u540D"},{default:t(()=>[e("div",pu,[e("div",cu,[e("div",Bu,[u(d,{modelValue:l(o).business_domain,"onUpdate:modelValue":s[9]||(s[9]=a=>l(o).business_domain=a),disabled:""},null,8,["modelValue"])]),p((F(),c(_,null,{default:t(()=>[n("\u590D\u5236")]),_:1})),[[B,l(o).business_domain]])]),Eu])]),_:1}),u(i,{label:"JS\u63A5\u53E3\u5B89\u5168\u57DF\u540D"},{default:t(()=>[e("div",fu,[e("div",Cu,[e("div",Du,[u(d,{modelValue:l(o).js_secure_domain,"onUpdate:modelValue":s[10]||(s[10]=a=>l(o).js_secure_domain=a),disabled:""},null,8,["modelValue"])]),p((F(),c(_,null,{default:t(()=>[n("\u590D\u5236")]),_:1})),[[B,l(o).js_secure_domain]])]),Au])]),_:1}),u(i,{label:"\u7F51\u9875\u6388\u6743\u57DF\u540D"},{default:t(()=>[e("div",vu,[e("div",bu,[e("div",wu,[u(d,{modelValue:l(o).web_auth_domain,"onUpdate:modelValue":s[11]||(s[11]=a=>l(o).web_auth_domain=a),disabled:""},null,8,["modelValue"])]),p((F(),c(_,null,{default:t(()=>[n("\u590D\u5236")]),_:1})),[[B,l(o).web_auth_domain]])]),Vu])]),_:1})]),_:1})]),_:1},8,["model","label-width"]),p((F(),c(y,null,{default:t(()=>[u(_,{type:"primary",onClick:w},{default:t(()=>[n("\u4FDD\u5B58")]),_:1})]),_:1})),[[k,["channel.official_account_setting/setConfig"]]])])}}});export{De as default};
|