WokerTask/public/admin/assets/weapp.1d9ae3b9.js

2 lines
9.3 KiB
JavaScript

import{_ as I}from"./index.f0c6b824.js";import{S as U,I as y,B as S,C as R,w as N,D as j}from"./element-plus.10e48c93.js";import{_ as M}from"./picker.9e3ee151.js";import{r as C,u as W}from"./index.5b774352.js";import{d as v,$ as K,s as L,af as A,o as n,c as T,U as o,L as t,a as u,u as l,M as m,K as p,R as r}from"./@vue.51d7f2d8.js";import"./@vueuse.ec90c285.js";import"./@element-plus.c80b8015.js";import"./lodash-es.29c53eac.js";import"./dayjs.e873ead7.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.1f170085.js";import"./index.vue_vue_type_style_index_0_scoped_95d1884e_lang.0fc4c9f8.js";import"./index.c406fca1.js";import"./index.vue_vue_type_script_setup_true_lang.579ca8f7.js";import"./index.40544e07.js";import"./index.84506267.js";import"./index.vue_vue_type_script_setup_true_lang.c7e5e9c8.js";import"./usePaging.60d02673.js";import"./vue3-video-play.b911321b.js";import"./vuedraggable.0cb40d3a.js";import"./vue.5de34049.js";import"./sortablejs.ef73fc5c.js";import"./lodash.08438971.js";import"./axios.105476b3.js";import"./vue-router.9f65afb1.js";import"./pinia.56356cb7.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.7ac6f233.js";import"./color.44a05936.js";import"./clone.0afcbf90.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.86067895.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 $(f){return C.post({url:"/channel.mnp_settings/setConfig",params:f})}function z(){return C.get({url:"/channel.mnp_settings/getConfig"})}const G=u("div",{class:"font-medium mb-7"},"\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F",-1),H={class:"w-80"},J={class:"w-80"},O={class:"flex-1"},P=u("div",{class:"form-tips"},"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A\u5BBD400px*\u9AD8400px\u3002jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F",-1),Q=u("div",{class:"font-medium mb-7"},"\u5F00\u53D1\u8005ID",-1),X={class:"w-80"},Y={class:"w-80"},Z=u("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),uu=u("div",{class:"font-medium mb-7"},"\u670D\u52A1\u5668\u57DF\u540D",-1),eu={class:"flex-1 min-w-0"},ou={class:"sm:flex"},lu={class:"mr-4 sm:w-80 flex"},tu=u("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->\u670D\u52A1\u5668\u57DF\u540D\uFF0C\u586B\u5199https\u534F\u8BAE\u57DF\u540D ",-1),su={class:"flex-1 min-w-0"},du={class:"sm:flex"},iu={class:"mr-4 sm:w-80 flex"},au=u("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->\u670D\u52A1\u5668\u57DF\u540D\uFF0C\u586B\u5199wss\u534F\u8BAE\u57DF\u540D ",-1),nu={class:"flex-1 min-w-0"},Fu={class:"sm:flex"},mu={class:"mr-4 sm:w-80 flex"},pu=u("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->\u670D\u52A1\u5668\u57DF\u540D\uFF0C\u586B\u5199https\u534F\u8BAE\u57DF\u540D ",-1),ru={class:"flex-1 min-w-0"},_u={class:"sm:flex"},cu={class:"mr-4 sm:w-80 flex"},Du=u("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->\u670D\u52A1\u5668\u57DF\u540D\uFF0C\u586B\u5199https\u534F\u8BAE\u57DF\u540D ",-1),fu={class:"flex-1 min-w-0"},Bu={class:"sm:flex"},Eu={class:"mr-4 sm:w-80 flex"},Au=u("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->\u670D\u52A1\u5668\u57DF\u540D\uFF0C\u586B\u5199udp\u534F\u8BAE\u57DF\u540D ",-1),Cu=u("div",{class:"font-medium mb-7"},"\u4E1A\u52A1\u57DF\u540D",-1),vu={class:"flex-1 min-w-0"},wu={class:"sm:flex"},bu={class:"mr-4 sm:w-80 flex"},hu=u("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->\u4E1A\u52A1\u57DF\u540D\uFF0C\u586B\u5199\u4E1A\u52A1\u57DF\u540D ",-1),Vu=v({name:"weappConfig"}),Ce=v({...Vu,setup(f){const w=W(),e=K({name:"",original_id:"",qr_code:"",app_id:"",app_secret:"",business_domain:"",download_file_domain:"",request_domain:"",socket_domain:"",tcpDomain:"",udp_domain:"",upload_file_domain:""}),B=L(),b={app_id:[{required:!0,message:"\u8BF7\u8F93\u5165AppID",trigger:["blur","change"]}],app_secret:[{required:!0,message:"\u8BF7\u8F93\u5165AppSecret",trigger:["blur","change"]}]},E=async()=>{const c=await z();for(const s in e)e[s]=c[s]},h=async()=>{var c;await((c=B.value)==null?void 0:c.validate()),await $(e),E()};return E(),(c,s)=>{const V=U,D=y,a=S,i=R,g=M,F=N,x=j,k=I,_=A("copy"),q=A("perms");return n(),T("div",null,[o(D,{class:"!border-none",shadow:"never"},{default:t(()=>[o(V,{type:"warning",title:"\u6E29\u99A8\u63D0\u793A\uFF1A\u586B\u5199\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F\u5F00\u53D1\u914D\u7F6E\uFF0C\u8BF7\u524D\u5F80\u5FAE\u4FE1\u516C\u4F17\u5E73\u53F0\u7533\u8BF7\u5C0F\u7A0B\u5E8F\u5E76\u5B8C\u6210\u8BA4\u8BC1",closable:!1,"show-icon":""})]),_:1}),o(x,{ref_key:"formRef",ref:B,model:l(e),rules:b,"label-width":l(w).isMobile?"80px":"160px"},{default:t(()=>[o(D,{class:"!border-none mt-4",shadow:"never"},{default:t(()=>[G,o(i,{label:"\u5C0F\u7A0B\u5E8F\u540D\u79F0",prop:"name"},{default:t(()=>[u("div",H,[o(a,{modelValue:l(e).name,"onUpdate:modelValue":s[0]||(s[0]=d=>l(e).name=d),placeholder:"\u8BF7\u8F93\u5165\u5C0F\u7A0B\u5E8F\u540D\u79F0"},null,8,["modelValue"])])]),_:1}),o(i,{label:"\u539F\u59CBID",prop:"original_id"},{default:t(()=>[u("div",J,[o(a,{modelValue:l(e).original_id,"onUpdate:modelValue":s[1]||(s[1]=d=>l(e).original_id=d),placeholder:"\u8BF7\u8F93\u5165\u539F\u59CBID"},null,8,["modelValue"])])]),_:1}),o(i,{label:"\u5C0F\u7A0B\u5E8F\u7801",prop:"qr_code"},{default:t(()=>[u("div",O,[u("div",null,[o(g,{modelValue:l(e).qr_code,"onUpdate:modelValue":s[2]||(s[2]=d=>l(e).qr_code=d),limit:1},null,8,["modelValue"])]),P])]),_:1})]),_:1}),o(D,{class:"!border-none mt-4",shadow:"never"},{default:t(()=>[Q,o(i,{label:"AppID",prop:"app_id"},{default:t(()=>[u("div",X,[o(a,{modelValue:l(e).app_id,"onUpdate:modelValue":s[3]||(s[3]=d=>l(e).app_id=d),placeholder:"\u8BF7\u8F93\u5165AppID"},null,8,["modelValue"])])]),_:1}),o(i,{label:"AppSecret",prop:"app_secret"},{default:t(()=>[u("div",Y,[o(a,{modelValue:l(e).app_secret,"onUpdate:modelValue":s[4]||(s[4]=d=>l(e).app_secret=d),placeholder:"\u8BF7\u8F93\u5165AppSecret"},null,8,["modelValue"])])]),_:1}),o(i,null,{default:t(()=>[Z]),_:1})]),_:1}),o(D,{class:"!border-none mt-4",shadow:"never"},{default:t(()=>[uu,o(i,{label:"request\u5408\u6CD5\u57DF\u540D",prop:"appId"},{default:t(()=>[u("div",eu,[u("div",ou,[u("div",lu,[o(a,{modelValue:l(e).request_domain,"onUpdate:modelValue":s[5]||(s[5]=d=>l(e).request_domain=d),disabled:""},null,8,["modelValue"])]),m((n(),p(F,null,{default:t(()=>[r("\u590D\u5236")]),_:1})),[[_,l(e).request_domain]])]),tu])]),_:1}),o(i,{label:"socket\u5408\u6CD5\u57DF\u540D"},{default:t(()=>[u("div",su,[u("div",du,[u("div",iu,[o(a,{modelValue:l(e).socket_domain,"onUpdate:modelValue":s[6]||(s[6]=d=>l(e).socket_domain=d),disabled:""},null,8,["modelValue"])]),m((n(),p(F,null,{default:t(()=>[r("\u590D\u5236")]),_:1})),[[_,l(e).socket_domain]])]),au])]),_:1}),o(i,{label:"uploadFile\u5408\u6CD5\u57DF\u540D"},{default:t(()=>[u("div",nu,[u("div",Fu,[u("div",mu,[o(a,{modelValue:l(e).upload_file_domain,"onUpdate:modelValue":s[7]||(s[7]=d=>l(e).upload_file_domain=d),disabled:""},null,8,["modelValue"])]),m((n(),p(F,null,{default:t(()=>[r("\u590D\u5236")]),_:1})),[[_,l(e).upload_file_domain]])]),pu])]),_:1}),o(i,{label:"downloadFile\u5408\u6CD5\u57DF\u540D"},{default:t(()=>[u("div",ru,[u("div",_u,[u("div",cu,[o(a,{modelValue:l(e).download_file_domain,"onUpdate:modelValue":s[8]||(s[8]=d=>l(e).download_file_domain=d),disabled:""},null,8,["modelValue"])]),m((n(),p(F,null,{default:t(()=>[r("\u590D\u5236")]),_:1})),[[_,l(e).download_file_domain]])]),Du])]),_:1}),o(i,{label:"udp\u5408\u6CD5\u57DF\u540D"},{default:t(()=>[u("div",fu,[u("div",Bu,[u("div",Eu,[o(a,{modelValue:l(e).udp_domain,"onUpdate:modelValue":s[9]||(s[9]=d=>l(e).udp_domain=d),disabled:""},null,8,["modelValue"])]),m((n(),p(F,null,{default:t(()=>[r("\u590D\u5236")]),_:1})),[[_,l(e).udp_domain]])]),Au])]),_:1})]),_:1}),o(D,{class:"!border-none mt-4",shadow:"never"},{default:t(()=>[Cu,o(i,{label:"\u4E1A\u52A1\u57DF\u540D"},{default:t(()=>[u("div",vu,[u("div",wu,[u("div",bu,[o(a,{modelValue:l(e).business_domain,"onUpdate:modelValue":s[10]||(s[10]=d=>l(e).business_domain=d),disabled:""},null,8,["modelValue"])]),m((n(),p(F,null,{default:t(()=>[r("\u590D\u5236")]),_:1})),[[_,l(e).business_domain]])]),hu])]),_:1})]),_:1})]),_:1},8,["model","label-width"]),m((n(),p(k,null,{default:t(()=>[o(F,{type:"primary",onClick:h},{default:t(()=>[r("\u4FDD\u5B58")]),_:1})]),_:1})),[[q,["channel.mnp_settings/setConfig"]]])])}}});export{Ce as default};