multiStoreAdmin/dist/store/assets/config.31606f15.js

2 lines
9.6 KiB
JavaScript

import{_ as U}from"./index.0bad999c.js";import{L as S,J as I,D as R,F as q,w as j,H as T,I as J,G as L}from"./element-plus.ab0703f2.js";import{_ as N}from"./picker.e2faf95e.js";import{g as O,s as G}from"./wx_oa.d094c3f6.js";import{u as K}from"./index.ae42b2c0.js";import{d as A,$ as z,s as H,ap as D,o as F,c as M,W as u,Q as t,a as e,u as l,R as p,P as c,U as n}from"./@vue.340249d8.js";import"./lodash-es.edba6135.js";import"./@vueuse.e3650918.js";import"./@element-plus.558a564d.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.9886411c.js";import"./axios.45058a27.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.0f9ce7c3.js";import"./index.2a3b95e2.js";import"./index.abcb45ca.js";import"./index.vue_vue_type_script_setup_true_lang.5fc87b57.js";import"./index.7b77b14a.js";import"./index.d461d664.js";import"./index.vue_vue_type_script_setup_true_lang.9909e290.js";import"./usePaging.fff444fa.js";import"./vue3-video-play.fb56db8a.js";import"./vuedraggable.5c3595e9.js";import"./vue.75cf012d.js";import"./sortablejs.dcbae258.js";import"./lodash.3d784a58.js";import"./vue-router.9ddb0e92.js";import"./pinia.97fe9b12.js";import"./css-color-function.5c1c877d.js";import"./color.97e03886.js";import"./clone.cfa55f7b.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.8c276ac9.js";import"./vue-clipboard3.44194d32.js";import"./clipboard.47836ecb.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.309a94da.js";const P=e("div",{class:"font-medium mb-7"},"\u5FAE\u4FE1\u516C\u4F17\u53F7",-1),Q={class:"w-80"},W={class:"w-80"},Z=e("div",{class:"form-tips"},"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A\u5BBD400px*\u9AD8400px\u3002jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F",-1),$=e("div",{class:"font-medium mb-7"},"\u516C\u4F17\u53F7\u5F00\u53D1\u8005\u4FE1\u606F",-1),X={class:"w-80"},Y={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"},ru=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),mu={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"}),Ae=A({...hu,setup(gu){const v=K(),o=z({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=H(),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 r=await O();for(const s in o)o[s]=r[s]},w=async()=>{var r;await((r=f.value)==null?void 0:r.validate()),await G(o),C()};return C(),(r,s)=>{const V=S,m=I,d=R,i=q,h=N,_=j,E=T,g=J,x=L,y=U,B=D("copy"),k=D("perms");return F(),M("div",null,[u(m,{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(m,{class:"!border-none mt-4",shadow:"never"},{default:t(()=>[P,u(i,{label:"\u516C\u4F17\u53F7\u540D\u79F0",prop:"name"},{default:t(()=>[e("div",Q,[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",W,[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"])]),Z])]),_:1})]),_:1}),u(m,{class:"!border-none mt-4",shadow:"never"},{default:t(()=>[$,u(i,{label:"AppID",prop:"app_id"},{default:t(()=>[e("div",X,[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",Y,[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(m,{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"])]),ru])]),_:1}),u(i,{label:"\u6D88\u606F\u52A0\u5BC6\u65B9\u5F0F",required:"",prop:"encryption_type"},{default:t(()=>[e("div",mu,[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(m,{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{Ae as default};