mirror of
https://gitee.com/niucloud-team/niucloud-admin.git
synced 2025-12-13 19:22:48 +00:00
update source
This commit is contained in:
parent
0a7027eb75
commit
4b27cfb131
@ -1 +1 @@
|
||||
import{_ as o}from"./add-member.vue_vue_type_script_setup_true_lang-5767ed57.js";import"./base-962c0c23.js";import"./runtime-core.esm-bundler-dc7a07d7.js";/* empty css */import"./el-overlay-60700377.js";import"./event-ff03ec12.js";import"./index-5d86eb33.js";import"./focus-trap-b8b5a003.js";/* empty css *//* empty css *//* empty css */import"./index-2af60c2e.js";import"./common-6291c908.js";import"./common-2cf17469.js";import"./member-eae88758.js";import"./index-5cfb4637.js";import"./vue-router-79053937.js";import"./el-radio-bfd4b1ad.js";import"./storage-abe718b1.js";import"./index-8bcaafa6.js";import"./index-bba9e58c.js";import"./index-93f2c618.js";import"./index-7a123a20.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./el-tooltip-58212670.js";import"./el-avatar-3bb47ce2.js";import"./index-d57cc47d.js";import"./index-61c777fa.js";import"./_Uint8Array-6ff3cafa.js";import"./_initCloneObject-28e6bdaa.js";import"./directive-c0c3e9a3.js";export{o as default};
|
||||
import{_ as o}from"./add-member.vue_vue_type_script_setup_true_lang-6c439307.js";import"./base-962c0c23.js";import"./runtime-core.esm-bundler-dc7a07d7.js";/* empty css */import"./el-overlay-60700377.js";import"./event-ff03ec12.js";import"./index-5d86eb33.js";import"./focus-trap-b8b5a003.js";/* empty css *//* empty css *//* empty css */import"./index-105fbad0.js";import"./common-080b9b9f.js";import"./common-2cf17469.js";import"./member-21f99754.js";import"./index-7525671c.js";import"./vue-router-79053937.js";import"./el-radio-bfd4b1ad.js";import"./storage-abe718b1.js";import"./index-8bcaafa6.js";import"./index-bba9e58c.js";import"./index-93f2c618.js";import"./index-7a123a20.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./el-tooltip-58212670.js";import"./el-avatar-3bb47ce2.js";import"./index-d57cc47d.js";import"./index-61c777fa.js";import"./_Uint8Array-6ff3cafa.js";import"./_initCloneObject-28e6bdaa.js";import"./directive-c0c3e9a3.js";export{o as default};
|
||||
@ -1 +1 @@
|
||||
import"./base-962c0c23.js";/* empty css */import{E as F}from"./el-overlay-60700377.js";/* empty css *//* empty css *//* empty css */import{t as l}from"./index-2af60c2e.js";import{p as B,q as $,r as H}from"./member-eae88758.js";import{E as I}from"./index-93f2c618.js";import{a as L,E as R}from"./index-61c777fa.js";import{E as j}from"./index-bba9e58c.js";import{v as O}from"./directive-c0c3e9a3.js";import{d as T,r as b,M as z,c as A,b as v,m as h,p as d,f as S,q as s,v as V,x as y,u as r,L as Z}from"./runtime-core.esm-bundler-dc7a07d7.js";const G={class:"dialog-footer"},ie=T({__name:"add-member",emits:["complete"],setup(J,{expose:N,emit:E}){const p=b(!1),i=b(!1);let u="",c="";const f={member_id:"",nickname:"",member_no:"",init_member_no:"",mobile:"",password:"",password_copy:""},a=z({...f}),_=b(),P=A(()=>({member_no:[{required:!0,message:l("memberNoPlaceholder"),trigger:"blur"},{validator:C,trigger:"blur"}],mobile:[{required:!0,message:l("mobilePlaceholder"),trigger:"blur"},{validator:x,trigger:"blur"}],password:[{required:!0,message:l("passwordPlaceholder"),trigger:"blur"}],password_copy:[{required:!0,message:l("passwordPlaceholder"),trigger:"blur"},{validator:D,trigger:"blur"}]})),x=(m,e,o)=>{e&&!/^1[3-9]\d{9}$/.test(e)?o(new Error(l("mobileHint"))):o()},D=(m,e,o)=>{e!=a.password?o(l("doubleCipherHint")):o()},C=(m,e,o)=>{e&&!/^[0-9a-zA-Z]*$/g.test(e)?o(new Error(l("memberNoHint"))):o()},k=async()=>{await $().then(m=>{c=m.data}).catch(()=>{})},q=async m=>{if(i.value||!m)return;const e=H;await m.validate(async o=>{o&&(i.value=!0,e(a).then(w=>{i.value=!1,p.value=!1,E("complete")}).catch(()=>{i.value=!1}))})};return N({showDialog:p,setFormData:async(m=null)=>{if(i.value=!0,Object.assign(a,f),u=l("addMember"),m){u=l("updateMember");const e=await(await B(m.member_id)).data;e&&Object.keys(a).forEach(o=>{e[o]!=null&&(a[o]=e[o])})}else await k(),a.member_no=c,a.init_member_no=c;i.value=!1}}),(m,e)=>{const o=I,n=L,w=R,g=j,M=F,U=O;return v(),h(M,{modelValue:p.value,"onUpdate:modelValue":e[7]||(e[7]=t=>p.value=t),title:r(u),width:"500px","destroy-on-close":!0},{footer:d(()=>[S("span",G,[s(g,{onClick:e[5]||(e[5]=t=>p.value=!1)},{default:d(()=>[V(y(r(l)("cancel")),1)]),_:1}),s(g,{type:"primary",loading:i.value,onClick:e[6]||(e[6]=t=>q(_.value))},{default:d(()=>[V(y(r(l)("confirm")),1)]),_:1},8,["loading"])])]),default:d(()=>[Z((v(),h(w,{model:a,"label-width":"90px",ref_key:"formRef",ref:_,rules:r(P),class:"page-form"},{default:d(()=>[s(n,{label:r(l)("memberNo"),prop:"member_no"},{default:d(()=>[s(o,{modelValue:a.member_no,"onUpdate:modelValue":e[0]||(e[0]=t=>a.member_no=t),clearable:"",maxlength:"20",placeholder:r(l)("memberNoPlaceholder"),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),s(n,{label:r(l)("mobile"),prop:"mobile"},{default:d(()=>[s(o,{modelValue:a.mobile,"onUpdate:modelValue":e[1]||(e[1]=t=>a.mobile=t),clearable:"",placeholder:r(l)("mobilePlaceholder"),type:"number",class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),s(n,{label:r(l)("nickname")},{default:d(()=>[s(o,{modelValue:a.nickname,"onUpdate:modelValue":e[2]||(e[2]=t=>a.nickname=t),clearable:"",placeholder:r(l)("nickNamePlaceholder"),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),s(n,{label:r(l)("password"),prop:"password"},{default:d(()=>[s(o,{modelValue:a.password,"onUpdate:modelValue":e[3]||(e[3]=t=>a.password=t),type:"password",placeholder:r(l)("passwordPlaceholder"),clearable:"",class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),s(n,{label:r(l)("passwordCopy"),prop:"password_copy"},{default:d(()=>[s(o,{modelValue:a.password_copy,"onUpdate:modelValue":e[4]||(e[4]=t=>a.password_copy=t),type:"password",placeholder:r(l)("passwordPlaceholder"),clearable:"",class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","rules"])),[[U,i.value]])]),_:1},8,["modelValue","title"])}}});export{ie as _};
|
||||
import"./base-962c0c23.js";/* empty css */import{E as F}from"./el-overlay-60700377.js";/* empty css *//* empty css *//* empty css */import{t as l}from"./index-105fbad0.js";import{p as B,q as $,r as H}from"./member-21f99754.js";import{E as I}from"./index-93f2c618.js";import{a as L,E as R}from"./index-61c777fa.js";import{E as j}from"./index-bba9e58c.js";import{v as O}from"./directive-c0c3e9a3.js";import{d as T,r as b,M as z,c as A,b as v,m as h,p as d,f as S,q as s,v as V,x as y,u as r,L as Z}from"./runtime-core.esm-bundler-dc7a07d7.js";const G={class:"dialog-footer"},ie=T({__name:"add-member",emits:["complete"],setup(J,{expose:N,emit:E}){const p=b(!1),i=b(!1);let u="",c="";const f={member_id:"",nickname:"",member_no:"",init_member_no:"",mobile:"",password:"",password_copy:""},a=z({...f}),_=b(),P=A(()=>({member_no:[{required:!0,message:l("memberNoPlaceholder"),trigger:"blur"},{validator:C,trigger:"blur"}],mobile:[{required:!0,message:l("mobilePlaceholder"),trigger:"blur"},{validator:x,trigger:"blur"}],password:[{required:!0,message:l("passwordPlaceholder"),trigger:"blur"}],password_copy:[{required:!0,message:l("passwordPlaceholder"),trigger:"blur"},{validator:D,trigger:"blur"}]})),x=(m,e,o)=>{e&&!/^1[3-9]\d{9}$/.test(e)?o(new Error(l("mobileHint"))):o()},D=(m,e,o)=>{e!=a.password?o(l("doubleCipherHint")):o()},C=(m,e,o)=>{e&&!/^[0-9a-zA-Z]*$/g.test(e)?o(new Error(l("memberNoHint"))):o()},k=async()=>{await $().then(m=>{c=m.data}).catch(()=>{})},q=async m=>{if(i.value||!m)return;const e=H;await m.validate(async o=>{o&&(i.value=!0,e(a).then(w=>{i.value=!1,p.value=!1,E("complete")}).catch(()=>{i.value=!1}))})};return N({showDialog:p,setFormData:async(m=null)=>{if(i.value=!0,Object.assign(a,f),u=l("addMember"),m){u=l("updateMember");const e=await(await B(m.member_id)).data;e&&Object.keys(a).forEach(o=>{e[o]!=null&&(a[o]=e[o])})}else await k(),a.member_no=c,a.init_member_no=c;i.value=!1}}),(m,e)=>{const o=I,n=L,w=R,g=j,M=F,U=O;return v(),h(M,{modelValue:p.value,"onUpdate:modelValue":e[7]||(e[7]=t=>p.value=t),title:r(u),width:"500px","destroy-on-close":!0},{footer:d(()=>[S("span",G,[s(g,{onClick:e[5]||(e[5]=t=>p.value=!1)},{default:d(()=>[V(y(r(l)("cancel")),1)]),_:1}),s(g,{type:"primary",loading:i.value,onClick:e[6]||(e[6]=t=>q(_.value))},{default:d(()=>[V(y(r(l)("confirm")),1)]),_:1},8,["loading"])])]),default:d(()=>[Z((v(),h(w,{model:a,"label-width":"90px",ref_key:"formRef",ref:_,rules:r(P),class:"page-form"},{default:d(()=>[s(n,{label:r(l)("memberNo"),prop:"member_no"},{default:d(()=>[s(o,{modelValue:a.member_no,"onUpdate:modelValue":e[0]||(e[0]=t=>a.member_no=t),clearable:"",maxlength:"20",placeholder:r(l)("memberNoPlaceholder"),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),s(n,{label:r(l)("mobile"),prop:"mobile"},{default:d(()=>[s(o,{modelValue:a.mobile,"onUpdate:modelValue":e[1]||(e[1]=t=>a.mobile=t),clearable:"",placeholder:r(l)("mobilePlaceholder"),type:"number",class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),s(n,{label:r(l)("nickname")},{default:d(()=>[s(o,{modelValue:a.nickname,"onUpdate:modelValue":e[2]||(e[2]=t=>a.nickname=t),clearable:"",placeholder:r(l)("nickNamePlaceholder"),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),s(n,{label:r(l)("password"),prop:"password"},{default:d(()=>[s(o,{modelValue:a.password,"onUpdate:modelValue":e[3]||(e[3]=t=>a.password=t),type:"password",placeholder:r(l)("passwordPlaceholder"),clearable:"",class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),s(n,{label:r(l)("passwordCopy"),prop:"password_copy"},{default:d(()=>[s(o,{modelValue:a.password_copy,"onUpdate:modelValue":e[4]||(e[4]=t=>a.password_copy=t),type:"password",placeholder:r(l)("passwordPlaceholder"),clearable:"",class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","rules"])),[[U,i.value]])]),_:1},8,["modelValue","title"])}}});export{ie as _};
|
||||
@ -1 +1 @@
|
||||
import{_ as o}from"./add-table.vue_vue_type_script_setup_true_lang-7d3e2732.js";import"./base-962c0c23.js";import"./runtime-core.esm-bundler-dc7a07d7.js";/* empty css */import"./el-overlay-60700377.js";import"./event-ff03ec12.js";import"./index-5d86eb33.js";import"./focus-trap-b8b5a003.js";/* empty css *//* empty css *//* empty css */import"./el-tooltip-58212670.js";import"./index-5cfb4637.js";import"./vue-router-79053937.js";import"./index-2af60c2e.js";import"./common-6291c908.js";import"./common-2cf17469.js";/* empty css *//* empty css */import"./el-radio-bfd4b1ad.js";import"./storage-abe718b1.js";import"./index-8bcaafa6.js";import"./index-bba9e58c.js";import"./index-93f2c618.js";import"./index-7a123a20.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./el-avatar-3bb47ce2.js";import"./index-d57cc47d.js";/* empty css */import"./tools-4020b697.js";import"./index-50a00d09.js";import"./index-92e1b5d5.js";import"./_Uint8Array-6ff3cafa.js";import"./_initCloneObject-28e6bdaa.js";import"./index-df51d91a.js";import"./isEqual-c7d5e6d9.js";import"./flatten-d5d1dc97.js";import"./_isIterateeCall-c579b126.js";import"./directive-c0c3e9a3.js";export{o as default};
|
||||
import{_ as o}from"./add-table.vue_vue_type_script_setup_true_lang-e92fe50a.js";import"./base-962c0c23.js";import"./runtime-core.esm-bundler-dc7a07d7.js";/* empty css */import"./el-overlay-60700377.js";import"./event-ff03ec12.js";import"./index-5d86eb33.js";import"./focus-trap-b8b5a003.js";/* empty css *//* empty css *//* empty css */import"./el-tooltip-58212670.js";import"./index-7525671c.js";import"./vue-router-79053937.js";import"./index-105fbad0.js";import"./common-080b9b9f.js";import"./common-2cf17469.js";/* empty css *//* empty css */import"./el-radio-bfd4b1ad.js";import"./storage-abe718b1.js";import"./index-8bcaafa6.js";import"./index-bba9e58c.js";import"./index-93f2c618.js";import"./index-7a123a20.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./el-avatar-3bb47ce2.js";import"./index-d57cc47d.js";/* empty css */import"./tools-6df261eb.js";import"./index-50a00d09.js";import"./index-92e1b5d5.js";import"./_Uint8Array-6ff3cafa.js";import"./_initCloneObject-28e6bdaa.js";import"./index-df51d91a.js";import"./isEqual-c7d5e6d9.js";import"./flatten-d5d1dc97.js";import"./_isIterateeCall-c579b126.js";import"./directive-c0c3e9a3.js";export{o as default};
|
||||
@ -1 +1 @@
|
||||
import"./base-962c0c23.js";/* empty css */import{E as y}from"./el-overlay-60700377.js";/* empty css *//* empty css *//* empty css */import"./el-tooltip-58212670.js";import"./index-5cfb4637.js";/* empty css *//* empty css *//* empty css */import{t as e}from"./index-2af60c2e.js";import{g as B,a as L}from"./tools-4020b697.js";import{E as N}from"./index-50a00d09.js";import{a as k,E as z}from"./index-92e1b5d5.js";import{E as F}from"./index-93f2c618.js";import{E as M}from"./index-bba9e58c.js";import{v as P}from"./directive-c0c3e9a3.js";import{d as U,r as c,M as q,c as G,b as f,m as _,p as s,f as b,L as I,u as a,x as g,q as d,v as R,i as S}from"./runtime-core.esm-bundler-dc7a07d7.js";const j={class:""},ce=U({__name:"add-table",emits:["complete"],setup(A,{expose:h,emit:v}){let l=c(!1);const p=c(!1),i=c("");let o=q({loading:!0,data:[],searchParam:{table_name:"",table_content:""}});const w=G(()=>o.data.filter(t=>!i.value||t.Name.toLowerCase().includes(i.value.toLowerCase())||t.Comment.toLowerCase().includes(i.value.toLowerCase())));c();const u=()=>{o.loading=!0,B().then(t=>{o.loading=!1,o.data=t.data}).catch(()=>{o.loading=!1})};u();const C=t=>{let n=t.Name;N.confirm(e("selectTableTips"),e("warning"),{confirmButtonText:e("confirm"),cancelButtonText:e("cancel"),type:"info"}).then(()=>{L({table_name:n}).then(m=>{p.value=!1,l.value=!1,v("complete")}).catch(m=>{p.value=!1})})};return h({showDialog:l,setFormData:async(t=null)=>{u()}}),(t,n)=>{const m=k,T=F,E=M,x=z,D=y,V=P;return f(),_(D,{modelValue:a(l),"onUpdate:modelValue":n[1]||(n[1]=r=>S(l)?l.value=r:l=r),title:a(e)("addCode"),width:"800px","destroy-on-close":!0},{default:s(()=>[b("div",j,[I((f(),_(x,{data:a(w),size:"large",height:"400"},{empty:s(()=>[b("span",null,g(a(o).loading?"":a(e)("emptyData")),1)]),default:s(()=>[d(m,{prop:"Name",label:a(e)("tableName"),"min-width":"150"},null,8,["label"]),d(m,{prop:"Comment",label:a(e)("tableComment"),"min-width":"120"},null,8,["label"]),d(m,{align:"right","min-width":"150"},{header:s(()=>[d(T,{modelValue:i.value,"onUpdate:modelValue":n[0]||(n[0]=r=>i.value=r),size:"small",placeholder:a(e)("searchPlaceholder")},null,8,["modelValue","placeholder"])]),default:s(r=>[d(E,{size:"small",type:"primary",onClick:J=>C(r.row)},{default:s(()=>[R(g(a(e)("addBtn")),1)]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[V,a(o).loading]])])]),_:1},8,["modelValue","title"])}}});export{ce as _};
|
||||
import"./base-962c0c23.js";/* empty css */import{E as y}from"./el-overlay-60700377.js";/* empty css *//* empty css *//* empty css */import"./el-tooltip-58212670.js";import"./index-7525671c.js";/* empty css *//* empty css *//* empty css */import{t as e}from"./index-105fbad0.js";import{g as B,a as L}from"./tools-6df261eb.js";import{E as N}from"./index-50a00d09.js";import{a as k,E as z}from"./index-92e1b5d5.js";import{E as F}from"./index-93f2c618.js";import{E as M}from"./index-bba9e58c.js";import{v as P}from"./directive-c0c3e9a3.js";import{d as U,r as c,M as q,c as G,b as f,m as _,p as s,f as b,L as I,u as a,x as g,q as d,v as R,i as S}from"./runtime-core.esm-bundler-dc7a07d7.js";const j={class:""},ce=U({__name:"add-table",emits:["complete"],setup(A,{expose:h,emit:v}){let l=c(!1);const p=c(!1),i=c("");let o=q({loading:!0,data:[],searchParam:{table_name:"",table_content:""}});const w=G(()=>o.data.filter(t=>!i.value||t.Name.toLowerCase().includes(i.value.toLowerCase())||t.Comment.toLowerCase().includes(i.value.toLowerCase())));c();const u=()=>{o.loading=!0,B().then(t=>{o.loading=!1,o.data=t.data}).catch(()=>{o.loading=!1})};u();const C=t=>{let n=t.Name;N.confirm(e("selectTableTips"),e("warning"),{confirmButtonText:e("confirm"),cancelButtonText:e("cancel"),type:"info"}).then(()=>{L({table_name:n}).then(m=>{p.value=!1,l.value=!1,v("complete")}).catch(m=>{p.value=!1})})};return h({showDialog:l,setFormData:async(t=null)=>{u()}}),(t,n)=>{const m=k,T=F,E=M,x=z,D=y,V=P;return f(),_(D,{modelValue:a(l),"onUpdate:modelValue":n[1]||(n[1]=r=>S(l)?l.value=r:l=r),title:a(e)("addCode"),width:"800px","destroy-on-close":!0},{default:s(()=>[b("div",j,[I((f(),_(x,{data:a(w),size:"large",height:"400"},{empty:s(()=>[b("span",null,g(a(o).loading?"":a(e)("emptyData")),1)]),default:s(()=>[d(m,{prop:"Name",label:a(e)("tableName"),"min-width":"150"},null,8,["label"]),d(m,{prop:"Comment",label:a(e)("tableComment"),"min-width":"120"},null,8,["label"]),d(m,{align:"right","min-width":"150"},{header:s(()=>[d(T,{modelValue:i.value,"onUpdate:modelValue":n[0]||(n[0]=r=>i.value=r),size:"small",placeholder:a(e)("searchPlaceholder")},null,8,["modelValue","placeholder"])]),default:s(r=>[d(E,{size:"small",type:"primary",onClick:J=>C(r.row)},{default:s(()=>[R(g(a(e)("addBtn")),1)]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[V,a(o).loading]])])]),_:1},8,["modelValue","title"])}}});export{ce as _};
|
||||
@ -1 +0,0 @@
|
||||
import"./base-962c0c23.js";/* empty css *//* empty css *//* empty css *//* empty css */import{_ as w}from"./index-c88476dc.js";import{s as E}from"./index-5cfb4637.js";import{t as i}from"./index-2af60c2e.js";import{x as B,y as C}from"./sys-451b2f0d.js";import{a as D,E as N}from"./index-61c777fa.js";import{E as y}from"./index-69523418.js";import{E as F}from"./index-bba9e58c.js";import{v as I}from"./directive-c0c3e9a3.js";import{d as S,r as g,M as L,b,e as O,L as U,m as R,p as l,q as a,f as p,x as c,u as r,v as T}from"./runtime-core.esm-bundler-dc7a07d7.js";import{_ as j}from"./_plugin-vue_export-helper-c27b6911.js";/* empty css */import"./index.vue_vue_type_style_index_0_lang-d0142cd9.js";import"./el-overlay-60700377.js";import"./event-ff03ec12.js";import"./index-5d86eb33.js";import"./focus-trap-b8b5a003.js";import"./attachment-7b90a6f4.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-58212670.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index-d57cc47d.js";import"./index-93f2c618.js";import"./index-e1e81893.js";import"./index-8bcaafa6.js";import"./storage-abe718b1.js";import"./index-50a00d09.js";import"./index-7a123a20.js";import"./index-a9dd5cf5.js";import"./index-6a89175f.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"./vue-router-79053937.js";import"./el-radio-bfd4b1ad.js";import"./el-avatar-3bb47ce2.js";import"./common-6291c908.js";import"./common-2cf17469.js";import"./_initCloneObject-28e6bdaa.js";const J={class:"main-container"},k={class:"panel-title"},q={class:"form-tip"},M={class:"panel-title"},$={class:"form-tip"},z={class:"fixed-footer-wrap"},A={class:"fixed-footer"},G=S({__name:"adminlogin",setup(H){const n=g(!0),d=g(),o=L({is_captcha:0,is_site_captcha:0,bg:"",site_bg:""});(async(_=0)=>{const t=await(await B()).data;Object.keys(o).forEach(e=>{["is_captcha","is_site_captcha"].includes(e)?o[e]=Boolean(Number(t[e])):o[e]=t[e]}),n.value=!1})();const v=async _=>{n.value||!_||await _.validate(t=>{if(t){let e=JSON.parse(JSON.stringify(o));Object.keys(e).forEach(s=>{["is_captcha","is_site_captcha"].includes(s)&&(e[s]=Number(e[s]))}),C(e).then(()=>{n.value=!1}).catch(()=>{n.value=!1})}})};return(_,t)=>{const e=E,s=D,u=w,f=y,h=N,V=F,x=I;return b(),O("div",J,[U((b(),R(h,{model:o,"label-width":"150px",ref_key:"ruleFormRef",ref:d,rules:_.formRules,class:"page-form"},{default:l(()=>[a(f,{class:"box-card !border-none",shadow:"never"},{default:l(()=>[p("h3",k,c(r(i)("admin")),1),a(s,{label:r(i)("isCaptcha"),prop:"formData.is_auth_register"},{default:l(()=>[a(e,{modelValue:o.is_captcha,"onUpdate:modelValue":t[0]||(t[0]=m=>o.is_captcha=m)},null,8,["modelValue"])]),_:1},8,["label"]),a(s,{label:r(i)("bgImg")},{default:l(()=>[a(u,{modelValue:o.bg,"onUpdate:modelValue":t[1]||(t[1]=m=>o.bg=m)},null,8,["modelValue"]),p("div",q,c(r(i)("adminBgImgTip")),1)]),_:1},8,["label"])]),_:1}),a(f,{class:"box-card !border-none mt-4",shadow:"never"},{default:l(()=>[p("h3",M,c(r(i)("site")),1),a(s,{label:r(i)("isCaptcha"),prop:"formData.is_auth_register"},{default:l(()=>[a(e,{modelValue:o.is_site_captcha,"onUpdate:modelValue":t[2]||(t[2]=m=>o.is_site_captcha=m)},null,8,["modelValue"])]),_:1},8,["label"]),a(s,{label:r(i)("bgImg")},{default:l(()=>[a(u,{modelValue:o.site_bg,"onUpdate:modelValue":t[3]||(t[3]=m=>o.site_bg=m)},null,8,["modelValue"]),p("div",$,c(r(i)("siteBgImgTip")),1)]),_:1},8,["label"])]),_:1})]),_:1},8,["model","rules"])),[[x,n.value]]),p("div",z,[p("div",A,[a(V,{type:"primary",onClick:t[4]||(t[4]=m=>v(d.value))},{default:l(()=>[T(c(r(i)("save")),1)]),_:1})])])])}}});const Wt=j(G,[["__scopeId","data-v-64cf7b7a"]]);export{Wt as default};
|
||||
1
niucloud/public/admin/assets/adminlogin-68fe6e55.js
Normal file
1
niucloud/public/admin/assets/adminlogin-68fe6e55.js
Normal file
@ -0,0 +1 @@
|
||||
import"./base-962c0c23.js";/* empty css *//* empty css *//* empty css *//* empty css */import{_ as E}from"./index-f4731ae1.js";import{s as B}from"./index-7525671c.js";import{t as s}from"./index-105fbad0.js";import{x as C,y as N}from"./sys-4abedf95.js";import{u as y}from"./vue-router-79053937.js";import{a as D,E as F}from"./index-61c777fa.js";import{E as I}from"./index-69523418.js";import{E as S}from"./index-bba9e58c.js";import{v as L}from"./directive-c0c3e9a3.js";import{d as O,r as g,M as R,b,e as U,f as l,x as n,u as i,L as j,m as T,p,q as a,v as J}from"./runtime-core.esm-bundler-dc7a07d7.js";import{_ as k}from"./_plugin-vue_export-helper-c27b6911.js";/* empty css */import"./index.vue_vue_type_style_index_0_lang-d0d31f1b.js";import"./el-overlay-60700377.js";import"./event-ff03ec12.js";import"./index-5d86eb33.js";import"./focus-trap-b8b5a003.js";import"./attachment-56217309.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-58212670.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index-d57cc47d.js";import"./index-93f2c618.js";import"./index-cc03da8f.js";import"./index-8bcaafa6.js";import"./storage-abe718b1.js";import"./index-50a00d09.js";import"./index-7a123a20.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"./el-radio-bfd4b1ad.js";import"./el-avatar-3bb47ce2.js";import"./common-080b9b9f.js";import"./common-2cf17469.js";import"./_initCloneObject-28e6bdaa.js";const q={class:"main-container"},M={class:"flex ml-[18px] justify-between items-center mt-[20px]"},$={class:"text-[24px]"},z={class:"panel-title !text-sm"},A={class:"form-tip"},G={class:"panel-title !text-sm"},H={class:"form-tip"},K={class:"fixed-footer-wrap"},P={class:"fixed-footer"},Q=O({__name:"adminlogin",setup(W){const v=y().meta.title,_=g(!0),d=g(),o=R({is_captcha:0,is_site_captcha:0,bg:"",site_bg:""});(async(c=0)=>{const t=await(await C()).data;Object.keys(o).forEach(e=>{["is_captcha","is_site_captcha"].includes(e)?o[e]=Boolean(Number(t[e])):o[e]=t[e]}),_.value=!1})();const h=async c=>{_.value||!c||await c.validate(t=>{if(t){let e=JSON.parse(JSON.stringify(o));Object.keys(e).forEach(r=>{["is_captcha","is_site_captcha"].includes(r)&&(e[r]=Number(e[r]))}),N(e).then(()=>{_.value=!1}).catch(()=>{_.value=!1})}})};return(c,t)=>{const e=B,r=D,u=E,f=I,x=F,V=S,w=L;return b(),U("div",q,[l("div",M,[l("span",$,n(i(v)),1)]),j((b(),T(x,{model:o,"label-width":"150px",ref_key:"ruleFormRef",ref:d,rules:c.formRules,class:"page-form"},{default:p(()=>[a(f,{class:"box-card !border-none",shadow:"never"},{default:p(()=>[l("h3",z,n(i(s)("admin")),1),a(r,{label:i(s)("isCaptcha"),prop:"formData.is_auth_register"},{default:p(()=>[a(e,{modelValue:o.is_captcha,"onUpdate:modelValue":t[0]||(t[0]=m=>o.is_captcha=m)},null,8,["modelValue"])]),_:1},8,["label"]),a(r,{label:i(s)("bgImg")},{default:p(()=>[a(u,{modelValue:o.bg,"onUpdate:modelValue":t[1]||(t[1]=m=>o.bg=m)},null,8,["modelValue"]),l("div",A,n(i(s)("adminBgImgTip")),1)]),_:1},8,["label"])]),_:1}),a(f,{class:"box-card !border-none mt-4",shadow:"never"},{default:p(()=>[l("h3",G,n(i(s)("site")),1),a(r,{label:i(s)("isCaptcha"),prop:"formData.is_auth_register"},{default:p(()=>[a(e,{modelValue:o.is_site_captcha,"onUpdate:modelValue":t[2]||(t[2]=m=>o.is_site_captcha=m)},null,8,["modelValue"])]),_:1},8,["label"]),a(r,{label:i(s)("bgImg")},{default:p(()=>[a(u,{modelValue:o.site_bg,"onUpdate:modelValue":t[3]||(t[3]=m=>o.site_bg=m)},null,8,["modelValue"]),l("div",H,n(i(s)("siteBgImgTip")),1)]),_:1},8,["label"])]),_:1})]),_:1},8,["model","rules"])),[[w,_.value]]),l("div",K,[l("div",P,[a(V,{type:"primary",onClick:t[4]||(t[4]=m=>h(d.value))},{default:p(()=>[J(n(i(s)("save")),1)]),_:1})])])])}}});const oo=k(Q,[["__scopeId","data-v-4b2a850e"]]);export{oo as default};
|
||||
1
niucloud/public/admin/assets/adminlogin-989e23f5.css
Normal file
1
niucloud/public/admin/assets/adminlogin-989e23f5.css
Normal file
@ -0,0 +1 @@
|
||||
.el-form .form-tip[data-v-4b2a850e]{line-height:1.5;margin-top:5px}
|
||||
@ -1 +0,0 @@
|
||||
.el-form .form-tip[data-v-64cf7b7a]{line-height:1.5;margin-top:5px}
|
||||
@ -1 +1 @@
|
||||
import"./base-962c0c23.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-58212670.js";import"./index-5cfb4637.js";/* empty css *//* empty css */import{t as o}from"./index-2af60c2e.js";import{z as w}from"./sys-451b2f0d.js";import{u as x,a as y}from"./vue-router-79053937.js";import{a as E,E as k}from"./index-92e1b5d5.js";import{E as C}from"./index-bba9e58c.js";import{E as B}from"./index-69523418.js";import{v as L}from"./directive-c0c3e9a3.js";import{d as N,M as T,b as c,e as D,q as a,p as i,f as m,x as l,u as t,L as A,m as V,v as d}from"./runtime-core.esm-bundler-dc7a07d7.js";import"./el-overlay-60700377.js";import"./event-ff03ec12.js";import"./index-5d86eb33.js";import"./focus-trap-b8b5a003.js";/* empty css */import"./el-radio-bfd4b1ad.js";import"./storage-abe718b1.js";import"./index-8bcaafa6.js";import"./index-93f2c618.js";import"./index-7a123a20.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./el-avatar-3bb47ce2.js";import"./index-d57cc47d.js";import"./common-6291c908.js";import"./common-2cf17469.js";import"./_Uint8Array-6ff3cafa.js";import"./_initCloneObject-28e6bdaa.js";import"./index-df51d91a.js";import"./isEqual-c7d5e6d9.js";import"./flatten-d5d1dc97.js";import"./_isIterateeCall-c579b126.js";const j={class:"main-container"},z={class:"flex justify-between items-center"},R={class:"text-[24px]"},$={class:"mt-[20px]"},Bt=N({__name:"agreement",setup(q){const _=x().meta.title;let e=T({loading:!0,data:[]});(()=>{e.loading=!0,e.data=[],w().then(r=>{Object.keys(r.data).forEach(p=>e.data.push(r.data[p])),e.loading=!1}).catch(()=>{e.loading=!1})})();const u=y(),f=r=>{u.push(`/setting/agreement/edit?key=${r.agreement_key}`)};return(r,p)=>{const n=E,g=C,h=k,b=B,v=L;return c(),D("div",j,[a(b,{class:"box-card !border-none",shadow:"never"},{default:i(()=>[m("div",z,[m("span",R,l(t(_)),1)]),m("div",$,[A((c(),V(h,{data:t(e).data,size:"large"},{empty:i(()=>[m("span",null,l(t(e).loading?"":t(o)("emptyData")),1)]),default:i(()=>[a(n,{prop:"type_name",label:t(o)("typeName"),"min-width":"100","show-overflow-tooltip":!0},null,8,["label"]),a(n,{prop:"title",label:t(o)("title"),"min-width":"100","show-overflow-tooltip":!0},null,8,["label"]),a(n,{label:t(o)("updateTime"),"min-width":"180",align:"center"},{default:i(({row:s})=>[d(l(s.update_time||""),1)]),_:1},8,["label"]),a(n,{label:t(o)("operation"),fixed:"right",width:"100"},{default:i(({row:s})=>[a(g,{type:"primary",link:"",onClick:S=>f(s)},{default:i(()=>[d(l(t(o)("config")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[v,t(e).loading]])])]),_:1})])}}});export{Bt as default};
|
||||
import"./base-962c0c23.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-58212670.js";import"./index-7525671c.js";/* empty css *//* empty css */import{t as o}from"./index-105fbad0.js";import{z as w}from"./sys-4abedf95.js";import{u as x,a as y}from"./vue-router-79053937.js";import{a as E,E as k}from"./index-92e1b5d5.js";import{E as C}from"./index-bba9e58c.js";import{E as B}from"./index-69523418.js";import{v as L}from"./directive-c0c3e9a3.js";import{d as N,M as T,b as c,e as D,q as a,p as i,f as m,x as l,u as t,L as A,m as V,v as d}from"./runtime-core.esm-bundler-dc7a07d7.js";import"./el-overlay-60700377.js";import"./event-ff03ec12.js";import"./index-5d86eb33.js";import"./focus-trap-b8b5a003.js";/* empty css */import"./el-radio-bfd4b1ad.js";import"./storage-abe718b1.js";import"./index-8bcaafa6.js";import"./index-93f2c618.js";import"./index-7a123a20.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./el-avatar-3bb47ce2.js";import"./index-d57cc47d.js";import"./common-080b9b9f.js";import"./common-2cf17469.js";import"./_Uint8Array-6ff3cafa.js";import"./_initCloneObject-28e6bdaa.js";import"./index-df51d91a.js";import"./isEqual-c7d5e6d9.js";import"./flatten-d5d1dc97.js";import"./_isIterateeCall-c579b126.js";const j={class:"main-container"},z={class:"flex justify-between items-center"},R={class:"text-[24px]"},$={class:"mt-[20px]"},Bt=N({__name:"agreement",setup(q){const _=x().meta.title;let e=T({loading:!0,data:[]});(()=>{e.loading=!0,e.data=[],w().then(r=>{Object.keys(r.data).forEach(p=>e.data.push(r.data[p])),e.loading=!1}).catch(()=>{e.loading=!1})})();const u=y(),f=r=>{u.push(`/setting/agreement/edit?key=${r.agreement_key}`)};return(r,p)=>{const n=E,g=C,h=k,b=B,v=L;return c(),D("div",j,[a(b,{class:"box-card !border-none",shadow:"never"},{default:i(()=>[m("div",z,[m("span",R,l(t(_)),1)]),m("div",$,[A((c(),V(h,{data:t(e).data,size:"large"},{empty:i(()=>[m("span",null,l(t(e).loading?"":t(o)("emptyData")),1)]),default:i(()=>[a(n,{prop:"type_name",label:t(o)("typeName"),"min-width":"100","show-overflow-tooltip":!0},null,8,["label"]),a(n,{prop:"title",label:t(o)("title"),"min-width":"100","show-overflow-tooltip":!0},null,8,["label"]),a(n,{label:t(o)("updateTime"),"min-width":"180",align:"center"},{default:i(({row:s})=>[d(l(s.update_time||""),1)]),_:1},8,["label"]),a(n,{label:t(o)("operation"),fixed:"right",width:"100"},{default:i(({row:s})=>[a(g,{type:"primary",link:"",onClick:S=>f(s)},{default:i(()=>[d(l(t(o)("config")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[v,t(e).loading]])])]),_:1})])}}});export{Bt as default};
|
||||
1
niucloud/public/admin/assets/agreement_edit-55043ab7.js
Normal file
1
niucloud/public/admin/assets/agreement_edit-55043ab7.js
Normal file
@ -0,0 +1 @@
|
||||
import"./base-962c0c23.js";/* empty css *//* empty css *//* empty css *//* empty css */import{_ as S}from"./index.vue_vue_type_script_setup_true_lang-9977cd4d.js";/* empty css */import{u as A,t as s}from"./index-105fbad0.js";import{A as N,B as P}from"./sys-4abedf95.js";import{u as T,a as $}from"./vue-router-79053937.js";import{D as j}from"./index-7525671c.js";import{E as q}from"./index-93f2c618.js";import{a as I,E as U}from"./index-61c777fa.js";import{E as L}from"./index-69523418.js";import{E as O}from"./index-bba9e58c.js";import{v as z}from"./directive-c0c3e9a3.js";import{d as M,r as y,M as G,c as H,b as k,e as J,f as n,u as o,x as d,L as K,m as Q,p as l,q as r,v as x}from"./runtime-core.esm-bundler-dc7a07d7.js";import"./index.vue_vue_type_style_index_0_lang-d0d31f1b.js";import"./el-overlay-60700377.js";import"./event-ff03ec12.js";import"./index-5d86eb33.js";import"./focus-trap-b8b5a003.js";import"./attachment-56217309.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-58212670.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index-d57cc47d.js";import"./index-cc03da8f.js";import"./index-8bcaafa6.js";import"./storage-abe718b1.js";import"./index-50a00d09.js";import"./index-7a123a20.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"./_plugin-vue_export-helper-c27b6911.js";import"./common-080b9b9f.js";import"./common-2cf17469.js";import"./el-radio-bfd4b1ad.js";import"./el-avatar-3bb47ce2.js";import"./_initCloneObject-28e6bdaa.js";const W={class:"main-container"},X={class:"detail-head"},Y=n("span",{class:"iconfont iconxiangzuojiantou !text-xs"},null,-1),Z={class:"ml-[1px]"},tt=n("span",{class:"adorn"},"|",-1),et={class:"right"},ot={class:"fixed-footer-wrap"},at={class:"fixed-footer"},me=M({__name:"agreement_edit",setup(rt){A();const u=T(),_=$(),f=u.query.key||"",m=y(!1),V=j(),w=u.meta.title,v={agreement_key:"",content:"",title:"",agreement_key_name:""},e=G({...v});m.value=!0,f&&(async(p="")=>{Object.assign(e,v);const t=await(await N(p)).data;Object.keys(e).forEach(a=>{t[a]!=null&&(e[a]=t[a])}),m.value=!1})(f);const g=y(),E=H(()=>({title:[{required:!0,message:s("titlePlaceholder"),trigger:"blur"}]})),D=async p=>{m.value||!p||await p.validate(async t=>{if(t){m.value=!0;const a=e;a.key=e.agreement_key,P(a).then(c=>{m.value=!1,b()}).catch(()=>{m.value=!1})}})},b=()=>{V.removeTab(u.path),_.push({path:"/setting/agreement"})};return(p,t)=>{const a=q,c=I,B=S,C=U,F=L,h=O,R=z;return k(),J("div",W,[n("div",X,[n("div",{class:"left",onClick:t[0]||(t[0]=i=>o(_).push({path:"/setting/agreement"}))},[Y,n("span",Z,d(o(s)("returnToPreviousPage")),1)]),tt,n("span",et,d(o(w)),1)]),K((k(),Q(F,{class:"box-card !border-none",shadow:"never"},{default:l(()=>[r(C,{model:e,"label-width":"90px",ref_key:"formRef",ref:g,rules:o(E),class:"page-form"},{default:l(()=>[r(c,{label:o(s)("type")},{default:l(()=>[r(a,{modelValue:e.agreement_key_name,"onUpdate:modelValue":t[1]||(t[1]=i=>e.agreement_key_name=i),readonly:"",class:"input-width"},null,8,["modelValue"])]),_:1},8,["label"]),r(c,{label:o(s)("title"),prop:"title"},{default:l(()=>[r(a,{modelValue:e.title,"onUpdate:modelValue":t[2]||(t[2]=i=>e.title=i),clearable:"",placeholder:o(s)("titlePlaceholder"),class:"input-width",maxlength:"20"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),r(c,{label:o(s)("content")},{default:l(()=>[r(B,{modelValue:e.content,"onUpdate:modelValue":t[3]||(t[3]=i=>e.content=i)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model","rules"])]),_:1})),[[R,m.value]]),n("div",ot,[n("div",at,[r(h,{type:"primary",onClick:t[4]||(t[4]=i=>D(g.value))},{default:l(()=>[x(d(o(s)("save")),1)]),_:1}),r(h,{onClick:t[5]||(t[5]=i=>b())},{default:l(()=>[x(d(o(s)("cancel")),1)]),_:1})])])])}}});export{me as default};
|
||||
@ -1 +0,0 @@
|
||||
import"./base-962c0c23.js";/* empty css *//* empty css *//* empty css *//* empty css */import{_ as F}from"./index.vue_vue_type_script_setup_true_lang-6ba642ad.js";/* empty css */import{u as A,t as i}from"./index-2af60c2e.js";import{A as q,B as I}from"./sys-451b2f0d.js";import{u as N,a as T}from"./vue-router-79053937.js";import{D as U}from"./index-5cfb4637.js";import{E as $}from"./index-93f2c618.js";import{a as j,E as L}from"./index-61c777fa.js";import{E as O}from"./index-69523418.js";import{E as P}from"./index-bba9e58c.js";import{v as X}from"./directive-c0c3e9a3.js";import{d as M,r as b,w as z,M as G,c as H,b as y,e as J,L as K,m as Q,p as l,q as r,u as n,f as k,v as w,x as h}from"./runtime-core.esm-bundler-dc7a07d7.js";import"./index.vue_vue_type_style_index_0_lang-d0142cd9.js";import"./el-overlay-60700377.js";import"./event-ff03ec12.js";import"./index-5d86eb33.js";import"./focus-trap-b8b5a003.js";import"./attachment-7b90a6f4.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-58212670.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index-d57cc47d.js";import"./index-e1e81893.js";import"./index-8bcaafa6.js";import"./storage-abe718b1.js";import"./index-50a00d09.js";import"./index-7a123a20.js";import"./index-a9dd5cf5.js";import"./index-6a89175f.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"./_plugin-vue_export-helper-c27b6911.js";import"./common-6291c908.js";import"./common-2cf17469.js";import"./el-radio-bfd4b1ad.js";import"./el-avatar-3bb47ce2.js";import"./_initCloneObject-28e6bdaa.js";const W={class:"main-container"},Y={class:"fixed-footer-wrap"},Z={class:"fixed-footer"},at=M({__name:"agreement_edit",setup(ee){const c=A(),u=N(),V=T(),d=u.query.key||"",a=b(!1),x=U();c.pageReturn=!0,z(u,(s,e)=>{c.pageReturn=!1});const f={agreement_key:"",content:"",title:"",agreement_key_name:""},t=G({...f});a.value=!0,d&&(async(s="")=>{Object.assign(t,f);const e=await(await q(s)).data;Object.keys(t).forEach(o=>{e[o]!=null&&(t[o]=e[o])}),a.value=!1})(d);const _=b(),E=H(()=>({title:[{required:!0,message:i("titlePlaceholder"),trigger:"blur"}]})),D=async s=>{a.value||!s||await s.validate(async e=>{if(e){a.value=!0;const o=t;o.key=t.agreement_key,I(o).then(p=>{a.value=!1,v()}).catch(()=>{a.value=!1})}})},v=()=>{x.removeTab(u.path),V.push({path:"/setting/agreement"})};return(s,e)=>{const o=$,p=j,R=F,B=L,S=O,g=P,C=X;return y(),J("div",W,[K((y(),Q(S,{class:"box-card !border-none",shadow:"never"},{default:l(()=>[r(B,{model:t,"label-width":"90px",ref_key:"formRef",ref:_,rules:n(E),class:"page-form"},{default:l(()=>[r(p,{label:n(i)("type")},{default:l(()=>[r(o,{modelValue:t.agreement_key_name,"onUpdate:modelValue":e[0]||(e[0]=m=>t.agreement_key_name=m),readonly:"",class:"input-width"},null,8,["modelValue"])]),_:1},8,["label"]),r(p,{label:n(i)("title"),prop:"title"},{default:l(()=>[r(o,{modelValue:t.title,"onUpdate:modelValue":e[1]||(e[1]=m=>t.title=m),clearable:"",placeholder:n(i)("titlePlaceholder"),class:"input-width",maxlength:"20"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),r(p,{label:n(i)("content")},{default:l(()=>[r(R,{modelValue:t.content,"onUpdate:modelValue":e[2]||(e[2]=m=>t.content=m)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model","rules"])]),_:1})),[[C,a.value]]),k("div",Y,[k("div",Z,[r(g,{type:"primary",onClick:e[3]||(e[3]=m=>D(_.value))},{default:l(()=>[w(h(n(i)("save")),1)]),_:1}),r(g,{onClick:e[4]||(e[4]=m=>v())},{default:l(()=>[w(h(n(i)("cancel")),1)]),_:1})])])])}}});export{at as default};
|
||||
@ -1 +1 @@
|
||||
import{C as t}from"./index-5cfb4637.js";function c(e){return t.get("article/article",{params:e})}function a(e){return t.get(`article/article/${e}`)}function i(e){return t.post("article/article",e,{showSuccessMessage:!0})}function s(e){return t.put(`article/article/${e.id}`,e,{showSuccessMessage:!0})}function o(e){return t.delete(`article/article/${e}`,{showSuccessMessage:!0})}function u(e){return t.get("article/category",{params:e})}function l(e){return t.get("article/category/all",e)}function n(e){return t.get(`article/category/${e}`)}function g(e){return t.post("article/category",e,{showSuccessMessage:!0})}function f(e){return t.put(`article/category/${e.category_id}`,e,{showSuccessMessage:!0})}function d(e){return t.delete(`article/category/${e}`,{showSuccessMessage:!0})}export{g as a,n as b,a as c,d,f as e,l as f,u as g,s as h,i,c as j,o as k};
|
||||
import{C as t}from"./index-7525671c.js";function c(e){return t.get("article/article",{params:e})}function a(e){return t.get(`article/article/${e}`)}function i(e){return t.post("article/article",e,{showSuccessMessage:!0})}function s(e){return t.put(`article/article/${e.id}`,e,{showSuccessMessage:!0})}function o(e){return t.delete(`article/article/${e}`,{showSuccessMessage:!0})}function u(e){return t.get("article/category",{params:e})}function l(e){return t.get("article/category/all",e)}function n(e){return t.get(`article/category/${e}`)}function g(e){return t.post("article/category",e,{showSuccessMessage:!0})}function f(e){return t.put(`article/category/${e.category_id}`,e,{showSuccessMessage:!0})}function d(e){return t.delete(`article/category/${e}`,{showSuccessMessage:!0})}export{g as a,n as b,a as c,d,f as e,l as f,u as g,s as h,i,c as j,o as k};
|
||||
@ -1 +1 @@
|
||||
const t="文章栏目",e="文章标题",o="简介",c="文章摘要",a="文章图片",r="作者",l="文章内容",s="实际浏览量",i="虚拟浏览量",n="是否显示",h="排序",d="请选择文章栏目",u="请输入文章标题",m="请输入简介",P="请输入文章摘要",w="请上传文章图片",x="请输入作者",g="请输入文章内容",y="请输入实际浏览量",M="请输入虚拟浏览量",v="是否显示",N="请输入排序",S="添加文章",b="编辑文章",A="文章标题不能超过20个字符",B="文章简介不能超过50个字符",V="文章摘要不能超过50个字符",p="图片路径太长",I="文章作者不能超过20个字符",f="是否显示必须是数字",_="是否显示只能是0或者1",j="排序号必须是数字",k="排序号需要在0-10000之间",q="未读取到文章信息!",z={categoryName:t,title:e,intro:o,summary:c,image:a,author:r,content:l,visit:s,visitVirtual:i,isShow:n,sort:h,categoryIdPlaceholder:d,titlePlaceholder:u,introPlaceholder:m,summaryPlaceholder:P,imagePlaceholder:w,authorPlaceholder:x,contentPlaceholder:g,visitPlaceholder:y,visitVirtualPlaceholder:M,isShowPlaceholder:v,sortPlaceholder:N,addArticle:S,updateArticle:b,titleMax:A,introMax:B,summaryMax:V,imageMax:p,authorMax:I,isShowNumber:f,isShowBetween:_,sortNumber:j,sortBetween:k,articleNull:q};export{S as addArticle,q as articleNull,r as author,I as authorMax,x as authorPlaceholder,d as categoryIdPlaceholder,t as categoryName,l as content,g as contentPlaceholder,z as default,a as image,p as imageMax,w as imagePlaceholder,o as intro,B as introMax,m as introPlaceholder,n as isShow,_ as isShowBetween,f as isShowNumber,v as isShowPlaceholder,h as sort,k as sortBetween,j as sortNumber,N as sortPlaceholder,c as summary,V as summaryMax,P as summaryPlaceholder,e as title,A as titleMax,u as titlePlaceholder,b as updateArticle,s as visit,y as visitPlaceholder,i as visitVirtual,M as visitVirtualPlaceholder};
|
||||
const t="文章栏目",e="文章标题",o="简介",c="文章摘要",a="文章图片",r="作者",l="文章内容",s="实际浏览量",i="初始浏览量",n="是否显示",h="排序",d="请选择文章栏目",u="请输入文章标题",m="请输入简介",P="请输入文章摘要",w="请上传文章图片",x="请输入作者",g="请输入文章内容",y="请输入实际浏览量",M="请输入初始浏览量",v="是否显示",N="请输入排序",S="添加文章",b="编辑文章",A="文章标题不能超过20个字符",B="文章简介不能超过50个字符",V="文章摘要不能超过50个字符",p="图片路径太长",I="文章作者不能超过20个字符",f="是否显示必须是数字",_="是否显示只能是0或者1",j="排序号必须是数字",k="排序号需要在0-10000之间",q="未读取到文章信息!",z={categoryName:t,title:e,intro:o,summary:c,image:a,author:r,content:l,visit:s,visitVirtual:i,isShow:n,sort:h,categoryIdPlaceholder:d,titlePlaceholder:u,introPlaceholder:m,summaryPlaceholder:P,imagePlaceholder:w,authorPlaceholder:x,contentPlaceholder:g,visitPlaceholder:y,visitVirtualPlaceholder:M,isShowPlaceholder:v,sortPlaceholder:N,addArticle:S,updateArticle:b,titleMax:A,introMax:B,summaryMax:V,imageMax:p,authorMax:I,isShowNumber:f,isShowBetween:_,sortNumber:j,sortBetween:k,articleNull:q};export{S as addArticle,q as articleNull,r as author,I as authorMax,x as authorPlaceholder,d as categoryIdPlaceholder,t as categoryName,l as content,g as contentPlaceholder,z as default,a as image,p as imageMax,w as imagePlaceholder,o as intro,B as introMax,m as introPlaceholder,n as isShow,_ as isShowBetween,f as isShowNumber,v as isShowPlaceholder,h as sort,k as sortBetween,j as sortNumber,N as sortPlaceholder,c as summary,V as summaryMax,P as summaryPlaceholder,e as title,A as titleMax,u as titlePlaceholder,b as updateArticle,s as visit,y as visitPlaceholder,i as visitVirtual,M as visitVirtualPlaceholder};
|
||||
@ -1 +1 @@
|
||||
const t="栏目",e="ID",c="标题",o="简介",i="摘要",s="封面",a="作者",r="文章内容",n="浏览量",l="虚拟浏览量",d="是否显示",m="排序",u="创建时间",h="更新时间",p="添加文章",g="编辑文章",y="请输入文章标题",T="请选择文章栏目",D="确定要删除该文章吗?",I={categoryName:t,ID:e,title:c,intro:o,summary:i,image:s,author:a,content:r,visit:n,visitVirtual:l,isShow:d,sort:m,createTime:u,updateTime:h,addArticle:p,updateArticle:g,titlePlaceholder:y,categoryIdPlaceholder:T,articleDeleteTips:D};export{e as ID,p as addArticle,D as articleDeleteTips,a as author,T as categoryIdPlaceholder,t as categoryName,r as content,u as createTime,I as default,s as image,o as intro,d as isShow,m as sort,i as summary,c as title,y as titlePlaceholder,g as updateArticle,h as updateTime,n as visit,l as visitVirtual};
|
||||
const t="栏目",e="ID",c="标题",o="简介",i="摘要",s="封面",a="作者",r="文章内容",n="浏览量",l="初始浏览量",d="是否显示",m="排序",u="创建时间",h="更新时间",p="添加文章",g="编辑文章",y="请输入文章标题",T="请选择文章栏目",D="确定要删除该文章吗?",I={categoryName:t,ID:e,title:c,intro:o,summary:i,image:s,author:a,content:r,visit:n,visitVirtual:l,isShow:d,sort:m,createTime:u,updateTime:h,addArticle:p,updateArticle:g,titlePlaceholder:y,categoryIdPlaceholder:T,articleDeleteTips:D};export{e as ID,p as addArticle,D as articleDeleteTips,a as author,T as categoryIdPlaceholder,t as categoryName,r as content,u as createTime,I as default,s as image,o as intro,d as isShow,m as sort,i as summary,c as title,y as titlePlaceholder,g as updateArticle,h as updateTime,n as visit,l as visitVirtual};
|
||||
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
import"./base-962c0c23.js";/* empty css *//* empty css */import{t as _}from"./index-2af60c2e.js";import{a as d}from"./attachment-7b90a6f4.js";import{a as u,E as f}from"./index-92c5bc98.js";import{E as h}from"./index-69523418.js";import{d as b,r as v,b as i,e as a,q as o,p as r,F as y,t as E,u as x}from"./runtime-core.esm-bundler-dc7a07d7.js";import"./common-6291c908.js";import"./common-2cf17469.js";/* empty css */import"./event-ff03ec12.js";/* empty css */import"./el-overlay-60700377.js";import"./index-5d86eb33.js";import"./focus-trap-b8b5a003.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index-5cfb4637.js";import"./vue-router-79053937.js";/* empty css */import"./el-radio-bfd4b1ad.js";import"./storage-abe718b1.js";import"./index-8bcaafa6.js";import"./index-bba9e58c.js";import"./index-93f2c618.js";import"./index-7a123a20.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./el-tooltip-58212670.js";import"./el-avatar-3bb47ce2.js";import"./index-d57cc47d.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index-e1e81893.js";import"./sys-451b2f0d.js";import"./index-50a00d09.js";import"./index-a9dd5cf5.js";import"./index-6a89175f.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"./index-61c777fa.js";import"./_initCloneObject-28e6bdaa.js";import"./directive-c0c3e9a3.js";const V={class:"main-container attachment-container"},wt=b({__name:"attachment",setup(g){const m=["image","video"],e=v(m[0]);return(k,p)=>{const n=u,s=f,l=h;return i(),a("div",V,[o(l,{class:"box-card !border-none full-container",shadow:"never"},{default:r(()=>[o(s,{modelValue:e.value,"onUpdate:modelValue":p[0]||(p[0]=t=>e.value=t),class:""},{default:r(()=>[(i(),a(y,null,E(m,(t,c)=>o(n,{label:x(_)(t),name:t,key:c},{default:r(()=>[o(d,{scene:"attachment",type:t},null,8,["type"])]),_:2},1032,["label","name"])),64))]),_:1},8,["modelValue"])]),_:1})])}}});export{wt as default};
|
||||
import"./base-962c0c23.js";/* empty css *//* empty css */import{t as _}from"./index-105fbad0.js";import{a as d}from"./attachment-56217309.js";import{a as u,E as f}from"./index-92c5bc98.js";import{E as h}from"./index-69523418.js";import{d as b,r as v,b as i,e as a,q as o,p as r,F as y,t as E,u as x}from"./runtime-core.esm-bundler-dc7a07d7.js";import"./common-080b9b9f.js";import"./common-2cf17469.js";/* empty css */import"./event-ff03ec12.js";/* empty css */import"./el-overlay-60700377.js";import"./index-5d86eb33.js";import"./focus-trap-b8b5a003.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index-7525671c.js";import"./vue-router-79053937.js";/* empty css */import"./el-radio-bfd4b1ad.js";import"./storage-abe718b1.js";import"./index-8bcaafa6.js";import"./index-bba9e58c.js";import"./index-93f2c618.js";import"./index-7a123a20.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./el-tooltip-58212670.js";import"./el-avatar-3bb47ce2.js";import"./index-d57cc47d.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"./index-61c777fa.js";import"./_initCloneObject-28e6bdaa.js";import"./directive-c0c3e9a3.js";const V={class:"main-container attachment-container"},wt=b({__name:"attachment",setup(g){const m=["image","video"],e=v(m[0]);return(k,p)=>{const n=u,s=f,l=h;return i(),a("div",V,[o(l,{class:"box-card !border-none full-container",shadow:"never"},{default:r(()=>[o(s,{modelValue:e.value,"onUpdate:modelValue":p[0]||(p[0]=t=>e.value=t),class:""},{default:r(()=>[(i(),a(y,null,E(m,(t,c)=>o(n,{label:x(_)(t),name:t,key:c},{default:r(()=>[o(d,{scene:"attachment",type:t},null,8,["type"])]),_:2},1032,["label","name"])),64))]),_:1},8,["modelValue"])]),_:1})])}}});export{wt as default};
|
||||
File diff suppressed because one or more lines are too long
1
niucloud/public/admin/assets/balance-0e185628.js
Normal file
1
niucloud/public/admin/assets/balance-0e185628.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
niucloud/public/admin/assets/cash_out-8275d2da.js
Normal file
1
niucloud/public/admin/assets/cash_out-8275d2da.js
Normal file
@ -0,0 +1 @@
|
||||
import"./base-962c0c23.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{E as D,b as O}from"./el-radio-bfd4b1ad.js";/* empty css */import{s as S}from"./index-7525671c.js";import{t as l}from"./index-105fbad0.js";import{b as G,H,I}from"./member-21f99754.js";import{u as L}from"./vue-router-79053937.js";import{a as W,E as j}from"./index-61c777fa.js";import{E as M}from"./index-93f2c618.js";import{E as P,a as q}from"./index-df51d91a.js";import{E as $}from"./index-69523418.js";import{E as J}from"./index-bba9e58c.js";import{v as K}from"./directive-c0c3e9a3.js";import{d as Q,r as y,M as x,b as i,e as E,f as b,x as m,u as s,L as X,m as u,p as o,q as n,C as f,v as _,F as Y,t as Z}from"./runtime-core.esm-bundler-dc7a07d7.js";import"./event-ff03ec12.js";import"./el-overlay-60700377.js";import"./index-5d86eb33.js";import"./focus-trap-b8b5a003.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";import"./index-d57cc47d.js";import"./common-080b9b9f.js";import"./common-2cf17469.js";import"./_Uint8Array-6ff3cafa.js";import"./_initCloneObject-28e6bdaa.js";import"./isEqual-c7d5e6d9.js";import"./flatten-d5d1dc97.js";const ee={class:"main-container"},te={class:"flex ml-[18px] justify-between items-center mt-[20px]"},oe={class:"text-[24px]"},ae=b("span",{class:"ml-2"},"%",-1),re={class:"fixed-footer-wrap"},le={class:"fixed-footer"},Je=Q({__name:"cash_out",setup(se){const k=L().meta.title,c=y(!0),g=y(),t=x({is_auto_transfer:"0",is_auto_verify:"0",is_open:"0",min:"0.01",rate:"0",transfer_type:[]}),h=y([]);(async()=>{h.value=await(await G()).data})(),(async(p=0)=>{const e=await(await H()).data;Object.keys(t).forEach(a=>{e[a]!=null&&(t[a]=e[a])}),t.is_open=Boolean(Number(t.is_open)),c.value=!1})();const C=x({min:[{validator:(p,e,a)=>{Number(e)<.01?a(new Error(l("cashWithdrawalAmountHint"))):a()},trigger:"blur"}],rate:[{validator:(p,e,a)=>{Number(e)>100||Number(e)<0?a(new Error(l("commissionRatioHint"))):a()},trigger:"blur"}]}),R=async p=>{c.value||!p||await p.validate(e=>{if(e){let a={...t};a.is_open=Number(a.is_open).toString(),I(a).then(()=>{c.value=!1}).catch(()=>{c.value=!1})}})};return(p,e)=>{const a=S,d=W,V=M,v=D,w=O,F=P,N=q,T=$,B=j,U=J,z=K;return i(),E("div",ee,[b("div",te,[b("span",oe,m(s(k)),1)]),X((i(),u(B,{model:t,"label-width":"150px",ref_key:"ruleFormRef",ref:g,rules:C,class:"page-form"},{default:o(()=>[n(T,{class:"box-card !border-none",shadow:"never"},{default:o(()=>[n(d,{label:s(l)("isOpen")},{default:o(()=>[n(a,{modelValue:t.is_open,"onUpdate:modelValue":e[0]||(e[0]=r=>t.is_open=r)},null,8,["modelValue"])]),_:1},8,["label"]),t.is_open?(i(),u(d,{key:0,label:s(l)("cashWithdrawalAmount"),prop:"min"},{default:o(()=>[n(V,{modelValue:t.min,"onUpdate:modelValue":e[1]||(e[1]=r=>t.min=r),class:"w-60",type:"number",placeholder:s(l)("cashWithdrawalAmountPlaceholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])):f("",!0),t.is_open?(i(),u(d,{key:1,label:s(l)("commissionRatio"),prop:"rate"},{default:o(()=>[n(V,{modelValue:t.rate,"onUpdate:modelValue":e[2]||(e[2]=r=>t.rate=r),type:"number",class:"w-60",placeholder:s(l)("commissionRatioPlaceholder")},null,8,["modelValue","placeholder"]),ae]),_:1},8,["label"])):f("",!0),t.is_open?(i(),u(d,{key:2,label:s(l)("audit"),class:"items-center"},{default:o(()=>[n(w,{modelValue:t.is_auto_verify,"onUpdate:modelValue":e[3]||(e[3]=r=>t.is_auto_verify=r)},{default:o(()=>[n(v,{label:"0",size:"large"},{default:o(()=>[_(m(s(l)("manualAudit")),1)]),_:1}),n(v,{label:"1",size:"large"},{default:o(()=>[_(m(s(l)("automaticAudit")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"])):f("",!0),t.is_open?(i(),u(d,{key:3,label:s(l)("transfer"),class:"items-center"},{default:o(()=>[n(w,{modelValue:t.is_auto_transfer,"onUpdate:modelValue":e[4]||(e[4]=r=>t.is_auto_transfer=r)},{default:o(()=>[n(v,{label:"0",size:"large"},{default:o(()=>[_(m(s(l)("manualTransfer")),1)]),_:1}),n(v,{label:"1",size:"large"},{default:o(()=>[_(m(s(l)("automatedTransit")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"])):f("",!0),t.is_open?(i(),u(d,{key:4,label:s(l)("transferMode"),class:"items-center"},{default:o(()=>[n(N,{modelValue:t.transfer_type,"onUpdate:modelValue":e[5]||(e[5]=r=>t.transfer_type=r),size:"large"},{default:o(()=>[(i(!0),E(Y,null,Z(h.value,(r,A)=>(i(),u(F,{label:r.key,key:"a"+A},{default:o(()=>[_(m(r.name),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"])):f("",!0)]),_:1})]),_:1},8,["model","rules"])),[[z,c.value]]),b("div",re,[b("div",le,[n(U,{type:"primary",onClick:e[6]||(e[6]=r=>R(g.value))},{default:o(()=>[_(m(s(l)("save")),1)]),_:1})])])])}}});export{Je as default};
|
||||
@ -1 +0,0 @@
|
||||
import"./base-962c0c23.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{E as A,b as D}from"./el-radio-bfd4b1ad.js";/* empty css */import{s as O}from"./index-5cfb4637.js";import{t as l}from"./index-2af60c2e.js";import{b as S,H as G,I as H}from"./member-eae88758.js";import{a as I,E as L}from"./index-61c777fa.js";import{E as W}from"./index-93f2c618.js";import{E as M,a as P}from"./index-df51d91a.js";import{E as j}from"./index-69523418.js";import{E as q}from"./index-bba9e58c.js";import{v as $}from"./directive-c0c3e9a3.js";import{d as J,r as v,M as E,b as i,e as k,L as K,m,p as o,q as s,u as n,C as c,v as d,x as _,F as Q,t as X,f as y}from"./runtime-core.esm-bundler-dc7a07d7.js";import"./event-ff03ec12.js";import"./vue-router-79053937.js";import"./el-overlay-60700377.js";import"./index-5d86eb33.js";import"./focus-trap-b8b5a003.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";import"./index-d57cc47d.js";import"./common-6291c908.js";import"./common-2cf17469.js";import"./_Uint8Array-6ff3cafa.js";import"./_initCloneObject-28e6bdaa.js";import"./isEqual-c7d5e6d9.js";import"./flatten-d5d1dc97.js";const Y={class:"main-container"},Z=y("span",{class:"ml-2"},"%",-1),ee={class:"fixed-footer-wrap"},te={class:"fixed-footer"},Me=J({__name:"cash_out",setup(oe){const f=v(!0),g=v(),t=E({is_auto_transfer:"0",is_auto_verify:"0",is_open:"0",min:"0.01",rate:"0",transfer_type:[]}),V=v([]);(async()=>{V.value=await(await S()).data})(),(async(u=0)=>{const e=await(await G()).data;Object.keys(t).forEach(a=>{e[a]!=null&&(t[a]=e[a])}),t.is_open=Boolean(Number(t.is_open)),f.value=!1})();const x=E({min:[{validator:(u,e,a)=>{Number(e)<.01?a(new Error(l("cashWithdrawalAmountHint"))):a()},trigger:"blur"}],rate:[{validator:(u,e,a)=>{Number(e)>100||Number(e)<0?a(new Error(l("commissionRatioHint"))):a()},trigger:"blur"}]}),C=async u=>{f.value||!u||await u.validate(e=>{if(e){let a={...t};a.is_open=Number(a.is_open).toString(),H(a).then(()=>{f.value=!1}).catch(()=>{f.value=!1})}})};return(u,e)=>{const a=O,p=I,h=W,b=A,w=D,R=M,F=P,N=j,T=L,B=q,U=$;return i(),k("div",Y,[K((i(),m(T,{model:t,"label-width":"150px",ref_key:"ruleFormRef",ref:g,rules:x,class:"page-form"},{default:o(()=>[s(N,{class:"box-card !border-none",shadow:"never"},{default:o(()=>[s(p,{label:n(l)("isOpen")},{default:o(()=>[s(a,{modelValue:t.is_open,"onUpdate:modelValue":e[0]||(e[0]=r=>t.is_open=r)},null,8,["modelValue"])]),_:1},8,["label"]),t.is_open?(i(),m(p,{key:0,label:n(l)("cashWithdrawalAmount"),prop:"min"},{default:o(()=>[s(h,{modelValue:t.min,"onUpdate:modelValue":e[1]||(e[1]=r=>t.min=r),class:"w-60",type:"number",placeholder:n(l)("cashWithdrawalAmountPlaceholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])):c("",!0),t.is_open?(i(),m(p,{key:1,label:n(l)("commissionRatio"),prop:"rate"},{default:o(()=>[s(h,{modelValue:t.rate,"onUpdate:modelValue":e[2]||(e[2]=r=>t.rate=r),type:"number",class:"w-60",placeholder:n(l)("commissionRatioPlaceholder")},null,8,["modelValue","placeholder"]),Z]),_:1},8,["label"])):c("",!0),t.is_open?(i(),m(p,{key:2,label:n(l)("audit"),class:"items-center"},{default:o(()=>[s(w,{modelValue:t.is_auto_verify,"onUpdate:modelValue":e[3]||(e[3]=r=>t.is_auto_verify=r)},{default:o(()=>[s(b,{label:"0",size:"large"},{default:o(()=>[d(_(n(l)("manualAudit")),1)]),_:1}),s(b,{label:"1",size:"large"},{default:o(()=>[d(_(n(l)("automaticAudit")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"])):c("",!0),t.is_open?(i(),m(p,{key:3,label:n(l)("transfer"),class:"items-center"},{default:o(()=>[s(w,{modelValue:t.is_auto_transfer,"onUpdate:modelValue":e[4]||(e[4]=r=>t.is_auto_transfer=r)},{default:o(()=>[s(b,{label:"0",size:"large"},{default:o(()=>[d(_(n(l)("manualTransfer")),1)]),_:1}),s(b,{label:"1",size:"large"},{default:o(()=>[d(_(n(l)("automatedTransit")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"])):c("",!0),t.is_open?(i(),m(p,{key:4,label:n(l)("transferMode"),class:"items-center"},{default:o(()=>[s(F,{modelValue:t.transfer_type,"onUpdate:modelValue":e[5]||(e[5]=r=>t.transfer_type=r),size:"large"},{default:o(()=>[(i(!0),k(Q,null,X(V.value,(r,z)=>(i(),m(R,{label:r.key,key:"a"+z},{default:o(()=>[d(_(r.name),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"])):c("",!0)]),_:1})]),_:1},8,["model","rules"])),[[U,f.value]]),y("div",ee,[y("div",te,[s(B,{type:"primary",onClick:e[6]||(e[6]=r=>C(g.value))},{default:o(()=>[d(_(n(l)("save")),1)]),_:1})])])])}}});export{Me as default};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
niucloud/public/admin/assets/common-080b9b9f.js
Normal file
1
niucloud/public/admin/assets/common-080b9b9f.js
Normal file
@ -0,0 +1 @@
|
||||
const e="编辑",t="详情",o="创建时间",c="排序",n="状态",s="操作",a="更多",i="正常",r="停用",l="启用",d="确认",m="保存",p="返回",y="取消",h="搜索",u="重置",g="提示",k="是否显示",P="显示",v="隐藏",L="图标",N="用户名",w="头像",f="账号",T="密码",C="确认密码",S="图片",U="视频",b="重命名",E="查看",A="全选",D="是",I="否",O="复制",x="完成",K="复制成功",M="浏览器不支持一键复制,请手动进行复制",z="全部",R="请选择省",Y="请选择市",j="请选择区/县",q="暂无数据",B={root:"上传",selectimage:"选择图片",selectvideo:"选择视频",uploadimage:"上传图片",uploadvideo:"上传视频",addAttachmentCategory:"添加分组",attachmentCategoryPlaceholder:"请输入分组名称",attachmentEmpty:"暂无附件,请点击上传按钮上传",deleteCategoryTips:"确定要删除该分组吗?",deleteAttachmentTips:"确定要删除所选附件吗?如所选附件已被使用删除将会受到影响,请谨慎操作!",move:"移动",moveCategory:"移动分组",moveTo:"移动至",placeholderimageName:"请输入图片名称",placeholdervideoName:"请输入视频名称",success:"上传成功",triggerUpperLimit:"可选数量已达上限"},F={closeLeft:"关闭左侧",closeRight:"关闭右侧",closeOther:"关闭其他"},G={layoutSetting:"主题设置",darkMode:"黑暗模式",sidebarMode:"主题风格",themeColor:"主题颜色",detectionLoginOperation:"确定",detectionLoginContent:"已检测到有其他账号登录,需要刷新后才能继续操作。",detectionLoginTip:"提示"},H={400:"错误的请求",401:"请重新登录",403:"拒绝访问",404:"请求错误",405:"请求方法未允许",408:"请求超时",409:"请求跨域",500:"服务器端出错,错误原因:",501:"网络未实现",502:"网络错误",503:"服务不可用",504:"网络超时",505:"http版本不支持该请求",unknownError:"未知错误",timeout:"网络请求超时!"},J="请选择跳转链接",Q="链接选择",V="链接名称",W="请输入链接名称",X="链接名称不能为空",Z="跳转路径",_="请输入跳转路径",$="跳转路径不能为空",ee="返回",te="预览",oe="暂未安装任何应用",ce="最新消息",ne="地图设置",se="腾讯地图KEY",ae={edit:e,delete:"删除",info:t,createTime:o,sort:c,status:n,operation:s,more:a,statusNormal:i,statusDeactivate:r,startUsing:l,confirm:d,save:m,back:p,cancel:y,search:h,reset:u,warning:g,isShow:k,show:P,hidden:v,icon:L,userName:N,headImg:w,accountNumber:f,password:T,confirmPassword:C,image:S,video:U,rename:b,lookOver:E,selectAll:A,yes:D,no:I,copy:O,complete:x,copySuccess:K,notSupportCopy:M,selectPlaceholder:z,provincePlaceholder:R,cityPlaceholder:Y,districtPlaceholder:j,emptyData:q,upload:B,tabs:F,layout:G,axios:H,linkPlaceholder:J,selectLinkTips:Q,diyLinkName:V,diyLinkNamePlaceholder:W,diyLinkNameNotEmpty:X,diyLinkUrl:Z,diyLinkUrlPlaceholder:_,diyLinkUrlNotEmpty:$,returnToPreviousPage:ee,preview:te,emptyApp:oe,newInfo:ce,mapSetting:ne,mapKey:se};export{f as accountNumber,H as axios,p as back,y as cancel,Y as cityPlaceholder,x as complete,d as confirm,C as confirmPassword,O as copy,K as copySuccess,o as createTime,ae as default,j as districtPlaceholder,V as diyLinkName,X as diyLinkNameNotEmpty,W as diyLinkNamePlaceholder,Z as diyLinkUrl,$ as diyLinkUrlNotEmpty,_ as diyLinkUrlPlaceholder,e as edit,oe as emptyApp,q as emptyData,w as headImg,v as hidden,L as icon,S as image,t as info,k as isShow,G as layout,J as linkPlaceholder,E as lookOver,se as mapKey,ne as mapSetting,a as more,ce as newInfo,I as no,M as notSupportCopy,s as operation,T as password,te as preview,R as provincePlaceholder,b as rename,u as reset,ee as returnToPreviousPage,m as save,h as search,A as selectAll,Q as selectLinkTips,z as selectPlaceholder,P as show,c as sort,l as startUsing,n as status,r as statusDeactivate,i as statusNormal,F as tabs,B as upload,N as userName,U as video,g as warning,D as yes};
|
||||
@ -1 +0,0 @@
|
||||
const e="编辑",o="详情",t="创建时间",c="排序",s="状态",n="操作",a="更多",i="正常",r="停用",l="启用",d="确认",m="保存",p="返回",y="取消",h="搜索",u="重置",g="提示",k="是否显示",P="显示",v="隐藏",L="图标",N="用户名",w="头像",f="账号",T="密码",C="确认密码",U="图片",b="视频",S="重命名",A="查看",E="全选",D="是",I="否",O="复制",x="完成",M="复制成功",z="浏览器不支持一键复制,请手动进行复制",R="全部",j="请选择省",q="请选择市",B="请选择区/县",F="暂无数据",G={root:"上传",selectimage:"选择图片",selectvideo:"选择视频",uploadimage:"上传图片",uploadvideo:"上传视频",addAttachmentCategory:"添加分组",attachmentCategoryPlaceholder:"请输入分组名称",attachmentEmpty:"暂无附件,请点击上传按钮上传",deleteCategoryTips:"确定要删除该分组吗?",deleteAttachmentTips:"确定要删除所选附件吗?如所选附件已被使用删除将会受到影响,请谨慎操作!",move:"移动",moveCategory:"移动分组",moveTo:"移动至",placeholderimageName:"请输入图片名称",placeholdervideoName:"请输入视频名称",success:"上传成功",triggerUpperLimit:"可选数量已达上限"},H={closeLeft:"关闭左侧",closeRight:"关闭右侧",closeOther:"关闭其他"},J={layoutSetting:"主题设置",darkMode:"黑暗模式",sidebarMode:"主题风格",themeColor:"主题颜色",detectionLoginOperation:"确定",detectionLoginContent:"已检测到有其他账号登录,需要刷新后才能继续操作。",detectionLoginTip:"提示"},K={400:"错误的请求",401:"请重新登录",403:"拒绝访问",404:"请求错误",405:"请求方法未允许",408:"请求超时",409:"请求跨域",500:"服务器端出错,错误原因:",501:"网络未实现",502:"网络错误",503:"服务不可用",504:"网络超时",505:"http版本不支持该请求",unknownError:"未知错误",timeout:"网络请求超时!"},Q="请选择跳转链接",V="链接选择",W="链接名称",X="请输入链接名称",Y="链接名称不能为空",Z="跳转路径",_="请输入跳转路径",$="跳转路径不能为空",ee="返回",oe="预览",te="暂未安装任何应用",ce="最新消息",se={edit:e,delete:"删除",info:o,createTime:t,sort:c,status:s,operation:n,more:a,statusNormal:i,statusDeactivate:r,startUsing:l,confirm:d,save:m,back:p,cancel:y,search:h,reset:u,warning:g,isShow:k,show:P,hidden:v,icon:L,userName:N,headImg:w,accountNumber:f,password:T,confirmPassword:C,image:U,video:b,rename:S,lookOver:A,selectAll:E,yes:D,no:I,copy:O,complete:x,copySuccess:M,notSupportCopy:z,selectPlaceholder:R,provincePlaceholder:j,cityPlaceholder:q,districtPlaceholder:B,emptyData:F,upload:G,tabs:H,layout:J,axios:K,linkPlaceholder:Q,selectLinkTips:V,diyLinkName:W,diyLinkNamePlaceholder:X,diyLinkNameNotEmpty:Y,diyLinkUrl:Z,diyLinkUrlPlaceholder:_,diyLinkUrlNotEmpty:$,returnToPreviousPage:ee,preview:oe,emptyApp:te,newInfo:ce};export{f as accountNumber,K as axios,p as back,y as cancel,q as cityPlaceholder,x as complete,d as confirm,C as confirmPassword,O as copy,M as copySuccess,t as createTime,se as default,B as districtPlaceholder,W as diyLinkName,Y as diyLinkNameNotEmpty,X as diyLinkNamePlaceholder,Z as diyLinkUrl,$ as diyLinkUrlNotEmpty,_ as diyLinkUrlPlaceholder,e as edit,te as emptyApp,F as emptyData,w as headImg,v as hidden,L as icon,U as image,o as info,k as isShow,J as layout,Q as linkPlaceholder,A as lookOver,a as more,ce as newInfo,I as no,z as notSupportCopy,n as operation,T as password,oe as preview,j as provincePlaceholder,S as rename,u as reset,ee as returnToPreviousPage,m as save,h as search,E as selectAll,V as selectLinkTips,R as selectPlaceholder,P as show,c as sort,l as startUsing,s as status,r as statusDeactivate,i as statusNormal,H as tabs,G as upload,N as userName,b as video,g as warning,D as yes};
|
||||
@ -1 +0,0 @@
|
||||
.visit-btn[data-v-2d79da12]{color:var(--el-color-primary)}
|
||||
@ -1 +0,0 @@
|
||||
.visit-btn[data-v-99160152]{color:var(--el-color-primary)}
|
||||
1
niucloud/public/admin/assets/config-2fa380b4.css
Normal file
1
niucloud/public/admin/assets/config-2fa380b4.css
Normal file
@ -0,0 +1 @@
|
||||
.visit-btn[data-v-7320934a]{color:var(--el-color-primary)}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
niucloud/public/admin/assets/config-7119e0d7.js
Normal file
1
niucloud/public/admin/assets/config-7119e0d7.js
Normal file
@ -0,0 +1 @@
|
||||
import"./base-962c0c23.js";/* empty css *//* empty css *//* empty css *//* empty css */import{t as e}from"./index-105fbad0.js";import{u as S}from"./sys-4abedf95.js";import{J as k}from"./event-ff03ec12.js";import{u as q,a as I}from"./vue-router-79053937.js";import{a as u}from"./index-d57cc47d.js";import{a as R,E as D}from"./index-61c777fa.js";import{E as N}from"./index-93f2c618.js";import{E as B}from"./index-69523418.js";import{v as F}from"./directive-c0c3e9a3.js";import{d as L,r as d,M as V,w as M,L as U,b as j,e as J,f as a,x as n,u as t,q as r,p as s,au as P,av as $}from"./runtime-core.esm-bundler-dc7a07d7.js";import{_ as z}from"./_plugin-vue_export-helper-c27b6911.js";import"./common-080b9b9f.js";import"./common-2cf17469.js";import"./index-7525671c.js";import"./el-overlay-60700377.js";import"./index-5d86eb33.js";import"./focus-trap-b8b5a003.js";/* empty css */import"./el-radio-bfd4b1ad.js";import"./storage-abe718b1.js";import"./index-8bcaafa6.js";import"./index-bba9e58c.js";import"./index-7a123a20.js";import"./el-tooltip-58212670.js";import"./el-avatar-3bb47ce2.js";import"./_Uint8Array-6ff3cafa.js";import"./_initCloneObject-28e6bdaa.js";const A=""+new URL("preview-52aad803.png",import.meta.url).href,G=p=>(P("data-v-4267ea12"),p=p(),$(),p),H={class:"main-container"},K={class:"flex ml-[18px] justify-between items-center mt-[20px]"},O={class:"text-[24px]"},Q=G(()=>a("img",{class:"w-[500px]",src:A,alt:""},null,-1)),T=L({__name:"config",setup(p){const f=q().meta.title,m=d(!0),o=V({is_open:!1,request_url:""}),v=d();I(),S().then(i=>{o.request_url=i.data.web_url+"/",m.value=!1});const{copy:w,isSupported:g,copied:c}=k(),x=i=>{if(!g.value){u({message:e("notSupportCopy"),type:"warning"});return}w(i)};M(c,()=>{c.value&&u({message:e("copySuccess"),type:"success"})});const h=()=>{window.open(o.request_url)};return(i,l)=>{const _=R,y=N,b=B,E=D,C=F;return U((j(),J("div",H,[a("div",K,[a("span",O,n(t(f)),1)]),r(E,{model:o,"label-width":"150px",ref_key:"formRef",ref:v,class:"page-form"},{default:s(()=>[r(b,{class:"box-card !border-none",shadow:"never"},{default:s(()=>[r(_,{label:t(e)("preview"),prop:"weapp_name"},{default:s(()=>[Q]),_:1},8,["label"]),r(_,{label:t(e)("PCDomainName")},{default:s(()=>[r(y,{"model-value":o.request_url,class:"input-width",readonly:!0},{append:s(()=>[a("div",{class:"cursor-pointer",onClick:l[0]||(l[0]=X=>x(o.request_url))},n(t(e)("copy")),1)]),_:1},8,["model-value"]),a("span",{class:"ml-2 cursor-pointer visit-btn",onClick:h},n(t(e)("clickVisit")),1)]),_:1},8,["label"])]),_:1})]),_:1},8,["model"])])),[[C,m.value]])}}});const De=z(T,[["__scopeId","data-v-4267ea12"]]);export{De as default};
|
||||
File diff suppressed because one or more lines are too long
1
niucloud/public/admin/assets/config-c0612958.js
Normal file
1
niucloud/public/admin/assets/config-c0612958.js
Normal file
File diff suppressed because one or more lines are too long
1
niucloud/public/admin/assets/config-cfd24e47.js
Normal file
1
niucloud/public/admin/assets/config-cfd24e47.js
Normal file
@ -0,0 +1 @@
|
||||
import"./base-962c0c23.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{C as w,s as D}from"./index-7525671c.js";import{t as a}from"./index-105fbad0.js";import{u as F}from"./sys-4abedf95.js";import{J as I}from"./event-ff03ec12.js";import{u as M}from"./vue-router-79053937.js";import{a as v}from"./index-d57cc47d.js";import{a as R,E as j}from"./index-61c777fa.js";import{E as H}from"./index-93f2c618.js";import{E as L}from"./index-69523418.js";import{E as O}from"./index-bba9e58c.js";import{v as U}from"./directive-c0c3e9a3.js";import{d as $,r as g,M as J,w as T,b as h,e as z,f as r,x as m,u as n,L as A,m as G,p as i,q as l,v as K}from"./runtime-core.esm-bundler-dc7a07d7.js";import{_ as P}from"./_plugin-vue_export-helper-c27b6911.js";import"./el-overlay-60700377.js";import"./index-5d86eb33.js";import"./focus-trap-b8b5a003.js";import"./el-radio-bfd4b1ad.js";import"./storage-abe718b1.js";import"./index-8bcaafa6.js";import"./index-7a123a20.js";import"./el-tooltip-58212670.js";import"./el-avatar-3bb47ce2.js";import"./common-080b9b9f.js";import"./common-2cf17469.js";import"./_Uint8Array-6ff3cafa.js";import"./_initCloneObject-28e6bdaa.js";function Q(){return w.get("channel/h5/config")}function W(u){return w.put("channel/h5/config",u,{showSuccessMessage:!0})}const X={class:"main-container"},Y={class:"flex ml-[18px] justify-between items-center mt-[20px]"},Z={class:"text-[24px]"},ee={class:"fixed-footer-wrap"},te={class:"fixed-footer"},oe=$({__name:"config",setup(u){const y=M().meta.title,s=g(!0),e=J({is_open:!1,request_url:""}),_=g();Q().then(t=>{Object.assign(e,t.data),e.is_open=Boolean(Number(e.is_open)),s.value=!1}),F().then(t=>{e.request_url=t.data.wap_url+"/"});const{copy:x,isSupported:b,copied:d}=I(),E=t=>{if(!b.value){v({message:a("notSupportCopy"),type:"warning"});return}x(t)};T(d,()=>{d.value&&v({message:a("copySuccess"),type:"success"})});const C=()=>{window.open(e.request_url)},k=async t=>{s.value||!t||await t.validate(async o=>{if(o){s.value=!0;let p={...e};p.is_open=Number(p.is_open),W(p).then(()=>{s.value=!1}).catch(()=>{s.value=!1})}})};return(t,o)=>{const p=D,f=R,q=H,N=L,V=j,B=O,S=U;return h(),z("div",X,[r("div",Y,[r("span",Z,m(n(y)),1)]),A((h(),G(V,{model:e,"label-width":"150px",ref_key:"formRef",ref:_,class:"page-form"},{default:i(()=>[l(N,{class:"box-card !border-none",shadow:"never"},{default:i(()=>[l(f,{label:n(a)("isOpen")},{default:i(()=>[l(p,{modelValue:e.is_open,"onUpdate:modelValue":o[0]||(o[0]=c=>e.is_open=c)},null,8,["modelValue"])]),_:1},8,["label"]),l(f,{label:n(a)("h5DomainName")},{default:i(()=>[l(q,{"model-value":e.request_url,class:"input-width",readonly:!0},{append:i(()=>[r("div",{class:"cursor-pointer",onClick:o[1]||(o[1]=c=>E(e.request_url))},m(n(a)("copy")),1)]),_:1},8,["model-value"]),r("span",{class:"ml-2 cursor-pointer visit-btn",onClick:C},m(n(a)("clickVisit")),1)]),_:1},8,["label"])]),_:1})]),_:1},8,["model"])),[[S,s.value]]),r("div",ee,[r("div",te,[l(B,{type:"primary",loading:s.value,onClick:o[2]||(o[2]=c=>k(_.value))},{default:i(()=>[K(m(n(a)("save")),1)]),_:1},8,["loading"])])])])}}});const je=P(oe,[["__scopeId","data-v-7320934a"]]);export{je as default};
|
||||
1
niucloud/public/admin/assets/config-d98e2cfe.js
Normal file
1
niucloud/public/admin/assets/config-d98e2cfe.js
Normal file
File diff suppressed because one or more lines are too long
1
niucloud/public/admin/assets/config-e4ae40c2.js
Normal file
1
niucloud/public/admin/assets/config-e4ae40c2.js
Normal file
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
import"./base-962c0c23.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{C as w,s as S}from"./index-5cfb4637.js";import{t as s}from"./index-2af60c2e.js";import{u as D}from"./sys-451b2f0d.js";import{J as I}from"./event-ff03ec12.js";import{a as v}from"./index-d57cc47d.js";import{a as F,E as H}from"./index-61c777fa.js";import{E as M}from"./index-93f2c618.js";import{E as L}from"./index-69523418.js";import{E as O}from"./index-bba9e58c.js";import{v as R}from"./directive-c0c3e9a3.js";import{d as U,r as g,M as $,w as j,b as h,e as J,L as T,m as z,p as r,q as n,f as i,x as c,u as l,v as A}from"./runtime-core.esm-bundler-dc7a07d7.js";import{_ as G}from"./_plugin-vue_export-helper-c27b6911.js";import"./vue-router-79053937.js";import"./el-overlay-60700377.js";import"./index-5d86eb33.js";import"./focus-trap-b8b5a003.js";import"./el-radio-bfd4b1ad.js";import"./storage-abe718b1.js";import"./index-8bcaafa6.js";import"./index-7a123a20.js";import"./el-tooltip-58212670.js";import"./el-avatar-3bb47ce2.js";import"./common-6291c908.js";import"./common-2cf17469.js";import"./_Uint8Array-6ff3cafa.js";import"./_initCloneObject-28e6bdaa.js";function K(){return w.get("channel/h5/config")}function P(u){return w.put("channel/h5/config",u,{showSuccessMessage:!0})}const Q={class:"main-container"},W={class:"flex"},X={class:"panel-title"},Y={class:"fixed-footer-wrap"},Z={class:"fixed-footer"},ee=U({__name:"config",setup(u){const a=g(!0),e=$({is_open:!1,request_url:""}),_=g();K().then(o=>{Object.assign(e,o.data),e.is_open=Boolean(Number(e.is_open)),a.value=!1}),D().then(o=>{e.request_url=o.data.wap_url+"/"});const{copy:y,isSupported:b,copied:d}=I(),x=o=>{if(!b.value){v({message:s("notSupportCopy"),type:"warning"});return}y(o)};j(d,()=>{d.value&&v({message:s("copySuccess"),type:"success"})});const E=()=>{window.open(e.request_url)},C=async o=>{a.value||!o||await o.validate(async t=>{if(t){a.value=!0;let p={...e};p.is_open=Number(p.is_open),P(p).then(()=>{a.value=!1}).catch(()=>{a.value=!1})}})};return(o,t)=>{const p=S,f=F,k=M,q=L,V=H,B=O,N=R;return h(),J("div",Q,[T((h(),z(V,{model:e,"label-width":"200px",ref_key:"formRef",ref:_,class:"page-form"},{default:r(()=>[n(q,{class:"box-card !border-none mt-[16px]",shadow:"never"},{default:r(()=>[i("div",W,[i("h3",X,c(l(s)("H5Info")),1)]),n(f,{label:l(s)("isOpen")},{default:r(()=>[n(p,{modelValue:e.is_open,"onUpdate:modelValue":t[0]||(t[0]=m=>e.is_open=m)},null,8,["modelValue"])]),_:1},8,["label"]),n(f,{label:l(s)("h5DomainName")},{default:r(()=>[n(k,{"model-value":e.request_url,class:"input-width",readonly:!0},{append:r(()=>[i("div",{class:"cursor-pointer",onClick:t[1]||(t[1]=m=>x(e.request_url))},c(l(s)("copy")),1)]),_:1},8,["model-value"]),i("span",{class:"ml-2 cursor-pointer visit-btn",onClick:E},c(l(s)("clickVisit")),1)]),_:1},8,["label"])]),_:1})]),_:1},8,["model"])),[[N,a.value]]),i("div",Y,[i("div",Z,[n(B,{type:"primary",loading:a.value,onClick:t[2]||(t[2]=m=>C(_.value))},{default:r(()=>[A(c(l(s)("save")),1)]),_:1},8,["loading"])])])])}}});const Fe=G(ee,[["__scopeId","data-v-2d79da12"]]);export{Fe as default};
|
||||
@ -1 +0,0 @@
|
||||
import"./base-962c0c23.js";/* empty css *//* empty css *//* empty css *//* empty css */import{t as o}from"./index-2af60c2e.js";import{u as C}from"./sys-451b2f0d.js";import{J as I}from"./event-ff03ec12.js";import{a as S}from"./vue-router-79053937.js";import{a as u}from"./index-d57cc47d.js";import{a as k,E as q}from"./index-61c777fa.js";import{E as D}from"./index-93f2c618.js";import{E as R}from"./index-69523418.js";import{v as B}from"./directive-c0c3e9a3.js";import{d as F,r as d,M as L,w as N,L as V,b as M,e as U,q as t,p as r,f as i,x as n,u as s,au as J,av as P}from"./runtime-core.esm-bundler-dc7a07d7.js";import{_ as $}from"./_plugin-vue_export-helper-c27b6911.js";import"./common-6291c908.js";import"./common-2cf17469.js";import"./index-5cfb4637.js";import"./el-overlay-60700377.js";import"./index-5d86eb33.js";import"./focus-trap-b8b5a003.js";/* empty css */import"./el-radio-bfd4b1ad.js";import"./storage-abe718b1.js";import"./index-8bcaafa6.js";import"./index-bba9e58c.js";import"./index-7a123a20.js";import"./el-tooltip-58212670.js";import"./el-avatar-3bb47ce2.js";import"./_Uint8Array-6ff3cafa.js";import"./_initCloneObject-28e6bdaa.js";const j=""+new URL("preview-52aad803.png",import.meta.url).href,z=a=>(J("data-v-99160152"),a=a(),P(),a),A={class:"main-container"},G={class:"panel-title"},H=z(()=>i("img",{class:"w-[500px]",src:j,alt:""},null,-1)),K=F({__name:"config",setup(a){const m=d(!0),e=L({is_open:!1,request_url:""}),f=d();S(),C().then(p=>{e.request_url=p.data.web_url+"/",m.value=!1});const{copy:v,isSupported:w,copied:l}=I(),g=p=>{if(!w.value){u({message:o("notSupportCopy"),type:"warning"});return}v(p)};N(l,()=>{l.value&&u({message:o("copySuccess"),type:"success"})});const h=()=>{window.open(e.request_url)};return(p,c)=>{const _=k,y=D,b=R,E=q,x=B;return V((M(),U("div",A,[t(E,{model:e,"label-width":"120px",ref_key:"formRef",ref:f,class:"page-form"},{default:r(()=>[t(b,{class:"box-card !border-none",shadow:"never"},{default:r(()=>[i("h3",G,n(s(o)("pcInfo")),1),t(_,{label:s(o)("preview"),prop:"weapp_name"},{default:r(()=>[H]),_:1},8,["label"]),t(_,{label:s(o)("PCDomainName")},{default:r(()=>[t(y,{"model-value":e.request_url,class:"input-width",readonly:!0},{append:r(()=>[i("div",{class:"cursor-pointer",onClick:c[0]||(c[0]=O=>g(e.request_url))},n(s(o)("copy")),1)]),_:1},8,["model-value"]),i("span",{class:"ml-2 cursor-pointer visit-btn",onClick:h},n(s(o)("clickVisit")),1)]),_:1},8,["label"])]),_:1})]),_:1},8,["model"])])),[[x,m.value]])}}});const ko=$(K,[["__scopeId","data-v-99160152"]]);export{ko as default};
|
||||
1
niucloud/public/admin/assets/config-efa183e5.css
Normal file
1
niucloud/public/admin/assets/config-efa183e5.css
Normal file
@ -0,0 +1 @@
|
||||
.visit-btn[data-v-4267ea12]{color:var(--el-color-primary)}
|
||||
File diff suppressed because one or more lines are too long
1
niucloud/public/admin/assets/copyright-fb8ca411.js
Normal file
1
niucloud/public/admin/assets/copyright-fb8ca411.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
import{_ as o}from"./cron-info.vue_vue_type_script_setup_true_lang-4ac4c2b2.js";import"./base-962c0c23.js";import"./runtime-core.esm-bundler-dc7a07d7.js";/* empty css */import"./el-overlay-60700377.js";import"./event-ff03ec12.js";import"./index-5d86eb33.js";import"./focus-trap-b8b5a003.js";/* empty css *//* empty css */import"./index-2af60c2e.js";import"./common-6291c908.js";import"./common-2cf17469.js";import"./index-61c777fa.js";import"./_Uint8Array-6ff3cafa.js";import"./_initCloneObject-28e6bdaa.js";import"./index-bba9e58c.js";import"./directive-c0c3e9a3.js";export{o as default};
|
||||
import{_ as o}from"./cron-info.vue_vue_type_script_setup_true_lang-18d84b3d.js";import"./base-962c0c23.js";import"./runtime-core.esm-bundler-dc7a07d7.js";/* empty css */import"./el-overlay-60700377.js";import"./event-ff03ec12.js";import"./index-5d86eb33.js";import"./focus-trap-b8b5a003.js";/* empty css *//* empty css */import"./index-105fbad0.js";import"./common-080b9b9f.js";import"./common-2cf17469.js";import"./index-61c777fa.js";import"./_Uint8Array-6ff3cafa.js";import"./_initCloneObject-28e6bdaa.js";import"./index-bba9e58c.js";import"./directive-c0c3e9a3.js";export{o as default};
|
||||
@ -1 +1 @@
|
||||
import"./base-962c0c23.js";/* empty css */import{E as k}from"./el-overlay-60700377.js";/* empty css *//* empty css */import{t as o}from"./index-2af60c2e.js";import{a as V,E as B}from"./index-61c777fa.js";import{E as F}from"./index-bba9e58c.js";import{v as N}from"./directive-c0c3e9a3.js";import{d as T,r as u,M as C,c as O,b as r,m as h,p as e,f as n,q as s,v as R,x as l,u as a,L as j,e as b}from"./runtime-core.esm-bundler-dc7a07d7.js";const I={class:"input-width"},L={class:"input-width"},S={key:0,class:"input-width"},q={key:1,class:"input-width"},J={class:"input-width"},M={class:"input-width"},U={class:"input-width"},$={class:"input-width"},z={class:"input-width"},A={class:"input-width"},G={class:"input-width"},H={class:"dialog-footer"},it=T({__name:"cron-info",emits:["complete"],setup(K,{expose:v,emit:P}){const c=u(!1),m=u(!0),p={count:0,create_time:"",crond_length:"",crond_type:"",crond_type_name:"",data:"",delete_time:"",last_time:"",next_time:"",status_desc:"",title:"",type:"",type_name:"",update_time:""},t=C({...p}),y=u(),w=O(()=>({}));return v({showDialog:c,setFormData:async(_=null)=>{m.value=!0,Object.assign(t,p),_&&Object.keys(t).forEach(d=>{_[d]!=null&&(t[d]=_[d])}),m.value=!1}}),(_,d)=>{const i=V,g=B,x=F,D=k,E=N;return r(),h(D,{modelValue:c.value,"onUpdate:modelValue":d[1]||(d[1]=f=>c.value=f),title:a(o)("cronInfo"),width:"550px","destroy-on-close":!0},{footer:e(()=>[n("span",H,[s(x,{type:"primary",onClick:d[0]||(d[0]=f=>c.value=!1)},{default:e(()=>[R(l(a(o)("confirm")),1)]),_:1})])]),default:e(()=>[j((r(),h(g,{model:t,"label-width":"110px",ref_key:"formRef",ref:y,rules:a(w),class:"page-form"},{default:e(()=>[s(i,{label:a(o)("title")},{default:e(()=>[n("div",I,l(t.title),1)]),_:1},8,["label"]),s(i,{label:a(o)("typeName")},{default:e(()=>[n("div",L,l(t.type_name),1)]),_:1},8,["label"]),s(i,{label:a(o)("crondType")},{default:e(()=>[t.type=="crond"?(r(),b("div",S,l(t.crond_length)+" "+l(t.crond_type_name),1)):(r(),b("div",q,l(a(o)("cron")),1))]),_:1},8,["label"]),s(i,{label:a(o)("count")},{default:e(()=>[n("div",J,l(t.count),1)]),_:1},8,["label"]),s(i,{label:a(o)("task")},{default:e(()=>[n("div",M,l(t.task),1)]),_:1},8,["label"]),s(i,{label:a(o)("data")},{default:e(()=>[n("div",U,l(JSON.stringify(t.data)),1)]),_:1},8,["label"]),s(i,{label:a(o)("statusDesc")},{default:e(()=>[n("div",$,l(t.status_desc),1)]),_:1},8,["label"]),s(i,{label:a(o)("lastTime")},{default:e(()=>[n("div",z,l(t.last_time),1)]),_:1},8,["label"]),s(i,{label:a(o)("nextTime")},{default:e(()=>[n("div",A,l(t.next_time),1)]),_:1},8,["label"]),s(i,{label:a(o)("createTime")},{default:e(()=>[n("div",G,l(t.create_time),1)]),_:1},8,["label"])]),_:1},8,["model","rules"])),[[E,m.value]])]),_:1},8,["modelValue","title"])}}});export{it as _};
|
||||
import"./base-962c0c23.js";/* empty css */import{E as k}from"./el-overlay-60700377.js";/* empty css *//* empty css */import{t as o}from"./index-105fbad0.js";import{a as V,E as B}from"./index-61c777fa.js";import{E as F}from"./index-bba9e58c.js";import{v as N}from"./directive-c0c3e9a3.js";import{d as T,r as u,M as C,c as O,b as r,m as h,p as e,f as n,q as s,v as R,x as l,u as a,L as j,e as b}from"./runtime-core.esm-bundler-dc7a07d7.js";const I={class:"input-width"},L={class:"input-width"},S={key:0,class:"input-width"},q={key:1,class:"input-width"},J={class:"input-width"},M={class:"input-width"},U={class:"input-width"},$={class:"input-width"},z={class:"input-width"},A={class:"input-width"},G={class:"input-width"},H={class:"dialog-footer"},it=T({__name:"cron-info",emits:["complete"],setup(K,{expose:v,emit:P}){const c=u(!1),m=u(!0),p={count:0,create_time:"",crond_length:"",crond_type:"",crond_type_name:"",data:"",delete_time:"",last_time:"",next_time:"",status_desc:"",title:"",type:"",type_name:"",update_time:""},t=C({...p}),y=u(),w=O(()=>({}));return v({showDialog:c,setFormData:async(_=null)=>{m.value=!0,Object.assign(t,p),_&&Object.keys(t).forEach(d=>{_[d]!=null&&(t[d]=_[d])}),m.value=!1}}),(_,d)=>{const i=V,g=B,x=F,D=k,E=N;return r(),h(D,{modelValue:c.value,"onUpdate:modelValue":d[1]||(d[1]=f=>c.value=f),title:a(o)("cronInfo"),width:"550px","destroy-on-close":!0},{footer:e(()=>[n("span",H,[s(x,{type:"primary",onClick:d[0]||(d[0]=f=>c.value=!1)},{default:e(()=>[R(l(a(o)("confirm")),1)]),_:1})])]),default:e(()=>[j((r(),h(g,{model:t,"label-width":"110px",ref_key:"formRef",ref:y,rules:a(w),class:"page-form"},{default:e(()=>[s(i,{label:a(o)("title")},{default:e(()=>[n("div",I,l(t.title),1)]),_:1},8,["label"]),s(i,{label:a(o)("typeName")},{default:e(()=>[n("div",L,l(t.type_name),1)]),_:1},8,["label"]),s(i,{label:a(o)("crondType")},{default:e(()=>[t.type=="crond"?(r(),b("div",S,l(t.crond_length)+" "+l(t.crond_type_name),1)):(r(),b("div",q,l(a(o)("cron")),1))]),_:1},8,["label"]),s(i,{label:a(o)("count")},{default:e(()=>[n("div",J,l(t.count),1)]),_:1},8,["label"]),s(i,{label:a(o)("task")},{default:e(()=>[n("div",M,l(t.task),1)]),_:1},8,["label"]),s(i,{label:a(o)("data")},{default:e(()=>[n("div",U,l(JSON.stringify(t.data)),1)]),_:1},8,["label"]),s(i,{label:a(o)("statusDesc")},{default:e(()=>[n("div",$,l(t.status_desc),1)]),_:1},8,["label"]),s(i,{label:a(o)("lastTime")},{default:e(()=>[n("div",z,l(t.last_time),1)]),_:1},8,["label"]),s(i,{label:a(o)("nextTime")},{default:e(()=>[n("div",A,l(t.next_time),1)]),_:1},8,["label"]),s(i,{label:a(o)("createTime")},{default:e(()=>[n("div",G,l(t.create_time),1)]),_:1},8,["label"])]),_:1},8,["model","rules"])),[[E,m.value]])]),_:1},8,["modelValue","title"])}}});export{it as _};
|
||||
1
niucloud/public/admin/assets/decorate.edit-ab70feb0.js
Normal file
1
niucloud/public/admin/assets/decorate.edit-ab70feb0.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
1
niucloud/public/admin/assets/default_headimg-9976c9c6.js
Normal file
1
niucloud/public/admin/assets/default_headimg-9976c9c6.js
Normal file
@ -0,0 +1 @@
|
||||
const e=""+new URL("default_headimg-1e927329.png",import.meta.url).href;export{e as _};
|
||||
@ -1 +0,0 @@
|
||||
const e=""+new URL("member_head-1e927329.png",import.meta.url).href;export{e as _};
|
||||
1
niucloud/public/admin/assets/detail-3e099730.js
Normal file
1
niucloud/public/admin/assets/detail-3e099730.js
Normal file
@ -0,0 +1 @@
|
||||
import"./base-962c0c23.js";/* empty css *//* empty css *//* empty css */import{t as l}from"./index-105fbad0.js";import{g as k}from"./order-96275a17.js";import{u as x,a as D}from"./vue-router-79053937.js";import{D as C}from"./index-7525671c.js";import{a as E,E as N}from"./index-61c777fa.js";import{E as F}from"./index-69523418.js";import{v as I}from"./directive-c0c3e9a3.js";import{d as R,r as _,b as c,e as B,L as M,m as p,p as a,f as t,x as o,u as r,q as i,C as T}from"./runtime-core.esm-bundler-dc7a07d7.js";import"./common-080b9b9f.js";import"./common-2cf17469.js";import"./el-overlay-60700377.js";import"./event-ff03ec12.js";import"./index-5d86eb33.js";import"./focus-trap-b8b5a003.js";/* empty css *//* empty css */import"./el-radio-bfd4b1ad.js";import"./storage-abe718b1.js";import"./index-8bcaafa6.js";import"./index-bba9e58c.js";import"./index-93f2c618.js";import"./index-7a123a20.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./el-tooltip-58212670.js";import"./el-avatar-3bb47ce2.js";import"./index-d57cc47d.js";import"./_Uint8Array-6ff3cafa.js";import"./_initCloneObject-28e6bdaa.js";const S={class:"main-container"},V={class:"panel-title"},q={class:"input-width"},L={class:"input-width"},$={class:"input-width"},O={class:"input-width"},j={class:""},z={class:""},A={class:"input-width"},G={class:"input-width"},H={class:"input-width"},J={class:"input-width"},K={class:"input-width"},P={class:"input-width"},Q={class:"input-width"},U={class:"input-width"},Be=R({__name:"detail",setup(W){C();const f=x(),v=D(),u=parseInt(f.query.order_id),m=_(!0),e=_(null);u?(async(d=0)=>{m.value=!0,e.value=null,await k(d).then(({data:n})=>{e.value=n}).catch(()=>{}),m.value=!1})(u):m.value=!1;const b=_(),h=d=>{v.push(`/member/detail?id=${d}`)};return(d,n)=>{const s=E,w=F,y=N,g=I;return c(),B("div",S,[M((c(),p(y,{model:e.value,"label-width":"150px",ref_key:"formRef",ref:b,class:"page-form"},{default:a(()=>[e.value?(c(),p(w,{key:0,class:"box-card !border-none relative",shadow:"never"},{default:a(()=>[t("h3",V,o(r(l)("orderInfo")),1),i(s,{label:r(l)("orderNo")},{default:a(()=>[t("div",q,o(e.value.order_no),1)]),_:1},8,["label"]),i(s,{label:r(l)("orderMoney")},{default:a(()=>[t("div",L,o(e.value.order_money),1)]),_:1},8,["label"]),i(s,{label:r(l)("orderDiscountMoney")},{default:a(()=>[t("div",$,o(e.value.order_discount_money),1)]),_:1},8,["label"]),i(s,{label:r(l)("member")},{default:a(()=>[t("div",O,[t("div",{class:"flex flex flex-col cursor-pointer",onClick:n[0]||(n[0]=Y=>h(e.value.member_id))},[t("span",j,o(e.value.member.nickname||""),1),t("span",z,o(e.value.member.mobile||""),1)])])]),_:1},8,["label"]),i(s,{label:r(l)("ip")},{default:a(()=>[t("div",A,o(e.value.ip),1)]),_:1},8,["label"]),i(s,{label:r(l)("orderFromName")},{default:a(()=>[t("div",G,o(e.value.order_from_name),1)]),_:1},8,["label"]),i(s,{label:r(l)("orderStatus")},{default:a(()=>[t("div",H,o(e.value.order_status_info.name),1)]),_:1},8,["label"]),i(s,{label:r(l)("payTypeName")},{default:a(()=>[t("div",J,o(e.value.pay_type_name),1)]),_:1},8,["label"]),i(s,{label:r(l)("createTime")},{default:a(()=>[t("div",K,o(e.value.create_time||""),1)]),_:1},8,["label"]),i(s,{label:r(l)("payTime")},{default:a(()=>[t("div",P,o(e.value.pay_time||""),1)]),_:1},8,["label"]),i(s,{label:r(l)("remark")},{default:a(()=>[t("div",Q,o(e.value.remark||""),1)]),_:1},8,["label"]),i(s,{label:r(l)("memberMessage")},{default:a(()=>[t("div",U,o(e.value.member_message||""),1)]),_:1},8,["label"])]),_:1})):T("",!0)]),_:1},8,["model"])),[[g,m.value]])])}}});export{Be as default};
|
||||
@ -1 +0,0 @@
|
||||
import"./base-962c0c23.js";/* empty css *//* empty css *//* empty css */import{u as x,t as l}from"./index-2af60c2e.js";import{g as D}from"./order-bdc05c3d.js";import{u as R,a as C}from"./vue-router-79053937.js";import{D as E}from"./index-5cfb4637.js";import{a as N,E as F}from"./index-61c777fa.js";import{E as I}from"./index-69523418.js";import{v as S}from"./directive-c0c3e9a3.js";import{d as B,r as _,w as M,b as u,e as T,L as V,m as v,p as a,f as t,x as o,u as r,q as i,C as q}from"./runtime-core.esm-bundler-dc7a07d7.js";import"./common-6291c908.js";import"./common-2cf17469.js";import"./el-overlay-60700377.js";import"./event-ff03ec12.js";import"./index-5d86eb33.js";import"./focus-trap-b8b5a003.js";/* empty css *//* empty css */import"./el-radio-bfd4b1ad.js";import"./storage-abe718b1.js";import"./index-8bcaafa6.js";import"./index-bba9e58c.js";import"./index-93f2c618.js";import"./index-7a123a20.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./el-tooltip-58212670.js";import"./el-avatar-3bb47ce2.js";import"./index-d57cc47d.js";import"./_Uint8Array-6ff3cafa.js";import"./_initCloneObject-28e6bdaa.js";const L={class:"main-container"},X={class:"panel-title"},$={class:"input-width"},A={class:"input-width"},O={class:"input-width"},j={class:"input-width"},z={class:""},G={class:""},H={class:"input-width"},J={class:"input-width"},K={class:"input-width"},P={class:"input-width"},Q={class:"input-width"},U={class:"input-width"},W={class:"input-width"},Y={class:"input-width"},Te=B({__name:"detail",setup(Z){E();const c=R(),b=C(),p=parseInt(c.query.order_id),d=_(!0),f=x();f.pageReturn=!0,M(c,(m,n)=>{f.pageReturn=!1});const e=_(null);p?(async(m=0)=>{d.value=!0,e.value=null,await D(m).then(({data:n})=>{e.value=n}).catch(()=>{}),d.value=!1})(p):d.value=!1;const h=_(),w=m=>{b.push(`/member/detail?id=${m}`)};return(m,n)=>{const s=N,y=I,g=F,k=S;return u(),T("div",L,[V((u(),v(g,{model:e.value,"label-width":"150px",ref_key:"formRef",ref:h,class:"page-form"},{default:a(()=>[e.value?(u(),v(y,{key:0,class:"box-card !border-none relative",shadow:"never"},{default:a(()=>[t("h3",X,o(r(l)("orderInfo")),1),i(s,{label:r(l)("orderNo")},{default:a(()=>[t("div",$,o(e.value.order_no),1)]),_:1},8,["label"]),i(s,{label:r(l)("orderMoney")},{default:a(()=>[t("div",A,o(e.value.order_money),1)]),_:1},8,["label"]),i(s,{label:r(l)("orderDiscountMoney")},{default:a(()=>[t("div",O,o(e.value.order_discount_money),1)]),_:1},8,["label"]),i(s,{label:r(l)("member")},{default:a(()=>[t("div",j,[t("div",{class:"flex flex flex-col cursor-pointer",onClick:n[0]||(n[0]=te=>w(e.value.member_id))},[t("span",z,o(e.value.member.nickname||""),1),t("span",G,o(e.value.member.mobile||""),1)])])]),_:1},8,["label"]),i(s,{label:r(l)("ip")},{default:a(()=>[t("div",H,o(e.value.ip),1)]),_:1},8,["label"]),i(s,{label:r(l)("orderFromName")},{default:a(()=>[t("div",J,o(e.value.order_from_name),1)]),_:1},8,["label"]),i(s,{label:r(l)("orderStatus")},{default:a(()=>[t("div",K,o(e.value.order_status_info.name),1)]),_:1},8,["label"]),i(s,{label:r(l)("payTypeName")},{default:a(()=>[t("div",P,o(e.value.pay_type_name),1)]),_:1},8,["label"]),i(s,{label:r(l)("createTime")},{default:a(()=>[t("div",Q,o(e.value.create_time||""),1)]),_:1},8,["label"]),i(s,{label:r(l)("payTime")},{default:a(()=>[t("div",U,o(e.value.pay_time||""),1)]),_:1},8,["label"]),i(s,{label:r(l)("remark")},{default:a(()=>[t("div",W,o(e.value.remark||""),1)]),_:1},8,["label"]),i(s,{label:r(l)("memberMessage")},{default:a(()=>[t("div",Y,o(e.value.member_message||""),1)]),_:1},8,["label"])]),_:1})):q("",!0)]),_:1},8,["model"])),[[k,d.value]])])}}});export{Te as default};
|
||||
@ -1 +0,0 @@
|
||||
import{E as S}from"./base-962c0c23.js";/* empty css *//* empty css */import"./index-5cfb4637.js";/* empty css *//* empty css *//* empty css */import"./el-tooltip-58212670.js";/* empty css */import{t as o}from"./index-2af60c2e.js";import{h as C}from"./tools-4020b697.js";import{u as k}from"./vue-router-79053937.js";import{a as E,E as B}from"./index-92e1b5d5.js";import{E as z}from"./index-69523418.js";import{v as N}from"./directive-c0c3e9a3.js";import{d as D,r as V,M as I,Q as x,b as i,e as p,q as e,p as r,f as a,x as d,u as t,L as u,m as f,C as L}from"./runtime-core.esm-bundler-dc7a07d7.js";import"./el-overlay-60700377.js";import"./event-ff03ec12.js";import"./index-5d86eb33.js";import"./focus-trap-b8b5a003.js";/* empty css *//* empty css */import"./el-radio-bfd4b1ad.js";import"./storage-abe718b1.js";import"./index-8bcaafa6.js";import"./index-bba9e58c.js";import"./index-93f2c618.js";import"./index-7a123a20.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./el-avatar-3bb47ce2.js";import"./index-d57cc47d.js";import"./common-6291c908.js";import"./common-2cf17469.js";import"./_Uint8Array-6ff3cafa.js";import"./_initCloneObject-28e6bdaa.js";import"./index-df51d91a.js";import"./isEqual-c7d5e6d9.js";import"./flatten-d5d1dc97.js";import"./_isIterateeCall-c579b126.js";const T={key:0,class:"main-container attachment-container"},j={class:"flex justify-between items-center"},q={class:"text-[24px]"},A={class:"bg-[#fff] pb-[20px] mb-3"},M={class:"pt-[20px] pb-[10px]"},Q={class:"text-[14px]"},R={class:"bg-[#fff] pb-[20px] mb-3"},F={class:"py-[20px]"},G={class:"text-[14px]"},H={class:"bg-[#fff] pb-[20px] mb-3"},J={class:"py-[20px]"},K={class:"text-[14px]"},O={key:0},P={key:1},U={class:"bg-[#fff] pb-[20px] mb-3"},W={class:"py-[20px]"},X={class:"text-[14px]"},Y={key:0},Z={key:1},Ge=D({__name:"detection",setup($){const y=k().meta.title,n=V([]);let s=I({server_load:!0,server_version_load:!0,system_variables_load:!0,process_load:!0});return(()=>{s.server_load=!0,s.server_version_load=!0,s.system_variables_load=!0,s.process_load=!0,C().then(b=>{n.value=b.data,s.server_load=!1,s.server_version_load=!1,s.system_variables_load=!1,s.process_load=!1})})(),(b,oe)=>{const l=E,_=B,h=x("Select"),m=S,g=x("CloseBold"),w=z,c=N;return n.value?(i(),p("div",T,[e(w,{class:"box-card !border-none",shadow:"never"},{default:r(()=>[a("div",j,[a("span",q,d(t(y)),1)]),a("div",A,[a("p",M,d(t(o)("serverInformation")),1),a("div",Q,[u((i(),f(_,{data:n.value.server,size:"large"},{default:r(()=>[e(l,{prop:"name",label:t(o)("environment"),align:"left","min-width":"200"},null,8,["label"]),e(l,{prop:"server",label:t(o)("version"),align:"left","min-width":"140"},null,8,["label"])]),_:1},8,["data"])),[[c,t(s).server_load]])])]),a("div",R,[a("p",F,d(t(o)("systemDemand")),1),a("div",G,[u((i(),f(_,{data:n.value.server_version,size:"large"},{default:r(()=>[e(l,{prop:"name",label:t(o)("environment"),align:"left","min-width":"200"},null,8,["label"]),e(l,{prop:"demand",label:t(o)("demand"),align:"left","min-width":"140"},null,8,["label"]),e(l,{prop:"server",label:t(o)("version"),align:"left","min-width":"140"},null,8,["label"])]),_:1},8,["data"])),[[c,t(s).server_version_load]])])]),a("div",H,[a("p",J,d(t(o)("authorityStatus")),1),a("div",K,[u((i(),f(_,{data:n.value.system_variables,size:"large"},{default:r(()=>[e(l,{prop:"name",label:t(o)("name"),align:"left","min-width":"200"},null,8,["label"]),e(l,{prop:"need",label:t(o)("demand"),align:"left","min-width":"140"},null,8,["label"]),e(l,{label:t(o)("status"),align:"left","min-width":"140"},{default:r(({row:v})=>[v.status?(i(),p("span",O,[e(m,{color:"green"},{default:r(()=>[e(h)]),_:1})])):(i(),p("span",P,[e(m,{color:"red"},{default:r(()=>[e(g)]),_:1})]))]),_:1},8,["label"])]),_:1},8,["data"])),[[c,t(s).system_variables_load]])])]),a("div",U,[a("p",W,d(t(o)("process")),1),a("div",X,[u((i(),f(_,{data:n.value.process,size:"large"},{default:r(()=>[e(l,{prop:"name",label:t(o)("name"),align:"left","min-width":"200"},null,8,["label"]),e(l,{prop:"need",label:t(o)("demand"),align:"left","min-width":"140"},null,8,["label"]),e(l,{label:t(o)("status"),align:"left","min-width":"140"},{default:r(({row:v})=>[v.status?(i(),p("span",Y,[e(m,{color:"green"},{default:r(()=>[e(h)]),_:1})])):(i(),p("span",Z,[e(m,{color:"red"},{default:r(()=>[e(g)]),_:1})]))]),_:1},8,["label"])]),_:1},8,["data"])),[[c,t(s).process_load]])])])]),_:1})])):L("",!0)}}});export{Ge as default};
|
||||
1
niucloud/public/admin/assets/detection-f3d9138f.js
Normal file
1
niucloud/public/admin/assets/detection-f3d9138f.js
Normal file
@ -0,0 +1 @@
|
||||
import{E as S}from"./base-962c0c23.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-58212670.js";import"./index-7525671c.js";/* empty css */import{t as o}from"./index-105fbad0.js";import{h as C}from"./tools-6df261eb.js";import{u as k}from"./vue-router-79053937.js";import{a as E,E as B}from"./index-92e1b5d5.js";import{E as z}from"./index-69523418.js";import{v as N}from"./directive-c0c3e9a3.js";import{d as D,r as V,M as I,Q as x,b as i,e as p,q as e,p as r,f as s,x as m,u as t,L as u,m as f,C as L}from"./runtime-core.esm-bundler-dc7a07d7.js";import"./el-overlay-60700377.js";import"./event-ff03ec12.js";import"./index-5d86eb33.js";import"./focus-trap-b8b5a003.js";/* empty css *//* empty css */import"./el-radio-bfd4b1ad.js";import"./storage-abe718b1.js";import"./index-8bcaafa6.js";import"./index-bba9e58c.js";import"./index-93f2c618.js";import"./index-7a123a20.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./el-avatar-3bb47ce2.js";import"./index-d57cc47d.js";import"./common-080b9b9f.js";import"./common-2cf17469.js";import"./_Uint8Array-6ff3cafa.js";import"./_initCloneObject-28e6bdaa.js";import"./index-df51d91a.js";import"./isEqual-c7d5e6d9.js";import"./flatten-d5d1dc97.js";import"./_isIterateeCall-c579b126.js";const T={key:0,class:"main-container attachment-container"},j={class:"flex justify-between items-center"},q={class:"text-[24px]"},A={class:"bg-[#fff] pb-[20px] mb-3"},M={class:"pt-[20px] pb-[10px] text-sm"},Q={class:"text-[14px]"},R={class:"bg-[#fff] pb-[20px] mb-3"},F={class:"py-[20px] text-sm"},G={class:"text-[14px]"},H={class:"bg-[#fff] pb-[20px] mb-3"},J={class:"py-[20px] text-sm"},K={class:"text-[14px]"},O={key:0},P={key:1},U={class:"bg-[#fff] pb-[20px] mb-3"},W={class:"py-[20px] text-sm"},X={class:"text-[14px]"},Y={key:0},Z={key:1},He=D({__name:"detection",setup($){const y=k().meta.title,n=V([]);let a=I({server_load:!0,server_version_load:!0,system_variables_load:!0,process_load:!0});return(()=>{a.server_load=!0,a.server_version_load=!0,a.system_variables_load=!0,a.process_load=!0,C().then(b=>{n.value=b.data,a.server_load=!1,a.server_version_load=!1,a.system_variables_load=!1,a.process_load=!1})})(),(b,oe)=>{const l=E,d=B,h=x("Select"),_=S,g=x("CloseBold"),w=z,c=N;return n.value?(i(),p("div",T,[e(w,{class:"box-card !border-none",shadow:"never"},{default:r(()=>[s("div",j,[s("span",q,m(t(y)),1)]),s("div",A,[s("p",M,m(t(o)("serverInformation")),1),s("div",Q,[u((i(),f(d,{data:n.value.server,size:"large"},{default:r(()=>[e(l,{prop:"name",label:t(o)("environment"),align:"left","min-width":"200"},null,8,["label"]),e(l,{prop:"server",label:t(o)("version"),align:"left","min-width":"140"},null,8,["label"])]),_:1},8,["data"])),[[c,t(a).server_load]])])]),s("div",R,[s("p",F,m(t(o)("systemDemand")),1),s("div",G,[u((i(),f(d,{data:n.value.server_version,size:"large"},{default:r(()=>[e(l,{prop:"name",label:t(o)("environment"),align:"left","min-width":"200"},null,8,["label"]),e(l,{prop:"demand",label:t(o)("demand"),align:"left","min-width":"140"},null,8,["label"]),e(l,{prop:"server",label:t(o)("version"),align:"left","min-width":"140"},null,8,["label"])]),_:1},8,["data"])),[[c,t(a).server_version_load]])])]),s("div",H,[s("p",J,m(t(o)("authorityStatus")),1),s("div",K,[u((i(),f(d,{data:n.value.system_variables,size:"large"},{default:r(()=>[e(l,{prop:"name",label:t(o)("name"),align:"left","min-width":"200"},null,8,["label"]),e(l,{prop:"need",label:t(o)("demand"),align:"left","min-width":"140"},null,8,["label"]),e(l,{label:t(o)("status"),align:"left","min-width":"140"},{default:r(({row:v})=>[v.status?(i(),p("span",O,[e(_,{color:"green"},{default:r(()=>[e(h)]),_:1})])):(i(),p("span",P,[e(_,{color:"red"},{default:r(()=>[e(g)]),_:1})]))]),_:1},8,["label"])]),_:1},8,["data"])),[[c,t(a).system_variables_load]])])]),s("div",U,[s("p",W,m(t(o)("process")),1),s("div",X,[u((i(),f(d,{data:n.value.process,size:"large"},{default:r(()=>[e(l,{prop:"name",label:t(o)("name"),align:"left","min-width":"200"},null,8,["label"]),e(l,{prop:"need",label:t(o)("demand"),align:"left","min-width":"140"},null,8,["label"]),e(l,{label:t(o)("status"),align:"left","min-width":"140"},{default:r(({row:v})=>[v.status?(i(),p("span",Y,[e(_,{color:"green"},{default:r(()=>[e(h)]),_:1})])):(i(),p("span",Z,[e(_,{color:"red"},{default:r(()=>[e(g)]),_:1})]))]),_:1},8,["label"])]),_:1},8,["data"])),[[c,t(a).process_load]])])])]),_:1})])):L("",!0)}}});export{He as default};
|
||||
@ -1 +1 @@
|
||||
import{C as t}from"./index-5cfb4637.js";function i(e){return t.get("diy/diy",{params:e})}function u(e){return t.post("diy/diy",e,{showSuccessMessage:!0})}function n(e){return t.put(`diy/diy/${e.id}`,e,{showSuccessMessage:!0})}function r(e){return t.put("diy/use",e,{showSuccessMessage:!0})}function o(e){return t.put("diy/diy/share",e,{showSuccessMessage:!0})}function a(e){return t.delete(`diy/diy/${e}`,{showSuccessMessage:!0})}function y(e){return t.get("diy/init",{params:e})}function c(e){return t.get("diy/link",{params:e})}function d(e){return t.get("diy/bottom",{params:e})}function g(e){return t.post("diy/bottom",e,{showSuccessMessage:!0})}function f(e){return t.get("diy/template",{params:e})}function h(e){return t.get("diy/route",{params:e})}function D(e){return t.get("diy/route/info",{params:e})}function p(e){return t.put("diy/route/share",e,{showSuccessMessage:!0})}export{u as a,f as b,h as c,i as d,n as e,a as f,c as g,D as h,y as i,o as j,p as k,d as l,g as m,r as s};
|
||||
import{C as t}from"./index-7525671c.js";function i(e){return t.get("diy/diy",{params:e})}function u(e){return t.post("diy/diy",e,{showSuccessMessage:!0})}function n(e){return t.put(`diy/diy/${e.id}`,e,{showSuccessMessage:!0})}function r(e){return t.put("diy/use",e,{showSuccessMessage:!0})}function o(e){return t.put("diy/diy/share",e,{showSuccessMessage:!0})}function a(e){return t.delete(`diy/diy/${e}`,{showSuccessMessage:!0})}function y(e){return t.get("diy/init",{params:e})}function c(e){return t.get("diy/link",{params:e})}function d(e){return t.get("diy/bottom",{params:e})}function g(e){return t.post("diy/bottom",e,{showSuccessMessage:!0})}function f(e){return t.get("diy/template",{params:e})}function h(e){return t.get("diy/route",{params:e})}function D(e){return t.get("diy/route/info",{params:e})}function p(e){return t.put("diy/route/share",e,{showSuccessMessage:!0})}export{u as a,f as b,h as c,i as d,n as e,a as f,c as g,D as h,y as i,o as j,p as k,d as l,g as m,r as s};
|
||||
@ -1 +1 @@
|
||||
import{d as u,t as r}from"./index-2af60c2e.js";import{c as o}from"./cloneDeep-b538bbcc.js";import{E as s}from"./index-50a00d09.js";import{a as i}from"./index-d57cc47d.js";import{af as a}from"./runtime-core.esm-bundler-dc7a07d7.js";const h=u("diy",{state:()=>({id:0,load:!1,currentIndex:-99,currentComponent:"edit-page",editTab:"content",name:"",type:"",typeName:"",isDefault:0,predefineColors:["#F4391c","#ff4500","#ff8c00","#FFD009","#ffd700","#19C650","#90ee90","#00ced1","#1e90ff","#c71585","#FF407E","#CFAF70","#A253FF","rgba(255, 69, 0, 0.68)","rgb(255, 120, 0)","hsl(181, 100%, 37%)","hsla(209, 100%, 56%, 0.73)","#c7158577"],components:[],global:{title:"页面",pageBgColor:"",bgUrl:"",imgWidth:"",imgHeight:"",topStatusBar:{bgColor:"#ffffff",isTransparent:!1,isShow:!0,style:"style-1",textColor:"#333333",textAlign:"center"},bottomTabBarSwitch:!0,popWindow:{imgUrl:"",imgWidth:"",imgHeight:"",count:-1,show:0,link:{name:""}},template:{textColor:"#303133",pageBgColor:"",componentBgColor:"",topRounded:0,bottomRounded:0,elementBgColor:"",topElementRounded:0,bottomElementRounded:0,margin:{top:0,bottom:0,both:0}}},value:[]}),getters:{editComponent:e=>e.currentIndex==-99?e.global:e.value[e.currentIndex]},actions:{init(){this.global={title:"页面",pageBgColor:"",bgUrl:"",imgWidth:"",imgHeight:"",topStatusBar:{bgColor:"#ffffff",isTransparent:!1,isShow:!0,style:"style-1",textColor:"#333333",textAlign:"center"},bottomTabBarSwitch:!0,popWindow:{imgUrl:"",imgWidth:"",imgHeight:"",count:-1,show:0,link:{name:""}},template:{textColor:"#303133",pageBgColor:"",componentBgColor:"",topRounded:0,bottomRounded:0,elementBgColor:"",topElementRounded:0,bottomElementRounded:0,margin:{top:0,bottom:0,both:0}}},this.value=[]},addComponent(e,n){if(!this.load)return;let t=o(n);t.id=this.generateRandom(),t.componentName=e,t.componentTitle=t.title,t.ignore=[],Object.assign(t,t.value),delete t.title,delete t.value,delete t.type,delete t.icon;let l=o(this.global.template);Object.assign(t,l),this.checkComponentIsAdd(t)&&(this.currentIndex===-99?(this.value.push(t),this.currentIndex=this.value.length-1):this.value.splice(++this.currentIndex,0,t),this.currentComponent=t.path)},generateRandom(e=5){return Number(Math.random().toString().substr(3,e)+Date.now()).toString(36)},postMessage(){var e=JSON.stringify({currentIndex:this.currentIndex,global:a(this.global),value:a(this.value)});window.previewIframe.contentWindow.postMessage(e,"*")},changeCurrentIndex(e,n=null){this.currentIndex=e,this.currentIndex==-99?this.currentComponent="edit-page":n&&(this.currentComponent=n.path)},delComponent(){this.currentIndex!=-99&&s.confirm(r("delComponentTips"),r("warning"),{confirmButtonText:r("confirm"),cancelButtonText:r("cancel"),type:"warning",autofocus:!1}).then(()=>{this.value.splice(this.currentIndex,1),this.value.length===0&&(this.currentIndex=-99),this.currentIndex===this.value.length&&this.currentIndex--;let e=o(this.value[this.currentIndex]);this.changeCurrentIndex(this.currentIndex,e)}).catch(()=>{})},moveUpComponent(){if(this.currentIndex-1<0)return;var e=o(this.value[this.currentIndex]);e.id=this.generateRandom();let n=this.currentIndex-1;var t=o(this.value[n]);t.id=this.generateRandom(),this.value[this.currentIndex]=t,this.value[n]=e,this.changeCurrentIndex(n,e)},moveDownComponent(){if(!(this.currentIndex+1>=this.value.length)){var e=this.currentIndex+1,n=o(this.value[this.currentIndex]);n.id=this.generateRandom();var t=o(this.value[e]);t.id=this.generateRandom(),this.value[this.currentIndex]=t,this.value[e]=n,this.changeCurrentIndex(e,n)}},copyComponent(){if(this.currentIndex<0)return;let e=o(this.value[this.currentIndex]);if(e.id=this.generateRandom(),!this.checkComponentIsAdd(e)){i({type:"warning",message:`${r("notCopy")},${e.componentTitle}${r("componentCanOnlyAdd")}${e.uses}${r("piece")}`});return}var n=this.currentIndex+1;this.value.splice(n,0,e),this.changeCurrentIndex(n,e)},checkComponentIsAdd(e){if(e.uses===0)return!0;var n=0;for(var t in this.value)this.value[t].componentName===e.componentName&&n++;return!(n>=e.uses)},resetComponent(){this.currentIndex<0||s.confirm(r("resetComponentTips"),r("warning"),{confirmButtonText:r("confirm"),cancelButtonText:r("cancel"),type:"warning",autofocus:!1}).then(()=>{for(let e=0;e<this.components.length;e++)if(this.components[e].componentName==this.editComponent.componentName){Object.assign(this.editComponent,this.components[e]);break}}).catch(()=>{})},verify(){if(this.global.title==="")return i({message:r("pageNamePlaceholder"),type:"warning"}),this.changeCurrentIndex(-99),!1;for(var e=0;e<this.value.length;e++)try{if(this.value[e].verify){var n=this.value[e].verify(e);if(!n.code)return this.changeCurrentIndex(e,this.value[e]),i({message:n.message,type:"warning"}),!1}}catch(t){console.log("verify Error:",t,e,this.value[e])}return!0}}}),f=h;export{f as u};
|
||||
import{d as u,t as r}from"./index-105fbad0.js";import{c as o}from"./cloneDeep-b538bbcc.js";import{E as s}from"./index-50a00d09.js";import{a as i}from"./index-d57cc47d.js";import{af as a}from"./runtime-core.esm-bundler-dc7a07d7.js";const h=u("diy",{state:()=>({id:0,load:!1,currentIndex:-99,currentComponent:"edit-page",editTab:"content",name:"",type:"",typeName:"",isDefault:0,predefineColors:["#F4391c","#ff4500","#ff8c00","#FFD009","#ffd700","#19C650","#90ee90","#00ced1","#1e90ff","#c71585","#FF407E","#CFAF70","#A253FF","rgba(255, 69, 0, 0.68)","rgb(255, 120, 0)","hsl(181, 100%, 37%)","hsla(209, 100%, 56%, 0.73)","#c7158577"],components:[],global:{title:"页面",pageBgColor:"",bgUrl:"",imgWidth:"",imgHeight:"",topStatusBar:{bgColor:"#ffffff",isTransparent:!1,isShow:!0,style:"style-1",textColor:"#333333",textAlign:"center"},bottomTabBarSwitch:!0,popWindow:{imgUrl:"",imgWidth:"",imgHeight:"",count:-1,show:0,link:{name:""}},template:{textColor:"#303133",pageBgColor:"",componentBgColor:"",topRounded:0,bottomRounded:0,elementBgColor:"",topElementRounded:0,bottomElementRounded:0,margin:{top:0,bottom:0,both:0}}},value:[]}),getters:{editComponent:e=>e.currentIndex==-99?e.global:e.value[e.currentIndex]},actions:{init(){this.global={title:"页面",pageBgColor:"",bgUrl:"",imgWidth:"",imgHeight:"",topStatusBar:{bgColor:"#ffffff",isTransparent:!1,isShow:!0,style:"style-1",textColor:"#333333",textAlign:"center"},bottomTabBarSwitch:!0,popWindow:{imgUrl:"",imgWidth:"",imgHeight:"",count:-1,show:0,link:{name:""}},template:{textColor:"#303133",pageBgColor:"",componentBgColor:"",topRounded:0,bottomRounded:0,elementBgColor:"",topElementRounded:0,bottomElementRounded:0,margin:{top:0,bottom:0,both:0}}},this.value=[]},addComponent(e,n){if(!this.load)return;let t=o(n);t.id=this.generateRandom(),t.componentName=e,t.componentTitle=t.title,t.ignore=[],Object.assign(t,t.value),delete t.title,delete t.value,delete t.type,delete t.icon;let l=o(this.global.template);Object.assign(t,l),this.checkComponentIsAdd(t)&&(this.currentIndex===-99?(this.value.push(t),this.currentIndex=this.value.length-1):this.value.splice(++this.currentIndex,0,t),this.currentComponent=t.path)},generateRandom(e=5){return Number(Math.random().toString().substr(3,e)+Date.now()).toString(36)},postMessage(){var e=JSON.stringify({currentIndex:this.currentIndex,global:a(this.global),value:a(this.value)});window.previewIframe.contentWindow.postMessage(e,"*")},changeCurrentIndex(e,n=null){this.currentIndex=e,this.currentIndex==-99?this.currentComponent="edit-page":n&&(this.currentComponent=n.path)},delComponent(){this.currentIndex!=-99&&s.confirm(r("delComponentTips"),r("warning"),{confirmButtonText:r("confirm"),cancelButtonText:r("cancel"),type:"warning",autofocus:!1}).then(()=>{this.value.splice(this.currentIndex,1),this.value.length===0&&(this.currentIndex=-99),this.currentIndex===this.value.length&&this.currentIndex--;let e=o(this.value[this.currentIndex]);this.changeCurrentIndex(this.currentIndex,e)}).catch(()=>{})},moveUpComponent(){if(this.currentIndex-1<0)return;var e=o(this.value[this.currentIndex]);e.id=this.generateRandom();let n=this.currentIndex-1;var t=o(this.value[n]);t.id=this.generateRandom(),this.value[this.currentIndex]=t,this.value[n]=e,this.changeCurrentIndex(n,e)},moveDownComponent(){if(!(this.currentIndex+1>=this.value.length)){var e=this.currentIndex+1,n=o(this.value[this.currentIndex]);n.id=this.generateRandom();var t=o(this.value[e]);t.id=this.generateRandom(),this.value[this.currentIndex]=t,this.value[e]=n,this.changeCurrentIndex(e,n)}},copyComponent(){if(this.currentIndex<0)return;let e=o(this.value[this.currentIndex]);if(e.id=this.generateRandom(),!this.checkComponentIsAdd(e)){i({type:"warning",message:`${r("notCopy")},${e.componentTitle}${r("componentCanOnlyAdd")}${e.uses}${r("piece")}`});return}var n=this.currentIndex+1;this.value.splice(n,0,e),this.changeCurrentIndex(n,e)},checkComponentIsAdd(e){if(e.uses===0)return!0;var n=0;for(var t in this.value)this.value[t].componentName===e.componentName&&n++;return!(n>=e.uses)},resetComponent(){this.currentIndex<0||s.confirm(r("resetComponentTips"),r("warning"),{confirmButtonText:r("confirm"),cancelButtonText:r("cancel"),type:"warning",autofocus:!1}).then(()=>{for(let e=0;e<this.components.length;e++)if(this.components[e].componentName==this.editComponent.componentName){Object.assign(this.editComponent,this.components[e]);break}}).catch(()=>{})},verify(){if(this.global.title==="")return i({message:r("pageNamePlaceholder"),type:"warning"}),this.changeCurrentIndex(-99),!1;for(var e=0;e<this.value.length;e++)try{if(this.value[e].verify){var n=this.value[e].verify(e);if(!n.code)return this.changeCurrentIndex(e,this.value[e]),i({message:n.message,type:"warning"}),!1}}catch(t){console.log("verify Error:",t,e,this.value[e])}return!0}}}),f=h;export{f as u};
|
||||
@ -1 +0,0 @@
|
||||
const c="装修",e="预览",t="微信小程序",o="微信公众号",p="链接",s="复制",n="复制成功",a="小程序未配置",w={decorate:c,preview:e,weapp:t,wechat:o,link:p,copy:s,copySuccess:n,weappNotSet:a};export{s as copy,n as copySuccess,c as decorate,w as default,p as link,e as preview,t as weapp,a as weappNotSet,o as wechat};
|
||||
1
niucloud/public/admin/assets/diy.index-c6bdab71.js
Normal file
1
niucloud/public/admin/assets/diy.index-c6bdab71.js
Normal file
@ -0,0 +1 @@
|
||||
const e="装修",o="预览",c="微信小程序",t="微信公众号",p="链接",a="复制",n="复制成功",s="小程序未配置",w="开发环境配置",i="wap域名(WAP_DOMAIN)",l="请输入wap域名",d={decorate:e,preview:o,weapp:c,wechat:t,link:p,copy:a,copySuccess:n,weappNotSet:s,developTitle:w,wapDomain:i,wapDomainPlaceholder:l};export{a as copy,n as copySuccess,e as decorate,d as default,w as developTitle,p as link,o as preview,i as wapDomain,l as wapDomainPlaceholder,c as weapp,s as weappNotSet,t as wechat};
|
||||
File diff suppressed because one or more lines are too long
1
niucloud/public/admin/assets/edit-32d09050.js
Normal file
1
niucloud/public/admin/assets/edit-32d09050.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
niucloud/public/admin/assets/edit-9a597f15.js
Normal file
1
niucloud/public/admin/assets/edit-9a597f15.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
niucloud/public/admin/assets/edit-article-b23217e0.js
Normal file
1
niucloud/public/admin/assets/edit-article-b23217e0.js
Normal file
File diff suppressed because one or more lines are too long
1
niucloud/public/admin/assets/edit-b81dfd9b.js
Normal file
1
niucloud/public/admin/assets/edit-b81dfd9b.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
.el-divider{position:relative}.el-divider--horizontal{display:block;height:1px;width:100%;margin:24px 0;border-top:1px var(--el-border-color) var(--el-border-style)}.el-divider--vertical{display:inline-block;width:1px;height:1em;margin:0 8px;vertical-align:middle;position:relative;border-left:1px var(--el-border-color) var(--el-border-style)}.el-divider__text{position:absolute;background-color:var(--el-bg-color);padding:0 20px;font-weight:500;color:var(--el-text-color-primary);font-size:14px}.el-divider__text.is-left{left:20px;transform:translateY(-50%)}.el-divider__text.is-center{left:50%;transform:translate(-50%) translateY(-50%)}.el-divider__text.is-right{right:20px;transform:translateY(-50%)}.dashed-border[data-v-d40ad65e]{border-color:var(--el-border-color-light)}.dashed-border[data-v-d40ad65e]:hover,.dashed-border.activate[data-v-d40ad65e]{border-color:var(--el-color-primary)}.icon-btn[data-v-d40ad65e]{background-color:var(--el-color-primary)}
|
||||
.el-divider{position:relative}.el-divider--horizontal{display:block;height:1px;width:100%;margin:24px 0;border-top:1px var(--el-border-color) var(--el-border-style)}.el-divider--vertical{display:inline-block;width:1px;height:1em;margin:0 8px;vertical-align:middle;position:relative;border-left:1px var(--el-border-color) var(--el-border-style)}.el-divider__text{position:absolute;background-color:var(--el-bg-color);padding:0 20px;font-weight:500;color:var(--el-text-color-primary);font-size:14px}.el-divider__text.is-left{left:20px;transform:translateY(-50%)}.el-divider__text.is-center{left:50%;transform:translate(-50%) translateY(-50%)}.el-divider__text.is-right{right:20px;transform:translateY(-50%)}.dashed-border[data-v-412ff019]{border-color:var(--el-border-color-light)}.dashed-border[data-v-412ff019]:hover,.dashed-border.activate[data-v-412ff019]{border-color:var(--el-color-primary)}.icon-btn[data-v-412ff019]{background-color:var(--el-color-primary)}
|
||||
@ -1 +1 @@
|
||||
import{_ as o}from"./edit-category.vue_vue_type_script_setup_true_lang-f6148c5d.js";import"./base-962c0c23.js";import"./runtime-core.esm-bundler-dc7a07d7.js";/* empty css */import"./el-overlay-60700377.js";import"./event-ff03ec12.js";import"./index-5d86eb33.js";import"./focus-trap-b8b5a003.js";/* empty css *//* empty css */import"./el-radio-bfd4b1ad.js";/* empty css *//* empty css */import"./index-2af60c2e.js";import"./common-6291c908.js";import"./common-2cf17469.js";import"./article-97b81e96.js";import"./index-5cfb4637.js";import"./vue-router-79053937.js";import"./storage-abe718b1.js";import"./index-8bcaafa6.js";import"./index-bba9e58c.js";import"./index-93f2c618.js";import"./index-7a123a20.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./el-tooltip-58212670.js";import"./el-avatar-3bb47ce2.js";import"./index-d57cc47d.js";import"./index-61c777fa.js";import"./_Uint8Array-6ff3cafa.js";import"./_initCloneObject-28e6bdaa.js";import"./index-fb71f009.js";import"./index-179d7e6f.js";import"./directive-c0c3e9a3.js";export{o as default};
|
||||
import{_ as o}from"./edit-category.vue_vue_type_script_setup_true_lang-aadf8b7e.js";import"./base-962c0c23.js";import"./runtime-core.esm-bundler-dc7a07d7.js";/* empty css */import"./el-overlay-60700377.js";import"./event-ff03ec12.js";import"./index-5d86eb33.js";import"./focus-trap-b8b5a003.js";/* empty css *//* empty css */import"./el-radio-bfd4b1ad.js";/* empty css *//* empty css */import"./index-105fbad0.js";import"./common-080b9b9f.js";import"./common-2cf17469.js";import"./article-6bb0e548.js";import"./index-7525671c.js";import"./vue-router-79053937.js";import"./storage-abe718b1.js";import"./index-8bcaafa6.js";import"./index-bba9e58c.js";import"./index-93f2c618.js";import"./index-7a123a20.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./el-tooltip-58212670.js";import"./el-avatar-3bb47ce2.js";import"./index-d57cc47d.js";import"./index-61c777fa.js";import"./_Uint8Array-6ff3cafa.js";import"./_initCloneObject-28e6bdaa.js";import"./index-fb71f009.js";import"./index-179d7e6f.js";import"./directive-c0c3e9a3.js";export{o as default};
|
||||
@ -1 +1 @@
|
||||
import"./base-962c0c23.js";/* empty css */import{E as I}from"./el-overlay-60700377.js";/* empty css *//* empty css */import{E as U,b as P}from"./el-radio-bfd4b1ad.js";/* empty css *//* empty css */import{t as o}from"./index-2af60c2e.js";import{e as S,a as j,b as q}from"./article-97b81e96.js";import{E as L}from"./index-93f2c618.js";import{a as M,E as O}from"./index-61c777fa.js";import{E as T}from"./index-fb71f009.js";import{E as k}from"./index-bba9e58c.js";import{v as G}from"./directive-c0c3e9a3.js";import{d as $,r as g,M as z,c as H,b as y,m as V,p as r,f as J,q as i,i as h,v as p,x as f,u as l,L as K}from"./runtime-core.esm-bundler-dc7a07d7.js";const Q={class:"dialog-footer"},ce=$({__name:"edit-category",emits:["complete"],setup(W,{expose:C,emit:x}){let c="",n=g(!1);const m=g(!0),v={category_id:"",name:"",sort:"",is_show:1},a=z({...v}),b=g(),D=H(()=>({name:[{required:!0,message:o("namePlaceholder"),trigger:"blur"},{validator:(d,e,t)=>{e.length>20&&t(new Error(o("nameMax"))),t()},trigger:"blur"}],sort:[{validator:(d,e,t)=>{(e===""||isNaN(e))&&t(new Error(o("sortNumber"))),parseInt(e)>1e4&&t(new Error(o("sortBetween"))),t()},trigger:"blur"}]})),N=async d=>{if(m.value||!d)return;let e=a.category_id?S:j;await d.validate(async t=>{t&&(m.value=!0,e(a).then(_=>{m.value=!1,n.value=!1,x("complete")}).catch(_=>{m.value=!1}))})};return C({showDialog:n,setFormData:async(d=null)=>{if(m.value=!0,Object.assign(a,v),c=o("addArticleCategory"),d){c=o("updateArticleCategory");const e=await(await q(d.category_id)).data;Object.keys(a).forEach(t=>{e[t]!=null&&(a[t]=e[t])})}m.value=!1}}),(d,e)=>{const t=L,u=M,_=T,w=U,R=P,A=O,E=k,B=I,F=G;return y(),V(B,{modelValue:l(n),"onUpdate:modelValue":e[5]||(e[5]=s=>h(n)?n.value=s:n=s),title:l(c),width:"500px","destroy-on-close":!0},{footer:r(()=>[J("span",Q,[i(E,{onClick:e[3]||(e[3]=s=>h(n)?n.value=!1:n=!1)},{default:r(()=>[p(f(l(o)("cancel")),1)]),_:1}),i(E,{type:"primary",loading:m.value,onClick:e[4]||(e[4]=s=>N(b.value))},{default:r(()=>[p(f(l(o)("confirm")),1)]),_:1},8,["loading"])])]),default:r(()=>[K((y(),V(A,{model:a,"label-width":"90px",ref_key:"formRef",ref:b,rules:l(D),class:"page-form"},{default:r(()=>[i(u,{label:l(o)("name"),prop:"name"},{default:r(()=>[i(t,{modelValue:a.name,"onUpdate:modelValue":e[0]||(e[0]=s=>a.name=s),clearable:"",placeholder:l(o)("namePlaceholder"),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),i(u,{label:l(o)("sort"),prop:"sort"},{default:r(()=>[i(_,{modelValue:a.sort,"onUpdate:modelValue":e[1]||(e[1]=s=>a.sort=s),min:0},null,8,["modelValue"])]),_:1},8,["label"]),i(u,{label:l(o)("isShow")},{default:r(()=>[i(R,{modelValue:a.is_show,"onUpdate:modelValue":e[2]||(e[2]=s=>a.is_show=s),placeholder:l(o)("isShowPlaceholder")},{default:r(()=>[i(w,{label:1},{default:r(()=>[p(f(l(o)("show")),1)]),_:1}),i(w,{label:0},{default:r(()=>[p(f(l(o)("hidden")),1)]),_:1})]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","rules"])),[[F,m.value]])]),_:1},8,["modelValue","title"])}}});export{ce as _};
|
||||
import"./base-962c0c23.js";/* empty css */import{E as I}from"./el-overlay-60700377.js";/* empty css *//* empty css */import{E as U,b as P}from"./el-radio-bfd4b1ad.js";/* empty css *//* empty css */import{t as o}from"./index-105fbad0.js";import{e as S,a as j,b as q}from"./article-6bb0e548.js";import{E as L}from"./index-93f2c618.js";import{a as M,E as O}from"./index-61c777fa.js";import{E as T}from"./index-fb71f009.js";import{E as k}from"./index-bba9e58c.js";import{v as G}from"./directive-c0c3e9a3.js";import{d as $,r as g,M as z,c as H,b as y,m as V,p as r,f as J,q as i,i as h,v as p,x as f,u as l,L as K}from"./runtime-core.esm-bundler-dc7a07d7.js";const Q={class:"dialog-footer"},ce=$({__name:"edit-category",emits:["complete"],setup(W,{expose:C,emit:x}){let c="",n=g(!1);const m=g(!0),v={category_id:"",name:"",sort:"",is_show:1},a=z({...v}),b=g(),D=H(()=>({name:[{required:!0,message:o("namePlaceholder"),trigger:"blur"},{validator:(d,e,t)=>{e.length>20&&t(new Error(o("nameMax"))),t()},trigger:"blur"}],sort:[{validator:(d,e,t)=>{(e===""||isNaN(e))&&t(new Error(o("sortNumber"))),parseInt(e)>1e4&&t(new Error(o("sortBetween"))),t()},trigger:"blur"}]})),N=async d=>{if(m.value||!d)return;let e=a.category_id?S:j;await d.validate(async t=>{t&&(m.value=!0,e(a).then(_=>{m.value=!1,n.value=!1,x("complete")}).catch(_=>{m.value=!1}))})};return C({showDialog:n,setFormData:async(d=null)=>{if(m.value=!0,Object.assign(a,v),c=o("addArticleCategory"),d){c=o("updateArticleCategory");const e=await(await q(d.category_id)).data;Object.keys(a).forEach(t=>{e[t]!=null&&(a[t]=e[t])})}m.value=!1}}),(d,e)=>{const t=L,u=M,_=T,w=U,R=P,A=O,E=k,B=I,F=G;return y(),V(B,{modelValue:l(n),"onUpdate:modelValue":e[5]||(e[5]=s=>h(n)?n.value=s:n=s),title:l(c),width:"500px","destroy-on-close":!0},{footer:r(()=>[J("span",Q,[i(E,{onClick:e[3]||(e[3]=s=>h(n)?n.value=!1:n=!1)},{default:r(()=>[p(f(l(o)("cancel")),1)]),_:1}),i(E,{type:"primary",loading:m.value,onClick:e[4]||(e[4]=s=>N(b.value))},{default:r(()=>[p(f(l(o)("confirm")),1)]),_:1},8,["loading"])])]),default:r(()=>[K((y(),V(A,{model:a,"label-width":"90px",ref_key:"formRef",ref:b,rules:l(D),class:"page-form"},{default:r(()=>[i(u,{label:l(o)("name"),prop:"name"},{default:r(()=>[i(t,{modelValue:a.name,"onUpdate:modelValue":e[0]||(e[0]=s=>a.name=s),clearable:"",placeholder:l(o)("namePlaceholder"),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),i(u,{label:l(o)("sort"),prop:"sort"},{default:r(()=>[i(_,{modelValue:a.sort,"onUpdate:modelValue":e[1]||(e[1]=s=>a.sort=s),min:0},null,8,["modelValue"])]),_:1},8,["label"]),i(u,{label:l(o)("isShow")},{default:r(()=>[i(R,{modelValue:a.is_show,"onUpdate:modelValue":e[2]||(e[2]=s=>a.is_show=s),placeholder:l(o)("isShowPlaceholder")},{default:r(()=>[i(w,{label:1},{default:r(()=>[p(f(l(o)("show")),1)]),_:1}),i(w,{label:0},{default:r(()=>[p(f(l(o)("hidden")),1)]),_:1})]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","rules"])),[[F,m.value]])]),_:1},8,["modelValue","title"])}}});export{ce as _};
|
||||
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
import{_ as o}from"./edit-group.vue_vue_type_script_setup_true_async_true_lang-c2eaef54.js";import"./base-962c0c23.js";import"./runtime-core.esm-bundler-dc7a07d7.js";/* empty css */import"./el-overlay-60700377.js";import"./event-ff03ec12.js";import"./index-5d86eb33.js";import"./focus-trap-b8b5a003.js";/* empty css */import"./index-5cfb4637.js";import"./vue-router-79053937.js";import"./index-2af60c2e.js";import"./common-6291c908.js";import"./common-2cf17469.js";/* empty css *//* empty css */import"./el-radio-bfd4b1ad.js";import"./storage-abe718b1.js";import"./index-8bcaafa6.js";import"./index-bba9e58c.js";import"./index-93f2c618.js";import"./index-7a123a20.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./el-tooltip-58212670.js";import"./el-avatar-3bb47ce2.js";import"./index-d57cc47d.js";/* empty css *//* empty css */import"./sys-451b2f0d.js";import"./site-06e59c55.js";import"./index-61c777fa.js";import"./_Uint8Array-6ff3cafa.js";import"./_initCloneObject-28e6bdaa.js";import"./index-df51d91a.js";import"./isEqual-c7d5e6d9.js";import"./flatten-d5d1dc97.js";import"./index-e7f202ff.js";import"./directive-c0c3e9a3.js";export{o as default};
|
||||
import{_ as o}from"./edit-group.vue_vue_type_script_setup_true_async_true_lang-808d8fbc.js";import"./base-962c0c23.js";import"./runtime-core.esm-bundler-dc7a07d7.js";/* empty css */import"./el-overlay-60700377.js";import"./event-ff03ec12.js";import"./index-5d86eb33.js";import"./focus-trap-b8b5a003.js";/* empty css */import"./index-7525671c.js";import"./vue-router-79053937.js";import"./index-105fbad0.js";import"./common-080b9b9f.js";import"./common-2cf17469.js";/* empty css *//* empty css */import"./el-radio-bfd4b1ad.js";import"./storage-abe718b1.js";import"./index-8bcaafa6.js";import"./index-bba9e58c.js";import"./index-93f2c618.js";import"./index-7a123a20.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./el-tooltip-58212670.js";import"./el-avatar-3bb47ce2.js";import"./index-d57cc47d.js";/* empty css *//* empty css */import"./sys-4abedf95.js";import"./site-fd0c6646.js";import"./index-61c777fa.js";import"./_Uint8Array-6ff3cafa.js";import"./_initCloneObject-28e6bdaa.js";import"./index-df51d91a.js";import"./isEqual-c7d5e6d9.js";import"./flatten-d5d1dc97.js";import"./index-4c8d3076.js";import"./directive-c0c3e9a3.js";export{o as default};
|
||||
@ -1 +1 @@
|
||||
import"./base-962c0c23.js";/* empty css */import{E as $}from"./el-overlay-60700377.js";/* empty css */import"./index-5cfb4637.js";/* empty css *//* empty css *//* empty css *//* empty css */import{t as a}from"./index-2af60c2e.js";import{r as K}from"./sys-451b2f0d.js";import{f as L,h as H,i as z}from"./site-06e59c55.js";import{h as J}from"./storage-abe718b1.js";import{E as Q}from"./index-93f2c618.js";import{a as W,E as X}from"./index-61c777fa.js";import{E as Y}from"./index-df51d91a.js";import{E as Z}from"./index-bba9e58c.js";import{E as ee}from"./index-e7f202ff.js";import{E as le}from"./index-7a123a20.js";import{v as oe}from"./directive-c0c3e9a3.js";import{d as te,r as p,w as ae,af as re,M as se,c as ne,b as j,m as N,p as c,f as E,q as i,v as w,x,u as s,L as ue}from"./runtime-core.esm-bundler-dc7a07d7.js";const ie={class:"flex items-center justify-between w-11/12"},ce={class:"dialog-footer"},Fe=te({__name:"edit-group",emits:["complete"],setup(de,{expose:O,emit:R}){const _=p(!1),d=p(!1);let h="";const v=p(!0),f=p([]);K("site").then(l=>{f.value=l.data});const g=p(!1),b=p(!1),m=p(null);ae(g,()=>{g.value?m.value.setCheckedNodes(re(f.value)):m.value.setCheckedNodes([])});const S=J(l=>{t.group_roles=m.value.getCheckedKeys()}),F=()=>{v.value?(k(f.value),v.value=!1):(G(f.value),v.value=!0)},G=l=>{Object.keys(l).forEach(e=>{m.value.store.nodesMap[l[e].menu_key].expanded=!0,l[e].children&&l[e].children.length>0&&k(l[e].children)})},k=l=>{Object.keys(l).forEach(e=>{m.value.store.nodesMap[l[e].menu_key].expanded=!1,l[e].children&&l[e].children.length>0&&k(l[e].children)})},V={group_id:0,group_name:"",group_desc:"",group_roles:[]},t=se({...V}),C=p(),U=ne(()=>({group_name:[{required:!0,message:a("groupNamePlaceholder"),trigger:"blur"}],group_roles:[{required:!0,validator:(l,e,o)=>{e.length?o():o(new Error(a("groupRolesPlaceholder")))},trigger:"blur"}]})),B=async l=>{if(d.value||!l)return;const e=t.group_id?L:H;await l.validate(async o=>{if(o){d.value=!0;const n=Object.assign({},t);n.group_roles=n.group_roles.concat(m.value.getHalfCheckedKeys()),e(n).then(r=>{d.value=!1,_.value=!1,g.value=!1,R("complete")}).catch(()=>{d.value=!1})}})},M=async(l=null)=>{if(d.value=!0,g.value=!1,Object.assign(t,V),h=a("addGroup"),l){h=a("updateGroup");const e=await(await z(l.group_id)).data;Object.keys(t).forEach(o=>{if(e[o]!=null)if(o=="group_roles"){e.group_roles;var n=[];Object.keys(e.group_roles).forEach(r=>{D(e.group_roles[r],f.value,n)}),t[o]=n}else t[o]=e[o]})}d.value=!1};function D(l,e,o){Object.keys(e).forEach(n=>{let r=e[n];r.menu_key==l?(!r.children||r.children.length==0)&&o.push(r.menu_key):r.children&&r.children.length>0&&D(l,r.children,o)})}return O({showDialog:_,setFormData:M}),(l,e)=>{const o=Q,n=W,r=Y,y=Z,P=ee,T=le,q=X,A=$,I=oe;return j(),N(A,{modelValue:_.value,"onUpdate:modelValue":e[7]||(e[7]=u=>_.value=u),title:s(h),width:"500px","destroy-on-close":!0},{footer:c(()=>[E("span",ce,[i(y,{onClick:e[5]||(e[5]=u=>_.value=!1)},{default:c(()=>[w(x(s(a)("cancel")),1)]),_:1}),i(y,{type:"primary",loading:d.value,onClick:e[6]||(e[6]=u=>B(C.value))},{default:c(()=>[w(x(s(a)("confirm")),1)]),_:1},8,["loading"])])]),default:c(()=>[ue((j(),N(q,{model:t,"label-width":"90px",ref_key:"formRef",ref:C,rules:s(U),class:"page-form"},{default:c(()=>[i(n,{label:s(a)("groupName"),prop:"group_name"},{default:c(()=>[i(o,{modelValue:t.group_name,"onUpdate:modelValue":e[0]||(e[0]=u=>t.group_name=u),placeholder:s(a)("groupNamePlaceholder"),clearable:"",disabled:t.uid,class:"input-width",maxlength:"20","show-word-limit":!0},null,8,["modelValue","placeholder","disabled"])]),_:1},8,["label"]),i(n,{label:s(a)("groupDesc"),prop:"group_desc"},{default:c(()=>[i(o,{modelValue:t.group_desc,"onUpdate:modelValue":e[1]||(e[1]=u=>t.group_desc=u),type:"textarea",rows:"4",clearable:"",placeholder:s(a)("groupDescPlaceholder"),class:"input-width",maxlength:"100"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),i(n,{label:s(a)("permission"),prop:"group_roles"},{default:c(()=>[E("div",ie,[E("div",null,[i(r,{modelValue:g.value,"onUpdate:modelValue":e[2]||(e[2]=u=>g.value=u),label:s(a)("selectAll")},null,8,["modelValue","label"]),i(r,{modelValue:b.value,"onUpdate:modelValue":e[3]||(e[3]=u=>b.value=u),label:s(a)("checkStrictly")},null,8,["modelValue","label"])]),i(y,{link:"",type:"primary",onClick:e[4]||(e[4]=u=>F())},{default:c(()=>[w(x(s(a)("foldText")),1)]),_:1})]),i(T,{height:"35vh",class:"w-full"},{default:c(()=>[i(P,{data:f.value,props:{label:"menu_name"},"default-checked-keys":t.group_roles,"check-strictly":b.value,"show-checkbox":"","default-expand-all":"",onCheckChange:s(S),"node-key":"menu_key",ref_key:"treeRef",ref:m},null,8,["data","default-checked-keys","check-strictly","onCheckChange"])]),_:1})]),_:1},8,["label"])]),_:1},8,["model","rules"])),[[I,d.value]])]),_:1},8,["modelValue","title"])}}});export{Fe as _};
|
||||
import"./base-962c0c23.js";/* empty css */import{E as $}from"./el-overlay-60700377.js";/* empty css */import"./index-7525671c.js";/* empty css *//* empty css *//* empty css *//* empty css */import{t as a}from"./index-105fbad0.js";import{r as K}from"./sys-4abedf95.js";import{f as L,h as H,i as z}from"./site-fd0c6646.js";import{h as J}from"./storage-abe718b1.js";import{E as Q}from"./index-93f2c618.js";import{a as W,E as X}from"./index-61c777fa.js";import{E as Y}from"./index-df51d91a.js";import{E as Z}from"./index-bba9e58c.js";import{E as ee}from"./index-4c8d3076.js";import{E as le}from"./index-7a123a20.js";import{v as oe}from"./directive-c0c3e9a3.js";import{d as te,r as p,w as ae,af as re,M as se,c as ne,b as j,m as N,p as c,f as E,q as i,v as w,x,u as s,L as ue}from"./runtime-core.esm-bundler-dc7a07d7.js";const ie={class:"flex items-center justify-between w-11/12"},ce={class:"dialog-footer"},Fe=te({__name:"edit-group",emits:["complete"],setup(de,{expose:O,emit:R}){const _=p(!1),d=p(!1);let h="";const v=p(!0),f=p([]);K("site").then(l=>{f.value=l.data});const g=p(!1),b=p(!1),m=p(null);ae(g,()=>{g.value?m.value.setCheckedNodes(re(f.value)):m.value.setCheckedNodes([])});const S=J(l=>{t.group_roles=m.value.getCheckedKeys()}),F=()=>{v.value?(k(f.value),v.value=!1):(G(f.value),v.value=!0)},G=l=>{Object.keys(l).forEach(e=>{m.value.store.nodesMap[l[e].menu_key].expanded=!0,l[e].children&&l[e].children.length>0&&k(l[e].children)})},k=l=>{Object.keys(l).forEach(e=>{m.value.store.nodesMap[l[e].menu_key].expanded=!1,l[e].children&&l[e].children.length>0&&k(l[e].children)})},V={group_id:0,group_name:"",group_desc:"",group_roles:[]},t=se({...V}),C=p(),U=ne(()=>({group_name:[{required:!0,message:a("groupNamePlaceholder"),trigger:"blur"}],group_roles:[{required:!0,validator:(l,e,o)=>{e.length?o():o(new Error(a("groupRolesPlaceholder")))},trigger:"blur"}]})),B=async l=>{if(d.value||!l)return;const e=t.group_id?L:H;await l.validate(async o=>{if(o){d.value=!0;const n=Object.assign({},t);n.group_roles=n.group_roles.concat(m.value.getHalfCheckedKeys()),e(n).then(r=>{d.value=!1,_.value=!1,g.value=!1,R("complete")}).catch(()=>{d.value=!1})}})},M=async(l=null)=>{if(d.value=!0,g.value=!1,Object.assign(t,V),h=a("addGroup"),l){h=a("updateGroup");const e=await(await z(l.group_id)).data;Object.keys(t).forEach(o=>{if(e[o]!=null)if(o=="group_roles"){e.group_roles;var n=[];Object.keys(e.group_roles).forEach(r=>{D(e.group_roles[r],f.value,n)}),t[o]=n}else t[o]=e[o]})}d.value=!1};function D(l,e,o){Object.keys(e).forEach(n=>{let r=e[n];r.menu_key==l?(!r.children||r.children.length==0)&&o.push(r.menu_key):r.children&&r.children.length>0&&D(l,r.children,o)})}return O({showDialog:_,setFormData:M}),(l,e)=>{const o=Q,n=W,r=Y,y=Z,P=ee,T=le,q=X,A=$,I=oe;return j(),N(A,{modelValue:_.value,"onUpdate:modelValue":e[7]||(e[7]=u=>_.value=u),title:s(h),width:"500px","destroy-on-close":!0},{footer:c(()=>[E("span",ce,[i(y,{onClick:e[5]||(e[5]=u=>_.value=!1)},{default:c(()=>[w(x(s(a)("cancel")),1)]),_:1}),i(y,{type:"primary",loading:d.value,onClick:e[6]||(e[6]=u=>B(C.value))},{default:c(()=>[w(x(s(a)("confirm")),1)]),_:1},8,["loading"])])]),default:c(()=>[ue((j(),N(q,{model:t,"label-width":"90px",ref_key:"formRef",ref:C,rules:s(U),class:"page-form"},{default:c(()=>[i(n,{label:s(a)("groupName"),prop:"group_name"},{default:c(()=>[i(o,{modelValue:t.group_name,"onUpdate:modelValue":e[0]||(e[0]=u=>t.group_name=u),placeholder:s(a)("groupNamePlaceholder"),clearable:"",disabled:t.uid,class:"input-width",maxlength:"20","show-word-limit":!0},null,8,["modelValue","placeholder","disabled"])]),_:1},8,["label"]),i(n,{label:s(a)("groupDesc"),prop:"group_desc"},{default:c(()=>[i(o,{modelValue:t.group_desc,"onUpdate:modelValue":e[1]||(e[1]=u=>t.group_desc=u),type:"textarea",rows:"4",clearable:"",placeholder:s(a)("groupDescPlaceholder"),class:"input-width",maxlength:"100"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),i(n,{label:s(a)("permission"),prop:"group_roles"},{default:c(()=>[E("div",ie,[E("div",null,[i(r,{modelValue:g.value,"onUpdate:modelValue":e[2]||(e[2]=u=>g.value=u),label:s(a)("selectAll")},null,8,["modelValue","label"]),i(r,{modelValue:b.value,"onUpdate:modelValue":e[3]||(e[3]=u=>b.value=u),label:s(a)("checkStrictly")},null,8,["modelValue","label"])]),i(y,{link:"",type:"primary",onClick:e[4]||(e[4]=u=>F())},{default:c(()=>[w(x(s(a)("foldText")),1)]),_:1})]),i(T,{height:"35vh",class:"w-full"},{default:c(()=>[i(P,{data:f.value,props:{label:"menu_name"},"default-checked-keys":t.group_roles,"check-strictly":b.value,"show-checkbox":"","default-expand-all":"",onCheckChange:s(S),"node-key":"menu_key",ref_key:"treeRef",ref:m},null,8,["data","default-checked-keys","check-strictly","onCheckChange"])]),_:1})]),_:1},8,["label"])]),_:1},8,["model","rules"])),[[I,d.value]])]),_:1},8,["modelValue","title"])}}});export{Fe as _};
|
||||
@ -1 +1 @@
|
||||
import"./base-962c0c23.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-58212670.js";import{v as l}from"./event-ff03ec12.js";import{t as n}from"./index-2af60c2e.js";import{u as h}from"./diy-6cd3063b.js";import{E as f}from"./index-3220fc45.js";import{a as g,E as b}from"./index-61c777fa.js";import{d as v,b as y,e as x,L as r,u as e,f as o,x as S,q as s,p as i,g as w,F as k}from"./runtime-core.esm-bundler-dc7a07d7.js";const B={class:"content-wrap"},C={class:"edit-attr-item-wrap"},E={class:"mb-[10px]"},z={class:"style-wrap"},V=v({__name:"edit-horz-blank",setup(F,{expose:m}){const t=h();return t.editComponent.ignore=["pageBgColor","topRounded","bottomRounded","marginTop","marginBottom","marginBoth"],m({}),(p,a)=>{const _=f,d=g,c=b;return y(),x(k,null,[r(o("div",B,[o("div",C,[o("h3",E,S(e(n)("blankHeightSet")),1),s(c,{"label-width":"80px",class:"px-[10px]"},{default:i(()=>[s(d,{label:e(n)("blankHeight")},{default:i(()=>[s(_,{modelValue:e(t).editComponent.height,"onUpdate:modelValue":a[0]||(a[0]=u=>e(t).editComponent.height=u),"show-input":"",size:"small",class:"ml-[10px] horz-blank-slider"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})])],512),[[l,e(t).editTab=="content"]]),r(o("div",z,[w(p.$slots,"style")],512),[[l,e(t).editTab=="style"]])],64)}}});const U=Object.freeze(Object.defineProperty({__proto__:null,default:V},Symbol.toStringTag,{value:"Module"}));export{U as _};
|
||||
import"./base-962c0c23.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-58212670.js";import{v as l}from"./event-ff03ec12.js";import{t as n}from"./index-105fbad0.js";import{u as h}from"./diy-f6b4263e.js";import{E as f}from"./index-3220fc45.js";import{a as g,E as b}from"./index-61c777fa.js";import{d as v,b as y,e as x,L as r,u as e,f as o,x as S,q as s,p as i,g as w,F as k}from"./runtime-core.esm-bundler-dc7a07d7.js";const B={class:"content-wrap"},C={class:"edit-attr-item-wrap"},E={class:"mb-[10px]"},z={class:"style-wrap"},V=v({__name:"edit-horz-blank",setup(F,{expose:m}){const t=h();return t.editComponent.ignore=["pageBgColor","topRounded","bottomRounded","marginTop","marginBottom","marginBoth"],m({}),(p,a)=>{const _=f,d=g,c=b;return y(),x(k,null,[r(o("div",B,[o("div",C,[o("h3",E,S(e(n)("blankHeightSet")),1),s(c,{"label-width":"80px",class:"px-[10px]"},{default:i(()=>[s(d,{label:e(n)("blankHeight")},{default:i(()=>[s(_,{modelValue:e(t).editComponent.height,"onUpdate:modelValue":a[0]||(a[0]=u=>e(t).editComponent.height=u),"show-input":"",size:"small",class:"ml-[10px] horz-blank-slider"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})])],512),[[l,e(t).editTab=="content"]]),r(o("div",z,[w(p.$slots,"style")],512),[[l,e(t).editTab=="style"]])],64)}}});const U=Object.freeze(Object.defineProperty({__proto__:null,default:V},Symbol.toStringTag,{value:"Module"}));export{U as _};
|
||||
1
niucloud/public/admin/assets/edit-image-ads-cdc6ed0f.css
Normal file
1
niucloud/public/admin/assets/edit-image-ads-cdc6ed0f.css
Normal file
@ -0,0 +1 @@
|
||||
.edit-image-ads .item-wrap .del[data-v-553cf91a]{display:none}.edit-image-ads .item-wrap:hover .del[data-v-553cf91a]{display:block}
|
||||
@ -1 +0,0 @@
|
||||
.edit-image-ads .item-wrap .del[data-v-8ccf7d77]{display:none}.edit-image-ads .item-wrap:hover .del[data-v-8ccf7d77]{display:block}
|
||||
@ -1 +0,0 @@
|
||||
import"./base-962c0c23.js";/* empty css *//* empty css */import{_ as I}from"./index.vue_vue_type_script_setup_true_lang-a2fbdd05.js";import{B as S}from"./index-5cfb4637.js";import{_ as U}from"./index-c88476dc.js";/* empty css */import{v as _}from"./event-ff03ec12.js";import{t as l}from"./index-2af60c2e.js";import{S as B}from"./sortable.esm-be94e56d.js";import{d as T}from"./storage-abe718b1.js";import{u as A}from"./diy-6cd3063b.js";import{r as F}from"./range-5a416794.js";import{E as R}from"./index-93f2c618.js";import{a as $,E as N}from"./index-61c777fa.js";import{E as z}from"./index-bba9e58c.js";import{d as D,w as P,r as W,o as j,A as L,b as f,e as h,L as g,u as a,f as d,x as b,q as n,p,v as x,F as C,t as M,g as O}from"./runtime-core.esm-bundler-dc7a07d7.js";import{_ as q}from"./_plugin-vue_export-helper-c27b6911.js";const G={class:"content-wrap"},J={class:"edit-attr-item-wrap"},K={class:"mb-[10px]"},Q={class:"text-sm text-gray-400 mb-[10px]"},X=["onClick"],Y={class:"style-wrap"},Z=D({__name:"edit-image-ads",setup(te,{expose:w}){const e=A();e.editComponent.ignore=[],e.editComponent.verify=i=>{var t={code:!0,message:""};return e.value[i].imageHeight==0?(t.code=!1,t.message=l("imageHeightPlaceholder"),t):/^\d+.?\d{0,2}$/.test(e.value[i].imageHeight)?(e.value[i].list.forEach(o=>{if(o.imageUrl==="")return t.code=!1,t.message=l("imageUrlTip"),t}),t):(t.code=!1,t.message=l("imageHeightRegNum"),t)},e.editComponent.list.forEach(i=>{i.id||(i.id=e.generateRandom())}),P(()=>e.editComponent.list,(i,t)=>{e.editComponent.list.forEach((o,s)=>{let m=new Image;m.src=T(o.imageUrl),m.onload=async()=>{if(o.imgWidth=m.width,o.imgHeight=m.height,s==0){var u=o.imgHeight/o.imgWidth;o.width=375,o.height=o.width*u,e.editComponent.imageHeight=o.height}}})},{deep:!0});const y=()=>{e.editComponent.list.push({id:e.generateRandom(),imageUrl:"",imgWidth:0,imgHeight:0,link:{name:""}})},v=W();return j(()=>{L(()=>{const i=B.create(v.value,{group:"item-wrap",animation:200,onEnd:t=>{const o=e.editComponent.list[t.oldIndex];e.editComponent.list.splice(t.oldIndex,1),e.editComponent.list.splice(t.newIndex,0,o),i.sort(F(e.editComponent.list.length).map(s=>s.toString()))}})})}),w({}),(i,t)=>{const o=R,s=$,m=U,u=S,V=I,k=z,E=N;return f(),h(C,null,[g(d("div",G,[d("div",J,[d("h3",K,b(a(l)("imageSet")),1),n(E,{"label-width":"80px",class:"px-[10px]"},{default:p(()=>[n(s,{label:a(l)("imageHeight"),class:"display-block"},{default:p(()=>[n(o,{modelValue:a(e).editComponent.imageHeight,"onUpdate:modelValue":t[0]||(t[0]=r=>a(e).editComponent.imageHeight=r),placeholder:a(l)("imageHeightPlaceholder"),clearable:"",maxlength:"10"},{append:p(()=>[x("px")]),_:1},8,["modelValue","placeholder"]),d("div",Q,b(a(l)("imageAdsTips")),1)]),_:1},8,["label"]),d("div",{ref_key:"imageBoxRef",ref:v},[(f(!0),h(C,null,M(a(e).editComponent.list,(r,H)=>(f(),h("div",{key:r.id,class:"item-wrap p-[10px] pb-0 relative border border-dashed border-gray-300 mb-[16px]"},[n(s,{label:a(l)("image")},{default:p(()=>[n(m,{modelValue:r.imageUrl,"onUpdate:modelValue":c=>r.imageUrl=c,limit:1},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["label"]),g(d("div",{class:"del absolute cursor-pointer z-[2] top-[-8px] right-[-8px]",onClick:c=>a(e).editComponent.list.splice(H,1)},[n(u,{name:"element-CircleCloseFilled",color:"#bbb",size:"20px"})],8,X),[[_,a(e).editComponent.list.length>1]]),n(s,{label:a(l)("link")},{default:p(()=>[n(V,{modelValue:r.link,"onUpdate:modelValue":c=>r.link=c},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["label"])]))),128))],512),g(n(k,{class:"w-full",onClick:y},{default:p(()=>[x(b(a(l)("addImageAd")),1)]),_:1},512),[[_,a(e).editComponent.list.length<10]])]),_:1})])],512),[[_,a(e).editTab=="content"]]),g(d("div",Y,[O(i.$slots,"style",{},void 0,!0)],512),[[_,a(e).editTab=="style"]])],64)}}});const ee=q(Z,[["__scopeId","data-v-8ccf7d77"]]),xe=Object.freeze(Object.defineProperty({__proto__:null,default:ee},Symbol.toStringTag,{value:"Module"}));export{xe as _};
|
||||
1
niucloud/public/admin/assets/edit-image-ads-f69cdf8b.js
Normal file
1
niucloud/public/admin/assets/edit-image-ads-f69cdf8b.js
Normal file
@ -0,0 +1 @@
|
||||
import"./base-962c0c23.js";/* empty css *//* empty css */import{_ as B}from"./index.vue_vue_type_script_setup_true_lang-12727745.js";import{B as F}from"./index-7525671c.js";import{_ as T}from"./index-f4731ae1.js";/* empty css */import{v as c}from"./event-ff03ec12.js";import{t as l}from"./index-105fbad0.js";import{S as A}from"./sortable.esm-be94e56d.js";import{d as R}from"./storage-abe718b1.js";import{u as $}from"./diy-f6b4263e.js";import{r as N}from"./range-5a416794.js";import{E as z}from"./index-93f2c618.js";import{a as D,E as P}from"./index-61c777fa.js";import{E as W}from"./index-bba9e58c.js";import{d as j,w as L,r as M,o as O,A as q,b as h,e as f,L as g,u as o,f as m,x as b,q as n,p as d,v as x,F as v,t as G,g as J}from"./runtime-core.esm-bundler-dc7a07d7.js";import{_ as K}from"./_plugin-vue_export-helper-c27b6911.js";const Q={class:"content-wrap"},X={class:"edit-attr-item-wrap"},Y={class:"mb-[10px]"},Z={class:"text-sm text-gray-400 mb-[10px]"},ee=["onClick"],te={class:"style-wrap"},oe=j({__name:"edit-image-ads",setup(ie,{expose:w}){const t=$();t.editComponent.ignore=[],t.editComponent.verify=a=>{var e={code:!0,message:""};return t.value[a].imageHeight==0?(e.code=!1,e.message=l("imageHeightPlaceholder"),e):/^\d+.?\d{0,2}$/.test(t.value[a].imageHeight)?(t.value[a].list.forEach(s=>{if(s.imageUrl==="")return e.code=!1,e.message=l("imageUrlTip"),e}),e):(e.code=!1,e.message=l("imageHeightRegNum"),e)},t.editComponent.list.forEach(a=>{a.id||(a.id=t.generateRandom())}),L(()=>t.editComponent.list,(a,e)=>{_()},{deep:!0});const y=()=>{t.editComponent.list.push({id:t.generateRandom(),imageUrl:"",imgWidth:0,imgHeight:0,link:{name:""}})},H=a=>{_(!0)},_=(a=!1)=>{t.editComponent.list.forEach((e,s)=>{let i=new Image;i.src=R(e.imageUrl),i.onload=async()=>{if(e.imgWidth=i.width,e.imgHeight=i.height,a&&s==0){var u=e.imgHeight/e.imgWidth;e.width=375,e.height=e.width*u,t.editComponent.imageHeight=e.height}}})},V=()=>{t.editComponent.imageHeight=parseFloat(t.editComponent.imageHeight).toFixed(2)},C=M();return O(()=>{q(()=>{const a=A.create(C.value,{group:"item-wrap",animation:200,onEnd:e=>{const s=t.editComponent.list[e.oldIndex];t.editComponent.list.splice(e.oldIndex,1),t.editComponent.list.splice(e.newIndex,0,s),a.sort(N(t.editComponent.list.length).map(i=>i.toString())),_(!0)}})})}),w({}),(a,e)=>{const s=z,i=D,u=T,k=F,I=B,E=W,S=P;return h(),f(v,null,[g(m("div",Q,[m("div",X,[m("h3",Y,b(o(l)("imageSet")),1),n(S,{"label-width":"80px",class:"px-[10px]"},{default:d(()=>[n(i,{label:o(l)("imageHeight"),class:"display-block"},{default:d(()=>[n(s,{modelValue:o(t).editComponent.imageHeight,"onUpdate:modelValue":e[0]||(e[0]=r=>o(t).editComponent.imageHeight=r),placeholder:o(l)("imageHeightPlaceholder"),clearable:"",maxlength:"10",onBlur:V},{append:d(()=>[x("px")]),_:1},8,["modelValue","placeholder"]),m("div",Z,b(o(l)("imageAdsTips")),1)]),_:1},8,["label"]),m("div",{ref_key:"imageBoxRef",ref:C},[(h(!0),f(v,null,G(o(t).editComponent.list,(r,U)=>(h(),f("div",{key:r.id,class:"item-wrap p-[10px] pb-0 relative border border-dashed border-gray-300 mb-[16px]"},[n(i,{label:o(l)("image")},{default:d(()=>[n(u,{modelValue:r.imageUrl,"onUpdate:modelValue":p=>r.imageUrl=p,limit:1,onChange:H},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["label"]),g(m("div",{class:"del absolute cursor-pointer z-[2] top-[-8px] right-[-8px]",onClick:p=>o(t).editComponent.list.splice(U,1)},[n(k,{name:"element-CircleCloseFilled",color:"#bbb",size:"20px"})],8,ee),[[c,o(t).editComponent.list.length>1]]),n(i,{label:o(l)("link")},{default:d(()=>[n(I,{modelValue:r.link,"onUpdate:modelValue":p=>r.link=p},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["label"])]))),128))],512),g(n(E,{class:"w-full",onClick:y},{default:d(()=>[x(b(o(l)("addImageAd")),1)]),_:1},512),[[c,o(t).editComponent.list.length<10]])]),_:1})])],512),[[c,o(t).editTab=="content"]]),g(m("div",te,[J(a.$slots,"style",{},void 0,!0)],512),[[c,o(t).editTab=="style"]])],64)}}});const ae=K(oe,[["__scopeId","data-v-553cf91a"]]),ye=Object.freeze(Object.defineProperty({__proto__:null,default:ae},Symbol.toStringTag,{value:"Module"}));export{ye as _};
|
||||
@ -1 +1 @@
|
||||
import{_ as o}from"./edit-label.vue_vue_type_script_setup_true_lang-d76b8ec1.js";import"./base-962c0c23.js";import"./runtime-core.esm-bundler-dc7a07d7.js";/* empty css */import"./el-overlay-60700377.js";import"./event-ff03ec12.js";import"./index-5d86eb33.js";import"./focus-trap-b8b5a003.js";/* empty css *//* empty css *//* empty css */import"./index-2af60c2e.js";import"./common-6291c908.js";import"./common-2cf17469.js";import"./member-eae88758.js";import"./index-5cfb4637.js";import"./vue-router-79053937.js";import"./el-radio-bfd4b1ad.js";import"./storage-abe718b1.js";import"./index-8bcaafa6.js";import"./index-bba9e58c.js";import"./index-93f2c618.js";import"./index-7a123a20.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./el-tooltip-58212670.js";import"./el-avatar-3bb47ce2.js";import"./index-d57cc47d.js";import"./index-61c777fa.js";import"./_Uint8Array-6ff3cafa.js";import"./_initCloneObject-28e6bdaa.js";import"./directive-c0c3e9a3.js";export{o as default};
|
||||
import{_ as o}from"./edit-label.vue_vue_type_script_setup_true_lang-e7d6a7c2.js";import"./base-962c0c23.js";import"./runtime-core.esm-bundler-dc7a07d7.js";/* empty css */import"./el-overlay-60700377.js";import"./event-ff03ec12.js";import"./index-5d86eb33.js";import"./focus-trap-b8b5a003.js";/* empty css *//* empty css *//* empty css */import"./index-105fbad0.js";import"./common-080b9b9f.js";import"./common-2cf17469.js";import"./member-21f99754.js";import"./index-7525671c.js";import"./vue-router-79053937.js";import"./el-radio-bfd4b1ad.js";import"./storage-abe718b1.js";import"./index-8bcaafa6.js";import"./index-bba9e58c.js";import"./index-93f2c618.js";import"./index-7a123a20.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./el-tooltip-58212670.js";import"./el-avatar-3bb47ce2.js";import"./index-d57cc47d.js";import"./index-61c777fa.js";import"./_Uint8Array-6ff3cafa.js";import"./_initCloneObject-28e6bdaa.js";import"./directive-c0c3e9a3.js";export{o as default};
|
||||
@ -1 +1 @@
|
||||
import"./base-962c0c23.js";/* empty css */import{E as B}from"./el-overlay-60700377.js";/* empty css *//* empty css *//* empty css */import{t as a}from"./index-2af60c2e.js";import{u as C,s as O,t as P}from"./member-eae88758.js";import{E as R}from"./index-93f2c618.js";import{a as U,E as I}from"./index-61c777fa.js";import{E as T}from"./index-bba9e58c.js";import{v as j}from"./directive-c0c3e9a3.js";import{d as k,r as c,M as q,c as S,b as g,m as V,p as n,f as $,q as i,i as w,v as y,x as h,u as t,L as z}from"./runtime-core.esm-bundler-dc7a07d7.js";const A={class:"dialog-footer"},se=k({__name:"edit-label",emits:["complete"],setup(G,{expose:E,emit:x}){let s=c(!1);const m=c(!1);let p="";const b={label_id:"",label_name:"",memo:"",sort:0},o=q({...b}),_=c(),D=S(()=>({label_name:[{required:!0,message:a("labelNamePlaceholder"),trigger:"blur"}],sort:[{validator:L,trigger:"blur"}]})),L=(d,e,l)=>{e<0?l(new Error(a("sortVerifyOne"))):e.toString().indexOf(".")!=-1?l(new Error(a("sortVerifyTwo"))):l()},M=async d=>{if(m.value||!d)return;let e=o.label_id?C:O;await d.validate(async l=>{l&&(m.value=!0,e(o).then(f=>{m.value=!1,s.value=!1,x("complete")}).catch(f=>{m.value=!1}))})};return E({showDialog:s,setFormData:async(d=null)=>{if(m.value=!0,Object.assign(o,b),p=a("addMemberLabel"),d){p=a("updateMemberLabel");const e=await(await P(d.label_id)).data;e&&Object.keys(o).forEach(l=>{e[l]!=null&&(o[l]=e[l])})}m.value=!1}}),(d,e)=>{const l=R,u=U,f=I,v=T,N=B,F=j;return g(),V(N,{modelValue:t(s),"onUpdate:modelValue":e[5]||(e[5]=r=>w(s)?s.value=r:s=r),title:t(p),width:"500px","destroy-on-close":!0},{footer:n(()=>[$("span",A,[i(v,{onClick:e[3]||(e[3]=r=>w(s)?s.value=!1:s=!1)},{default:n(()=>[y(h(t(a)("cancel")),1)]),_:1}),i(v,{type:"primary",loading:m.value,onClick:e[4]||(e[4]=r=>M(_.value))},{default:n(()=>[y(h(t(a)("confirm")),1)]),_:1},8,["loading"])])]),default:n(()=>[z((g(),V(f,{model:o,"label-width":"90px",ref_key:"formRef",ref:_,rules:t(D),class:"page-form"},{default:n(()=>[i(u,{label:t(a)("labelName"),prop:"label_name"},{default:n(()=>[i(l,{modelValue:o.label_name,"onUpdate:modelValue":e[0]||(e[0]=r=>o.label_name=r),clearable:"",placeholder:t(a)("labelNamePlaceholder"),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),i(u,{label:t(a)("memo")},{default:n(()=>[i(l,{modelValue:o.memo,"onUpdate:modelValue":e[1]||(e[1]=r=>o.memo=r),type:"textarea",rows:"4",clearable:"",placeholder:t(a)("memoPlaceholder"),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),i(u,{label:t(a)("sort"),prop:"sort"},{default:n(()=>[i(l,{modelValue:o.sort,"onUpdate:modelValue":e[2]||(e[2]=r=>o.sort=r),clearable:"",placeholder:t(a)("sortPlaceholder"),class:"input-width",type:"number"},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","rules"])),[[F,m.value]])]),_:1},8,["modelValue","title"])}}});export{se as _};
|
||||
import"./base-962c0c23.js";/* empty css */import{E as B}from"./el-overlay-60700377.js";/* empty css *//* empty css *//* empty css */import{t as a}from"./index-105fbad0.js";import{u as C,s as O,t as P}from"./member-21f99754.js";import{E as R}from"./index-93f2c618.js";import{a as U,E as I}from"./index-61c777fa.js";import{E as T}from"./index-bba9e58c.js";import{v as j}from"./directive-c0c3e9a3.js";import{d as k,r as c,M as q,c as S,b as g,m as V,p as n,f as $,q as i,i as w,v as y,x as h,u as t,L as z}from"./runtime-core.esm-bundler-dc7a07d7.js";const A={class:"dialog-footer"},se=k({__name:"edit-label",emits:["complete"],setup(G,{expose:E,emit:x}){let s=c(!1);const m=c(!1);let p="";const b={label_id:"",label_name:"",memo:"",sort:0},o=q({...b}),_=c(),D=S(()=>({label_name:[{required:!0,message:a("labelNamePlaceholder"),trigger:"blur"}],sort:[{validator:L,trigger:"blur"}]})),L=(d,e,l)=>{e<0?l(new Error(a("sortVerifyOne"))):e.toString().indexOf(".")!=-1?l(new Error(a("sortVerifyTwo"))):l()},M=async d=>{if(m.value||!d)return;let e=o.label_id?C:O;await d.validate(async l=>{l&&(m.value=!0,e(o).then(f=>{m.value=!1,s.value=!1,x("complete")}).catch(f=>{m.value=!1}))})};return E({showDialog:s,setFormData:async(d=null)=>{if(m.value=!0,Object.assign(o,b),p=a("addMemberLabel"),d){p=a("updateMemberLabel");const e=await(await P(d.label_id)).data;e&&Object.keys(o).forEach(l=>{e[l]!=null&&(o[l]=e[l])})}m.value=!1}}),(d,e)=>{const l=R,u=U,f=I,v=T,N=B,F=j;return g(),V(N,{modelValue:t(s),"onUpdate:modelValue":e[5]||(e[5]=r=>w(s)?s.value=r:s=r),title:t(p),width:"500px","destroy-on-close":!0},{footer:n(()=>[$("span",A,[i(v,{onClick:e[3]||(e[3]=r=>w(s)?s.value=!1:s=!1)},{default:n(()=>[y(h(t(a)("cancel")),1)]),_:1}),i(v,{type:"primary",loading:m.value,onClick:e[4]||(e[4]=r=>M(_.value))},{default:n(()=>[y(h(t(a)("confirm")),1)]),_:1},8,["loading"])])]),default:n(()=>[z((g(),V(f,{model:o,"label-width":"90px",ref_key:"formRef",ref:_,rules:t(D),class:"page-form"},{default:n(()=>[i(u,{label:t(a)("labelName"),prop:"label_name"},{default:n(()=>[i(l,{modelValue:o.label_name,"onUpdate:modelValue":e[0]||(e[0]=r=>o.label_name=r),clearable:"",placeholder:t(a)("labelNamePlaceholder"),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),i(u,{label:t(a)("memo")},{default:n(()=>[i(l,{modelValue:o.memo,"onUpdate:modelValue":e[1]||(e[1]=r=>o.memo=r),type:"textarea",rows:"4",clearable:"",placeholder:t(a)("memoPlaceholder"),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),i(u,{label:t(a)("sort"),prop:"sort"},{default:n(()=>[i(l,{modelValue:o.sort,"onUpdate:modelValue":e[2]||(e[2]=r=>o.sort=r),clearable:"",placeholder:t(a)("sortPlaceholder"),class:"input-width",type:"number"},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","rules"])),[[F,m.value]])]),_:1},8,["modelValue","title"])}}});export{se as _};
|
||||
@ -1 +1 @@
|
||||
import{_ as o}from"./edit-member.vue_vue_type_script_setup_true_lang-806e3341.js";import"./base-962c0c23.js";import"./runtime-core.esm-bundler-dc7a07d7.js";/* empty css */import"./el-overlay-60700377.js";import"./event-ff03ec12.js";import"./index-5d86eb33.js";import"./focus-trap-b8b5a003.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index-5cfb4637.js";import"./vue-router-79053937.js";import"./index-2af60c2e.js";import"./common-6291c908.js";import"./common-2cf17469.js";import"./el-radio-bfd4b1ad.js";import"./storage-abe718b1.js";import"./index-8bcaafa6.js";import"./index-bba9e58c.js";import"./index-93f2c618.js";import"./index-7a123a20.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./el-tooltip-58212670.js";import"./el-avatar-3bb47ce2.js";import"./index-d57cc47d.js";/* empty css */import"./index-c88476dc.js";/* empty css */import"./index.vue_vue_type_style_index_0_lang-d0142cd9.js";import"./attachment-7b90a6f4.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index-e1e81893.js";import"./sys-451b2f0d.js";import"./index-50a00d09.js";import"./index-a9dd5cf5.js";import"./index-6a89175f.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"./index-61c777fa.js";import"./_initCloneObject-28e6bdaa.js";import"./directive-c0c3e9a3.js";import"./member-eae88758.js";import"./index-2f8bd49f.js";import"./index-179d7e6f.js";export{o as default};
|
||||
import{_ as o}from"./edit-member.vue_vue_type_script_setup_true_lang-bc5a8942.js";import"./base-962c0c23.js";import"./runtime-core.esm-bundler-dc7a07d7.js";/* empty css */import"./el-overlay-60700377.js";import"./event-ff03ec12.js";import"./index-5d86eb33.js";import"./focus-trap-b8b5a003.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index-7525671c.js";import"./vue-router-79053937.js";import"./index-105fbad0.js";import"./common-080b9b9f.js";import"./common-2cf17469.js";import"./el-radio-bfd4b1ad.js";import"./storage-abe718b1.js";import"./index-8bcaafa6.js";import"./index-bba9e58c.js";import"./index-93f2c618.js";import"./index-7a123a20.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./el-tooltip-58212670.js";import"./el-avatar-3bb47ce2.js";import"./index-d57cc47d.js";/* empty css */import"./index-f4731ae1.js";/* empty css */import"./index.vue_vue_type_style_index_0_lang-d0d31f1b.js";import"./attachment-56217309.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"./index-61c777fa.js";import"./_initCloneObject-28e6bdaa.js";import"./directive-c0c3e9a3.js";import"./member-21f99754.js";import"./index-43ea62d5.js";import"./index-179d7e6f.js";export{o as default};
|
||||
@ -1 +1 @@
|
||||
import"./base-962c0c23.js";import{d as x}from"./index-5cfb4637.js";/* empty css *//* empty css *//* empty css */import{_ as g}from"./index-c88476dc.js";import{v as p}from"./event-ff03ec12.js";import{t as r}from"./index-2af60c2e.js";import{u as C}from"./diy-6cd3063b.js";import{a as h,E as y}from"./index-61c777fa.js";import{d as v,b as w,e as S,L as _,u as e,f as o,x as d,q as l,p as a,g as V,F as E}from"./runtime-core.esm-bundler-dc7a07d7.js";const U={class:"content-wrap"},k={class:"edit-attr-item-wrap"},F={class:"mb-[10px]"},B={class:"style-wrap"},D={class:"edit-attr-item-wrap"},T={class:"mb-[10px]"},j=v({__name:"edit-member-info",setup(N,{expose:c}){const t=C();return t.editComponent.ignore=[],c({}),(u,s)=>{const b=g,m=h,i=y,f=x;return w(),S(E,null,[_(o("div",U,[o("div",k,[o("h3",F,d(e(r)("memberStyle")),1),l(i,{"label-width":"80px",class:"px-[10px]"},{default:a(()=>[l(m,{label:e(r)("bgUrl")},{default:a(()=>[l(b,{modelValue:e(t).editComponent.bgUrl,"onUpdate:modelValue":s[0]||(s[0]=n=>e(t).editComponent.bgUrl=n),limit:1},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})])],512),[[p,e(t).editTab=="content"]]),_(o("div",B,[o("div",D,[o("h3",T,d(e(r)("memberStyle")),1),l(i,{"label-width":"80px",class:"px-[10px]"},{default:a(()=>[l(m,{label:e(r)("textColor")},{default:a(()=>[l(f,{modelValue:e(t).editComponent.textColor,"onUpdate:modelValue":s[1]||(s[1]=n=>e(t).editComponent.textColor=n)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),V(u.$slots,"style")],512),[[p,e(t).editTab=="style"]])],64)}}}),J=Object.freeze(Object.defineProperty({__proto__:null,default:j},Symbol.toStringTag,{value:"Module"}));export{J as _};
|
||||
import"./base-962c0c23.js";import{d as x}from"./index-7525671c.js";/* empty css *//* empty css *//* empty css */import{_ as g}from"./index-f4731ae1.js";import{v as p}from"./event-ff03ec12.js";import{t as r}from"./index-105fbad0.js";import{u as C}from"./diy-f6b4263e.js";import{a as h,E as y}from"./index-61c777fa.js";import{d as v,b as w,e as S,L as _,u as e,f as o,x as d,q as l,p as a,g as V,F as E}from"./runtime-core.esm-bundler-dc7a07d7.js";const U={class:"content-wrap"},k={class:"edit-attr-item-wrap"},F={class:"mb-[10px]"},B={class:"style-wrap"},D={class:"edit-attr-item-wrap"},T={class:"mb-[10px]"},j=v({__name:"edit-member-info",setup(N,{expose:c}){const t=C();return t.editComponent.ignore=[],c({}),(u,s)=>{const b=g,m=h,i=y,f=x;return w(),S(E,null,[_(o("div",U,[o("div",k,[o("h3",F,d(e(r)("memberStyle")),1),l(i,{"label-width":"80px",class:"px-[10px]"},{default:a(()=>[l(m,{label:e(r)("bgUrl")},{default:a(()=>[l(b,{modelValue:e(t).editComponent.bgUrl,"onUpdate:modelValue":s[0]||(s[0]=n=>e(t).editComponent.bgUrl=n),limit:1},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})])],512),[[p,e(t).editTab=="content"]]),_(o("div",B,[o("div",D,[o("h3",T,d(e(r)("memberStyle")),1),l(i,{"label-width":"80px",class:"px-[10px]"},{default:a(()=>[l(m,{label:e(r)("textColor")},{default:a(()=>[l(f,{modelValue:e(t).editComponent.textColor,"onUpdate:modelValue":s[1]||(s[1]=n=>e(t).editComponent.textColor=n)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),V(u.$slots,"style")],512),[[p,e(t).editTab=="style"]])],64)}}}),J=Object.freeze(Object.defineProperty({__proto__:null,default:j},Symbol.toStringTag,{value:"Module"}));export{J as _};
|
||||
@ -1 +1 @@
|
||||
import"./base-962c0c23.js";/* empty css */import{E as A}from"./el-overlay-60700377.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index-5cfb4637.js";import"./el-tooltip-58212670.js";/* empty css */import{_ as I}from"./index-c88476dc.js";import{t as o}from"./index-2af60c2e.js";import{v as R,w as q}from"./member-eae88758.js";import{a as O,E as $}from"./index-61c777fa.js";import{E as j}from"./index-93f2c618.js";import{E as z}from"./index-2f8bd49f.js";import{a as G,E as H}from"./index-b933df38.js";import{E as J}from"./index-bba9e58c.js";import{v as K}from"./directive-c0c3e9a3.js";import{d as Q,r as d,M as W,b as n,m as s,p as r,f as X,q as c,i as E,v as x,x as D,u as e,L as Z,C as _,e as F,F as w,t as L}from"./runtime-core.esm-bundler-dc7a07d7.js";const ee={class:"dialog-footer"},we=Q({__name:"edit-member",emits:["complete"],setup(le,{expose:M,emit:S}){let m=d(""),v=d(""),g=d(""),i=d(!1);const p=d(!1);let C=d([{id:0,name:o("secrecySex")},{id:1,name:o("manSex")},{id:2,name:o("girlSex")}]),y=d(null);(async()=>{y.value=await(await R()).data})();const t=W({...{headimg:"",nickname:"",member_label:"",sex:"",birthday:""}}),N=async u=>{p.value=!0;let l=d({member_id:g.value,field:m.value,value:t[m.value]});q(l.value).then(b=>{p.value=!1,i.value=!1,S("complete")}).catch(b=>{p.value=!1})};return M({showDialog:i,setDialogType:async(u=null)=>{p.value=!0,m.value=u.type,v.value=u.title,g.value=u.id,t[m.value]=u.data[m.value],m.value=="member_label"&&t[m.value]&&t[m.value].forEach((l,b)=>{t[m.value][b]=Number.parseFloat(l)}),p.value=!1}}),(u,l)=>{const b=I,f=O,U=j,B=z,V=G,h=H,P=$,k=J,T=A,Y=K;return n(),s(T,{modelValue:e(i),"onUpdate:modelValue":l[7]||(l[7]=a=>E(i)?i.value=a:i=a),title:e(v)||e(o)("updateMember"),width:"500px","destroy-on-close":!0},{footer:r(()=>[X("span",ee,[c(k,{onClick:l[5]||(l[5]=a=>E(i)?i.value=!1:i=!1)},{default:r(()=>[x(D(e(o)("cancel")),1)]),_:1}),c(k,{type:"primary",loading:p.value,onClick:l[6]||(l[6]=a=>N(u.formRef))},{default:r(()=>[x(D(e(o)("confirm")),1)]),_:1},8,["loading"])])]),default:r(()=>[Z((n(),s(P,{model:t,"label-width":"90px",rules:u.formRules,class:"page-form"},{default:r(()=>[e(m)=="headimg"?(n(),s(f,{key:0,label:e(o)("headimg")},{default:r(()=>[c(b,{modelValue:t.headimg,"onUpdate:modelValue":l[0]||(l[0]=a=>t.headimg=a)},null,8,["modelValue"])]),_:1},8,["label"])):_("",!0),e(m)=="nickname"?(n(),s(f,{key:1,label:e(o)("nickname")},{default:r(()=>[c(U,{modelValue:t.nickname,"onUpdate:modelValue":l[1]||(l[1]=a=>t.nickname=a),clearable:"",placeholder:e(o)("nickNamePlaceholder"),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"])):_("",!0),e(m)=="birthday"?(n(),s(f,{key:2,label:e(o)("birthday")},{default:r(()=>[c(B,{modelValue:t.birthday,"onUpdate:modelValue":l[2]||(l[2]=a=>t.birthday=a),"value-format":"YYYY-MM-DD",type:"date",placeholder:e(o)("birthdayTip")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])):_("",!0),e(m)=="sex"?(n(),s(f,{key:3,label:e(o)("sex")},{default:r(()=>[c(h,{modelValue:t.sex,"onUpdate:modelValue":l[3]||(l[3]=a=>t.sex=a),clearable:"",placeholder:e(o)("sexPlaceholder"),class:"input-width"},{default:r(()=>[(n(!0),F(w,null,L(e(C),a=>(n(),s(V,{label:a.name,value:a.id},null,8,["label","value"]))),256))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"])):_("",!0),e(m)=="member_label"?(n(),s(f,{key:4,label:e(o)("memberLabel")},{default:r(()=>[c(h,{modelValue:t.member_label,"onUpdate:modelValue":l[4]||(l[4]=a=>t.member_label=a),multiple:"","collapse-tags":"",placeholder:e(o)("memberLabelPlaceholder"),class:"input-width"},{default:r(()=>[(n(!0),F(w,null,L(e(y),a=>(n(),s(V,{label:a.label_name,value:a.label_id},null,8,["label","value"]))),256))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"])):_("",!0)]),_:1},8,["model","rules"])),[[Y,p.value]])]),_:1},8,["modelValue","title"])}}});export{we as _};
|
||||
import"./base-962c0c23.js";/* empty css */import{E as A}from"./el-overlay-60700377.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index-7525671c.js";import"./el-tooltip-58212670.js";/* empty css */import{_ as I}from"./index-f4731ae1.js";import{t as o}from"./index-105fbad0.js";import{v as R,w as q}from"./member-21f99754.js";import{a as O,E as $}from"./index-61c777fa.js";import{E as j}from"./index-93f2c618.js";import{E as z}from"./index-43ea62d5.js";import{a as G,E as H}from"./index-b933df38.js";import{E as J}from"./index-bba9e58c.js";import{v as K}from"./directive-c0c3e9a3.js";import{d as Q,r as d,M as W,b as n,m as s,p as r,f as X,q as c,i as E,v as x,x as D,u as e,L as Z,C as _,e as F,F as w,t as L}from"./runtime-core.esm-bundler-dc7a07d7.js";const ee={class:"dialog-footer"},we=Q({__name:"edit-member",emits:["complete"],setup(le,{expose:M,emit:S}){let m=d(""),v=d(""),g=d(""),i=d(!1);const p=d(!1);let C=d([{id:0,name:o("secrecySex")},{id:1,name:o("manSex")},{id:2,name:o("girlSex")}]),y=d(null);(async()=>{y.value=await(await R()).data})();const t=W({...{headimg:"",nickname:"",member_label:"",sex:"",birthday:""}}),N=async u=>{p.value=!0;let l=d({member_id:g.value,field:m.value,value:t[m.value]});q(l.value).then(b=>{p.value=!1,i.value=!1,S("complete")}).catch(b=>{p.value=!1})};return M({showDialog:i,setDialogType:async(u=null)=>{p.value=!0,m.value=u.type,v.value=u.title,g.value=u.id,t[m.value]=u.data[m.value],m.value=="member_label"&&t[m.value]&&t[m.value].forEach((l,b)=>{t[m.value][b]=Number.parseFloat(l)}),p.value=!1}}),(u,l)=>{const b=I,f=O,U=j,B=z,V=G,h=H,P=$,k=J,T=A,Y=K;return n(),s(T,{modelValue:e(i),"onUpdate:modelValue":l[7]||(l[7]=a=>E(i)?i.value=a:i=a),title:e(v)||e(o)("updateMember"),width:"500px","destroy-on-close":!0},{footer:r(()=>[X("span",ee,[c(k,{onClick:l[5]||(l[5]=a=>E(i)?i.value=!1:i=!1)},{default:r(()=>[x(D(e(o)("cancel")),1)]),_:1}),c(k,{type:"primary",loading:p.value,onClick:l[6]||(l[6]=a=>N(u.formRef))},{default:r(()=>[x(D(e(o)("confirm")),1)]),_:1},8,["loading"])])]),default:r(()=>[Z((n(),s(P,{model:t,"label-width":"90px",rules:u.formRules,class:"page-form"},{default:r(()=>[e(m)=="headimg"?(n(),s(f,{key:0,label:e(o)("headimg")},{default:r(()=>[c(b,{modelValue:t.headimg,"onUpdate:modelValue":l[0]||(l[0]=a=>t.headimg=a)},null,8,["modelValue"])]),_:1},8,["label"])):_("",!0),e(m)=="nickname"?(n(),s(f,{key:1,label:e(o)("nickname")},{default:r(()=>[c(U,{modelValue:t.nickname,"onUpdate:modelValue":l[1]||(l[1]=a=>t.nickname=a),clearable:"",placeholder:e(o)("nickNamePlaceholder"),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"])):_("",!0),e(m)=="birthday"?(n(),s(f,{key:2,label:e(o)("birthday")},{default:r(()=>[c(B,{modelValue:t.birthday,"onUpdate:modelValue":l[2]||(l[2]=a=>t.birthday=a),"value-format":"YYYY-MM-DD",type:"date",placeholder:e(o)("birthdayTip")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])):_("",!0),e(m)=="sex"?(n(),s(f,{key:3,label:e(o)("sex")},{default:r(()=>[c(h,{modelValue:t.sex,"onUpdate:modelValue":l[3]||(l[3]=a=>t.sex=a),clearable:"",placeholder:e(o)("sexPlaceholder"),class:"input-width"},{default:r(()=>[(n(!0),F(w,null,L(e(C),a=>(n(),s(V,{label:a.name,value:a.id},null,8,["label","value"]))),256))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"])):_("",!0),e(m)=="member_label"?(n(),s(f,{key:4,label:e(o)("memberLabel")},{default:r(()=>[c(h,{modelValue:t.member_label,"onUpdate:modelValue":l[4]||(l[4]=a=>t.member_label=a),multiple:"","collapse-tags":"",placeholder:e(o)("memberLabelPlaceholder"),class:"input-width"},{default:r(()=>[(n(!0),F(w,null,L(e(y),a=>(n(),s(V,{label:a.label_name,value:a.label_id},null,8,["label","value"]))),256))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"])):_("",!0)]),_:1},8,["model","rules"])),[[Y,p.value]])]),_:1},8,["modelValue","title"])}}});export{we as _};
|
||||
@ -1 +1 @@
|
||||
import{_ as o}from"./edit-menu.vue_vue_type_script_setup_true_lang-51d95eb9.js";import"./base-962c0c23.js";import"./runtime-core.esm-bundler-dc7a07d7.js";/* empty css */import"./el-overlay-60700377.js";import"./event-ff03ec12.js";import"./index-5d86eb33.js";import"./focus-trap-b8b5a003.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-58212670.js";/* empty css */import"./index-5cfb4637.js";import"./vue-router-79053937.js";import"./index-2af60c2e.js";import"./common-6291c908.js";import"./common-2cf17469.js";import"./el-radio-bfd4b1ad.js";import"./storage-abe718b1.js";import"./index-8bcaafa6.js";import"./index-bba9e58c.js";import"./index-93f2c618.js";import"./index-7a123a20.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./el-avatar-3bb47ce2.js";import"./index-d57cc47d.js";import"./index-e1e81893.js";/* empty css *//* empty css *//* empty css */import"./select-menu-item.vue_vue_type_script_setup_true_lang-430872c2.js";import"./index-b933df38.js";import"./index-4f5c40a5.js";import"./strings-4868a118.js";import"./isEqual-c7d5e6d9.js";import"./_Uint8Array-6ff3cafa.js";import"./sys-451b2f0d.js";import"./index-61c777fa.js";import"./_initCloneObject-28e6bdaa.js";import"./index-fb71f009.js";import"./index-179d7e6f.js";import"./directive-c0c3e9a3.js";export{o as default};
|
||||
import{_ as o}from"./edit-menu.vue_vue_type_script_setup_true_lang-730d2e64.js";import"./base-962c0c23.js";import"./runtime-core.esm-bundler-dc7a07d7.js";/* empty css */import"./el-overlay-60700377.js";import"./event-ff03ec12.js";import"./index-5d86eb33.js";import"./focus-trap-b8b5a003.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-58212670.js";/* empty css */import"./index-7525671c.js";import"./vue-router-79053937.js";import"./index-105fbad0.js";import"./common-080b9b9f.js";import"./common-2cf17469.js";import"./el-radio-bfd4b1ad.js";import"./storage-abe718b1.js";import"./index-8bcaafa6.js";import"./index-bba9e58c.js";import"./index-93f2c618.js";import"./index-7a123a20.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./el-avatar-3bb47ce2.js";import"./index-d57cc47d.js";import"./index-cc03da8f.js";/* empty css *//* empty css *//* empty css */import"./select-menu-item.vue_vue_type_script_setup_true_lang-430872c2.js";import"./index-b933df38.js";import"./index-4f5c40a5.js";import"./strings-4868a118.js";import"./isEqual-c7d5e6d9.js";import"./_Uint8Array-6ff3cafa.js";import"./sys-4abedf95.js";import"./index-61c777fa.js";import"./_initCloneObject-28e6bdaa.js";import"./index-fb71f009.js";import"./index-179d7e6f.js";import"./directive-c0c3e9a3.js";export{o as default};
|
||||
1
niucloud/public/admin/assets/edit-menu-85f477af.css
Normal file
1
niucloud/public/admin/assets/edit-menu-85f477af.css
Normal file
@ -0,0 +1 @@
|
||||
@font-face{font-family:iconfont;src:url(//at.alicdn.com/t/c/font_3883393_pwtqr51nps.woff2?t=1686032889350) format("woff2"),url(//at.alicdn.com/t/c/font_3883393_pwtqr51nps.woff?t=1686032889350) format("woff"),url(//at.alicdn.com/t/c/font_3883393_pwtqr51nps.ttf?t=1686032889350) format("truetype")}.iconfont{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.iconxiangyoujiantou:before{content:"\e660"}.iconxiangzuojiantou:before{content:"\e663"}.icondingdan:before{content:"\e61d"}.iconyingyongshichang1:before{content:"\e61c"}.iconyingyongshichang2:before{content:"\e60b"}.iconlingdang-xianxing:before{content:"\e8c0"}.icondianhua:before{content:"\e8c3"}.iconic_manage_assignprop:before{content:"\e60c"}.iconchengshi:before{content:"\ec70"}.icontaocanliebiao:before{content:"\e6b2"}.iconweixin:before{content:"\e647"}.iconhuiyuanguanli:before{content:"\e64c"}.iconhuangjinhuiyuan0101-copy:before{content:"\e621"}.iconhuiyuan1:before{content:"\e644"}.iconqianbao:before{content:"\e6ca"}.iconic_description_file24px:before{content:"\e61a"}.iconzhuangxiu1:before{content:"\e66b"}.icontuikuanjilu:before{content:"\e8cf"}.icongengxinhuancun:before{content:"\e686"}.iconsixingjiance:before{content:"\e645"}.iconzhuceshezhi:before{content:"\e6ad"}.iconmanage-apply:before{content:"\e619"}.iconyingyongguanli:before{content:"\e61f"}.iconkaifazheguanli:before{content:"\e624"}.iconlianmengguanli:before{content:"\e65f"}.icondianzan:before{content:"\ec7f"}.iconh5e:before{content:"\e654"}.iconyingyongshichang:before{content:"\e618"}.icondesktop:before{content:"\e6e8"}.iconzhifubao:before{content:"\e8e4"}.iconyunkongjian:before{content:"\e666"}.iconbankuai:before{content:"\e668"}.iconneirong2:before{content:"\e889"}.icon24gl-userGroup:before{content:"\eb26"}.icon14:before{content:"\e615"}.iconjubao:before{content:"\e611"}.iconbiaoti:before{content:"\e643"}.iconhuiyuanzhongxin:before{content:"\e692"}.iconfuzhukongbai1:before{content:"\e642"}.iconjiantoushang:before{content:"\e600"}.iconloader-line:before{content:"\e601"}.icondelete-line:before{content:"\e602"}.iconjiantouxia:before{content:"\e603"}.iconcopy-line:before{content:"\e605"}.icontuodong:before{content:"\e884"}.iconfuzhushuxian:before{content:"\e6f7"}.iconmofang:before{content:"\e6c4"}.iconshoudongxuanze:before{content:"\e6e1"}.iconyihangsange:before{content:"\e6d5"}.iconyihangsige:before{content:"\e6d6"}.iconyihangliangge:before{content:"\e6e2"}.iconyihang5ge:before{content:"\e6f3"}.icontupianguanggao1:before{content:"\e649"}.icontuwendaohang2:before{content:"\e65d"}.iconwenzhang:before{content:"\e662"}.icongudingzhanshi:before{content:"\e66e"}.icondanhanghuadong:before{content:"\e66f"}.icontuwendaohang3:before{content:"\e670"}.icontudaohang:before{content:"\e671"}.iconfenyehuadong:before{content:"\e673"}.iconwendaohang:before{content:"\e674"}.iconzhuangxiu:before{content:"\e627"}.icondianpuzhuangxiu:before{content:"\e616"}.icondibudaohang:before{content:"\e617"}.iconwangpuzhuangxiu:before{content:"\e881"}.iconweixingongzhonghao1:before{content:"\e705"}.iconweixingongzhonghaoguanli:before{content:"\e609"}.iconxiaochengxu:before{content:"\e635"}.icondenglu:before{content:"\e604"}.iconxiaochengxushezhi:before{content:"\e6b4"}.iconjifen:before{content:"\e70c"}.iconguanbi:before{content:"\e612"}.icondengluzhucemima:before{content:"\e67f"}.iconqiehuanjiaose:before{content:"\e60f"}.iconbanquan:before{content:"\e632"}.iconjifen-xianxing:before{content:"\e897"}.iconhuiyuanliebiao:before{content:"\e62c"}.iconjiaoseyonghu:before{content:"\e648"}.iconyonghu:before{content:"\e65e"}.iconbanquan1:before{content:"\e66d"}.iconweixingongzhonghao:before{content:"\e613"}.iconweixinxiaochengxu:before{content:"\e614"}.icon24gl-code:before{content:"\e9ba"}.icon24gl-portraitMalePlus2:before{content:"\eb25"}.iconyuandaima:before{content:"\e610"}.iconjiaoseguanli:before{content:"\e62d"}.iconjifen1:before{content:"\e641"}.iconbanquan2:before{content:"\e61b"}.iconjianpan:before{content:"\e661"}.icon24gf-playCircle:before{content:"\ea82"}.icontuichuquanping:before{content:"\e755"}.iconfanyi:before{content:"\e6fb"}.iconquanping:before{content:"\eb11"}.icon-item[data-v-27d4a2fd]{margin:6px 6px 6px 0}.active[data-v-27d4a2fd]{color:var(--el-color-primary)}
|
||||
@ -1 +0,0 @@
|
||||
@font-face{font-family:iconfont;src:url(//at.alicdn.com/t/c/font_3883393_pok9rb5nvbr.woff2?t=1685440441519) format("woff2"),url(//at.alicdn.com/t/c/font_3883393_pok9rb5nvbr.woff?t=1685440441519) format("woff"),url(//at.alicdn.com/t/c/font_3883393_pok9rb5nvbr.ttf?t=1685440441519) format("truetype")}.iconfont{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.iconyingyongshichang1:before{content:"\e61c"}.iconyingyongshichang2:before{content:"\e60b"}.iconlingdang-xianxing:before{content:"\e8c0"}.icondianhua:before{content:"\e8c3"}.iconic_manage_assignprop:before{content:"\e60c"}.iconchengshi:before{content:"\ec70"}.icontaocanliebiao:before{content:"\e6b2"}.iconweixin:before{content:"\e647"}.iconhuiyuanguanli:before{content:"\e64c"}.iconhuangjinhuiyuan0101-copy:before{content:"\e621"}.iconhuiyuan1:before{content:"\e644"}.iconqianbao:before{content:"\e6ca"}.iconic_description_file24px:before{content:"\e61a"}.iconzhuangxiu1:before{content:"\e66b"}.icontuikuanjilu:before{content:"\e8cf"}.icongengxinhuancun:before{content:"\e686"}.iconsixingjiance:before{content:"\e645"}.iconzhuceshezhi:before{content:"\e6ad"}.iconmanage-apply:before{content:"\e619"}.iconyingyongguanli:before{content:"\e61f"}.iconkaifazheguanli:before{content:"\e624"}.iconlianmengguanli:before{content:"\e65f"}.icondianzan:before{content:"\ec7f"}.iconh5e:before{content:"\e654"}.iconyingyongshichang:before{content:"\e618"}.icondesktop:before{content:"\e6e8"}.iconzhifubao:before{content:"\e8e4"}.iconyunkongjian:before{content:"\e666"}.iconbankuai:before{content:"\e668"}.iconneirong2:before{content:"\e889"}.icon24gl-userGroup:before{content:"\eb26"}.icon14:before{content:"\e615"}.iconjubao:before{content:"\e611"}.iconbiaoti:before{content:"\e643"}.iconhuiyuanzhongxin:before{content:"\e692"}.iconfuzhukongbai1:before{content:"\e642"}.iconjiantoushang:before{content:"\e600"}.iconloader-line:before{content:"\e601"}.icondelete-line:before{content:"\e602"}.iconjiantouxia:before{content:"\e603"}.iconcopy-line:before{content:"\e605"}.icontuodong:before{content:"\e884"}.iconfuzhushuxian:before{content:"\e6f7"}.iconmofang:before{content:"\e6c4"}.iconshoudongxuanze:before{content:"\e6e1"}.iconyihangsange:before{content:"\e6d5"}.iconyihangsige:before{content:"\e6d6"}.iconyihangliangge:before{content:"\e6e2"}.iconyihang5ge:before{content:"\e6f3"}.icontupianguanggao1:before{content:"\e649"}.icontuwendaohang2:before{content:"\e65d"}.iconwenzhang:before{content:"\e662"}.icongudingzhanshi:before{content:"\e66e"}.icondanhanghuadong:before{content:"\e66f"}.icontuwendaohang3:before{content:"\e670"}.icontudaohang:before{content:"\e671"}.iconfenyehuadong:before{content:"\e673"}.iconwendaohang:before{content:"\e674"}.iconzhuangxiu:before{content:"\e627"}.icondianpuzhuangxiu:before{content:"\e616"}.icondibudaohang:before{content:"\e617"}.iconwangpuzhuangxiu:before{content:"\e881"}.iconweixingongzhonghao1:before{content:"\e705"}.iconweixingongzhonghaoguanli:before{content:"\e609"}.iconxiaochengxu:before{content:"\e635"}.icondenglu:before{content:"\e604"}.iconxiaochengxushezhi:before{content:"\e6b4"}.iconjifen:before{content:"\e70c"}.iconguanbi:before{content:"\e612"}.icondengluzhucemima:before{content:"\e67f"}.iconqiehuanjiaose:before{content:"\e60f"}.iconbanquan:before{content:"\e632"}.iconjifen-xianxing:before{content:"\e897"}.iconhuiyuanliebiao:before{content:"\e62c"}.iconjiaoseyonghu:before{content:"\e648"}.iconyonghu:before{content:"\e65e"}.iconbanquan1:before{content:"\e66d"}.iconweixingongzhonghao:before{content:"\e613"}.iconweixinxiaochengxu:before{content:"\e614"}.icon24gl-code:before{content:"\e9ba"}.icon24gl-portraitMalePlus2:before{content:"\eb25"}.iconyuandaima:before{content:"\e610"}.iconjiaoseguanli:before{content:"\e62d"}.iconjifen1:before{content:"\e641"}.iconbanquan2:before{content:"\e61b"}.iconjianpan:before{content:"\e661"}.icon24gf-playCircle:before{content:"\ea82"}.icontuichuquanping:before{content:"\e755"}.iconfanyi:before{content:"\e6fb"}.iconquanping:before{content:"\eb11"}.icon-item[data-v-27d4a2fd]{margin:6px 6px 6px 0}.active[data-v-27d4a2fd]{color:var(--el-color-primary)}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
import"./base-962c0c23.js";/* empty css *//* empty css *//* empty css */import"./el-tooltip-58212670.js";import{_ as x}from"./index-c88476dc.js";import{s as V,d as S}from"./index-5cfb4637.js";/* empty css *//* empty css */import{v as _}from"./event-ff03ec12.js";import{t as a}from"./index-2af60c2e.js";import{u as v}from"./diy-6cd3063b.js";import{d as y}from"./storage-abe718b1.js";import{E}from"./index-93f2c618.js";import{a as U,E as C}from"./index-61c777fa.js";import{E as B}from"./index-3220fc45.js";import{d as k,w as F,b as N,e as T,L as b,u as l,f as i,x as p,q as o,p as r,F as z}from"./runtime-core.esm-bundler-dc7a07d7.js";const D={class:"content-wrap"},I={class:"edit-attr-item-wrap"},P={class:"mb-[10px]"},j={class:"text-sm text-gray-400"},O={class:"style-wrap"},q={class:"edit-attr-item-wrap"},H={class:"mb-[10px]"},L={class:"edit-attr-item-wrap"},M={class:"mb-[10px]"},W=k({__name:"edit-page",setup(A,{expose:c}){const e=v();return F(()=>e.global.bgUrl,(g,t)=>{let m=new Image;m.src=y(e.global.bgUrl),m.onload=async()=>{e.global.imgWidth=m.width,e.global.imgHeight=m.height}}),c({}),(g,t)=>{const m=E,n=U,u=V,d=C,h=S,f=x,w=B;return N(),T(z,null,[b(i("div",D,[i("div",I,[i("h3",P,p(l(a)("pageContent")),1),o(d,{"label-width":"80px",class:"px-[10px]"},{default:r(()=>[o(n,{label:l(a)("pageName")},{default:r(()=>[o(m,{modelValue:l(e).global.title,"onUpdate:modelValue":t[0]||(t[0]=s=>l(e).global.title=s),placeholder:l(a)("pageNamePlaceholder"),clearable:"",maxlength:"12","show-word-limit":""},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),o(n,{label:l(a)("tabbar"),class:"display-block"},{default:r(()=>[o(u,{modelValue:l(e).global.tabbarSwitch,"onUpdate:modelValue":t[1]||(t[1]=s=>l(e).global.tabbarSwitch=s)},null,8,["modelValue"]),i("div",j,p(l(a)("tabbarSwitchTips")),1)]),_:1},8,["label"])]),_:1})])],512),[[_,l(e).editTab=="content"]]),b(i("div",O,[i("div",q,[i("h3",H,p(l(a)("pageStyle")),1),o(d,{"label-width":"80px",class:"px-[10px]"},{default:r(()=>[o(n,{label:l(a)("pageBgColor")},{default:r(()=>[o(h,{modelValue:l(e).global.pageBgColor,"onUpdate:modelValue":t[2]||(t[2]=s=>l(e).global.pageBgColor=s),"show-alpha":"",predefine:l(e).predefineColors},null,8,["modelValue","predefine"])]),_:1},8,["label"]),o(n,{label:l(a)("bgUrl")},{default:r(()=>[o(f,{modelValue:l(e).global.bgUrl,"onUpdate:modelValue":t[3]||(t[3]=s=>l(e).global.bgUrl=s),limit:1},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),i("div",L,[i("h3",M,p(l(a)("marginSet")),1),o(d,{"label-width":"80px",class:"px-[10px]"},{default:r(()=>[o(n,{label:l(a)("marginBoth")},{default:r(()=>[o(w,{modelValue:l(e).global.template.margin.both,"onUpdate:modelValue":t[4]||(t[4]=s=>l(e).global.template.margin.both=s),"show-input":"",size:"small",class:"ml-[10px] horz-blank-slider"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})])],512),[[_,l(e).editTab=="style"]])],64)}}}),ml=Object.freeze(Object.defineProperty({__proto__:null,default:W},Symbol.toStringTag,{value:"Module"}));export{ml as _};
|
||||
import"./base-962c0c23.js";/* empty css *//* empty css *//* empty css */import"./el-tooltip-58212670.js";import{_ as x}from"./index-f4731ae1.js";import{s as V,d as S}from"./index-7525671c.js";/* empty css *//* empty css */import{v as _}from"./event-ff03ec12.js";import{t as a}from"./index-105fbad0.js";import{u as v}from"./diy-f6b4263e.js";import{d as y}from"./storage-abe718b1.js";import{E}from"./index-93f2c618.js";import{a as U,E as C}from"./index-61c777fa.js";import{E as B}from"./index-3220fc45.js";import{d as k,w as F,b as N,e as T,L as b,u as l,f as i,x as p,q as o,p as r,F as z}from"./runtime-core.esm-bundler-dc7a07d7.js";const D={class:"content-wrap"},I={class:"edit-attr-item-wrap"},P={class:"mb-[10px]"},j={class:"text-sm text-gray-400"},O={class:"style-wrap"},q={class:"edit-attr-item-wrap"},H={class:"mb-[10px]"},L={class:"edit-attr-item-wrap"},M={class:"mb-[10px]"},W=k({__name:"edit-page",setup(A,{expose:c}){const e=v();return F(()=>e.global.bgUrl,(g,t)=>{let m=new Image;m.src=y(e.global.bgUrl),m.onload=async()=>{e.global.imgWidth=m.width,e.global.imgHeight=m.height}}),c({}),(g,t)=>{const m=E,n=U,u=V,d=C,h=S,f=x,w=B;return N(),T(z,null,[b(i("div",D,[i("div",I,[i("h3",P,p(l(a)("pageContent")),1),o(d,{"label-width":"80px",class:"px-[10px]"},{default:r(()=>[o(n,{label:l(a)("pageName")},{default:r(()=>[o(m,{modelValue:l(e).global.title,"onUpdate:modelValue":t[0]||(t[0]=s=>l(e).global.title=s),placeholder:l(a)("pageNamePlaceholder"),clearable:"",maxlength:"12","show-word-limit":""},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),o(n,{label:l(a)("tabbar"),class:"display-block"},{default:r(()=>[o(u,{modelValue:l(e).global.tabbarSwitch,"onUpdate:modelValue":t[1]||(t[1]=s=>l(e).global.tabbarSwitch=s)},null,8,["modelValue"]),i("div",j,p(l(a)("tabbarSwitchTips")),1)]),_:1},8,["label"])]),_:1})])],512),[[_,l(e).editTab=="content"]]),b(i("div",O,[i("div",q,[i("h3",H,p(l(a)("pageStyle")),1),o(d,{"label-width":"80px",class:"px-[10px]"},{default:r(()=>[o(n,{label:l(a)("pageBgColor")},{default:r(()=>[o(h,{modelValue:l(e).global.pageBgColor,"onUpdate:modelValue":t[2]||(t[2]=s=>l(e).global.pageBgColor=s),"show-alpha":"",predefine:l(e).predefineColors},null,8,["modelValue","predefine"])]),_:1},8,["label"]),o(n,{label:l(a)("bgUrl")},{default:r(()=>[o(f,{modelValue:l(e).global.bgUrl,"onUpdate:modelValue":t[3]||(t[3]=s=>l(e).global.bgUrl=s),limit:1},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),i("div",L,[i("h3",M,p(l(a)("marginSet")),1),o(d,{"label-width":"80px",class:"px-[10px]"},{default:r(()=>[o(n,{label:l(a)("marginBoth")},{default:r(()=>[o(w,{modelValue:l(e).global.template.margin.both,"onUpdate:modelValue":t[4]||(t[4]=s=>l(e).global.template.margin.both=s),"show-input":"",size:"small",class:"ml-[10px] horz-blank-slider"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})])],512),[[_,l(e).editTab=="style"]])],64)}}}),ml=Object.freeze(Object.defineProperty({__proto__:null,default:W},Symbol.toStringTag,{value:"Module"}));export{ml as _};
|
||||
@ -1 +1 @@
|
||||
import{_ as o}from"./edit-role.vue_vue_type_script_setup_true_async_true_lang-ba4bf7c1.js";import"./base-962c0c23.js";import"./runtime-core.esm-bundler-dc7a07d7.js";/* empty css */import"./el-overlay-60700377.js";import"./event-ff03ec12.js";import"./index-5d86eb33.js";import"./focus-trap-b8b5a003.js";/* empty css */import"./index-5cfb4637.js";import"./vue-router-79053937.js";import"./index-2af60c2e.js";import"./common-6291c908.js";import"./common-2cf17469.js";/* empty css *//* empty css */import"./el-radio-bfd4b1ad.js";import"./storage-abe718b1.js";import"./index-8bcaafa6.js";import"./index-bba9e58c.js";import"./index-93f2c618.js";import"./index-7a123a20.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./el-tooltip-58212670.js";import"./el-avatar-3bb47ce2.js";import"./index-d57cc47d.js";/* empty css *//* empty css */import"./sys-451b2f0d.js";import"./index-61c777fa.js";import"./_Uint8Array-6ff3cafa.js";import"./_initCloneObject-28e6bdaa.js";import"./index-df51d91a.js";import"./isEqual-c7d5e6d9.js";import"./flatten-d5d1dc97.js";import"./index-e7f202ff.js";import"./directive-c0c3e9a3.js";export{o as default};
|
||||
import{_ as o}from"./edit-role.vue_vue_type_script_setup_true_async_true_lang-f55a5993.js";import"./base-962c0c23.js";import"./runtime-core.esm-bundler-dc7a07d7.js";/* empty css */import"./el-overlay-60700377.js";import"./event-ff03ec12.js";import"./index-5d86eb33.js";import"./focus-trap-b8b5a003.js";/* empty css */import"./index-7525671c.js";import"./vue-router-79053937.js";import"./index-105fbad0.js";import"./common-080b9b9f.js";import"./common-2cf17469.js";/* empty css *//* empty css */import"./el-radio-bfd4b1ad.js";import"./storage-abe718b1.js";import"./index-8bcaafa6.js";import"./index-bba9e58c.js";import"./index-93f2c618.js";import"./index-7a123a20.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./el-tooltip-58212670.js";import"./el-avatar-3bb47ce2.js";import"./index-d57cc47d.js";/* empty css *//* empty css */import"./sys-4abedf95.js";import"./index-61c777fa.js";import"./_Uint8Array-6ff3cafa.js";import"./_initCloneObject-28e6bdaa.js";import"./index-df51d91a.js";import"./isEqual-c7d5e6d9.js";import"./flatten-d5d1dc97.js";import"./index-4c8d3076.js";import"./directive-c0c3e9a3.js";export{o as default};
|
||||
@ -1 +1 @@
|
||||
import"./base-962c0c23.js";/* empty css */import{E as G}from"./el-overlay-60700377.js";/* empty css */import"./index-5cfb4637.js";/* empty css *//* empty css *//* empty css */import{E as H,b as z}from"./el-radio-bfd4b1ad.js";/* empty css */import{t}from"./index-2af60c2e.js";import{l as J,n as Q,o as W,p as X}from"./sys-451b2f0d.js";import{h as Y}from"./storage-abe718b1.js";import{E as Z}from"./index-93f2c618.js";import{a as ee,E as le}from"./index-61c777fa.js";import{E as oe}from"./index-df51d91a.js";import{E as te}from"./index-bba9e58c.js";import{E as ae}from"./index-e7f202ff.js";import{E as se}from"./index-7a123a20.js";import{v as re}from"./directive-c0c3e9a3.js";import{d as ne,r as m,w as ue,af as ie,M as ce,c as de,b as D,m as N,p as u,f as w,q as s,v as h,x as b,u as r,L as me}from"./runtime-core.esm-bundler-dc7a07d7.js";const fe={class:"flex items-center justify-between w-11/12"},pe={class:"dialog-footer"},Te=ne({__name:"edit-role",emits:["complete"],setup(_e,{expose:O,emit:U}){const _=m(!1),d=m(!1),g=m(!0);let k="";const p=m([]);J().then(l=>{p.value=l.data});const v=m(!1),E=m(!1),f=m(null);ue(v,()=>{v.value?f.value.setCheckedNodes(ie(p.value)):f.value.setCheckedNodes([])});const F=Y(l=>{a.rules=f.value.getCheckedKeys()}),S=()=>{g.value?(y(p.value),g.value=!1):(B(p.value),g.value=!0)},B=l=>{Object.keys(l).forEach(e=>{f.value.store.nodesMap[l[e].menu_key].expanded=!0,l[e].children&&l[e].children.length>0&&y(l[e].children)})},y=l=>{Object.keys(l).forEach(e=>{f.value.store.nodesMap[l[e].menu_key].expanded=!1,l[e].children&&l[e].children.length>0&&y(l[e].children)})},x={role_id:0,role_name:"",status:1,rules:[]},a=ce({...x}),C=m(),M=de(()=>({role_name:[{required:!0,message:t("roleNamePlaceholder"),trigger:"blur"}],rules:[{validator:(l,e,o)=>{e.length?o():o(new Error(t("rulesPlaceholder")))},trigger:"blur"}]})),T=async l=>{if(d.value||!l)return;const e=a.role_id?Q:W;await l.validate(async o=>{if(o){d.value=!0;const i=Object.assign({},a);i.rules=i.rules.concat(f.value.getHalfCheckedKeys()),e(i).then(n=>{d.value=!1,_.value=!1,U("complete")}).catch(()=>{d.value=!1})}})},A=async(l=null)=>{if(d.value=!0,v.value=!1,Object.assign(a,x),k=t("addRole"),l){k=t("updateRole");const e=await(await X(l.role_id)).data;Object.keys(a).forEach(o=>{if(e[o]!=null)if(o=="rules"){e.rules;var i=[];Object.keys(e.rules).forEach(n=>{R(e.rules[n],p.value,i)}),a[o]=i}else a[o]=e[o]})}d.value=!1};function R(l,e,o){Object.keys(e).forEach(i=>{let n=e[i];n.menu_key==l?(!n.children||n.children.length==0)&&o.push(n.menu_key):n.children&&n.children.length>0&&R(l,n.children,o)})}return O({showDialog:_,setFormData:A}),(l,e)=>{const o=Z,i=ee,n=H,I=z,j=oe,V=te,P=ae,$=se,q=le,K=G,L=re;return D(),N(K,{modelValue:_.value,"onUpdate:modelValue":e[7]||(e[7]=c=>_.value=c),title:r(k),width:"500px","destroy-on-close":!0},{footer:u(()=>[w("span",pe,[s(V,{onClick:e[5]||(e[5]=c=>_.value=!1)},{default:u(()=>[h(b(r(t)("cancel")),1)]),_:1}),s(V,{type:"primary",loading:d.value,onClick:e[6]||(e[6]=c=>T(C.value))},{default:u(()=>[h(b(r(t)("confirm")),1)]),_:1},8,["loading"])])]),default:u(()=>[me((D(),N(q,{model:a,"label-width":"90px",ref_key:"formRef",ref:C,rules:r(M),class:"page-form"},{default:u(()=>[s(i,{label:r(t)("roleName"),prop:"role_name"},{default:u(()=>[s(o,{modelValue:a.role_name,"onUpdate:modelValue":e[0]||(e[0]=c=>a.role_name=c),placeholder:r(t)("roleNamePlaceholder"),clearable:"",disabled:a.uid,class:"input-width",maxlength:"10","show-word-limit":!0},null,8,["modelValue","placeholder","disabled"])]),_:1},8,["label"]),s(i,{label:r(t)("status")},{default:u(()=>[s(I,{modelValue:a.status,"onUpdate:modelValue":e[1]||(e[1]=c=>a.status=c)},{default:u(()=>[s(n,{label:1},{default:u(()=>[h(b(r(t)("startUsing")),1)]),_:1}),s(n,{label:0},{default:u(()=>[h(b(r(t)("statusDeactivate")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"]),s(i,{label:r(t)("permission"),prop:"rules"},{default:u(()=>[w("div",fe,[w("div",null,[s(j,{modelValue:v.value,"onUpdate:modelValue":e[2]||(e[2]=c=>v.value=c),label:r(t)("selectAll")},null,8,["modelValue","label"]),s(j,{modelValue:E.value,"onUpdate:modelValue":e[3]||(e[3]=c=>E.value=c),label:r(t)("checkStrictly")},null,8,["modelValue","label"])]),s(V,{link:"",type:"primary",onClick:e[4]||(e[4]=c=>S())},{default:u(()=>[h(b(r(t)("foldText")),1)]),_:1})]),s($,{height:"35vh",class:"w-full"},{default:u(()=>[s(P,{data:p.value,props:{label:"menu_name"},"default-checked-keys":a.rules,"check-strictly":E.value,"show-checkbox":"","default-expand-all":"",onCheckChange:r(F),"node-key":"menu_key",ref_key:"treeRef",ref:f},null,8,["data","default-checked-keys","check-strictly","onCheckChange"])]),_:1})]),_:1},8,["label"])]),_:1},8,["model","rules"])),[[L,d.value]])]),_:1},8,["modelValue","title"])}}});export{Te as _};
|
||||
import"./base-962c0c23.js";/* empty css */import{E as G}from"./el-overlay-60700377.js";/* empty css */import"./index-7525671c.js";/* empty css *//* empty css *//* empty css */import{E as H,b as z}from"./el-radio-bfd4b1ad.js";/* empty css */import{t}from"./index-105fbad0.js";import{l as J,n as Q,o as W,p as X}from"./sys-4abedf95.js";import{h as Y}from"./storage-abe718b1.js";import{E as Z}from"./index-93f2c618.js";import{a as ee,E as le}from"./index-61c777fa.js";import{E as oe}from"./index-df51d91a.js";import{E as te}from"./index-bba9e58c.js";import{E as ae}from"./index-4c8d3076.js";import{E as se}from"./index-7a123a20.js";import{v as re}from"./directive-c0c3e9a3.js";import{d as ne,r as m,w as ue,af as ie,M as ce,c as de,b as D,m as N,p as u,f as w,q as s,v as h,x as b,u as r,L as me}from"./runtime-core.esm-bundler-dc7a07d7.js";const fe={class:"flex items-center justify-between w-11/12"},pe={class:"dialog-footer"},Te=ne({__name:"edit-role",emits:["complete"],setup(_e,{expose:O,emit:U}){const _=m(!1),d=m(!1),g=m(!0);let k="";const p=m([]);J().then(l=>{p.value=l.data});const v=m(!1),E=m(!1),f=m(null);ue(v,()=>{v.value?f.value.setCheckedNodes(ie(p.value)):f.value.setCheckedNodes([])});const F=Y(l=>{a.rules=f.value.getCheckedKeys()}),S=()=>{g.value?(y(p.value),g.value=!1):(B(p.value),g.value=!0)},B=l=>{Object.keys(l).forEach(e=>{f.value.store.nodesMap[l[e].menu_key].expanded=!0,l[e].children&&l[e].children.length>0&&y(l[e].children)})},y=l=>{Object.keys(l).forEach(e=>{f.value.store.nodesMap[l[e].menu_key].expanded=!1,l[e].children&&l[e].children.length>0&&y(l[e].children)})},x={role_id:0,role_name:"",status:1,rules:[]},a=ce({...x}),C=m(),M=de(()=>({role_name:[{required:!0,message:t("roleNamePlaceholder"),trigger:"blur"}],rules:[{validator:(l,e,o)=>{e.length?o():o(new Error(t("rulesPlaceholder")))},trigger:"blur"}]})),T=async l=>{if(d.value||!l)return;const e=a.role_id?Q:W;await l.validate(async o=>{if(o){d.value=!0;const i=Object.assign({},a);i.rules=i.rules.concat(f.value.getHalfCheckedKeys()),e(i).then(n=>{d.value=!1,_.value=!1,U("complete")}).catch(()=>{d.value=!1})}})},A=async(l=null)=>{if(d.value=!0,v.value=!1,Object.assign(a,x),k=t("addRole"),l){k=t("updateRole");const e=await(await X(l.role_id)).data;Object.keys(a).forEach(o=>{if(e[o]!=null)if(o=="rules"){e.rules;var i=[];Object.keys(e.rules).forEach(n=>{R(e.rules[n],p.value,i)}),a[o]=i}else a[o]=e[o]})}d.value=!1};function R(l,e,o){Object.keys(e).forEach(i=>{let n=e[i];n.menu_key==l?(!n.children||n.children.length==0)&&o.push(n.menu_key):n.children&&n.children.length>0&&R(l,n.children,o)})}return O({showDialog:_,setFormData:A}),(l,e)=>{const o=Z,i=ee,n=H,I=z,j=oe,V=te,P=ae,$=se,q=le,K=G,L=re;return D(),N(K,{modelValue:_.value,"onUpdate:modelValue":e[7]||(e[7]=c=>_.value=c),title:r(k),width:"500px","destroy-on-close":!0},{footer:u(()=>[w("span",pe,[s(V,{onClick:e[5]||(e[5]=c=>_.value=!1)},{default:u(()=>[h(b(r(t)("cancel")),1)]),_:1}),s(V,{type:"primary",loading:d.value,onClick:e[6]||(e[6]=c=>T(C.value))},{default:u(()=>[h(b(r(t)("confirm")),1)]),_:1},8,["loading"])])]),default:u(()=>[me((D(),N(q,{model:a,"label-width":"90px",ref_key:"formRef",ref:C,rules:r(M),class:"page-form"},{default:u(()=>[s(i,{label:r(t)("roleName"),prop:"role_name"},{default:u(()=>[s(o,{modelValue:a.role_name,"onUpdate:modelValue":e[0]||(e[0]=c=>a.role_name=c),placeholder:r(t)("roleNamePlaceholder"),clearable:"",disabled:a.uid,class:"input-width",maxlength:"10","show-word-limit":!0},null,8,["modelValue","placeholder","disabled"])]),_:1},8,["label"]),s(i,{label:r(t)("status")},{default:u(()=>[s(I,{modelValue:a.status,"onUpdate:modelValue":e[1]||(e[1]=c=>a.status=c)},{default:u(()=>[s(n,{label:1},{default:u(()=>[h(b(r(t)("startUsing")),1)]),_:1}),s(n,{label:0},{default:u(()=>[h(b(r(t)("statusDeactivate")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"]),s(i,{label:r(t)("permission"),prop:"rules"},{default:u(()=>[w("div",fe,[w("div",null,[s(j,{modelValue:v.value,"onUpdate:modelValue":e[2]||(e[2]=c=>v.value=c),label:r(t)("selectAll")},null,8,["modelValue","label"]),s(j,{modelValue:E.value,"onUpdate:modelValue":e[3]||(e[3]=c=>E.value=c),label:r(t)("checkStrictly")},null,8,["modelValue","label"])]),s(V,{link:"",type:"primary",onClick:e[4]||(e[4]=c=>S())},{default:u(()=>[h(b(r(t)("foldText")),1)]),_:1})]),s($,{height:"35vh",class:"w-full"},{default:u(()=>[s(P,{data:p.value,props:{label:"menu_name"},"default-checked-keys":a.rules,"check-strictly":E.value,"show-checkbox":"","default-expand-all":"",onCheckChange:r(F),"node-key":"menu_key",ref_key:"treeRef",ref:f},null,8,["data","default-checked-keys","check-strictly","onCheckChange"])]),_:1})]),_:1},8,["label"])]),_:1},8,["model","rules"])),[[L,d.value]])]),_:1},8,["modelValue","title"])}}});export{Te as _};
|
||||
@ -1 +1 @@
|
||||
import{_ as o}from"./edit-site.vue_vue_type_script_setup_true_lang-108339ba.js";import"./base-962c0c23.js";import"./runtime-core.esm-bundler-dc7a07d7.js";/* empty css */import"./el-overlay-60700377.js";import"./event-ff03ec12.js";import"./index-5d86eb33.js";import"./focus-trap-b8b5a003.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./index-5cfb4637.js";import"./vue-router-79053937.js";import"./index-2af60c2e.js";import"./common-6291c908.js";import"./common-2cf17469.js";import"./el-radio-bfd4b1ad.js";import"./storage-abe718b1.js";import"./index-8bcaafa6.js";import"./index-bba9e58c.js";import"./index-93f2c618.js";import"./index-7a123a20.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./el-tooltip-58212670.js";import"./el-avatar-3bb47ce2.js";import"./index-d57cc47d.js";/* empty css *//* empty css *//* empty css */import"./site-06e59c55.js";import"./index-61c777fa.js";import"./_Uint8Array-6ff3cafa.js";import"./_initCloneObject-28e6bdaa.js";import"./index-b933df38.js";import"./index-4f5c40a5.js";import"./strings-4868a118.js";import"./isEqual-c7d5e6d9.js";import"./index-2f8bd49f.js";import"./flatten-d5d1dc97.js";import"./index-179d7e6f.js";import"./directive-c0c3e9a3.js";export{o as default};
|
||||
import{_ as o}from"./edit-site.vue_vue_type_script_setup_true_lang-0aa58e1b.js";import"./base-962c0c23.js";import"./runtime-core.esm-bundler-dc7a07d7.js";/* empty css */import"./el-overlay-60700377.js";import"./event-ff03ec12.js";import"./index-5d86eb33.js";import"./focus-trap-b8b5a003.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./index-7525671c.js";import"./vue-router-79053937.js";import"./index-105fbad0.js";import"./common-080b9b9f.js";import"./common-2cf17469.js";import"./el-radio-bfd4b1ad.js";import"./storage-abe718b1.js";import"./index-8bcaafa6.js";import"./index-bba9e58c.js";import"./index-93f2c618.js";import"./index-7a123a20.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./el-tooltip-58212670.js";import"./el-avatar-3bb47ce2.js";import"./index-d57cc47d.js";/* empty css *//* empty css *//* empty css */import"./site-fd0c6646.js";import"./index-61c777fa.js";import"./_Uint8Array-6ff3cafa.js";import"./_initCloneObject-28e6bdaa.js";import"./index-b933df38.js";import"./index-4f5c40a5.js";import"./strings-4868a118.js";import"./isEqual-c7d5e6d9.js";import"./index-43ea62d5.js";import"./flatten-d5d1dc97.js";import"./index-179d7e6f.js";import"./directive-c0c3e9a3.js";export{o as default};
|
||||
File diff suppressed because one or more lines are too long
1
niucloud/public/admin/assets/edit-text-6ed236b2.js
Normal file
1
niucloud/public/admin/assets/edit-text-6ed236b2.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
import{_ as o}from"./edit-user.vue_vue_type_script_setup_true_lang-304dd841.js";import"./base-962c0c23.js";import"./runtime-core.esm-bundler-dc7a07d7.js";/* empty css */import"./el-overlay-60700377.js";import"./event-ff03ec12.js";import"./index-5d86eb33.js";import"./focus-trap-b8b5a003.js";/* empty css *//* empty css */import"./el-radio-bfd4b1ad.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./index-5cfb4637.js";import"./vue-router-79053937.js";import"./index-2af60c2e.js";import"./common-6291c908.js";import"./common-2cf17469.js";import"./storage-abe718b1.js";import"./index-8bcaafa6.js";import"./index-bba9e58c.js";import"./index-93f2c618.js";import"./index-7a123a20.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./el-tooltip-58212670.js";import"./el-avatar-3bb47ce2.js";import"./index-d57cc47d.js";import"./index-c88476dc.js";/* empty css */import"./index.vue_vue_type_style_index_0_lang-d0142cd9.js";import"./attachment-7b90a6f4.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index-e1e81893.js";import"./sys-451b2f0d.js";import"./index-50a00d09.js";import"./index-a9dd5cf5.js";import"./index-6a89175f.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"./index-61c777fa.js";import"./_initCloneObject-28e6bdaa.js";import"./directive-c0c3e9a3.js";import"./site-06e59c55.js";export{o as default};
|
||||
import{_ as o}from"./edit-user.vue_vue_type_script_setup_true_lang-1f02a9b6.js";import"./base-962c0c23.js";import"./runtime-core.esm-bundler-dc7a07d7.js";/* empty css */import"./el-overlay-60700377.js";import"./event-ff03ec12.js";import"./index-5d86eb33.js";import"./focus-trap-b8b5a003.js";/* empty css *//* empty css */import"./el-radio-bfd4b1ad.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./index-7525671c.js";import"./vue-router-79053937.js";import"./index-105fbad0.js";import"./common-080b9b9f.js";import"./common-2cf17469.js";import"./storage-abe718b1.js";import"./index-8bcaafa6.js";import"./index-bba9e58c.js";import"./index-93f2c618.js";import"./index-7a123a20.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./el-tooltip-58212670.js";import"./el-avatar-3bb47ce2.js";import"./index-d57cc47d.js";import"./index-f4731ae1.js";/* empty css */import"./index.vue_vue_type_style_index_0_lang-d0d31f1b.js";import"./attachment-56217309.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"./index-61c777fa.js";import"./_initCloneObject-28e6bdaa.js";import"./directive-c0c3e9a3.js";import"./site-fd0c6646.js";export{o as default};
|
||||
File diff suppressed because one or more lines are too long
1
niucloud/public/admin/assets/el-icon-593dfdc2.css
Normal file
1
niucloud/public/admin/assets/el-icon-593dfdc2.css
Normal file
@ -0,0 +1 @@
|
||||
.el-icon-loading{animation:rotating 2s linear infinite}.el-icon--right{margin-left:5px}.el-icon--left{margin-right:5px}@keyframes rotating{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.el-icon{--color:inherit;height:1em;width:1em;line-height:1em;display:inline-flex;justify-content:center;align-items:center;position:relative;fill:currentColor;color:var(--color);font-size:inherit}.el-icon.is-loading{animation:rotating 2s linear infinite}.el-icon svg{height:1em;width:1em}
|
||||
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user