test_lgq/niucloud/public/admin/assets/config-72fa88b7.js

2 lines
8.0 KiB
JavaScript
Raw Normal View History

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