2 lines
9.2 KiB
JavaScript
2 lines
9.2 KiB
JavaScript
import{_ as U}from"./index.0bad999c.js";import{L as I,J as y,D as S,F as R,w as N,G as W}from"./element-plus.ab0703f2.js";import{_ as j}from"./picker.e2faf95e.js";import{r as C,u as G}from"./index.ae42b2c0.js";import{d as v,$ as J,s as L,ap as A,o as n,c as M,W as o,Q as t,a as u,u as l,R as m,P as p,U as _}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";function P(f){return C.post({url:"/channel.mnp_settings/setConfig",params:f})}function Q(){return C.get({url:"/channel.mnp_settings/getConfig"})}const T=u("div",{class:"font-medium mb-7"},"\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F",-1),$={class:"w-80"},z={class:"w-80"},H={class:"flex-1"},K=u("div",{class:"form-tips"},"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A\u5BBD400px*\u9AD8400px\u3002jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F",-1),O=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),_u={class:"flex-1 min-w-0"},ru={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"}),Ee=v({...Vu,setup(f){const w=G(),e=J({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 Q();for(const s in e)e[s]=c[s]},h=async()=>{var c;await((c=B.value)==null?void 0:c.validate()),await P(e),E()};return E(),(c,s)=>{const V=I,D=y,a=S,i=R,g=j,F=N,x=W,k=U,r=A("copy"),q=A("perms");return n(),M("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(()=>[T,o(i,{label:"\u5C0F\u7A0B\u5E8F\u540D\u79F0",prop:"name"},{default:t(()=>[u("div",$,[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",z,[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",H,[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"])]),K])]),_:1})]),_:1}),o(D,{class:"!border-none mt-4",shadow:"never"},{default:t(()=>[O,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(()=>[_("\u590D\u5236")]),_:1})),[[r,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(()=>[_("\u590D\u5236")]),_:1})),[[r,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(()=>[_("\u590D\u5236")]),_:1})),[[r,l(e).upload_file_domain]])]),pu])]),_:1}),o(i,{label:"downloadFile\u5408\u6CD5\u57DF\u540D"},{default:t(()=>[u("div",_u,[u("div",ru,[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(()=>[_("\u590D\u5236")]),_:1})),[[r,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(()=>[_("\u590D\u5236")]),_:1})),[[r,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(()=>[_("\u590D\u5236")]),_:1})),[[r,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(()=>[_("\u4FDD\u5B58")]),_:1})]),_:1})),[[q,["channel.mnp_settings/setConfig"]]])])}}});export{Ee as default};
|