WokerTask/public/admin/assets/open_setting.e4d175e4.js

2 lines
3.3 KiB
JavaScript
Raw Normal View History

2023-12-27 14:06:33 +08:00
import{_ as w}from"./index.744f8721.js";import{S as C,I as b,B as V,C as y,D as S,w as k}from"./element-plus.9816852d.js";import{r as f}from"./index.4eaf9bd5.js";import{d as F,$ as x,s as I,af as R,o as d,c as q,U as e,L as u,a as p,u as n,M as N,K as U,R as O}from"./@vue.51d7f2d8.js";import"./@vueuse.ec90c285.js";import"./@element-plus.a074d1f6.js";import"./lodash-es.29c53eac.js";import"./dayjs.576af3ba.js";import"./@amap.8a62addd.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"./lodash.675f209e.js";import"./axios.54f807ba.js";import"./vue-router.9f65afb1.js";import"./pinia.56356cb7.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.0a5c0f85.js";import"./color.e5eb3bba.js";import"./clone.546d9b81.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.aee266dc.js";import"./ms.a9ae1d6d.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.ac57a99a.js";import"./zrender.d54ce080.js";import"./tslib.60310f1a.js";import"./highlight.js.dba6fa1b.js";import"./@highlightjs.40d5feba.js";function K(i){return f.post({url:"/channel.open_setting/setConfig",params:i})}function L(){return f.get({url:"/channel.open_setting/getConfig"})}const M=p("div",{class:"font-medium mb-7"},"\u7F51\u7AD9\u5E94\u7528",-1),T={class:"w-80"},$={class:"w-80"},j=F({name:"wxDevConfig"}),be=F({...j,setup(i){const t=x({app_id:"",app_secret:""}),s=I(),E={app_id:[{required:!0,message:"\u8BF7\u8F93\u5165AppID",trigger:["blur","change"]}],app_secret:[{required:!0,message:"\u8BF7\u8F93\u5165AppSecret",trigger:["blur","change"]}]},l=async()=>{const r=await L();for(const o in t)t[o]=r[o]},g=async()=>{var r;await((r=s.value)==null?void 0:r.validate()),await K(t),l()};return l(),(r,o)=>{const B=C,m=b,c=V,_=y,D=S,A=k,v=w,h=R("perms");return d(),q("div",null,[e(m,{class:"!border-none",shadow:"never"},{default:u(()=>[e(B,{type:"warning",title:"\u6E29\u99A8\u63D0\u793A\uFF1A\u586B\u5199\u5FAE\u4FE1\u5F00\u653E\u5E73\u53F0\u5F00\u53D1\u914D\u7F6E\uFF0C\u8BF7\u524D\u5F80\u5FAE\u4FE1\u5F00\u653E\u5E73\u53F0\u521B\u5EFA\u5E94\u7528\u5E76\u5B8C\u6210\u8BA4\u8BC1\uFF1B\u7F51\u7AD9\u5E94\u7528\u914D\u7F6E\u4E3B\u8981\u7528\u4E8E\u7F51\u7AD9\u5FAE\u4FE1\u767B\u5F55\u548C\u5FAE\u4FE1\u652F\u4ED8",closable:!1,"show-icon":""})]),_:1}),e(D,{ref_key:"formRef",ref:s,model:n(t),rules:E,"label-width":"160px"},{default:u(()=>[e(m,{class:"!border-none mt-4",shadow:"never"},{default:u(()=>[M,e(_,{label:"AppID",prop:"app_id"},{default:u(()=>[p("div",T,[e(c,{modelValue:n(t).app_id,"onUpdate:modelValue":o[0]||(o[0]=a=>n(t).app_id=a),placeholder:"\u8BF7\u8F93\u5165AppID"},null,8,["modelValue"])])]),_:1}),e(_,{label:"AppSecret",prop:"app_secret"},{default:u(()=>[p("div",null,[p("div",$,[e(c,{modelValue:n(t).app_secret,"onUpdate:modelValue":o[1]||(o[1]=a=>n(t).app_secret=a),placeholder:"\u8BF7\u8F93\u5165AppSecret"},null,8,["modelValue"])])])]),_:1})]),_:1})]),_:1},8,["model"]),N((d(),U(v,null,{default:u(()=>[e(A,{type:"primary",onClick:g},{default:u(()=>[O("\u4FDD\u5B58")]),_:1})]),_:1})),[[h,["channel.open_setting/setConfig"]]])])}}});export{be as default};