test_lgq/niucloud/public/admin/assets/config-1b72a630.js

2 lines
8.7 KiB
JavaScript
Raw Normal View History

2024-01-24 17:36:08 +08:00
import{d as I,O as K,f as O,r as w,n as b,N as e,aL as B,s as D,a4 as y,h as k,c as j,a as s,u as l,t as r,y as L,I as W,w as p,e as o,i as f,W as z,X as F,$ as Q,az as G,aA as X,Y,E as H,a0 as J}from"./index-4dcc0234.js";/* empty css *//* empty css *//* empty css *//* empty css */import{_ as Z}from"./index.vue_vue_type_style_index_0_lang-cd8f78e9.js";/* empty css */import{_ as ee}from"./index-742b412a.js";import"./el-form-item-4ed993c7.js";/* empty css */import{g as x,d as le}from"./weapp-4d690662.js";/* empty css *//* empty css */import"./index.vue_vue_type_style_index_0_lang-5c6c00d9.js";/* empty css */import"./attachment-c69dd9fd.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./index.vue_vue_type_script_setup_true_lang-9285296e.js";/* empty css */import"./sys-8ead7f22.js";const oe={class:"main-container"},ae={class:"detail-head"},te=s("span",{class:"iconfont iconxiangzuojiantou !text-xs"},null,-1),pe={class:"ml-[1px]"},se=s("span",{class:"adorn"},"|",-1),re={class:"right"},de={class:"panel-title !text-sm"},ne={class:"form-tip"},ie={class:"panel-title !text-sm"},ue={class:"form-tip"},ce={class:"form-tip"},_e={class:"panel-title !text-sm"},me={class:"input-width"},fe={class:"form-tip"},ve={class:"form-tip"},he={class:"panel-title !text-sm"},ge={class:"form-tip"},we={class:"form-tip"},be={class:"form-tip"},ye={class:"form-tip"},ke={class:"form-tip"},xe={class:"flex"},Ve={class:"panel-title !text-sm"},Pe={class:"fixed-footer-wrap"},Ue={class:"fixed-footer"},sl=I({__name:"config",setup(qe){const V=K(),P=O(),U=V.meta.title,c=w(!0),t=b({weapp_name:"",weapp_original:"",app_id:"",app_secret:"",qr_code:"",token:"",encoding_aes_key:"",encryption_type:"not_encrypt",serve_url:"",request_url:"",socket_url:"",upload_url:"",download_url:"",upload_private_key:""}),h=w(),q=b({weapp_name:[{required:!0,message:e("weappNamePlaceholder"),trigger:"blur"}],weapp_original:[{required:!0,message:e("weappOriginalPlaceholder"),trigger:"blur"}],app_id:[{required:!0,message:e("appidPlaceholder"),trigger:"blur"}],app_secret:[{required:!0,message:e("appSecretPlaceholder"),trigger:"blur"}],token:[{required:!0,message:e("tokenPlaceholder"),trigger:"blur"}],encoding_aes_key:[{required:!0,message:e("encodingAesKeyPlaceholder"),trigger:"blur"}]});x().then(u=>{Object.assign(t,u.data),c.value=!1}),x().then(u=>{Object.assign(u.data)});const{copy:C,isSupported:T,copied:g}=B(),_=u=>{if(!T.value){y({message:e("notSupportCopy"),type:"warning"});return}C(u)};D(g,()=>{g.value&&y({message:e("copySuccess"),type:"success"})});const E=async u=>{c.value||!u||await u.validate(async a=>{a&&(c.value=!0,le(t).then(()=>{c.value=!1}).catch(()=>{c.value=!1}))})};return(u,a)=>{const i=z,n=F,S=ee,m=Q,A=Z,v=G,$=X,N=Y,R=H,M=J;return k(),j("div",oe,[s("div",ae,[s("div",{class:"left",onClick:a[0]||(a[0]=d=>l(P).push({path:"/channel/weapp"}))},[te,s("span",pe,r(l(e)("returnToPreviousPage")),1)]),se,s("span",re,r(l(U)),1)]),L((k(),W(N,{model:t,"label-width":"170px",ref_key:"formRef",ref:h,rules:q,class:"page-form"},{default:p(()=>[o(m,{class:"box-card !border-none",shadow:"never"},{default:p(()=>[s("h3",de,r(l(e)("weappInfo")),1),o(n,{label:l(e)("weappName"),prop:"weapp_name"},{default:p(()=>[o(i,{modelValue:t.weapp_name,"onUpdate:modelValue":a[1]||(a[1]=d=>t.weapp_name=d),placeholder:l(e)("weappNamePlaceholder"),class:"input-width",clearable:""},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),o(n,{label:l(e)("weappOriginal"),prop:"weapp_original"},{default:p(()=>[o(i,{modelValue:t.weapp_original,"onUpdate:modelValue":a[2