mirror of
https://gitee.com/niucloud-team/niucloud-admin.git
synced 2025-12-12 19:02:49 +00:00
2 lines
8.5 KiB
JavaScript
2 lines
8.5 KiB
JavaScript
import"./base-962c0c23.js";/* empty css *//* empty css *//* empty css */import{E as D,b as N}from"./el-radio-bfd4b1ad.js";/* empty css */import{_ as R}from"./index-f4731ae1.js";/* empty css */import{t as e}from"./index-105fbad0.js";import{g as j,a as B,e as O}from"./wechat-372544c6.js";import{J as $}from"./event-ff03ec12.js";import{u as I}from"./vue-router-79053937.js";import{a as y}from"./index-d57cc47d.js";import{E as K}from"./index-93f2c618.js";import{a as L,E as W}from"./index-61c777fa.js";import{E as F}from"./index-69523418.js";import{E as Q}from"./index-bba9e58c.js";import{v as G}from"./directive-c0c3e9a3.js";import{d as J,r as x,M as g,w as z,b as V,e as H,f as r,x as s,u as t,L as X,m as Y,p as l,q as o,v as h}from"./runtime-core.esm-bundler-dc7a07d7.js";/* empty css */import"./index.vue_vue_type_style_index_0_lang-d0d31f1b.js";import"./el-overlay-60700377.js";import"./index-5d86eb33.js";import"./focus-trap-b8b5a003.js";import"./attachment-56217309.js";/* empty css *//* empty css *//* empty css */import"./index-7525671c.js";import"./storage-abe718b1.js";import"./index-8bcaafa6.js";import"./index-7a123a20.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./el-tooltip-58212670.js";import"./el-avatar-3bb47ce2.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index-cc03da8f.js";import"./sys-4abedf95.js";import"./index-50a00d09.js";import"./index-a9dd5cf5.js";import"./index-190f0dba.js";import"./index-9f244af6.js";import"./index-df51d91a.js";import"./isEqual-c7d5e6d9.js";import"./_Uint8Array-6ff3cafa.js";import"./flatten-d5d1dc97.js";import"./index-100b1469.js";import"./index-b933df38.js";import"./index-4f5c40a5.js";import"./strings-4868a118.js";import"./common-080b9b9f.js";import"./common-2cf17469.js";import"./_initCloneObject-28e6bdaa.js";const Z={class:"main-container"},ee={class:"flex ml-[18px] justify-between items-center mt-[20px]"},te={class:"text-[24px]"},oe={class:"panel-title !text-sm"},ae={class:"form-tip"},le={class:"panel-title !text-sm"},re={class:"form-tip"},se={class:"form-tip"},ie={class:"panel-title !text-sm"},ne={class:"form-tip"},pe={class:"form-tip"},de={class:"form-tip"},ce={class:"form-tip"},me={class:"form-tip"},ue={class:"flex"},_e={class:"panel-title !text-sm"},fe={class:"form-tip"},he={class:"fixed-footer-wrap"},be={class:"fixed-footer"},Vt=J({__name:"config",setup(ge){const k=I().meta.title,u=x(!0),n=g({wechat_name:"",wechat_original:"",app_id:"",app_secret:"",qr_code:"",token:"",encoding_aes_key:"",encryption_type:"not_encrypt"}),v=x(),E=g({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"}]});j().then(m=>{Object.assign(n,m.data),u.value=!1});const c=g({business_domain:"",js_secure_domain:"",serve_url:"",web_auth_domain:""});B().then(m=>{Object.assign(c,m.data),u.value=!1});const{copy:P,isSupported:S,copied:w}=$(),_=m=>{if(!S.value){y({message:e("notSupportCopy"),type:"warning"});return}P(m)};z(w,()=>{w.value&&y({message:e("copySuccess"),type:"success"})});const C=async m=>{u.value||!m||await m.validate(async a=>{a&&(u.value=!0,O(n).then(()=>{u.value=!1}).catch(()=>{u.value=!1}))})};return(m,a)=>{const d=K,p=L,T=R,f=F,b=D,q=N,A=W,U=Q,M=G;return V(),H("div",Z,[r("div",ee,[r("span",te,s(t(k)),1)]),X((V(),Y(A,{model:n,"label-width":"150px",ref_key:"formRef",ref:v,rules:E,class:"page-form"},{default:l(()=>[o(f,{class:"box-card !border-none",shadow:"never"},{default:l(()=>[r("h3",oe,s(t(e)("wechatInfo")),1),o(p,{label:t(e)("wechatName"),prop:"wechat_name"},{default:l(()=>[o(d,{modelValue:n.wechat_name,"onUpdate:modelValue":a[0]||(a[0]=i=>n.wechat_name=i),placeholder:t(e)("wechatNamePlaceholder"),class:"input-width",clearable:""},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),o(p,{label:t(e)("wechatOriginal"),prop:"wechat_original"},{default:l(()=>[o(d,{modelValue:n.wechat_original,"onUpdate:modelValue":a[1]||(a[1]=i=>n.wechat_original=i),placeholder:t(e)("wechatOriginalPlaceholder"),class:"input-width",clearable:""},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),o(p,{label:t(e)("wechatQrcode"),prop:"qr_code"},{default:l(()=>[o(T,{modelValue:n.qr_code,"onUpdate:modelValue":a[2]||(a[2]=i=>n.qr_code=i)},null,8,["modelValue"]),r("div",ae,s(t(e)("wechatQrcodeTips")),1)]),_:1},8,["label"])]),_:1}),o(f,{class:"box-card !border-none mt-[16px]",shadow:"never"},{default:l(()=>[r("h3",le,s(t(e)("wechatDevelopInfo")),1),o(p,{label:t(e)("wechatAppid"),prop:"app_id"},{default:l(()=>[o(d,{modelValue:n.app_id,"onUpdate:modelValue":a[3]||(a[3]=i=>n.app_id=i),placeholder:t(e)("appidPlaceholder"),class:"input-width",clearable:""},null,8,["modelValue","placeholder"]),r("div",re,s(t(e)("wechatAppidTips")),1)]),_:1},8,["label"]),o(p,{label:t(e)("wechatAppsecret"),prop:"app_secret"},{default:l(()=>[o(d,{modelValue:n.app_secret,"onUpdate:modelValue":a[4]||(a[4]=i=>n.app_secret=i),placeholder:t(e)("appSecretPlaceholder"),class:"input-width",clearable:""},null,8,["modelValue","placeholder"]),r("div",se,s(t(e)("wechatAppsecretTips")),1)]),_:1},8,["label"])]),_:1}),o(f,{class:"box-card !border-none mt-[16px]",shadow:"never"},{default:l(()=>[r("h3",ie,s(t(e)("theServerSetting")),1),o(p,{label:"URL"},{default:l(()=>[o(d,{"model-value":c.serve_url,placeholder:"Please input",class:"input-width",readonly:!0},{append:l(()=>[r("div",{class:"cursor-pointer",onClick:a[5]||(a[5]=i=>_(c.serve_url))},s(t(e)("copy")),1)]),_:1},8,["model-value"])]),_:1}),o(p,{label:"Token",prop:"token"},{default:l(()=>[o(d,{modelValue:n.token,"onUpdate:modelValue":a[6]||(a[6]=i=>n.token=i),placeholder:t(e)("tokenPlaceholder"),class:"input-width",maxlength:"32","show-word-limit":"",clearable:""},null,8,["modelValue","placeholder"]),r("div",ne,s(t(e)("tokenTips")),1)]),_:1}),o(p,{label:"EncodingAESKey",prop:"encoding_aes_key"},{default:l(()=>[o(d,{modelValue:n.encoding_aes_key,"onUpdate:modelValue":a[7]||(a[7]=i=>n.encoding_aes_key=i),placeholder:t(e)("encodingAesKeyPlaceholder"),class:"input-width",maxlength:"43","show-word-limit":"",clearable:""},null,8,["modelValue","placeholder"]),r("div",pe,s(t(e)("encodingAESKeyTips")),1)]),_:1}),o(p,{label:t(e)("encryptionType"),prop:"encryption_type"},{default:l(()=>[o(q,{modelValue:n.encryption_type,"onUpdate:modelValue":a[8]||(a[8]=i=>n.encryption_type=i)},{default:l(()=>[o(b,{label:"not_encrypt"},{default:l(()=>[h(s(t(e)("cleartextMode")),1)]),_:1}),o(b,{label:"compatible"},{default:l(()=>[h(s(t(e)("compatibleMode")),1)]),_:1}),o(b,{label:"safe"},{default:l(()=>[h(s(t(e)("safeMode")),1)]),_:1})]),_:1},8,["modelValue"]),r("div",de,s(t(e)("cleartextModeTips")),1),r("div",ce,s(t(e)("compatibleModeTips")),1),r("div",me,s(t(e)("safeModeTips")),1)]),_:1},8,["label"])]),_:1}),o(f,{class:"box-card !border-none mt-[16px]",shadow:"never"},{default:l(()=>[r("div",ue,[r("h3",_e,s(t(e)("functionSetting")),1)]),o(p,{label:""},{default:l(()=>[r("div",fe,s(t(e)("functionSettingTips")),1)]),_:1}),o(p,{label:t(e)("businessDomain")},{default:l(()=>[o(d,{"model-value":c.business_domain,placeholder:"Please input",class:"input-width",readonly:!0},{append:l(()=>[r("div",{class:"cursor-pointer",onClick:a[9]||(a[9]=i=>_(c.business_domain))},s(t(e)("copy")),1)]),_:1},8,["model-value"])]),_:1},8,["label"]),o(p,{label:t(e)("jsSecureDomain")},{default:l(()=>[o(d,{"model-value":c.js_secure_domain,placeholder:"Please input",class:"input-width",readonly:!0},{append:l(()=>[r("div",{class:"cursor-pointer",onClick:a[10]||(a[10]=i=>_(c.business_domain))},s(t(e)("copy")),1)]),_:1},8,["model-value"])]),_:1},8,["label"]),o(p,{label:t(e)("webAuthDomain")},{default:l(()=>[o(d,{"model-value":c.web_auth_domain,placeholder:"Please input",class:"input-width",readonly:!0},{append:l(()=>[r("div",{class:"cursor-pointer",onClick:a[11]||(a[11]=i=>_(c.business_domain))},s(t(e)("copy")),1)]),_:1},8,["model-value"])]),_:1},8,["label"])]),_:1})]),_:1},8,["model","rules"])),[[M,u.value]]),r("div",he,[r("div",be,[o(U,{type:"primary",loading:u.value,onClick:a[12]||(a[12]=i=>C(v.value))},{default:l(()=>[h(s(t(e)("save")),1)]),_:1},8,["loading"])])])])}}});export{Vt as default};
|