mirror of
https://gitee.com/niucloud-team/niucloud-admin.git
synced 2025-12-11 18:32:49 +00:00
update admin code
This commit is contained in:
parent
d3158d7672
commit
5f70a0c4b9
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
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
import{_ as o}from"./add-member.vue_vue_type_script_setup_true_lang-f68de3c0.js";import"./base-06478700.js";/* empty css */import"./el-overlay-42a687c6.js";import"./event-10eba222.js";import"./index-2fcd1254.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";/* empty css */import"./el-form-item-314d006d.js";/* empty css */import"./index-81ed253c.js";import"./member-c227fc40.js";import"./index-80fd3793.js";import"./vue-router-d09a2c28.js";import"./common-92a35870.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-6b67c4ac.js";import"./el-tooltip-58212670.js";import"./index-b52d0f2a.js";import"./index-b68e8463.js";import"./index-c2f001d3.js";import"./index-2a269c7c.js";import"./index-e4abfaa5.js";import"./index-9ee9102c.js";import"./directive-cb2d3366.js";export{o as default};
|
||||
import{_ as o}from"./add-member.vue_vue_type_script_setup_true_lang-e20b9f5d.js";import"./base-06478700.js";/* empty css */import"./el-overlay-42a687c6.js";import"./event-10eba222.js";import"./index-2fcd1254.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";/* empty css */import"./el-form-item-314d006d.js";/* empty css */import"./index-81ed253c.js";import"./member-b587e6d0.js";import"./index-981b0207.js";import"./vue-router-d09a2c28.js";import"./common-92a35870.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-6b67c4ac.js";import"./el-tooltip-58212670.js";import"./index-b52d0f2a.js";import"./index-b68e8463.js";import"./index-c2f001d3.js";import"./index-2a269c7c.js";import"./index-e4abfaa5.js";import"./index-9ee9102c.js";import"./directive-cb2d3366.js";export{o as default};
|
||||
@ -1 +1 @@
|
||||
import{d as F,r as b,R as M,c as R,e as v,v as h,x as d,g as $,y as s,A as V,B as y,u as r,Q as H}from"./base-06478700.js";/* empty css */import{E as I}from"./el-overlay-42a687c6.js";/* empty css */import{a as j,E as A}from"./el-form-item-314d006d.js";/* empty css */import{t as l}from"./index-81ed253c.js";import{p as L,q as O,r as T}from"./member-c227fc40.js";import{E as z}from"./index-b68e8463.js";import{E as Q}from"./index-c2f001d3.js";import{v as S}from"./directive-cb2d3366.js";const Z={class:"dialog-footer"},me=F({__name:"add-member",emits:["complete"],setup(G,{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=M({...f}),_=b(),P=R(()=>({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 O().then(m=>{c=m.data}).catch(()=>{})},U=async m=>{if(i.value||!m)return;const e=T;await m.validate(async o=>{o&&(i.value=!0,e(a).then(g=>{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 L(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=z,n=j,g=A,w=Q,q=I,B=S;return v(),h(q,{modelValue:p.value,"onUpdate:modelValue":e[7]||(e[7]=t=>p.value=t),title:r(u),width:"500px","destroy-on-close":!0},{footer:d(()=>[$("span",Z,[s(w,{onClick:e[5]||(e[5]=t=>p.value=!1)},{default:d(()=>[V(y(r(l)("cancel")),1)]),_:1}),s(w,{type:"primary",loading:i.value,onClick:e[6]||(e[6]=t=>U(_.value))},{default:d(()=>[V(y(r(l)("confirm")),1)]),_:1},8,["loading"])])]),default:d(()=>[H((v(),h(g,{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"])),[[B,i.value]])]),_:1},8,["modelValue","title"])}}});export{me as _};
|
||||
import{d as F,r as b,R as M,c as R,e as v,v as h,x as d,g as $,y as s,A as V,B as y,u as r,Q as H}from"./base-06478700.js";/* empty css */import{E as I}from"./el-overlay-42a687c6.js";/* empty css */import{a as j,E as A}from"./el-form-item-314d006d.js";/* empty css */import{t as l}from"./index-81ed253c.js";import{p as L,q as O,r as T}from"./member-b587e6d0.js";import{E as z}from"./index-b68e8463.js";import{E as Q}from"./index-c2f001d3.js";import{v as S}from"./directive-cb2d3366.js";const Z={class:"dialog-footer"},me=F({__name:"add-member",emits:["complete"],setup(G,{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=M({...f}),_=b(),P=R(()=>({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 O().then(m=>{c=m.data}).catch(()=>{})},U=async m=>{if(i.value||!m)return;const e=T;await m.validate(async o=>{o&&(i.value=!0,e(a).then(g=>{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 L(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=z,n=j,g=A,w=Q,q=I,B=S;return v(),h(q,{modelValue:p.value,"onUpdate:modelValue":e[7]||(e[7]=t=>p.value=t),title:r(u),width:"500px","destroy-on-close":!0},{footer:d(()=>[$("span",Z,[s(w,{onClick:e[5]||(e[5]=t=>p.value=!1)},{default:d(()=>[V(y(r(l)("cancel")),1)]),_:1}),s(w,{type:"primary",loading:i.value,onClick:e[6]||(e[6]=t=>U(_.value))},{default:d(()=>[V(y(r(l)("confirm")),1)]),_:1},8,["loading"])])]),default:d(()=>[H((v(),h(g,{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"])),[[B,i.value]])]),_:1},8,["modelValue","title"])}}});export{me as _};
|
||||
@ -1 +1 @@
|
||||
import{_ as o}from"./add-table.vue_vue_type_script_setup_true_lang-de772f2f.js";import"./base-06478700.js";/* empty css */import"./el-overlay-42a687c6.js";import"./event-10eba222.js";import"./index-2fcd1254.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";/* empty css *//* empty css *//* empty css */import"./el-tooltip-58212670.js";import"./index-80fd3793.js";import"./vue-router-d09a2c28.js";import"./index-81ed253c.js";import"./common-92a35870.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-6b67c4ac.js";/* empty css */import"./el-form-item-314d006d.js";/* empty css */import"./index-b52d0f2a.js";import"./index-b68e8463.js";import"./index-c2f001d3.js";import"./index-2a269c7c.js";import"./index-e4abfaa5.js";import"./index-9ee9102c.js";import"./tools-ddcb412e.js";import"./index-4bec4464.js";import"./index-40e21e72.js";import"./isEqual-42d4b10f.js";import"./_isIterateeCall-1dc0e2ff.js";import"./debounce-1db848fd.js";import"./index-5a0d60aa.js";import"./directive-cb2d3366.js";export{o as default};
|
||||
import{_ as o}from"./add-table.vue_vue_type_script_setup_true_lang-042ed2d7.js";import"./base-06478700.js";/* empty css */import"./el-overlay-42a687c6.js";import"./event-10eba222.js";import"./index-2fcd1254.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";/* empty css *//* empty css *//* empty css */import"./el-tooltip-58212670.js";import"./index-981b0207.js";import"./vue-router-d09a2c28.js";import"./index-81ed253c.js";import"./common-92a35870.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-6b67c4ac.js";/* empty css */import"./el-form-item-314d006d.js";/* empty css */import"./index-b52d0f2a.js";import"./index-b68e8463.js";import"./index-c2f001d3.js";import"./index-2a269c7c.js";import"./index-e4abfaa5.js";import"./index-9ee9102c.js";import"./tools-3f2c0b23.js";import"./index-4bec4464.js";import"./index-40e21e72.js";import"./isEqual-42d4b10f.js";import"./_isIterateeCall-1dc0e2ff.js";import"./debounce-1db848fd.js";import"./index-5a0d60aa.js";import"./directive-cb2d3366.js";export{o as default};
|
||||
@ -1 +1 @@
|
||||
import{d as T,r as c,R as N,c as x,e as u,v as _,x as s,g as f,Q as B,u as a,B as b,y as d,A as L,i as k}from"./base-06478700.js";/* empty css */import{E as z}from"./el-overlay-42a687c6.js";/* empty css *//* empty css *//* empty css */import"./el-tooltip-58212670.js";import"./index-80fd3793.js";/* empty css *//* empty css */import{t as i}from"./index-81ed253c.js";import{j as R,k as F}from"./tools-ddcb412e.js";import{a as P}from"./vue-router-d09a2c28.js";import{a as U,E as j}from"./index-4bec4464.js";import{E as q}from"./index-b68e8463.js";import{E as A}from"./index-c2f001d3.js";import{v as G}from"./directive-cb2d3366.js";const I={class:""},me=T({__name:"add-table",emits:["complete"],setup(Q,{expose:g,emit:S}){const h=P();let o=c(!1);const m=c("");let e=N({loading:!0,data:[],searchParam:{table_name:"",table_content:""}});const v=x(()=>e.data.filter(t=>!m.value||t.Name.toLowerCase().includes(m.value.toLowerCase())||t.Comment.toLowerCase().includes(m.value.toLowerCase()))),p=()=>{e.loading=!0,R().then(t=>{e.loading=!1,e.data=t.data}).catch(()=>{e.loading=!1})};p();const w=t=>{let l=t.Name;e.loading=!0,F({table_name:l}).then(n=>{e.loading=!1,o.value=!1,h.push({path:"/tools/code/edit",query:{id:n.data.id}})}).catch(n=>{e.loading=!1})};return g({showDialog:o,setFormData:async(t=null)=>{p()}}),(t,l)=>{const n=U,C=q,y=A,D=j,E=z,V=G;return u(),_(E,{modelValue:a(o),"onUpdate:modelValue":l[1]||(l[1]=r=>k(o)?o.value=r:o=r),title:a(i)("addCode"),width:"800px","destroy-on-close":!0},{default:s(()=>[f("div",I,[B((u(),_(D,{data:a(v),size:"large",height:"400"},{empty:s(()=>[f("span",null,b(a(e).loading?"":a(i)("emptyData")),1)]),default:s(()=>[d(n,{prop:"Name",label:a(i)("tableName"),"min-width":"150"},null,8,["label"]),d(n,{prop:"Comment",label:a(i)("tableComment"),"min-width":"120"},null,8,["label"]),d(n,{align:"right","min-width":"150"},{header:s(()=>[d(C,{modelValue:m.value,"onUpdate:modelValue":l[0]||(l[0]=r=>m.value=r),size:"small",placeholder:a(i)("searchPlaceholder")},null,8,["modelValue","placeholder"])]),default:s(r=>[d(y,{size:"small",type:"primary",onClick:J=>w(r.row)},{default:s(()=>[L(b(a(i)("addBtn")),1)]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[V,a(e).loading]])])]),_:1},8,["modelValue","title"])}}});export{me as _};
|
||||
import{d as T,r as c,R as N,c as x,e as u,v as _,x as s,g as f,Q as B,u as a,B as b,y as d,A as L,i as k}from"./base-06478700.js";/* empty css */import{E as z}from"./el-overlay-42a687c6.js";/* empty css *//* empty css *//* empty css */import"./el-tooltip-58212670.js";import"./index-981b0207.js";/* empty css *//* empty css */import{t as i}from"./index-81ed253c.js";import{j as R,k as F}from"./tools-3f2c0b23.js";import{a as P}from"./vue-router-d09a2c28.js";import{a as U,E as j}from"./index-4bec4464.js";import{E as q}from"./index-b68e8463.js";import{E as A}from"./index-c2f001d3.js";import{v as G}from"./directive-cb2d3366.js";const I={class:""},me=T({__name:"add-table",emits:["complete"],setup(Q,{expose:g,emit:S}){const h=P();let o=c(!1);const m=c("");let e=N({loading:!0,data:[],searchParam:{table_name:"",table_content:""}});const v=x(()=>e.data.filter(t=>!m.value||t.Name.toLowerCase().includes(m.value.toLowerCase())||t.Comment.toLowerCase().includes(m.value.toLowerCase()))),p=()=>{e.loading=!0,R().then(t=>{e.loading=!1,e.data=t.data}).catch(()=>{e.loading=!1})};p();const w=t=>{let l=t.Name;e.loading=!0,F({table_name:l}).then(n=>{e.loading=!1,o.value=!1,h.push({path:"/tools/code/edit",query:{id:n.data.id}})}).catch(n=>{e.loading=!1})};return g({showDialog:o,setFormData:async(t=null)=>{p()}}),(t,l)=>{const n=U,C=q,y=A,D=j,E=z,V=G;return u(),_(E,{modelValue:a(o),"onUpdate:modelValue":l[1]||(l[1]=r=>k(o)?o.value=r:o=r),title:a(i)("addCode"),width:"800px","destroy-on-close":!0},{default:s(()=>[f("div",I,[B((u(),_(D,{data:a(v),size:"large",height:"400"},{empty:s(()=>[f("span",null,b(a(e).loading?"":a(i)("emptyData")),1)]),default:s(()=>[d(n,{prop:"Name",label:a(i)("tableName"),"min-width":"150"},null,8,["label"]),d(n,{prop:"Comment",label:a(i)("tableComment"),"min-width":"120"},null,8,["label"]),d(n,{align:"right","min-width":"150"},{header:s(()=>[d(C,{modelValue:m.value,"onUpdate:modelValue":l[0]||(l[0]=r=>m.value=r),size:"small",placeholder:a(i)("searchPlaceholder")},null,8,["modelValue","placeholder"])]),default:s(r=>[d(y,{size:"small",type:"primary",onClick:J=>w(r.row)},{default:s(()=>[L(b(a(i)("addBtn")),1)]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[V,a(e).loading]])])]),_:1},8,["modelValue","title"])}}});export{me as _};
|
||||
@ -1 +1 @@
|
||||
import{d as V,r as f,R as B,e as u,f as N,g as s,B as _,u as p,Q as y,v as C,x as n,y as a,A as D}from"./base-06478700.js";/* empty css *//* empty css */import{a as F,E as R}from"./el-form-item-314d006d.js";/* empty css */import{_ as S}from"./index-315cf4d5.js";/* empty css */import{t as c}from"./index-81ed253c.js";import{a5 as I,a6 as O}from"./index-80fd3793.js";import{u as j}from"./vue-router-d09a2c28.js";import{E as L}from"./index-f84999b2.js";import{E as J}from"./index-e10fccde.js";import{E as T}from"./index-c2f001d3.js";import{v as U}from"./directive-cb2d3366.js";import{_ as k}from"./_plugin-vue_export-helper-c27b6911.js";import"./index-2fcd1254.js";import"./event-10eba222.js";/* empty css */import"./index.vue_vue_type_style_index_0_lang-cd1fd676.js";import"./el-overlay-42a687c6.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";import"./attachment-49fa540a.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-58212670.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index-b52d0f2a.js";import"./index-b68e8463.js";import"./index-9f9e1d50.js";import"./index-2a269c7c.js";import"./common-92a35870.js";import"./index-01f6e375.js";import"./validator-6e9db238.js";import"./index-e4abfaa5.js";import"./index-41a974fa.js";import"./index-c17093ae.js";import"./index-543fb162.js";import"./index-b6a184ba.js";import"./debounce-1db848fd.js";import"./position-c3bcd0be.js";import"./index-b56195b5.js";import"./index-40e21e72.js";import"./isEqual-42d4b10f.js";import"./index-137757c0.js";import"./index-35e821cc.js";import"./index-34d55b7e.js";import"./strings-fe930bc4.js";import"./index-5a0d60aa.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./index-6b67c4ac.js";import"./index-9ee9102c.js";const A={class:"main-container"},Q={class:"flex ml-[18px] justify-between items-center mt-[20px]"},$={class:"text-[20px]"},q={class:"form-tip"},z={class:"fixed-footer-wrap"},G={class:"fixed-footer"},H=V({__name:"adminlogin",setup(K){const g=j().meta.title,r=f(!0),d=f(),e=B({is_captcha:0,bg:""});(async(m=0)=>{const o=await(await I()).data;Object.keys(e).forEach(t=>{["is_captcha","is_site_captcha"].includes(t)?e[t]=Boolean(Number(o[t])):e[t]=o[t]}),r.value=!1})();const v=async m=>{r.value||!m||await m.validate(o=>{if(o){let t=JSON.parse(JSON.stringify(e));Object.keys(t).forEach(i=>{["is_captcha","is_site_captcha"].includes(i)&&(t[i]=Number(t[i]))}),O(t).then(()=>{r.value=!1}).catch(()=>{r.value=!1})}})};return(m,o)=>{const t=L,i=F,h=S,b=J,x=R,w=T,E=U;return u(),N("div",A,[s("div",Q,[s("span",$,_(p(g)),1)]),y((u(),C(x,{model:e,"label-width":"150px",ref_key:"ruleFormRef",ref:d,rules:m.formRules,class:"page-form"},{default:n(()=>[a(b,{class:"box-card !border-none",shadow:"never"},{default:n(()=>[a(i,{label:p(c)("isCaptcha"),prop:"formData.is_auth_register"},{default:n(()=>[a(t,{modelValue:e.is_captcha,"onUpdate:modelValue":o[0]||(o[0]=l=>e.is_captcha=l)},null,8,["modelValue"])]),_:1},8,["label"]),a(i,{label:p(c)("bgImg")},{default:n(()=>[a(h,{modelValue:e.bg,"onUpdate:modelValue":o[1]||(o[1]=l=>e.bg=l)},null,8,["modelValue"]),s("div",q,_(p(c)("adminBgImgTip")),1)]),_:1},8,["label"])]),_:1})]),_:1},8,["model","rules"])),[[E,r.value]]),s("div",z,[s("div",G,[a(w,{type:"primary",onClick:o[2]||(o[2]=l=>v(d.value))},{default:n(()=>[D(_(p(c)("save")),1)]),_:1})])])])}}});const ro=k(H,[["__scopeId","data-v-c5040db4"]]);export{ro as default};
|
||||
import{d as V,r as f,R as B,e as u,f as N,g as s,B as _,u as p,Q as y,v as C,x as n,y as a,A as D}from"./base-06478700.js";/* empty css *//* empty css */import{a as F,E as R}from"./el-form-item-314d006d.js";/* empty css */import{_ as S}from"./index-7eaa3a3d.js";/* empty css */import{t as c}from"./index-81ed253c.js";import{a5 as I,a6 as O}from"./index-981b0207.js";import{u as j}from"./vue-router-d09a2c28.js";import{E as L}from"./index-f84999b2.js";import{E as J}from"./index-e10fccde.js";import{E as T}from"./index-c2f001d3.js";import{v as U}from"./directive-cb2d3366.js";import{_ as k}from"./_plugin-vue_export-helper-c27b6911.js";import"./index-2fcd1254.js";import"./event-10eba222.js";/* empty css */import"./index.vue_vue_type_style_index_0_lang-e59c442c.js";import"./el-overlay-42a687c6.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";import"./attachment-21666979.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-58212670.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index-b52d0f2a.js";import"./index-b68e8463.js";import"./index-4a01421d.js";import"./index-2a269c7c.js";import"./common-92a35870.js";import"./index-01f6e375.js";import"./validator-6e9db238.js";import"./index-e4abfaa5.js";import"./index-41a974fa.js";import"./index-c17093ae.js";import"./index-543fb162.js";import"./index-b6a184ba.js";import"./debounce-1db848fd.js";import"./position-c3bcd0be.js";import"./index-b56195b5.js";import"./index-40e21e72.js";import"./isEqual-42d4b10f.js";import"./index-137757c0.js";import"./index-35e821cc.js";import"./index-34d55b7e.js";import"./strings-fe930bc4.js";import"./index-5a0d60aa.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./index-6b67c4ac.js";import"./index-9ee9102c.js";const A={class:"main-container"},Q={class:"flex ml-[18px] justify-between items-center mt-[20px]"},$={class:"text-[20px]"},q={class:"form-tip"},z={class:"fixed-footer-wrap"},G={class:"fixed-footer"},H=V({__name:"adminlogin",setup(K){const g=j().meta.title,r=f(!0),d=f(),e=B({is_captcha:0,bg:""});(async(m=0)=>{const o=await(await I()).data;Object.keys(e).forEach(t=>{["is_captcha","is_site_captcha"].includes(t)?e[t]=Boolean(Number(o[t])):e[t]=o[t]}),r.value=!1})();const v=async m=>{r.value||!m||await m.validate(o=>{if(o){let t=JSON.parse(JSON.stringify(e));Object.keys(t).forEach(i=>{["is_captcha","is_site_captcha"].includes(i)&&(t[i]=Number(t[i]))}),O(t).then(()=>{r.value=!1}).catch(()=>{r.value=!1})}})};return(m,o)=>{const t=L,i=F,h=S,b=J,x=R,w=T,E=U;return u(),N("div",A,[s("div",Q,[s("span",$,_(p(g)),1)]),y((u(),C(x,{model:e,"label-width":"150px",ref_key:"ruleFormRef",ref:d,rules:m.formRules,class:"page-form"},{default:n(()=>[a(b,{class:"box-card !border-none",shadow:"never"},{default:n(()=>[a(i,{label:p(c)("isCaptcha"),prop:"formData.is_auth_register"},{default:n(()=>[a(t,{modelValue:e.is_captcha,"onUpdate:modelValue":o[0]||(o[0]=l=>e.is_captcha=l)},null,8,["modelValue"])]),_:1},8,["label"]),a(i,{label:p(c)("bgImg")},{default:n(()=>[a(h,{modelValue:e.bg,"onUpdate:modelValue":o[1]||(o[1]=l=>e.bg=l)},null,8,["modelValue"]),s("div",q,_(p(c)("adminBgImgTip")),1)]),_:1},8,["label"])]),_:1})]),_:1},8,["model","rules"])),[[E,r.value]]),s("div",z,[s("div",G,[a(w,{type:"primary",onClick:o[2]||(o[2]=l=>v(d.value))},{default:n(()=>[D(_(p(c)("save")),1)]),_:1})])])])}}});const ro=k(H,[["__scopeId","data-v-c5040db4"]]);export{ro as default};
|
||||
@ -1 +1 @@
|
||||
import{d as w,R as y,e as c,f as x,y as o,x as a,g as l,B as m,u as t,Q as E,v as k,A as d}from"./base-06478700.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-58212670.js";import{a7 as B}from"./index-80fd3793.js";/* empty css */import{t as i}from"./index-81ed253c.js";import{u as C,a as N}from"./vue-router-d09a2c28.js";import{a as T,E as A}from"./index-4bec4464.js";import{E as D}from"./index-c2f001d3.js";import{E as L}from"./index-e10fccde.js";import{v as R}from"./directive-cb2d3366.js";import"./common-92a35870.js";import"./index-2fcd1254.js";import"./event-10eba222.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-6b67c4ac.js";import"./el-overlay-42a687c6.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";import"./el-form-item-314d006d.js";/* empty css */import"./index-b52d0f2a.js";import"./index-b68e8463.js";import"./index-2a269c7c.js";import"./index-e4abfaa5.js";import"./index-9ee9102c.js";import"./index-40e21e72.js";import"./isEqual-42d4b10f.js";import"./_isIterateeCall-1dc0e2ff.js";import"./debounce-1db848fd.js";import"./index-5a0d60aa.js";const V={class:"main-container"},j={class:"flex justify-between items-center"},$={class:"text-[20px]"},z={class:"mt-[20px]"},Ct=w({__name:"agreement",setup(O){const _=C().meta.title;let e=y({loading:!0,data:[]});(()=>{e.loading=!0,e.data=[],B().then(r=>{Object.keys(r.data).forEach(p=>e.data.push(r.data[p])),e.loading=!1}).catch(()=>{e.loading=!1})})();const u=N(),f=r=>{u.push(`/setting/basis/agreement/edit?key=${r.agreement_key}`)};return(r,p)=>{const n=T,g=D,h=A,b=L,v=R;return c(),x("div",V,[o(b,{class:"box-card !border-none",shadow:"never"},{default:a(()=>[l("div",j,[l("span",$,m(t(_)),1)]),l("div",z,[E((c(),k(h,{data:t(e).data,size:"large"},{empty:a(()=>[l("span",null,m(t(e).loading?"":t(i)("emptyData")),1)]),default:a(()=>[o(n,{prop:"type_name",label:t(i)("typeName"),"min-width":"100","show-overflow-tooltip":!0},null,8,["label"]),o(n,{prop:"title",label:t(i)("title"),"min-width":"100","show-overflow-tooltip":!0},null,8,["label"]),o(n,{label:t(i)("updateTime"),"min-width":"180",align:"center"},{default:a(({row:s})=>[d(m(s.update_time||""),1)]),_:1},8,["label"]),o(n,{label:t(i)("operation"),fixed:"right",align:"right",width:"100"},{default:a(({row:s})=>[o(g,{type:"primary",link:"",onClick:q=>f(s)},{default:a(()=>[d(m(t(i)("config")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[v,t(e).loading]])])]),_:1})])}}});export{Ct as default};
|
||||
import{d as w,R as y,e as c,f as x,y as o,x as a,g as l,B as m,u as t,Q as E,v as k,A as d}from"./base-06478700.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-58212670.js";import{a7 as B}from"./index-981b0207.js";/* empty css */import{t as i}from"./index-81ed253c.js";import{u as C,a as N}from"./vue-router-d09a2c28.js";import{a as T,E as A}from"./index-4bec4464.js";import{E as D}from"./index-c2f001d3.js";import{E as L}from"./index-e10fccde.js";import{v as R}from"./directive-cb2d3366.js";import"./common-92a35870.js";import"./index-2fcd1254.js";import"./event-10eba222.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-6b67c4ac.js";import"./el-overlay-42a687c6.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";import"./el-form-item-314d006d.js";/* empty css */import"./index-b52d0f2a.js";import"./index-b68e8463.js";import"./index-2a269c7c.js";import"./index-e4abfaa5.js";import"./index-9ee9102c.js";import"./index-40e21e72.js";import"./isEqual-42d4b10f.js";import"./_isIterateeCall-1dc0e2ff.js";import"./debounce-1db848fd.js";import"./index-5a0d60aa.js";const V={class:"main-container"},j={class:"flex justify-between items-center"},$={class:"text-[20px]"},z={class:"mt-[20px]"},Ct=w({__name:"agreement",setup(O){const _=C().meta.title;let e=y({loading:!0,data:[]});(()=>{e.loading=!0,e.data=[],B().then(r=>{Object.keys(r.data).forEach(p=>e.data.push(r.data[p])),e.loading=!1}).catch(()=>{e.loading=!1})})();const u=N(),f=r=>{u.push(`/setting/basis/agreement/edit?key=${r.agreement_key}`)};return(r,p)=>{const n=T,g=D,h=A,b=L,v=R;return c(),x("div",V,[o(b,{class:"box-card !border-none",shadow:"never"},{default:a(()=>[l("div",j,[l("span",$,m(t(_)),1)]),l("div",z,[E((c(),k(h,{data:t(e).data,size:"large"},{empty:a(()=>[l("span",null,m(t(e).loading?"":t(i)("emptyData")),1)]),default:a(()=>[o(n,{prop:"type_name",label:t(i)("typeName"),"min-width":"100","show-overflow-tooltip":!0},null,8,["label"]),o(n,{prop:"title",label:t(i)("title"),"min-width":"100","show-overflow-tooltip":!0},null,8,["label"]),o(n,{label:t(i)("updateTime"),"min-width":"180",align:"center"},{default:a(({row:s})=>[d(m(s.update_time||""),1)]),_:1},8,["label"]),o(n,{label:t(i)("operation"),fixed:"right",align:"right",width:"100"},{default:a(({row:s})=>[o(g,{type:"primary",link:"",onClick:q=>f(s)},{default:a(()=>[d(m(t(i)("config")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[v,t(e).loading]])])]),_:1})])}}});export{Ct as default};
|
||||
@ -1 +1 @@
|
||||
import{d as F,r as h,R as A,c as N,e as k,f as P,g as n,u as o,B as c,Q as $,v as j,x as l,y as r,A as x}from"./base-06478700.js";/* empty css *//* empty css *//* empty css */import{a as I,E as S}from"./el-form-item-314d006d.js";import{_ as U}from"./index.vue_vue_type_script_setup_true_lang-026baac6.js";/* empty css */import{u as q,t as s}from"./index-81ed253c.js";import{a8 as O,a9 as T}from"./index-80fd3793.js";import{u as z,a as L}from"./vue-router-d09a2c28.js";import{E as Q}from"./index-b68e8463.js";import{E as G}from"./index-e10fccde.js";import{E as H}from"./index-c2f001d3.js";import{v as J}from"./directive-cb2d3366.js";import"./index-2fcd1254.js";import"./event-10eba222.js";import"./index.vue_vue_type_style_index_0_lang-cd1fd676.js";import"./el-overlay-42a687c6.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";import"./attachment-49fa540a.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-58212670.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index-b52d0f2a.js";import"./index-9f9e1d50.js";import"./index-2a269c7c.js";import"./common-92a35870.js";import"./index-01f6e375.js";import"./validator-6e9db238.js";import"./index-e4abfaa5.js";import"./index-41a974fa.js";import"./index-c17093ae.js";import"./index-543fb162.js";import"./index-b6a184ba.js";import"./debounce-1db848fd.js";import"./position-c3bcd0be.js";import"./index-b56195b5.js";import"./index-40e21e72.js";import"./isEqual-42d4b10f.js";import"./index-137757c0.js";import"./index-35e821cc.js";import"./index-34d55b7e.js";import"./strings-fe930bc4.js";import"./index-5a0d60aa.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./index-6b67c4ac.js";import"./index-9ee9102c.js";const K={class:"main-container"},M={class:"detail-head"},W=n("span",{class:"iconfont iconxiangzuojiantou !text-xs"},null,-1),X={class:"ml-[1px]"},Y=n("span",{class:"adorn"},"|",-1),Z={class:"right"},tt={class:"fixed-footer-wrap"},et={class:"fixed-footer"},de=F({__name:"agreement_edit",setup(ot){q();const u=z(),_=L(),f=u.query.key||"",m=h(!1),V=u.meta.title,g={agreement_key:"",content:"",title:"",agreement_key_name:""},e=A({...g});m.value=!0,f&&(async(p="")=>{Object.assign(e,g);const t=await(await O(p)).data;Object.keys(e).forEach(a=>{t[a]!=null&&(e[a]=t[a])}),m.value=!1})(f);const v=h(),w=N(()=>({title:[{required:!0,message:s("titlePlaceholder"),trigger:"blur"}]})),E=async p=>{m.value||!p||await p.validate(async t=>{if(t){m.value=!0;const a=e;a.key=e.agreement_key,T(a).then(d=>{m.value=!1,y()}).catch(()=>{m.value=!1})}})},y=()=>{_.push({path:"/setting/basis/agreement"})};return(p,t)=>{const a=Q,d=I,B=U,C=S,D=G,b=H,R=J;return k(),P("div",K,[n("div",M,[n("div",{class:"left",onClick:t[0]||(t[0]=i=>o(_).push({path:"/setting/basis/agreement"}))},[W,n("span",X,c(o(s)("returnToPreviousPage")),1)]),Y,n("span",Z,c(o(V)),1)]),$((k(),j(D,{class:"box-card !border-none",shadow:"never"},{default:l(()=>[r(C,{model:e,"label-width":"90px",ref_key:"formRef",ref:v,rules:o(w),class:"page-form"},{default:l(()=>[r(d,{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(d,{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(d,{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",tt,[n("div",et,[r(b,{type:"primary",onClick:t[4]||(t[4]=i=>E(v.value))},{default:l(()=>[x(c(o(s)("save")),1)]),_:1}),r(b,{onClick:t[5]||(t[5]=i=>y())},{default:l(()=>[x(c(o(s)("cancel")),1)]),_:1})])])])}}});export{de as default};
|
||||
import{d as F,r as h,R as A,c as N,e as k,f as P,g as n,u as o,B as c,Q as $,v as j,x as l,y as r,A as x}from"./base-06478700.js";/* empty css *//* empty css *//* empty css */import{a as I,E as S}from"./el-form-item-314d006d.js";import{_ as U}from"./index.vue_vue_type_script_setup_true_lang-085f67cc.js";/* empty css */import{u as q,t as s}from"./index-81ed253c.js";import{a8 as O,a9 as T}from"./index-981b0207.js";import{u as z,a as L}from"./vue-router-d09a2c28.js";import{E as Q}from"./index-b68e8463.js";import{E as G}from"./index-e10fccde.js";import{E as H}from"./index-c2f001d3.js";import{v as J}from"./directive-cb2d3366.js";import"./index-2fcd1254.js";import"./event-10eba222.js";import"./index.vue_vue_type_style_index_0_lang-e59c442c.js";import"./el-overlay-42a687c6.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";import"./attachment-21666979.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-58212670.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index-b52d0f2a.js";import"./index-4a01421d.js";import"./index-2a269c7c.js";import"./common-92a35870.js";import"./index-01f6e375.js";import"./validator-6e9db238.js";import"./index-e4abfaa5.js";import"./index-41a974fa.js";import"./index-c17093ae.js";import"./index-543fb162.js";import"./index-b6a184ba.js";import"./debounce-1db848fd.js";import"./position-c3bcd0be.js";import"./index-b56195b5.js";import"./index-40e21e72.js";import"./isEqual-42d4b10f.js";import"./index-137757c0.js";import"./index-35e821cc.js";import"./index-34d55b7e.js";import"./strings-fe930bc4.js";import"./index-5a0d60aa.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./index-6b67c4ac.js";import"./index-9ee9102c.js";const K={class:"main-container"},M={class:"detail-head"},W=n("span",{class:"iconfont iconxiangzuojiantou !text-xs"},null,-1),X={class:"ml-[1px]"},Y=n("span",{class:"adorn"},"|",-1),Z={class:"right"},tt={class:"fixed-footer-wrap"},et={class:"fixed-footer"},de=F({__name:"agreement_edit",setup(ot){q();const u=z(),_=L(),f=u.query.key||"",m=h(!1),V=u.meta.title,g={agreement_key:"",content:"",title:"",agreement_key_name:""},e=A({...g});m.value=!0,f&&(async(p="")=>{Object.assign(e,g);const t=await(await O(p)).data;Object.keys(e).forEach(a=>{t[a]!=null&&(e[a]=t[a])}),m.value=!1})(f);const v=h(),w=N(()=>({title:[{required:!0,message:s("titlePlaceholder"),trigger:"blur"}]})),E=async p=>{m.value||!p||await p.validate(async t=>{if(t){m.value=!0;const a=e;a.key=e.agreement_key,T(a).then(d=>{m.value=!1,y()}).catch(()=>{m.value=!1})}})},y=()=>{_.push({path:"/setting/basis/agreement"})};return(p,t)=>{const a=Q,d=I,B=U,C=S,D=G,b=H,R=J;return k(),P("div",K,[n("div",M,[n("div",{class:"left",onClick:t[0]||(t[0]=i=>o(_).push({path:"/setting/basis/agreement"}))},[W,n("span",X,c(o(s)("returnToPreviousPage")),1)]),Y,n("span",Z,c(o(V)),1)]),$((k(),j(D,{class:"box-card !border-none",shadow:"never"},{default:l(()=>[r(C,{model:e,"label-width":"90px",ref_key:"formRef",ref:v,rules:o(w),class:"page-form"},{default:l(()=>[r(d,{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(d,{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(d,{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",tt,[n("div",et,[r(b,{type:"primary",onClick:t[4]||(t[4]=i=>E(v.value))},{default:l(()=>[x(c(o(s)("save")),1)]),_:1}),r(b,{onClick:t[5]||(t[5]=i=>y())},{default:l(()=>[x(c(o(s)("cancel")),1)]),_:1})])])])}}});export{de as default};
|
||||
@ -1 +1 @@
|
||||
import{A as t}from"./index-80fd3793.js";function e(){return t.get("aliapp/config")}function p(a){return t.put("aliapp/config",a,{showSuccessMessage:!0})}function n(){return t.get("aliapp/static")}export{n as a,e as g,p as s};
|
||||
import{A as t}from"./index-981b0207.js";function e(){return t.get("aliapp/config")}function p(a){return t.put("aliapp/config",a,{showSuccessMessage:!0})}function n(){return t.get("aliapp/static")}export{n as a,e as g,p as s};
|
||||
@ -1 +1 @@
|
||||
import{d as V,r as g,R as D,V as F,Q as M,e as _,f,g as e,B as o,u as a,y as i,x as p,F as N,z as R,v as P,A as Q,H as T,aP as j,aQ as z}from"./base-06478700.js";/* empty css *//* empty css */import{_ as H}from"./apply_empty-78684083.js";/* empty css *//* empty css *//* empty css */import{k as U,a0 as $,C as y}from"./index-80fd3793.js";import{_ as q}from"./app_store_default-c4798c2d.js";import{t as c}from"./index-81ed253c.js";import{d as G,a as k}from"./common-92a35870.js";import{a as J}from"./vue-router-d09a2c28.js";import{E as K}from"./index-2fcd1254.js";import{E as O}from"./index-c2f001d3.js";import{E as W}from"./index-543fb162.js";import{E as X}from"./index-8c476f28.js";import{E as Y}from"./index-b56195b5.js";import{v as Z}from"./directive-cb2d3366.js";import{_ as tt}from"./_plugin-vue_export-helper-c27b6911.js";import"./event-10eba222.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./index-6b67c4ac.js";import"./el-overlay-42a687c6.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";import"./el-form-item-314d006d.js";/* empty css */import"./el-tooltip-58212670.js";import"./index-b52d0f2a.js";import"./index-b68e8463.js";import"./index-2a269c7c.js";import"./index-e4abfaa5.js";import"./index-9ee9102c.js";import"./index-b6a184ba.js";import"./debounce-1db848fd.js";import"./position-c3bcd0be.js";const E=m=>(j("data-v-2930827a"),m=m(),z(),m),et={class:"h-[480px] box-border pt-[20px] px-[20px]"},ot={class:"flex justify-between items-center"},st={class:"font-600 text-[20px] text-[#222]"},at={class:"flex flex-wrap mt-[28px]"},pt=["onClick"],rt={class:"flex items-center"},nt=E(()=>e("div",{class:"image-slot"},[e("img",{class:"w-[40px] h-[40px] rounded-[8px]",src:q})],-1)),it={class:"flex-1 font-600 text-[14px] text-[#222] ml-[12px]"},ct={class:"font-500 text-[13px] text-[#6D7278] mt-[14px]"},mt=E(()=>e("div",{class:"w-[230px] mx-auto"},[e("img",{src:H,class:"max-w-full",alt:""})],-1)),lt={class:"flex items-center"},_t=V({__name:"app_manage",setup(m){const h=J(),d=U(),r=g(!0),u=D({appList:[]}),x=g({});(()=>{r.value=!0,$().then(s=>{s.data.forEach((t,n)=>{t.type=="app"&&u.appList.push(t)}),d.routers.forEach((t,n)=>{t.children&&t.children.length?(t.name=y(t.children),x.value[t.meta.app]=y(t.children)):x.value[t.meta.app]=t.name}),r.value=!1}).catch(()=>{r.value=!1})})();const w=s=>{k.set({key:"menuAppStorage",data:s.key}),k.set({key:"plugMenuTypeStorage",data:""});const t=d.appMenuList;t.push(s.key),d.setAppMenuList(t);let n=x.value[s.key];h.push({name:n})},v=()=>{h.push("/app_manage/app_store")};return(s,t)=>{const n=F("Download"),L=K,S=O,b=W,C=X,A=Y,B=Z;return M((_(),f("div",et,[e("div",ot,[e("div",st,o(a(c)("app")),1),i(S,{onClick:v},{default:p(()=>[i(L,{class:"mr-[2px]"},{default:p(()=>[i(n)]),_:1}),e("span",null,o(a(c)("appStore")),1)]),_:1})]),e("div",at,[(_(!0),f(N,null,R(u.appList,(l,I)=>(_(),f("div",{key:I,class:"app-item w-[284px] box-border p-[18px] pb-[24px] bg-[#fff] rounded-[8px] cursor-pointer mr-[24px] mb-[24px]",onClick:ut=>w(l)},[e("div",rt,[i(b,{class:"w-[40px] h-[40px] rounded-[8px]",src:a(G)(l.icon),fit:"contain"},{error:p(()=>[nt]),_:2},1032,["src"]),e("div",it,o(l.title),1)]),e("div",ct,o(l.desc),1)],8,pt))),128)),!u.appList.length&&!r.value?(_(),P(A,{key:0,class:"mx-auto overview-empty"},{image:p(()=>[mt]),description:p(()=>[e("p",lt,[e("span",null,o(a(c)("descriptionLeft")),1),i(C,{type:"primary",onClick:v,class:"mx-[5px]"},{default:p(()=>[Q(o(a(c)("link")),1)]),_:1}),e("span",null,o(a(c)("descriptionRight")),1)])]),_:1})):T("",!0)])])),[[B,r.value]])}}});const te=tt(_t,[["__scopeId","data-v-2930827a"]]);export{te as default};
|
||||
import{d as V,r as g,R as D,V as F,Q as M,e as _,f,g as e,B as o,u as a,y as i,x as p,F as N,z as R,v as P,A as Q,H as T,aP as j,aQ as z}from"./base-06478700.js";/* empty css *//* empty css */import{_ as H}from"./apply_empty-78684083.js";/* empty css *//* empty css *//* empty css */import{k as U,a0 as $,C as y}from"./index-981b0207.js";import{_ as q}from"./app_store_default-c4798c2d.js";import{t as c}from"./index-81ed253c.js";import{d as G,a as k}from"./common-92a35870.js";import{a as J}from"./vue-router-d09a2c28.js";import{E as K}from"./index-2fcd1254.js";import{E as O}from"./index-c2f001d3.js";import{E as W}from"./index-543fb162.js";import{E as X}from"./index-8c476f28.js";import{E as Y}from"./index-b56195b5.js";import{v as Z}from"./directive-cb2d3366.js";import{_ as tt}from"./_plugin-vue_export-helper-c27b6911.js";import"./event-10eba222.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./index-6b67c4ac.js";import"./el-overlay-42a687c6.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";import"./el-form-item-314d006d.js";/* empty css */import"./el-tooltip-58212670.js";import"./index-b52d0f2a.js";import"./index-b68e8463.js";import"./index-2a269c7c.js";import"./index-e4abfaa5.js";import"./index-9ee9102c.js";import"./index-b6a184ba.js";import"./debounce-1db848fd.js";import"./position-c3bcd0be.js";const E=m=>(j("data-v-2930827a"),m=m(),z(),m),et={class:"h-[480px] box-border pt-[20px] px-[20px]"},ot={class:"flex justify-between items-center"},st={class:"font-600 text-[20px] text-[#222]"},at={class:"flex flex-wrap mt-[28px]"},pt=["onClick"],rt={class:"flex items-center"},nt=E(()=>e("div",{class:"image-slot"},[e("img",{class:"w-[40px] h-[40px] rounded-[8px]",src:q})],-1)),it={class:"flex-1 font-600 text-[14px] text-[#222] ml-[12px]"},ct={class:"font-500 text-[13px] text-[#6D7278] mt-[14px]"},mt=E(()=>e("div",{class:"w-[230px] mx-auto"},[e("img",{src:H,class:"max-w-full",alt:""})],-1)),lt={class:"flex items-center"},_t=V({__name:"app_manage",setup(m){const h=J(),d=U(),r=g(!0),u=D({appList:[]}),x=g({});(()=>{r.value=!0,$().then(s=>{s.data.forEach((t,n)=>{t.type=="app"&&u.appList.push(t)}),d.routers.forEach((t,n)=>{t.children&&t.children.length?(t.name=y(t.children),x.value[t.meta.app]=y(t.children)):x.value[t.meta.app]=t.name}),r.value=!1}).catch(()=>{r.value=!1})})();const w=s=>{k.set({key:"menuAppStorage",data:s.key}),k.set({key:"plugMenuTypeStorage",data:""});const t=d.appMenuList;t.push(s.key),d.setAppMenuList(t);let n=x.value[s.key];h.push({name:n})},v=()=>{h.push("/app_manage/app_store")};return(s,t)=>{const n=F("Download"),L=K,S=O,b=W,C=X,A=Y,B=Z;return M((_(),f("div",et,[e("div",ot,[e("div",st,o(a(c)("app")),1),i(S,{onClick:v},{default:p(()=>[i(L,{class:"mr-[2px]"},{default:p(()=>[i(n)]),_:1}),e("span",null,o(a(c)("appStore")),1)]),_:1})]),e("div",at,[(_(!0),f(N,null,R(u.appList,(l,I)=>(_(),f("div",{key:I,class:"app-item w-[284px] box-border p-[18px] pb-[24px] bg-[#fff] rounded-[8px] cursor-pointer mr-[24px] mb-[24px]",onClick:ut=>w(l)},[e("div",rt,[i(b,{class:"w-[40px] h-[40px] rounded-[8px]",src:a(G)(l.icon),fit:"contain"},{error:p(()=>[nt]),_:2},1032,["src"]),e("div",it,o(l.title),1)]),e("div",ct,o(l.desc),1)],8,pt))),128)),!u.appList.length&&!r.value?(_(),P(A,{key:0,class:"mx-auto overview-empty"},{image:p(()=>[mt]),description:p(()=>[e("p",lt,[e("span",null,o(a(c)("descriptionLeft")),1),i(C,{type:"primary",onClick:v,class:"mx-[5px]"},{default:p(()=>[Q(o(a(c)("link")),1)]),_:1}),e("span",null,o(a(c)("descriptionRight")),1)])]),_:1})):T("",!0)])])),[[B,r.value]])}}});const te=tt(_t,[["__scopeId","data-v-2930827a"]]);export{te as default};
|
||||
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
import{d,r as u,e as p,f as a,y as o,x as r,F as f,z as h,u as x,g as n}from"./base-06478700.js";/* empty css *//* empty css */import{t as y}from"./index-81ed253c.js";import{a as b}from"./attachment-49fa540a.js";import{a as v,E}from"./index-0d66b73c.js";import{E as V}from"./index-e10fccde.js";/* empty css */import"./event-10eba222.js";import"./index-2fcd1254.js";/* empty css */import"./el-overlay-42a687c6.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";import"./el-form-item-314d006d.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./index-80fd3793.js";import"./vue-router-d09a2c28.js";import"./common-92a35870.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-6b67c4ac.js";/* empty css */import"./el-tooltip-58212670.js";import"./index-b52d0f2a.js";import"./index-b68e8463.js";import"./index-c2f001d3.js";import"./index-2a269c7c.js";import"./index-e4abfaa5.js";import"./index-9ee9102c.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index-9f9e1d50.js";import"./index-01f6e375.js";import"./validator-6e9db238.js";import"./index-41a974fa.js";import"./index-c17093ae.js";import"./index-543fb162.js";import"./index-b6a184ba.js";import"./debounce-1db848fd.js";import"./position-c3bcd0be.js";import"./index-b56195b5.js";import"./index-40e21e72.js";import"./isEqual-42d4b10f.js";import"./index-137757c0.js";import"./index-35e821cc.js";import"./index-34d55b7e.js";import"./strings-fe930bc4.js";import"./index-5a0d60aa.js";import"./directive-cb2d3366.js";const g={class:"main-container attachment-container"},k=n("div",{class:"flex justify-between items-center mb-4"},[n("span",{class:"text-[20px]"},"素材管理")],-1),Pt=d({__name:"attachment",setup(w){const m=["image","video","icon"],e=u(m[0]);return(B,i)=>{const s=v,l=E,c=V;return p(),a("div",g,[o(c,{class:"box-card !border-none full-container",shadow:"never"},{default:r(()=>[k,o(l,{modelValue:e.value,"onUpdate:modelValue":i[0]||(i[0]=t=>e.value=t)},{default:r(()=>[(p(),a(f,null,h(m,(t,_)=>o(s,{label:x(y)(t),name:t,key:_},{default:r(()=>[o(b,{scene:"attachment",type:t},null,8,["type"])]),_:2},1032,["label","name"])),64))]),_:1},8,["modelValue"])]),_:1})])}}});export{Pt as default};
|
||||
import{d,r as u,e as p,f as a,y as o,x as r,F as f,z as h,u as x,g as n}from"./base-06478700.js";/* empty css *//* empty css */import{t as y}from"./index-81ed253c.js";import{a as b}from"./attachment-21666979.js";import{a as v,E}from"./index-0d66b73c.js";import{E as V}from"./index-e10fccde.js";/* empty css */import"./event-10eba222.js";import"./index-2fcd1254.js";/* empty css */import"./el-overlay-42a687c6.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";import"./el-form-item-314d006d.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./index-981b0207.js";import"./vue-router-d09a2c28.js";import"./common-92a35870.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-6b67c4ac.js";/* empty css */import"./el-tooltip-58212670.js";import"./index-b52d0f2a.js";import"./index-b68e8463.js";import"./index-c2f001d3.js";import"./index-2a269c7c.js";import"./index-e4abfaa5.js";import"./index-9ee9102c.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index-4a01421d.js";import"./index-01f6e375.js";import"./validator-6e9db238.js";import"./index-41a974fa.js";import"./index-c17093ae.js";import"./index-543fb162.js";import"./index-b6a184ba.js";import"./debounce-1db848fd.js";import"./position-c3bcd0be.js";import"./index-b56195b5.js";import"./index-40e21e72.js";import"./isEqual-42d4b10f.js";import"./index-137757c0.js";import"./index-35e821cc.js";import"./index-34d55b7e.js";import"./strings-fe930bc4.js";import"./index-5a0d60aa.js";import"./directive-cb2d3366.js";const g={class:"main-container attachment-container"},k=n("div",{class:"flex justify-between items-center mb-4"},[n("span",{class:"text-[20px]"},"素材管理")],-1),Pt=d({__name:"attachment",setup(w){const m=["image","video","icon"],e=u(m[0]);return(B,i)=>{const s=v,l=E,c=V;return p(),a("div",g,[o(c,{class:"box-card !border-none full-container",shadow:"never"},{default:r(()=>[k,o(l,{modelValue:e.value,"onUpdate:modelValue":i[0]||(i[0]=t=>e.value=t)},{default:r(()=>[(p(),a(f,null,h(m,(t,_)=>o(s,{label:x(y)(t),name:t,key:_},{default:r(()=>[o(b,{scene:"attachment",type:t},null,8,["type"])]),_:2},1032,["label","name"])),64))]),_:1},8,["modelValue"])]),_:1})])}}});export{Pt as default};
|
||||
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{d as D,r as y,R as E,e as n,f as x,g as v,B as m,u as s,Q as G,v as u,x as o,y as i,H as c,A as p,F as H,z as O}from"./base-06478700.js";/* empty css *//* empty css */import{a as S,E as W}from"./el-form-item-314d006d.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{t as l}from"./index-81ed253c.js";import{b as j,G as I,H as L}from"./member-c227fc40.js";import{u as P}from"./vue-router-d09a2c28.js";import{E as M}from"./index-f84999b2.js";import{E as Q}from"./index-b68e8463.js";import{E as $,b as q}from"./index-6290cf08.js";import{E as J,a as K}from"./index-40e21e72.js";import{E as X}from"./index-e10fccde.js";import{E as Y}from"./index-c2f001d3.js";import{v as Z}from"./directive-cb2d3366.js";import"./index-2fcd1254.js";import"./event-10eba222.js";import"./index-80fd3793.js";import"./common-92a35870.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-6b67c4ac.js";import"./el-overlay-42a687c6.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";import"./el-tooltip-58212670.js";import"./index-b52d0f2a.js";import"./index-2a269c7c.js";import"./index-e4abfaa5.js";import"./index-9ee9102c.js";import"./validator-6e9db238.js";import"./isEqual-42d4b10f.js";const ee={class:"main-container"},te={class:"flex ml-[18px] justify-between items-center mt-[20px]"},oe={class:"text-[20px]"},ae={class:"fixed-footer-wrap"},re={class:"fixed-footer"},Ke=D({__name:"cash_out",setup(le){const k=P().meta.title,f=y(!0),g=y(),t=E({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 j()).data})(),(async(d=0)=>{const e=await(await I()).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 R=E({min:[{validator:(d,e,a)=>{Number(e)<.01?a(new Error(l("cashWithdrawalAmountHint"))):a()},trigger:"blur"}],rate:[{validator:(d,e,a)=>{Number(e)>100||Number(e)<0?a(new Error(l("commissionRatioHint"))):a()},trigger:"blur"}]}),C=async d=>{f.value||!d||await d.validate(e=>{if(e){let a={...t};a.is_open=Number(a.is_open).toString(),L(a).then(()=>{f.value=!1}).catch(()=>{f.value=!1})}})};return(d,e)=>{const a=M,_=S,V=Q,b=$,w=q,F=J,N=K,B=X,T=W,z=Y,A=Z;return n(),x("div",ee,[v("div",te,[v("span",oe,m(s(k)),1)]),G((n(),u(T,{model:t,"label-width":"150px",ref_key:"ruleFormRef",ref:g,rules:R,class:"page-form"},{default:o(()=>[i(B,{class:"box-card !border-none",shadow:"never"},{default:o(()=>[i(_,{label:s(l)("isOpen")},{default:o(()=>[i(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?(n(),u(_,{key:0,label:s(l)("cashWithdrawalAmount"),prop:"min"},{default:o(()=>[i(V,{modelValue:t.min,"onUpdate:modelValue":e[1]||(e[1]=r=>t.min=r),type:"number",placeholder:s(l)("cashWithdrawalAmountPlaceholder"),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"])):c("",!0),t.is_open?(n(),u(_,{key:1,label:s(l)("commissionRatio"),prop:"rate"},{default:o(()=>[i(V,{modelValue:t.rate,"onUpdate:modelValue":e[2]||(e[2]=r=>t.rate=r),type:"number",class:"input-width",placeholder:s(l)("commissionRatioPlaceholder")},{append:o(()=>[p("%")]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"])):c("",!0),t.is_open?(n(),u(_,{key:2,label:s(l)("audit"),class:"items-center"},{default:o(()=>[i(w,{modelValue:t.is_auto_verify,"onUpdate:modelValue":e[3]||(e[3]=r=>t.is_auto_verify=r)},{default:o(()=>[i(b,{label:"0",size:"large"},{default:o(()=>[p(m(s(l)("manualAudit")),1)]),_:1}),i(b,{label:"1",size:"large"},{default:o(()=>[p(m(s(l)("automaticAudit")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"])):c("",!0),t.is_open?(n(),u(_,{key:3,label:s(l)("transfer"),class:"items-center"},{default:o(()=>[i(w,{modelValue:t.is_auto_transfer,"onUpdate:modelValue":e[4]||(e[4]=r=>t.is_auto_transfer=r)},{default:o(()=>[i(b,{label:"0",size:"large"},{default:o(()=>[p(m(s(l)("manualTransfer")),1)]),_:1}),i(b,{label:"1",size:"large"},{default:o(()=>[p(m(s(l)("automatedTransit")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"])):c("",!0),t.is_open?(n(),u(_,{key:4,label:s(l)("transferMode"),class:"items-center"},{default:o(()=>[i(N,{modelValue:t.transfer_type,"onUpdate:modelValue":e[5]||(e[5]=r=>t.transfer_type=r),size:"large"},{default:o(()=>[(n(!0),x(H,null,O(h.value,(r,U)=>(n(),u(F,{label:r.key,key:"a"+U},{default:o(()=>[p(m(r.name),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"])):c("",!0)]),_:1})]),_:1},8,["model","rules"])),[[A,f.value]]),v("div",ae,[v("div",re,[i(z,{type:"primary",onClick:e[6]||(e[6]=r=>C(g.value))},{default:o(()=>[p(m(s(l)("save")),1)]),_:1})])])])}}});export{Ke as default};
|
||||
import{d as D,r as y,R as E,e as n,f as x,g as v,B as m,u as s,Q as G,v as u,x as o,y as i,H as c,A as p,F as H,z as O}from"./base-06478700.js";/* empty css *//* empty css */import{a as S,E as W}from"./el-form-item-314d006d.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{t as l}from"./index-81ed253c.js";import{b as j,G as I,H as L}from"./member-b587e6d0.js";import{u as P}from"./vue-router-d09a2c28.js";import{E as M}from"./index-f84999b2.js";import{E as Q}from"./index-b68e8463.js";import{E as $,b as q}from"./index-6290cf08.js";import{E as J,a as K}from"./index-40e21e72.js";import{E as X}from"./index-e10fccde.js";import{E as Y}from"./index-c2f001d3.js";import{v as Z}from"./directive-cb2d3366.js";import"./index-2fcd1254.js";import"./event-10eba222.js";import"./index-981b0207.js";import"./common-92a35870.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-6b67c4ac.js";import"./el-overlay-42a687c6.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";import"./el-tooltip-58212670.js";import"./index-b52d0f2a.js";import"./index-2a269c7c.js";import"./index-e4abfaa5.js";import"./index-9ee9102c.js";import"./validator-6e9db238.js";import"./isEqual-42d4b10f.js";const ee={class:"main-container"},te={class:"flex ml-[18px] justify-between items-center mt-[20px]"},oe={class:"text-[20px]"},ae={class:"fixed-footer-wrap"},re={class:"fixed-footer"},Ke=D({__name:"cash_out",setup(le){const k=P().meta.title,f=y(!0),g=y(),t=E({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 j()).data})(),(async(d=0)=>{const e=await(await I()).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 R=E({min:[{validator:(d,e,a)=>{Number(e)<.01?a(new Error(l("cashWithdrawalAmountHint"))):a()},trigger:"blur"}],rate:[{validator:(d,e,a)=>{Number(e)>100||Number(e)<0?a(new Error(l("commissionRatioHint"))):a()},trigger:"blur"}]}),C=async d=>{f.value||!d||await d.validate(e=>{if(e){let a={...t};a.is_open=Number(a.is_open).toString(),L(a).then(()=>{f.value=!1}).catch(()=>{f.value=!1})}})};return(d,e)=>{const a=M,_=S,V=Q,b=$,w=q,F=J,N=K,B=X,T=W,z=Y,A=Z;return n(),x("div",ee,[v("div",te,[v("span",oe,m(s(k)),1)]),G((n(),u(T,{model:t,"label-width":"150px",ref_key:"ruleFormRef",ref:g,rules:R,class:"page-form"},{default:o(()=>[i(B,{class:"box-card !border-none",shadow:"never"},{default:o(()=>[i(_,{label:s(l)("isOpen")},{default:o(()=>[i(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?(n(),u(_,{key:0,label:s(l)("cashWithdrawalAmount"),prop:"min"},{default:o(()=>[i(V,{modelValue:t.min,"onUpdate:modelValue":e[1]||(e[1]=r=>t.min=r),type:"number",placeholder:s(l)("cashWithdrawalAmountPlaceholder"),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"])):c("",!0),t.is_open?(n(),u(_,{key:1,label:s(l)("commissionRatio"),prop:"rate"},{default:o(()=>[i(V,{modelValue:t.rate,"onUpdate:modelValue":e[2]||(e[2]=r=>t.rate=r),type:"number",class:"input-width",placeholder:s(l)("commissionRatioPlaceholder")},{append:o(()=>[p("%")]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"])):c("",!0),t.is_open?(n(),u(_,{key:2,label:s(l)("audit"),class:"items-center"},{default:o(()=>[i(w,{modelValue:t.is_auto_verify,"onUpdate:modelValue":e[3]||(e[3]=r=>t.is_auto_verify=r)},{default:o(()=>[i(b,{label:"0",size:"large"},{default:o(()=>[p(m(s(l)("manualAudit")),1)]),_:1}),i(b,{label:"1",size:"large"},{default:o(()=>[p(m(s(l)("automaticAudit")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"])):c("",!0),t.is_open?(n(),u(_,{key:3,label:s(l)("transfer"),class:"items-center"},{default:o(()=>[i(w,{modelValue:t.is_auto_transfer,"onUpdate:modelValue":e[4]||(e[4]=r=>t.is_auto_transfer=r)},{default:o(()=>[i(b,{label:"0",size:"large"},{default:o(()=>[p(m(s(l)("manualTransfer")),1)]),_:1}),i(b,{label:"1",size:"large"},{default:o(()=>[p(m(s(l)("automatedTransit")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"])):c("",!0),t.is_open?(n(),u(_,{key:4,label:s(l)("transferMode"),class:"items-center"},{default:o(()=>[i(N,{modelValue:t.transfer_type,"onUpdate:modelValue":e[5]||(e[5]=r=>t.transfer_type=r),size:"large"},{default:o(()=>[(n(!0),x(H,null,O(h.value,(r,U)=>(n(),u(F,{label:r.key,key:"a"+U},{default:o(()=>[p(m(r.name),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"])):c("",!0)]),_:1})]),_:1},8,["model","rules"])),[[A,f.value]]),v("div",ae,[v("div",re,[i(z,{type:"primary",onClick:e[6]||(e[6]=r=>C(g.value))},{default:o(()=>[p(m(s(l)("save")),1)]),_:1})])])])}}});export{Ke 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 +1 @@
|
||||
import{d as L,R as C,r as d,Q as A,u as n,e as o,f as i,v as B,x as f,g as e,F as S,z as I,y as u,B as x,H as _,aP as j,aQ as V}from"./base-06478700.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{_ as D}from"./app_store_default-c4798c2d.js";import{k as F,B as N,C as R}from"./index-80fd3793.js";import{d as M}from"./common-92a35870.js";import{a as Q}from"./vue-router-d09a2c28.js";import{t as z}from"./index-81ed253c.js";import{E as H}from"./index-543fb162.js";import{E as P}from"./index-e10fccde.js";import{E as U}from"./index-b56195b5.js";import{v as $}from"./directive-cb2d3366.js";import{_ as q}from"./_plugin-vue_export-helper-c27b6911.js";import"./event-10eba222.js";import"./index-2fcd1254.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./index-6b67c4ac.js";import"./el-overlay-42a687c6.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";/* empty css */import"./el-form-item-314d006d.js";/* empty css */import"./el-tooltip-58212670.js";import"./index-b52d0f2a.js";import"./index-b68e8463.js";import"./index-c2f001d3.js";import"./index-2a269c7c.js";import"./index-e4abfaa5.js";import"./index-9ee9102c.js";import"./index-b6a184ba.js";import"./debounce-1db848fd.js";import"./position-c3bcd0be.js";const h=p=>(j("data-v-c23a4830"),p=p(),V(),p),G={class:"main-container w-full bg-white"},J=h(()=>e("div",{class:"flex justify-between items-center"},[e("span",{class:"text-[20px]"},"应用管理")],-1)),K={class:"flex flex-wrap plug-list pb-10 plug-large"},O={key:0,class:"relative app-item cursor-pointer px-4 mr-4 mt-[20px] bg-[#f7f7f7] border-[1px] hover:border-primary"},T=["onClick"],W={class:"flex py-5 items-center"},X={class:"flex justify-center items-center"},Y=h(()=>e("div",{class:"image-slot"},[e("img",{class:"w-[50px] h-[50px]",src:D})],-1)),Z={class:"flex flex-col justify-between text-left w-[190px]"},tt={class:"app-text w-[190px] text-[17px] text-[#222] pl-3"},et={class:"border-t-[1px] border-[#e8e9eb] py-3"},st={class:"app-text text-[14px] text-[#999] w-[200px]"},ot={key:1,class:"empty flex items-center justify-center"},rt=L({__name:"concern",setup(p){const l=F(),v=Q(),a=C({list:[]});let m=d(!0);(async()=>{const t=await N({type:"tart"});a.list=t.data,m.value=!1})();const c=d({});(()=>{l.routers.forEach((t,s)=>{t.meta.app!=""&&(t.children&&t.children.length?c.value[t.meta.app]=R(t.children):c.value[t.meta.app]=t.name)})})();const g=t=>{let s=l.appMenuList;s.length&&s.includes(t)||s.push(t),l.setAppMenuList(s),v.push({name:c.value[t]})};return(t,s)=>{const y=H,k=P,w=U,b=$;return A((o(),i("div",G,[a.list.length?(o(),B(k,{key:0,class:"box-card !border-none",shadow:"never"},{default:f(()=>[J,e("div",K,[(o(!0),i(S,null,I(a.list,(r,E)=>(o(),i("div",{key:E+"b"},[c.value[r.key]?(o(),i("div",O,[e("div",{onClick:at=>g(r.key)},[e("div",W,[e("div",X,[u(y,{class:"w-[50px] h-[50px]",src:n(M)(r.icon),fit:"contain"},{error:f(()=>[Y]),_:2},1032,["src"])]),e("div",Z,[e("p",tt,x(r.title),1)])]),e("div",et,[e("p",st,x(r.desc),1)])],8,T)])):_("",!0)]))),128))])]),_:1})):_("",!0),!n(m)&&!a.list.length?(o(),i("div",ot,[u(w,{description:n(z)("emptyData")},null,8,["description"])])):_("",!0)])),[[b,n(m)]])}}});const Kt=q(rt,[["__scopeId","data-v-c23a4830"]]);export{Kt as default};
|
||||
import{d as L,R as C,r as d,Q as A,u as n,e as o,f as i,v as B,x as f,g as e,F as S,z as I,y as u,B as x,H as _,aP as j,aQ as V}from"./base-06478700.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{_ as D}from"./app_store_default-c4798c2d.js";import{k as F,B as N,C as R}from"./index-981b0207.js";import{d as M}from"./common-92a35870.js";import{a as Q}from"./vue-router-d09a2c28.js";import{t as z}from"./index-81ed253c.js";import{E as H}from"./index-543fb162.js";import{E as P}from"./index-e10fccde.js";import{E as U}from"./index-b56195b5.js";import{v as $}from"./directive-cb2d3366.js";import{_ as q}from"./_plugin-vue_export-helper-c27b6911.js";import"./event-10eba222.js";import"./index-2fcd1254.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./index-6b67c4ac.js";import"./el-overlay-42a687c6.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";/* empty css */import"./el-form-item-314d006d.js";/* empty css */import"./el-tooltip-58212670.js";import"./index-b52d0f2a.js";import"./index-b68e8463.js";import"./index-c2f001d3.js";import"./index-2a269c7c.js";import"./index-e4abfaa5.js";import"./index-9ee9102c.js";import"./index-b6a184ba.js";import"./debounce-1db848fd.js";import"./position-c3bcd0be.js";const h=p=>(j("data-v-c23a4830"),p=p(),V(),p),G={class:"main-container w-full bg-white"},J=h(()=>e("div",{class:"flex justify-between items-center"},[e("span",{class:"text-[20px]"},"应用管理")],-1)),K={class:"flex flex-wrap plug-list pb-10 plug-large"},O={key:0,class:"relative app-item cursor-pointer px-4 mr-4 mt-[20px] bg-[#f7f7f7] border-[1px] hover:border-primary"},T=["onClick"],W={class:"flex py-5 items-center"},X={class:"flex justify-center items-center"},Y=h(()=>e("div",{class:"image-slot"},[e("img",{class:"w-[50px] h-[50px]",src:D})],-1)),Z={class:"flex flex-col justify-between text-left w-[190px]"},tt={class:"app-text w-[190px] text-[17px] text-[#222] pl-3"},et={class:"border-t-[1px] border-[#e8e9eb] py-3"},st={class:"app-text text-[14px] text-[#999] w-[200px]"},ot={key:1,class:"empty flex items-center justify-center"},rt=L({__name:"concern",setup(p){const l=F(),v=Q(),a=C({list:[]});let m=d(!0);(async()=>{const t=await N({type:"tart"});a.list=t.data,m.value=!1})();const c=d({});(()=>{l.routers.forEach((t,s)=>{t.meta.app!=""&&(t.children&&t.children.length?c.value[t.meta.app]=R(t.children):c.value[t.meta.app]=t.name)})})();const g=t=>{let s=l.appMenuList;s.length&&s.includes(t)||s.push(t),l.setAppMenuList(s),v.push({name:c.value[t]})};return(t,s)=>{const y=H,k=P,w=U,b=$;return A((o(),i("div",G,[a.list.length?(o(),B(k,{key:0,class:"box-card !border-none",shadow:"never"},{default:f(()=>[J,e("div",K,[(o(!0),i(S,null,I(a.list,(r,E)=>(o(),i("div",{key:E+"b"},[c.value[r.key]?(o(),i("div",O,[e("div",{onClick:at=>g(r.key)},[e("div",W,[e("div",X,[u(y,{class:"w-[50px] h-[50px]",src:n(M)(r.icon),fit:"contain"},{error:f(()=>[Y]),_:2},1032,["src"])]),e("div",Z,[e("p",tt,x(r.title),1)])]),e("div",et,[e("p",st,x(r.desc),1)])],8,T)])):_("",!0)]))),128))])]),_:1})):_("",!0),!n(m)&&!a.list.length?(o(),i("div",ot,[u(w,{description:n(z)("emptyData")},null,8,["description"])])):_("",!0)])),[[b,n(m)]])}}});const Kt=q(rt,[["__scopeId","data-v-c23a4830"]]);export{Kt as default};
|
||||
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{d as D,r as v,R,w as F,e as g,f as I,g as r,B as m,u as n,Q as j,v as A,x as i,y as l,A as H}from"./base-06478700.js";/* empty css *//* empty css */import{a as M,E as O}from"./el-form-item-314d006d.js";/* empty css *//* empty css *//* empty css */import{t as a}from"./index-81ed253c.js";import{A as y,V as U}from"./index-80fd3793.js";import{a3 as $}from"./event-10eba222.js";import{u as L}from"./vue-router-d09a2c28.js";import{a as h}from"./index-b52d0f2a.js";import{E as Q}from"./index-f84999b2.js";import{E as T}from"./index-b68e8463.js";import{E as z}from"./index-e10fccde.js";import{E as G}from"./index-c2f001d3.js";import{v as J}from"./directive-cb2d3366.js";import{_ as K}from"./_plugin-vue_export-helper-c27b6911.js";import"./index-2fcd1254.js";import"./common-92a35870.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./index-6b67c4ac.js";import"./el-overlay-42a687c6.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";import"./el-tooltip-58212670.js";import"./index-2a269c7c.js";import"./index-e4abfaa5.js";import"./index-9ee9102c.js";import"./validator-6e9db238.js";function P(){return y.get("channel/h5/config")}function W(u){return y.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-[20px]"},ee={class:"fixed-footer-wrap"},te={class:"fixed-footer"},oe=D({__name:"config",setup(u){const w=L().meta.title,s=v(!0),e=R({is_open:!1,request_url:""}),_=v();P().then(t=>{Object.assign(e,t.data),e.is_open=Boolean(Number(e.is_open)),s.value=!1}),U().then(t=>{e.request_url=t.data.wap_url+"/"});const{copy:b,isSupported:x,copied:d}=$(),E=t=>{if(!x.value){h({message:a("notSupportCopy"),type:"warning"});return}b(t)};F(d,()=>{d.value&&h({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=Q,f=M,V=T,B=z,N=O,q=G,S=J;return g(),I("div",X,[r("div",Y,[r("span",Z,m(n(w)),1)]),j((g(),A(N,{model:e,"label-width":"150px",ref_key:"formRef",ref:_,class:"page-form"},{default:i(()=>[l(B,{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(V,{"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(q,{type:"primary",loading:s.value,onClick:o[2]||(o[2]=c=>k(_.value))},{default:i(()=>[H(m(n(a)("save")),1)]),_:1},8,["loading"])])])])}}});const He=K(oe,[["__scopeId","data-v-16b8de7e"]]);export{He as default};
|
||||
import{d as D,r as v,R,w as F,e as g,f as I,g as r,B as m,u as n,Q as j,v as A,x as i,y as l,A as H}from"./base-06478700.js";/* empty css *//* empty css */import{a as M,E as O}from"./el-form-item-314d006d.js";/* empty css *//* empty css *//* empty css */import{t as a}from"./index-81ed253c.js";import{A as y,V as U}from"./index-981b0207.js";import{a3 as $}from"./event-10eba222.js";import{u as L}from"./vue-router-d09a2c28.js";import{a as h}from"./index-b52d0f2a.js";import{E as Q}from"./index-f84999b2.js";import{E as T}from"./index-b68e8463.js";import{E as z}from"./index-e10fccde.js";import{E as G}from"./index-c2f001d3.js";import{v as J}from"./directive-cb2d3366.js";import{_ as K}from"./_plugin-vue_export-helper-c27b6911.js";import"./index-2fcd1254.js";import"./common-92a35870.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./index-6b67c4ac.js";import"./el-overlay-42a687c6.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";import"./el-tooltip-58212670.js";import"./index-2a269c7c.js";import"./index-e4abfaa5.js";import"./index-9ee9102c.js";import"./validator-6e9db238.js";function P(){return y.get("channel/h5/config")}function W(u){return y.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-[20px]"},ee={class:"fixed-footer-wrap"},te={class:"fixed-footer"},oe=D({__name:"config",setup(u){const w=L().meta.title,s=v(!0),e=R({is_open:!1,request_url:""}),_=v();P().then(t=>{Object.assign(e,t.data),e.is_open=Boolean(Number(e.is_open)),s.value=!1}),U().then(t=>{e.request_url=t.data.wap_url+"/"});const{copy:b,isSupported:x,copied:d}=$(),E=t=>{if(!x.value){h({message:a("notSupportCopy"),type:"warning"});return}b(t)};F(d,()=>{d.value&&h({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=Q,f=M,V=T,B=z,N=O,q=G,S=J;return g(),I("div",X,[r("div",Y,[r("span",Z,m(n(w)),1)]),j((g(),A(N,{model:e,"label-width":"150px",ref_key:"formRef",ref:_,class:"page-form"},{default:i(()=>[l(B,{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(V,{"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(q,{type:"primary",loading:s.value,onClick:o[2]||(o[2]=c=>k(_.value))},{default:i(()=>[H(m(n(a)("save")),1)]),_:1},8,["loading"])])])])}}});const He=K(oe,[["__scopeId","data-v-16b8de7e"]]);export{He as default};
|
||||
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
import{d as S,r as u,R as k,w as I,Q as q,e as R,f as B,g as a,B as n,u as t,y as s,x as r,aP as D,aQ as N}from"./base-06478700.js";/* empty css */import{a as V,E as F}from"./el-form-item-314d006d.js";/* empty css *//* empty css */import{t as e}from"./index-81ed253c.js";import{V as P}from"./index-80fd3793.js";import{a3 as Q}from"./event-10eba222.js";import{u as j,a as L}from"./vue-router-d09a2c28.js";import{a as d}from"./index-b52d0f2a.js";import{E as M}from"./index-b68e8463.js";import{E as U}from"./index-e10fccde.js";import{v as $}from"./directive-cb2d3366.js";import{_ as z}from"./_plugin-vue_export-helper-c27b6911.js";import"./index-2fcd1254.js";import"./common-92a35870.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./index-6b67c4ac.js";import"./el-overlay-42a687c6.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";/* empty css */import"./el-tooltip-58212670.js";import"./index-c2f001d3.js";import"./index-2a269c7c.js";import"./index-e4abfaa5.js";import"./index-9ee9102c.js";const A="/admin/assets/preview-52aad803.png",G=i=>(D("data-v-3bfcd0e2"),i=i(),N(),i),H={class:"main-container"},J={class:"flex ml-[18px] justify-between items-center mt-[20px]"},K={class:"text-[20px]"},O=G(()=>a("img",{class:"w-[500px]",src:A,alt:""},null,-1)),T=S({__name:"config",setup(i){const f=j().meta.title,m=u(!0),o=k({is_open:!1,request_url:""}),v=u();L(),P().then(p=>{o.request_url=p.data.web_url+"/",m.value=!1});const{copy:g,isSupported:w,copied:c}=Q(),b=p=>{if(!w.value){d({message:e("notSupportCopy"),type:"warning"});return}g(p)};I(c,()=>{c.value&&d({message:e("copySuccess"),type:"success"})});const x=()=>{window.open(o.request_url)};return(p,l)=>{const _=V,y=M,h=U,E=F,C=$;return q((R(),B("div",H,[a("div",J,[a("span",K,n(t(f)),1)]),s(E,{model:o,"label-width":"150px",ref_key:"formRef",ref:v,class:"page-form"},{default:r(()=>[s(h,{class:"box-card !border-none",shadow:"never"},{default:r(()=>[s(_,{label:t(e)("preview"),prop:"weapp_name"},{default:r(()=>[O]),_:1},8,["label"]),s(_,{label:t(e)("PCDomainName")},{default:r(()=>[s(y,{"model-value":o.request_url,class:"input-width",readonly:!0},{append:r(()=>[a("div",{class:"cursor-pointer",onClick:l[0]||(l[0]=X=>b(o.request_url))},n(t(e)("copy")),1)]),_:1},8,["model-value"]),a("span",{class:"ml-2 cursor-pointer visit-btn",onClick:x},n(t(e)("clickVisit")),1)]),_:1},8,["label"])]),_:1})]),_:1},8,["model"])])),[[C,m.value]])}}});const qe=z(T,[["__scopeId","data-v-3bfcd0e2"]]);export{qe as default};
|
||||
import{d as S,r as u,R as k,w as I,Q as q,e as R,f as B,g as a,B as n,u as t,y as s,x as r,aP as D,aQ as N}from"./base-06478700.js";/* empty css */import{a as V,E as F}from"./el-form-item-314d006d.js";/* empty css *//* empty css */import{t as e}from"./index-81ed253c.js";import{V as P}from"./index-981b0207.js";import{a3 as Q}from"./event-10eba222.js";import{u as j,a as L}from"./vue-router-d09a2c28.js";import{a as d}from"./index-b52d0f2a.js";import{E as M}from"./index-b68e8463.js";import{E as U}from"./index-e10fccde.js";import{v as $}from"./directive-cb2d3366.js";import{_ as z}from"./_plugin-vue_export-helper-c27b6911.js";import"./index-2fcd1254.js";import"./common-92a35870.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./index-6b67c4ac.js";import"./el-overlay-42a687c6.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";/* empty css */import"./el-tooltip-58212670.js";import"./index-c2f001d3.js";import"./index-2a269c7c.js";import"./index-e4abfaa5.js";import"./index-9ee9102c.js";const A="/admin/assets/preview-52aad803.png",G=i=>(D("data-v-3bfcd0e2"),i=i(),N(),i),H={class:"main-container"},J={class:"flex ml-[18px] justify-between items-center mt-[20px]"},K={class:"text-[20px]"},O=G(()=>a("img",{class:"w-[500px]",src:A,alt:""},null,-1)),T=S({__name:"config",setup(i){const f=j().meta.title,m=u(!0),o=k({is_open:!1,request_url:""}),v=u();L(),P().then(p=>{o.request_url=p.data.web_url+"/",m.value=!1});const{copy:g,isSupported:w,copied:c}=Q(),b=p=>{if(!w.value){d({message:e("notSupportCopy"),type:"warning"});return}g(p)};I(c,()=>{c.value&&d({message:e("copySuccess"),type:"success"})});const x=()=>{window.open(o.request_url)};return(p,l)=>{const _=V,y=M,h=U,E=F,C=$;return q((R(),B("div",H,[a("div",J,[a("span",K,n(t(f)),1)]),s(E,{model:o,"label-width":"150px",ref_key:"formRef",ref:v,class:"page-form"},{default:r(()=>[s(h,{class:"box-card !border-none",shadow:"never"},{default:r(()=>[s(_,{label:t(e)("preview"),prop:"weapp_name"},{default:r(()=>[O]),_:1},8,["label"]),s(_,{label:t(e)("PCDomainName")},{default:r(()=>[s(y,{"model-value":o.request_url,class:"input-width",readonly:!0},{append:r(()=>[a("div",{class:"cursor-pointer",onClick:l[0]||(l[0]=X=>b(o.request_url))},n(t(e)("copy")),1)]),_:1},8,["model-value"]),a("span",{class:"ml-2 cursor-pointer visit-btn",onClick:x},n(t(e)("clickVisit")),1)]),_:1},8,["label"])]),_:1})]),_:1},8,["model"])])),[[C,m.value]])}}});const qe=z(T,[["__scopeId","data-v-3bfcd0e2"]]);export{qe as default};
|
||||
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{d as u,r as w,R as f,e as g,f as v,g as t,u as s,B as e,y as a,x as c,A as i}from"./base-06478700.js";/* empty css *//* empty css */import{t as o}from"./index-81ed253c.js";import{g as y}from"./wechat-894064b1.js";import{u as b,a as T}from"./vue-router-d09a2c28.js";import{E as k}from"./index-c2f001d3.js";import{E}from"./index-e10fccde.js";import"./index-80fd3793.js";import"./common-92a35870.js";import"./index-2fcd1254.js";import"./event-10eba222.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-6b67c4ac.js";import"./el-overlay-42a687c6.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";import"./el-form-item-314d006d.js";/* empty css */import"./el-tooltip-58212670.js";import"./index-b52d0f2a.js";import"./index-b68e8463.js";import"./index-2a269c7c.js";import"./index-e4abfaa5.js";import"./index-9ee9102c.js";const C="/admin/assets/wechat_1-0a26d3a6.png",O="/admin/assets/wechat_4-94a271d5.png",j="/admin/assets/wechat_2-0513f476.png",B="/admin/assets/wechat_3-0a96f3fe.png",N={class:"main-container"},R={class:"detail-head"},q=t("span",{class:"iconfont iconxiangzuojiantou !text-xs"},null,-1),V={class:"ml-[1px]"},A=t("span",{class:"adorn"},"|",-1),D={class:"right"},P={class:"mt-[20px]"},S={class:"flex"},z=t("div",{class:"min-w-[60px]"},[t("span",{class:"flex justify-center items-center block w-[40px] h-[40px] border-[1px] border-primary rounded-[999px] text-primary"},"1")],-1),K={class:"flex items-center text-[14px]"},L=t("span",{class:"text-primary"},"URL / Token / EncondingAESKey",-1),U=t("div",{class:"w-[100%] mt-[10px]"},[t("img",{class:"w-[100%]",src:C})],-1),W={class:"flex items-center text-[14px] mt-[20px]"},$=t("div",{class:"w-[100%] mt-[10px]"},[t("img",{class:"w-[100%]",src:O})],-1),F={class:"flex mt-[40px]"},G=t("div",{class:"min-w-[60px]"},[t("span",{class:"flex justify-center items-center block w-[40px] h-[40px] border-[1px] border-primary rounded-[999px] text-primary"},"2")],-1),H={class:"flex items-center text-[14px]"},I=t("div",{class:"w-[100%] mt-[10px]"},[t("img",{class:"w-[100%]",src:j})],-1),J={class:"flex mt-[40px]"},M=t("div",{class:"min-w-[60px]"},[t("span",{class:"flex justify-center items-center block w-[40px] h-[40px] border-[1px] border-primary rounded-[999px] text-primary"},"3")],-1),Q={class:"flex items-center text-[14px]"},X={class:"text-primary"},Y=t("div",{class:"w-[100%] mt-[10px]"},[t("img",{class:"w-[100%]",src:B})],-1),Rt=u({__name:"course",setup(Z){const p=b().meta.title,m=T(),_=w(!0),d=f({wechat_name:"",wechat_original:"",app_id:"",app_secret:"",qr_code:"",token:"",encoding_aes_key:"",encryption_type:"not_encrypt"});y().then(n=>{Object.assign(d,n.data),_.value=!1});const l=()=>{window.open("https://mp.weixin.qq.com/","_blank")};return(n,r)=>{const x=k,h=E;return g(),v("div",N,[t("div",R,[t("div",{class:"left",onClick:r[0]||(r[0]=st=>s(m).push({path:"/website/channel/wechat"}))},[q,t("span",V,e(s(o)("returnToPreviousPage")),1)]),A,t("span",D,e(s(p)),1)]),a(h,{class:"box-card !border-none",shadow:"never"},{default:c(()=>[t("div",P,[t("div",S,[z,t("div",null,[t("p",K,[i(e(s(o)("writingTipsOne1"))+"--",1),a(x,{link:"",type:"primary",onClick:l},{default:c(()=>[i(e(s(o)("writingTipsOne2")),1)]),_:1}),i(", "+e(s(o)("writingTipsOne3")),1),L,i(e(s(o)("writingTipsOne4")),1)]),U,t("p",W,e(s(o)("writingTipsOne5")),1),$])]),t("div",F,[G,t("div",null,[t("p",H,e(s(o)("writingTipsTwo1")),1),I])]),t("div",J,[M,t("div",null,[t("p",Q,[i(e(s(o)("writingTipsThree1")),1),t("span",X,e(s(o)("writingTipsThree2")),1)]),Y])])])]),_:1})])}}});export{Rt as default};
|
||||
import{d as u,r as w,R as f,e as g,f as v,g as t,u as s,B as e,y as a,x as c,A as i}from"./base-06478700.js";/* empty css *//* empty css */import{t as o}from"./index-81ed253c.js";import{g as y}from"./wechat-b2c05bef.js";import{u as b,a as T}from"./vue-router-d09a2c28.js";import{E as k}from"./index-c2f001d3.js";import{E}from"./index-e10fccde.js";import"./index-981b0207.js";import"./common-92a35870.js";import"./index-2fcd1254.js";import"./event-10eba222.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-6b67c4ac.js";import"./el-overlay-42a687c6.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";import"./el-form-item-314d006d.js";/* empty css */import"./el-tooltip-58212670.js";import"./index-b52d0f2a.js";import"./index-b68e8463.js";import"./index-2a269c7c.js";import"./index-e4abfaa5.js";import"./index-9ee9102c.js";const C="/admin/assets/wechat_1-0a26d3a6.png",O="/admin/assets/wechat_4-94a271d5.png",j="/admin/assets/wechat_2-0513f476.png",B="/admin/assets/wechat_3-0a96f3fe.png",N={class:"main-container"},R={class:"detail-head"},q=t("span",{class:"iconfont iconxiangzuojiantou !text-xs"},null,-1),V={class:"ml-[1px]"},A=t("span",{class:"adorn"},"|",-1),D={class:"right"},P={class:"mt-[20px]"},S={class:"flex"},z=t("div",{class:"min-w-[60px]"},[t("span",{class:"flex justify-center items-center block w-[40px] h-[40px] border-[1px] border-primary rounded-[999px] text-primary"},"1")],-1),K={class:"flex items-center text-[14px]"},L=t("span",{class:"text-primary"},"URL / Token / EncondingAESKey",-1),U=t("div",{class:"w-[100%] mt-[10px]"},[t("img",{class:"w-[100%]",src:C})],-1),W={class:"flex items-center text-[14px] mt-[20px]"},$=t("div",{class:"w-[100%] mt-[10px]"},[t("img",{class:"w-[100%]",src:O})],-1),F={class:"flex mt-[40px]"},G=t("div",{class:"min-w-[60px]"},[t("span",{class:"flex justify-center items-center block w-[40px] h-[40px] border-[1px] border-primary rounded-[999px] text-primary"},"2")],-1),H={class:"flex items-center text-[14px]"},I=t("div",{class:"w-[100%] mt-[10px]"},[t("img",{class:"w-[100%]",src:j})],-1),J={class:"flex mt-[40px]"},M=t("div",{class:"min-w-[60px]"},[t("span",{class:"flex justify-center items-center block w-[40px] h-[40px] border-[1px] border-primary rounded-[999px] text-primary"},"3")],-1),Q={class:"flex items-center text-[14px]"},X={class:"text-primary"},Y=t("div",{class:"w-[100%] mt-[10px]"},[t("img",{class:"w-[100%]",src:B})],-1),Rt=u({__name:"course",setup(Z){const p=b().meta.title,m=T(),_=w(!0),d=f({wechat_name:"",wechat_original:"",app_id:"",app_secret:"",qr_code:"",token:"",encoding_aes_key:"",encryption_type:"not_encrypt"});y().then(n=>{Object.assign(d,n.data),_.value=!1});const l=()=>{window.open("https://mp.weixin.qq.com/","_blank")};return(n,r)=>{const x=k,h=E;return g(),v("div",N,[t("div",R,[t("div",{class:"left",onClick:r[0]||(r[0]=st=>s(m).push({path:"/website/channel/wechat"}))},[q,t("span",V,e(s(o)("returnToPreviousPage")),1)]),A,t("span",D,e(s(p)),1)]),a(h,{class:"box-card !border-none",shadow:"never"},{default:c(()=>[t("div",P,[t("div",S,[z,t("div",null,[t("p",K,[i(e(s(o)("writingTipsOne1"))+"--",1),a(x,{link:"",type:"primary",onClick:l},{default:c(()=>[i(e(s(o)("writingTipsOne2")),1)]),_:1}),i(", "+e(s(o)("writingTipsOne3")),1),L,i(e(s(o)("writingTipsOne4")),1)]),U,t("p",W,e(s(o)("writingTipsOne5")),1),$])]),t("div",F,[G,t("div",null,[t("p",H,e(s(o)("writingTipsTwo1")),1),I])]),t("div",J,[M,t("div",null,[t("p",Q,[i(e(s(o)("writingTipsThree1")),1),t("span",X,e(s(o)("writingTipsThree2")),1)]),Y])])])]),_:1})])}}});export{Rt as default};
|
||||
File diff suppressed because one or more lines are too long
1
niucloud/public/admin/assets/default_headimg-3a4dd1c6.js
Normal file
1
niucloud/public/admin/assets/default_headimg-3a4dd1c6.js
Normal file
@ -0,0 +1 @@
|
||||
const e="/admin/assets/member_head-1e927329.png";export{e as _};
|
||||
@ -1 +0,0 @@
|
||||
const s="/admin/assets/default_headimg-1e927329.png";export{s as _};
|
||||
@ -1 +1 @@
|
||||
import{d as y,r as w,R as S,V as b,Q as k,u as t,e as i,f as m,v as C,x as l,g as a,B as p,y as e,H as E}from"./base-06478700.js";/* empty css *//* empty css */import"./index-80fd3793.js";/* empty css *//* empty css *//* empty css */import"./el-tooltip-58212670.js";import{t as o}from"./index-81ed253c.js";import{u as B}from"./tools-ddcb412e.js";import{u as z}from"./vue-router-d09a2c28.js";import{a as N,E as V}from"./index-4bec4464.js";import{E as D}from"./index-2fcd1254.js";import{E as I}from"./index-e10fccde.js";import{v as R}from"./directive-cb2d3366.js";import"./common-92a35870.js";import"./event-10eba222.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-6b67c4ac.js";import"./el-overlay-42a687c6.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";/* empty css */import"./el-form-item-314d006d.js";/* empty css */import"./index-b52d0f2a.js";import"./index-b68e8463.js";import"./index-c2f001d3.js";import"./index-2a269c7c.js";import"./index-e4abfaa5.js";import"./index-9ee9102c.js";import"./index-40e21e72.js";import"./isEqual-42d4b10f.js";import"./_isIterateeCall-1dc0e2ff.js";import"./debounce-1db848fd.js";import"./index-5a0d60aa.js";const T={class:"main-container attachment-container min-h-[80vh]"},j={class:"flex justify-between items-center"},A={class:"text-[20px]"},H={class:"bg-[#fff] pb-[20px] mb-3"},L={class:"pt-[20px] pb-[10px] text-sm"},Q={class:"text-[14px]"},q={class:"bg-[#fff] pb-[20px] mb-3"},F={class:"py-[20px] text-sm"},G={class:"text-[14px]"},J={class:"bg-[#fff] pb-[20px] mb-3"},K={class:"py-[20px] text-sm"},M={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},Je=y({__name:"detection",setup($){const h=z().meta.title,n=w([]);let r=S({server_load:!0});return(()=>{r.server_load=!0,B().then(f=>{n.value=f.data,r.server_load=!1}).catch(()=>{r.server_load=!1})})(),(f,oe)=>{const s=N,d=V,u=b("Select"),c=D,v=b("CloseBold"),g=I,x=R;return k((i(),m("div",T,[n.value&&!t(r).server_load?(i(),C(g,{key:0,class:"box-card !border-none",shadow:"never"},{default:l(()=>[a("div",j,[a("span",A,p(t(h)),1)]),a("div",H,[a("p",L,p(t(o)("serverInformation")),1),a("div",Q,[e(d,{data:n.value.server,size:"large"},{default:l(()=>[e(s,{prop:"name",label:t(o)("environment"),align:"left","min-width":"200"},null,8,["label"]),e(s,{prop:"server",label:t(o)("version"),align:"left","min-width":"140"},null,8,["label"])]),_:1},8,["data"])])]),a("div",q,[a("p",F,p(t(o)("systemDemand")),1),a("div",G,[e(d,{data:n.value.server_version,size:"large"},{default:l(()=>[e(s,{prop:"name",label:t(o)("environment"),align:"left","min-width":"200"},null,8,["label"]),e(s,{prop:"demand",label:t(o)("demand"),align:"left","min-width":"140"},null,8,["label"]),e(s,{prop:"server",label:t(o)("version"),align:"left","min-width":"140"},null,8,["label"])]),_:1},8,["data"])])]),a("div",J,[a("p",K,p(t(o)("authorityStatus")),1),a("div",M,[e(d,{data:n.value.system_variables,size:"large"},{default:l(()=>[e(s,{prop:"name",label:t(o)("name"),align:"left","min-width":"200"},null,8,["label"]),e(s,{prop:"need",label:t(o)("demand"),align:"left","min-width":"140"},null,8,["label"]),e(s,{label:t(o)("status"),align:"left","min-width":"140"},{default:l(({row:_})=>[_.status?(i(),m("span",O,[e(c,{color:"green"},{default:l(()=>[e(u)]),_:1})])):(i(),m("span",P,[e(c,{color:"red"},{default:l(()=>[e(v)]),_:1})]))]),_:1},8,["label"])]),_:1},8,["data"])])]),a("div",U,[a("p",W,p(t(o)("process")),1),a("div",X,[e(d,{data:n.value.process,size:"large"},{default:l(()=>[e(s,{prop:"name",label:t(o)("name"),align:"left","min-width":"200"},null,8,["label"]),e(s,{prop:"need",label:t(o)("demand"),align:"left","min-width":"140"},null,8,["label"]),e(s,{label:t(o)("status"),align:"left","min-width":"140"},{default:l(({row:_})=>[_.status?(i(),m("span",Y,[e(c,{color:"green"},{default:l(()=>[e(u)]),_:1})])):(i(),m("span",Z,[e(c,{color:"red"},{default:l(()=>[e(v)]),_:1})]))]),_:1},8,["label"])]),_:1},8,["data"])])])]),_:1})):E("",!0)])),[[x,t(r).server_load]])}}});export{Je as default};
|
||||
import{d as y,r as w,R as S,V as b,Q as k,u as t,e as i,f as m,v as C,x as l,g as a,B as p,y as e,H as E}from"./base-06478700.js";/* empty css *//* empty css */import"./index-981b0207.js";/* empty css *//* empty css *//* empty css */import"./el-tooltip-58212670.js";import{t as o}from"./index-81ed253c.js";import{u as B}from"./tools-3f2c0b23.js";import{u as z}from"./vue-router-d09a2c28.js";import{a as N,E as V}from"./index-4bec4464.js";import{E as D}from"./index-2fcd1254.js";import{E as I}from"./index-e10fccde.js";import{v as R}from"./directive-cb2d3366.js";import"./common-92a35870.js";import"./event-10eba222.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-6b67c4ac.js";import"./el-overlay-42a687c6.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";/* empty css */import"./el-form-item-314d006d.js";/* empty css */import"./index-b52d0f2a.js";import"./index-b68e8463.js";import"./index-c2f001d3.js";import"./index-2a269c7c.js";import"./index-e4abfaa5.js";import"./index-9ee9102c.js";import"./index-40e21e72.js";import"./isEqual-42d4b10f.js";import"./_isIterateeCall-1dc0e2ff.js";import"./debounce-1db848fd.js";import"./index-5a0d60aa.js";const T={class:"main-container attachment-container min-h-[80vh]"},j={class:"flex justify-between items-center"},A={class:"text-[20px]"},H={class:"bg-[#fff] pb-[20px] mb-3"},L={class:"pt-[20px] pb-[10px] text-sm"},Q={class:"text-[14px]"},q={class:"bg-[#fff] pb-[20px] mb-3"},F={class:"py-[20px] text-sm"},G={class:"text-[14px]"},J={class:"bg-[#fff] pb-[20px] mb-3"},K={class:"py-[20px] text-sm"},M={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},Je=y({__name:"detection",setup($){const h=z().meta.title,n=w([]);let r=S({server_load:!0});return(()=>{r.server_load=!0,B().then(f=>{n.value=f.data,r.server_load=!1}).catch(()=>{r.server_load=!1})})(),(f,oe)=>{const s=N,d=V,u=b("Select"),c=D,v=b("CloseBold"),g=I,x=R;return k((i(),m("div",T,[n.value&&!t(r).server_load?(i(),C(g,{key:0,class:"box-card !border-none",shadow:"never"},{default:l(()=>[a("div",j,[a("span",A,p(t(h)),1)]),a("div",H,[a("p",L,p(t(o)("serverInformation")),1),a("div",Q,[e(d,{data:n.value.server,size:"large"},{default:l(()=>[e(s,{prop:"name",label:t(o)("environment"),align:"left","min-width":"200"},null,8,["label"]),e(s,{prop:"server",label:t(o)("version"),align:"left","min-width":"140"},null,8,["label"])]),_:1},8,["data"])])]),a("div",q,[a("p",F,p(t(o)("systemDemand")),1),a("div",G,[e(d,{data:n.value.server_version,size:"large"},{default:l(()=>[e(s,{prop:"name",label:t(o)("environment"),align:"left","min-width":"200"},null,8,["label"]),e(s,{prop:"demand",label:t(o)("demand"),align:"left","min-width":"140"},null,8,["label"]),e(s,{prop:"server",label:t(o)("version"),align:"left","min-width":"140"},null,8,["label"])]),_:1},8,["data"])])]),a("div",J,[a("p",K,p(t(o)("authorityStatus")),1),a("div",M,[e(d,{data:n.value.system_variables,size:"large"},{default:l(()=>[e(s,{prop:"name",label:t(o)("name"),align:"left","min-width":"200"},null,8,["label"]),e(s,{prop:"need",label:t(o)("demand"),align:"left","min-width":"140"},null,8,["label"]),e(s,{label:t(o)("status"),align:"left","min-width":"140"},{default:l(({row:_})=>[_.status?(i(),m("span",O,[e(c,{color:"green"},{default:l(()=>[e(u)]),_:1})])):(i(),m("span",P,[e(c,{color:"red"},{default:l(()=>[e(v)]),_:1})]))]),_:1},8,["label"])]),_:1},8,["data"])])]),a("div",U,[a("p",W,p(t(o)("process")),1),a("div",X,[e(d,{data:n.value.process,size:"large"},{default:l(()=>[e(s,{prop:"name",label:t(o)("name"),align:"left","min-width":"200"},null,8,["label"]),e(s,{prop:"need",label:t(o)("demand"),align:"left","min-width":"140"},null,8,["label"]),e(s,{label:t(o)("status"),align:"left","min-width":"140"},{default:l(({row:_})=>[_.status?(i(),m("span",Y,[e(c,{color:"green"},{default:l(()=>[e(u)]),_:1})])):(i(),m("span",Z,[e(c,{color:"red"},{default:l(()=>[e(v)]),_:1})]))]),_:1},8,["label"])]),_:1},8,["data"])])])]),_:1})):E("",!0)])),[[x,t(r).server_load]])}}});export{Je as default};
|
||||
@ -1 +1 @@
|
||||
import{A as e}from"./index-80fd3793.js";function c(t){return e.get("dict/dict",{params:t})}function i(t){return e.get(`dict/dict/${t}`)}function u(t){return e.post("dict/dict",t,{showErrorMessage:!0,showSuccessMessage:!0})}function o(t){return e.put(`dict/dict/${t.id}`,t,{showErrorMessage:!0,showSuccessMessage:!0})}function n(t){return e.delete(`dict/dict/${t}`,{showErrorMessage:!0,showSuccessMessage:!0})}function a(t,s){return e.put(`dict/dictionary/${t}`,s,{showErrorMessage:!0,showSuccessMessage:!0})}function d(){return e.get("dict/all")}export{u as a,c as b,d as c,n as d,o as e,i as g,a as s};
|
||||
import{A as e}from"./index-981b0207.js";function c(t){return e.get("dict/dict",{params:t})}function i(t){return e.get(`dict/dict/${t}`)}function u(t){return e.post("dict/dict",t,{showErrorMessage:!0,showSuccessMessage:!0})}function o(t){return e.put(`dict/dict/${t.id}`,t,{showErrorMessage:!0,showSuccessMessage:!0})}function n(t){return e.delete(`dict/dict/${t}`,{showErrorMessage:!0,showSuccessMessage:!0})}function a(t,s){return e.put(`dict/dictionary/${t}`,s,{showErrorMessage:!0,showSuccessMessage:!0})}function d(){return e.get("dict/all")}export{u as a,c as b,d as c,n as d,o as e,i as g,a as s};
|
||||
@ -1 +1 @@
|
||||
import{_ as o}from"./dict.vue_vue_type_style_index_0_lang-095b8415.js";import"./base-06478700.js";/* empty css */import"./el-overlay-42a687c6.js";import"./event-10eba222.js";import"./index-2fcd1254.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";import"./el-form-item-314d006d.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-58212670.js";import"./index-80fd3793.js";import"./vue-router-d09a2c28.js";import"./index-81ed253c.js";import"./common-92a35870.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-6b67c4ac.js";/* empty css */import"./index-b52d0f2a.js";import"./index-b68e8463.js";import"./index-c2f001d3.js";import"./index-2a269c7c.js";import"./index-e4abfaa5.js";import"./index-9ee9102c.js";import"./dict-a587c715.js";import"./cloneDeep-9cc74b12.js";import"./index-4bec4464.js";import"./index-40e21e72.js";import"./isEqual-42d4b10f.js";import"./_isIterateeCall-1dc0e2ff.js";import"./debounce-1db848fd.js";import"./index-5a0d60aa.js";import"./index-7f381641.js";import"./index-992fe6cc.js";import"./directive-cb2d3366.js";export{o as default};
|
||||
import{_ as o}from"./dict.vue_vue_type_style_index_0_lang-7e3cd94c.js";import"./base-06478700.js";/* empty css */import"./el-overlay-42a687c6.js";import"./event-10eba222.js";import"./index-2fcd1254.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";import"./el-form-item-314d006d.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-58212670.js";import"./index-981b0207.js";import"./vue-router-d09a2c28.js";import"./index-81ed253c.js";import"./common-92a35870.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-6b67c4ac.js";/* empty css */import"./index-b52d0f2a.js";import"./index-b68e8463.js";import"./index-c2f001d3.js";import"./index-2a269c7c.js";import"./index-e4abfaa5.js";import"./index-9ee9102c.js";import"./dict-1c7079b7.js";import"./cloneDeep-9cc74b12.js";import"./index-4bec4464.js";import"./index-40e21e72.js";import"./isEqual-42d4b10f.js";import"./_isIterateeCall-1dc0e2ff.js";import"./debounce-1db848fd.js";import"./index-5a0d60aa.js";import"./index-7f381641.js";import"./index-992fe6cc.js";import"./directive-cb2d3366.js";export{o as default};
|
||||
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
import{A as t}from"./index-80fd3793.js";function s(e){return t.get("diy/diy",{params:e})}function n(e){return t.get("diy/list",{params:e})}function u(e){return t.post("diy/diy",e,{showSuccessMessage:!0})}function r(e){return t.put(`diy/diy/${e.id}`,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 c(e){return t.get("diy/init",{params:e})}function g(e){return t.get("diy/link",{params:e})}function y(e){return t.get("diy/bottom",{params:e})}function d(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})}function m(e){return t.get("diy/decorate",{params:e})}function S(e){return t.put("diy/change",e,{showSuccessMessage:!0})}export{u as a,m as b,n as c,S as d,r as e,f,g,s as h,c as i,a as j,o as k,h as l,D as m,p as n,y as o,d as s};
|
||||
import{A as t}from"./index-981b0207.js";function s(e){return t.get("diy/diy",{params:e})}function n(e){return t.get("diy/list",{params:e})}function u(e){return t.post("diy/diy",e,{showSuccessMessage:!0})}function r(e){return t.put(`diy/diy/${e.id}`,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 c(e){return t.get("diy/init",{params:e})}function g(e){return t.get("diy/link",{params:e})}function y(e){return t.get("diy/bottom",{params:e})}function d(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})}function m(e){return t.get("diy/decorate",{params:e})}function S(e){return t.put("diy/change",e,{showSuccessMessage:!0})}export{u as a,m as b,n as c,S as d,r as e,f,g,s as h,c as i,a as j,o as k,h as l,D as m,p as n,y as o,d as s};
|
||||
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{d as z,r as v,o as A,E as F,R as N,e as p,f as x,Q as m,u as t,g as a,B as _,y as i,x as c,F as C,z as R,A as j,v as w,H as P,h as $}from"./base-06478700.js";/* empty css */import{E as M}from"./el-overlay-42a687c6.js";/* empty css *//* empty css *//* empty css */import"./el-tooltip-58212670.js";import{W as O,_ as W}from"./index-80fd3793.js";/* empty css *//* empty css */import{E as H}from"./el-form-item-314d006d.js";/* empty css */import{v as f}from"./event-10eba222.js";import{t as r}from"./index-81ed253c.js";import{u as Q}from"./diy-81c73356.js";import{d as y}from"./common-92a35870.js";import{S as U}from"./sortable.esm-be94e56d.js";import{r as q}from"./range-1a1bb482.js";import{E as G}from"./index-c2f001d3.js";import{E as J}from"./index-543fb162.js";import{a as K,E as X}from"./index-4bec4464.js";import{v as Y}from"./directive-cb2d3366.js";const Z={class:"content-wrap"},ee={class:"edit-attr-item-wrap"},te={class:"mb-[10px]"},oe={class:"flex items-center pb-[10px]"},ae=["src"],le={class:"flex flex-col justify-center ml-[10px] leading-[1]"},ne={class:"text-[14px]"},se={class:"text-[12px] text-[#999] mt-[8px]"},ie=["onClick"],re={class:"style-wrap"},de=z({__name:"edit-addon-list",setup(ce,{expose:k}){const o=Q();o.editComponent.ignore=[],o.editComponent.verify=s=>{var e={code:!0,message:""};return e};const u=v(!1),b=v();A(()=>{F(()=>{const s=U.create(b.value,{group:"item-wrap",animation:200,onEnd:e=>{const d=o.editComponent.list[e.oldIndex];o.editComponent.list.splice(e.oldIndex,1),o.editComponent.list.splice(e.newIndex,0,d),s.sort(q(o.editComponent.list.length).map(g=>g.toString()))}})})});const l=N({page:1,limit:10,total:0,loading:!0,data:[],searchParam:{title:"",key:""}});((s=1)=>{l.loading=!0,l.page=s,O({...l.searchParam}).then(e=>{l.loading=!1,l.data=e.data,l.total=e.data.length}).catch(()=>{l.loading=!1})})();const E=s=>{let e={id:o.generateRandom(),key:"",title:"",url:"",icon:"",desc:""};for(let d in s)e[d]=s[d];o.editComponent.list.push(e),u.value=!1},S=()=>{u.value=!0};return k({}),(s,e)=>{const d=W,g=G,T=H,B=J,h=K,D=X,L=M,V=Y;return p(),x(C,null,[m(a("div",Z,[a("div",ee,[a("h3",te,_(t(r)("addonListSet")),1),i(T,{"label-width":"100px",class:"px-[10px]"},{default:c(()=>[a("div",{ref_key:"addonBoxRef",ref:b},[(p(!0),x(C,null,R(t(o).editComponent.list,(n,I)=>(p(),x("div",{key:n.id,class:"item-wrap !cursor-move p-[10px] pb-0 relative border border-dashed border-gray-300 mb-[16px]"},[m(a("div",oe,[a("img",{class:"w-[60px] h-[60px] rounded-md",src:t(y)(n.icon)},null,8,ae),a("div",le,[a("span",ne,_(n.title),1),a("span",se,_(n.desc),1)])],512),[[f,n.title]]),m(a("div",{class:"del absolute cursor-pointer z-[2] top-[-8px] right-[-8px]",onClick:me=>t(o).editComponent.list.splice(I,1)},[i(d,{name:"element-CircleCloseFilled",color:"#bbb",size:"20px"})],8,ie),[[f,t(o).editComponent.list.length>1]])]))),128))],512),i(g,{class:"w-full",onClick:S},{default:c(()=>[j(_(t(r)("addAddon")),1)]),_:1})]),_:1})]),i(L,{modelValue:u.value,"onUpdate:modelValue":e[0]||(e[0]=n=>u.value=n),title:t(r)("addonListTips"),width:"600px","close-on-press-escape":!1,"close-on-click-modal":!1},{default:c(()=>[a("div",null,[m((p(),w(D,{data:l.data,size:"large",onCurrentChange:E,"highlight-current-row":"","max-height":"500px"},{empty:c(()=>[a("span",null,_(l.loading?"":t(r)("emptyData")),1)]),default:c(()=>[i(h,{label:t(r)("addonIcon"),width:"120",align:"center"},{default:c(({row:n})=>[n.icon?(p(),w(B,{key:0,class:"w-[50px] h-[50px]",src:t(y)(n.icon),fit:"contain"},null,8,["src"])):P("",!0)]),_:1},8,["label"]),i(h,{prop:"title","show-overflow-tooltip":!0,width:"120",label:t(r)("addonTitle")},null,8,["label"]),i(h,{prop:"desc","show-overflow-tooltip":!0,label:t(r)("addonDesc")},null,8,["label"])]),_:1},8,["data"])),[[V,l.loading]])])]),_:1},8,["modelValue","title"])],512),[[f,t(o).editTab=="content"]]),m(a("div",re,[$(s.$slots,"style")],512),[[f,t(o).editTab=="style"]])],64)}}}),Fe=Object.freeze(Object.defineProperty({__proto__:null,default:de},Symbol.toStringTag,{value:"Module"}));export{Fe as _};
|
||||
import{d as z,r as v,o as A,E as F,R as N,e as p,f as x,Q as m,u as t,g as a,B as _,y as i,x as c,F as C,z as R,A as j,v as w,H as P,h as $}from"./base-06478700.js";/* empty css */import{E as M}from"./el-overlay-42a687c6.js";/* empty css *//* empty css *//* empty css */import"./el-tooltip-58212670.js";import{W as O,_ as W}from"./index-981b0207.js";/* empty css *//* empty css */import{E as H}from"./el-form-item-314d006d.js";/* empty css */import{v as f}from"./event-10eba222.js";import{t as r}from"./index-81ed253c.js";import{u as Q}from"./diy-81c73356.js";import{d as y}from"./common-92a35870.js";import{S as U}from"./sortable.esm-be94e56d.js";import{r as q}from"./range-1a1bb482.js";import{E as G}from"./index-c2f001d3.js";import{E as J}from"./index-543fb162.js";import{a as K,E as X}from"./index-4bec4464.js";import{v as Y}from"./directive-cb2d3366.js";const Z={class:"content-wrap"},ee={class:"edit-attr-item-wrap"},te={class:"mb-[10px]"},oe={class:"flex items-center pb-[10px]"},ae=["src"],le={class:"flex flex-col justify-center ml-[10px] leading-[1]"},ne={class:"text-[14px]"},se={class:"text-[12px] text-[#999] mt-[8px]"},ie=["onClick"],re={class:"style-wrap"},de=z({__name:"edit-addon-list",setup(ce,{expose:k}){const o=Q();o.editComponent.ignore=[],o.editComponent.verify=s=>{var e={code:!0,message:""};return e};const u=v(!1),b=v();A(()=>{F(()=>{const s=U.create(b.value,{group:"item-wrap",animation:200,onEnd:e=>{const d=o.editComponent.list[e.oldIndex];o.editComponent.list.splice(e.oldIndex,1),o.editComponent.list.splice(e.newIndex,0,d),s.sort(q(o.editComponent.list.length).map(g=>g.toString()))}})})});const l=N({page:1,limit:10,total:0,loading:!0,data:[],searchParam:{title:"",key:""}});((s=1)=>{l.loading=!0,l.page=s,O({...l.searchParam}).then(e=>{l.loading=!1,l.data=e.data,l.total=e.data.length}).catch(()=>{l.loading=!1})})();const E=s=>{let e={id:o.generateRandom(),key:"",title:"",url:"",icon:"",desc:""};for(let d in s)e[d]=s[d];o.editComponent.list.push(e),u.value=!1},S=()=>{u.value=!0};return k({}),(s,e)=>{const d=W,g=G,T=H,B=J,h=K,D=X,L=M,V=Y;return p(),x(C,null,[m(a("div",Z,[a("div",ee,[a("h3",te,_(t(r)("addonListSet")),1),i(T,{"label-width":"100px",class:"px-[10px]"},{default:c(()=>[a("div",{ref_key:"addonBoxRef",ref:b},[(p(!0),x(C,null,R(t(o).editComponent.list,(n,I)=>(p(),x("div",{key:n.id,class:"item-wrap !cursor-move p-[10px] pb-0 relative border border-dashed border-gray-300 mb-[16px]"},[m(a("div",oe,[a("img",{class:"w-[60px] h-[60px] rounded-md",src:t(y)(n.icon)},null,8,ae),a("div",le,[a("span",ne,_(n.title),1),a("span",se,_(n.desc),1)])],512),[[f,n.title]]),m(a("div",{class:"del absolute cursor-pointer z-[2] top-[-8px] right-[-8px]",onClick:me=>t(o).editComponent.list.splice(I,1)},[i(d,{name:"element-CircleCloseFilled",color:"#bbb",size:"20px"})],8,ie),[[f,t(o).editComponent.list.length>1]])]))),128))],512),i(g,{class:"w-full",onClick:S},{default:c(()=>[j(_(t(r)("addAddon")),1)]),_:1})]),_:1})]),i(L,{modelValue:u.value,"onUpdate:modelValue":e[0]||(e[0]=n=>u.value=n),title:t(r)("addonListTips"),width:"600px","close-on-press-escape":!1,"close-on-click-modal":!1},{default:c(()=>[a("div",null,[m((p(),w(D,{data:l.data,size:"large",onCurrentChange:E,"highlight-current-row":"","max-height":"500px"},{empty:c(()=>[a("span",null,_(l.loading?"":t(r)("emptyData")),1)]),default:c(()=>[i(h,{label:t(r)("addonIcon"),width:"120",align:"center"},{default:c(({row:n})=>[n.icon?(p(),w(B,{key:0,class:"w-[50px] h-[50px]",src:t(y)(n.icon),fit:"contain"},null,8,["src"])):P("",!0)]),_:1},8,["label"]),i(h,{prop:"title","show-overflow-tooltip":!0,width:"120",label:t(r)("addonTitle")},null,8,["label"]),i(h,{prop:"desc","show-overflow-tooltip":!0,label:t(r)("addonDesc")},null,8,["label"])]),_:1},8,["data"])),[[V,l.loading]])])]),_:1},8,["modelValue","title"])],512),[[f,t(o).editTab=="content"]]),m(a("div",re,[$(s.$slots,"style")],512),[[f,t(o).editTab=="style"]])],64)}}}),Fe=Object.freeze(Object.defineProperty({__proto__:null,default:de},Symbol.toStringTag,{value:"Module"}));export{Fe as _};
|
||||
@ -1 +1 @@
|
||||
import{_ as o}from"./edit-associated.vue_vue_type_script_setup_true_async_true_lang-bd329a06.js";import"./base-06478700.js";import"./el-overlay-42a687c6.js";import"./event-10eba222.js";import"./index-2fcd1254.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";/* empty css */import"./el-form-item-314d006d.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./index-80fd3793.js";import"./vue-router-d09a2c28.js";import"./index-81ed253c.js";import"./common-92a35870.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-6b67c4ac.js";import"./el-tooltip-58212670.js";import"./index-b52d0f2a.js";import"./index-b68e8463.js";import"./index-c2f001d3.js";import"./index-2a269c7c.js";import"./index-e4abfaa5.js";import"./index-9ee9102c.js";import"./tools-ddcb412e.js";import"./cloneDeep-9cc74b12.js";import"./index-35e821cc.js";import"./index-34d55b7e.js";import"./strings-fe930bc4.js";import"./isEqual-42d4b10f.js";import"./debounce-1db848fd.js";import"./index-5a0d60aa.js";import"./validator-6e9db238.js";export{o as default};
|
||||
import{_ as o}from"./edit-associated.vue_vue_type_script_setup_true_async_true_lang-dccfc1d7.js";import"./base-06478700.js";import"./el-overlay-42a687c6.js";import"./event-10eba222.js";import"./index-2fcd1254.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";/* empty css */import"./el-form-item-314d006d.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./index-981b0207.js";import"./vue-router-d09a2c28.js";import"./index-81ed253c.js";import"./common-92a35870.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-6b67c4ac.js";import"./el-tooltip-58212670.js";import"./index-b52d0f2a.js";import"./index-b68e8463.js";import"./index-c2f001d3.js";import"./index-2a269c7c.js";import"./index-e4abfaa5.js";import"./index-9ee9102c.js";import"./tools-3f2c0b23.js";import"./cloneDeep-9cc74b12.js";import"./index-35e821cc.js";import"./index-34d55b7e.js";import"./strings-fe930bc4.js";import"./isEqual-42d4b10f.js";import"./debounce-1db848fd.js";import"./index-5a0d60aa.js";import"./validator-6e9db238.js";export{o as default};
|
||||
@ -1 +1 @@
|
||||
import{d as S,r as s,c as I,e as u,v as f,x as d,g as O,y as t,A as F,B as C,u as r,f as _,F as b,z as h,an as z}from"./base-06478700.js";import{E as j}from"./el-overlay-42a687c6.js";/* empty css */import{a as H,E as J}from"./el-form-item-314d006d.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./index-80fd3793.js";import"./el-tooltip-58212670.js";import{t as a}from"./index-81ed253c.js";import{g as Q,l as W,m as X}from"./tools-ddcb412e.js";import{c as q}from"./cloneDeep-9cc74b12.js";import{a as Y,E as Z}from"./index-35e821cc.js";import{E as ee}from"./index-b68e8463.js";import{E as le}from"./index-c2f001d3.js";const ae={class:"dialog-footer"},Ve=S({__name:"edit-associated",props:{table_name:{type:String,required:!0}},emits:["complete"],setup(x,{expose:K,emit:U}){const A=x,m=s(!1);s(!1);const B=s(""),V={type:"has_one",name:"",addon:"system",model:"",local_key:"",foreign_key:""},o=s({...V}),g=s(),M=I(()=>({type:[{required:!0,message:a("associatedTypePlaceholder"),trigger:"change"}],name:[{required:!0,message:a("associatedNamePlaceholder"),trigger:"blur"}],addon:[{required:!0,message:a("addonsPlaceholder"),trigger:"change"}],model:[{required:!0,message:a("associatedModelPlaceholder"),trigger:"change"}],local_key:[{required:!0,message:a("localKeyPlaceholder"),trigger:"change"}],foreign_key:[{required:!0,message:a("foreignKeyPlaceholder"),trigger:"blur"}]})),k=s([]),w=n=>{W(n).then(e=>{k.value=e.data})},E=s([]),N=n=>{X({table_name:n}).then(e=>{E.value=e.data})},v=s([]);(async()=>{let{data:n}=await Q({});v.value=[{title:"系统",key:"system"}],v.value.push(...n),w({addon:"system"})})();const T=n=>{o.value.model="",w({addon:n})},G=n=>{var e;(e=g.value)==null||e.clearValidate(),n()},L=async n=>{n&&await n.validate(async e=>{e&&(U("complete",z(o.value)),m.value=!1)})};return K({showDialog:m,setFormData:async(n=null)=>{N(A.table_name),n?o.value=q(n):o.value=q(V),m.value=!0}}),(n,e)=>{const p=Y,c=Z,i=H,P=ee,R=J,D=le,$=j;return u(),f($,{modelValue:m.value,"onUpdate:modelValue":e[8]||(e[8]=l=>m.value=l),title:B.value,width:"500px","before-close":G,"destroy-on-close":!0},{footer:d(()=>[O("span",ae,[t(D,{onClick:e[6]||(e[6]=l=>m.value=!1)},{default:d(()=>[F(C(r(a)("cancel")),1)]),_:1}),t(D,{type:"primary",onClick:e[7]||(e[7]=l=>L(g.value))},{default:d(()=>[F(C(r(a)("confirm")),1)]),_:1})])]),default:d(()=>[t(R,{model:o.value,"label-width":"120px",ref_key:"formRef",ref:g,rules:r(M),class:"page-form"},{default:d(()=>[t(i,{label:r(a)("associatedType"),prop:"type"},{default:d(()=>[t(c,{placeholder:r(a)("associatedTypePlaceholder"),modelValue:o.value.type,"onUpdate:modelValue":e[0]||(e[0]=l=>o.value.type=l),class:"input-width"},{default:d(()=>[t(p,{label:r(a)("hasOne"),value:"has_one"},null,8,["label"]),t(p,{label:r(a)("hasMany"),value:"has_many"},null,8,["label"])]),_:1},8,["placeholder","modelValue"])]),_:1},8,["label"]),t(i,{label:r(a)("associatedName"),prop:"name"},{default:d(()=>[t(P,{modelValue:o.value.name,"onUpdate:modelValue":e[1]||(e[1]=l=>o.value.name=l),placeholder:r(a)("associatedNamePlaceholder"),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),t(i,{label:r(a)("addons"),prop:"addon"},{default:d(()=>[t(c,{modelValue:o.value.addon,"onUpdate:modelValue":e[2]||(e[2]=l=>o.value.addon=l),placeholder:r(a)("addonsPlaceholder"),class:"input-width",onChange:T},{default:d(()=>[(u(!0),_(b,null,h(v.value,(l,y)=>(u(),f(p,{label:l.title,value:l.key,key:y},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),t(i,{label:r(a)("associatedModel"),prop:"model"},{default:d(()=>[t(c,{placeholder:r(a)("associatedModelPlaceholder"),modelValue:o.value.model,"onUpdate:modelValue":e[3]||(e[3]=l=>o.value.model=l),class:"input-width"},{default:d(()=>[(u(!0),_(b,null,h(k.value,l=>(u(),f(p,{label:l,value:l,key:l},null,8,["label","value"]))),128))]),_:1},8,["placeholder","modelValue"])]),_:1},8,["label"]),t(i,{prop:"local_key",label:r(a)("localKey")},{default:d(()=>[t(c,{class:"input-width",placeholder:r(a)("localKeyPlaceholder"),modelValue:o.value.local_key,"onUpdate:modelValue":e[4]||(e[4]=l=>o.value.local_key=l)},{default:d(()=>[(u(!0),_(b,null,h(E.value,(l,y)=>(u(),f(p,{label:`${l.name}:${l.comment}`,value:l.name,key:y},null,8,["label","value"]))),128))]),_:1},8,["placeholder","modelValue"])]),_:1},8,["label"]),t(i,{label:r(a)("foreignKey"),prop:"foreign_key"},{default:d(()=>[t(P,{modelValue:o.value.foreign_key,"onUpdate:modelValue":e[5]||(e[5]=l=>o.value.foreign_key=l),placeholder:r(a)("foreignKeyPlaceholder"),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","rules"])]),_:1},8,["modelValue","title"])}}});export{Ve as _};
|
||||
import{d as S,r as s,c as I,e as u,v as f,x as d,g as O,y as t,A as F,B as C,u as r,f as _,F as b,z as h,an as z}from"./base-06478700.js";import{E as j}from"./el-overlay-42a687c6.js";/* empty css */import{a as H,E as J}from"./el-form-item-314d006d.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./index-981b0207.js";import"./el-tooltip-58212670.js";import{t as a}from"./index-81ed253c.js";import{g as Q,l as W,m as X}from"./tools-3f2c0b23.js";import{c as q}from"./cloneDeep-9cc74b12.js";import{a as Y,E as Z}from"./index-35e821cc.js";import{E as ee}from"./index-b68e8463.js";import{E as le}from"./index-c2f001d3.js";const ae={class:"dialog-footer"},Ve=S({__name:"edit-associated",props:{table_name:{type:String,required:!0}},emits:["complete"],setup(x,{expose:K,emit:U}){const A=x,m=s(!1);s(!1);const B=s(""),V={type:"has_one",name:"",addon:"system",model:"",local_key:"",foreign_key:""},o=s({...V}),g=s(),M=I(()=>({type:[{required:!0,message:a("associatedTypePlaceholder"),trigger:"change"}],name:[{required:!0,message:a("associatedNamePlaceholder"),trigger:"blur"}],addon:[{required:!0,message:a("addonsPlaceholder"),trigger:"change"}],model:[{required:!0,message:a("associatedModelPlaceholder"),trigger:"change"}],local_key:[{required:!0,message:a("localKeyPlaceholder"),trigger:"change"}],foreign_key:[{required:!0,message:a("foreignKeyPlaceholder"),trigger:"blur"}]})),k=s([]),w=n=>{W(n).then(e=>{k.value=e.data})},E=s([]),N=n=>{X({table_name:n}).then(e=>{E.value=e.data})},v=s([]);(async()=>{let{data:n}=await Q({});v.value=[{title:"系统",key:"system"}],v.value.push(...n),w({addon:"system"})})();const T=n=>{o.value.model="",w({addon:n})},G=n=>{var e;(e=g.value)==null||e.clearValidate(),n()},L=async n=>{n&&await n.validate(async e=>{e&&(U("complete",z(o.value)),m.value=!1)})};return K({showDialog:m,setFormData:async(n=null)=>{N(A.table_name),n?o.value=q(n):o.value=q(V),m.value=!0}}),(n,e)=>{const p=Y,c=Z,i=H,P=ee,R=J,D=le,$=j;return u(),f($,{modelValue:m.value,"onUpdate:modelValue":e[8]||(e[8]=l=>m.value=l),title:B.value,width:"500px","before-close":G,"destroy-on-close":!0},{footer:d(()=>[O("span",ae,[t(D,{onClick:e[6]||(e[6]=l=>m.value=!1)},{default:d(()=>[F(C(r(a)("cancel")),1)]),_:1}),t(D,{type:"primary",onClick:e[7]||(e[7]=l=>L(g.value))},{default:d(()=>[F(C(r(a)("confirm")),1)]),_:1})])]),default:d(()=>[t(R,{model:o.value,"label-width":"120px",ref_key:"formRef",ref:g,rules:r(M),class:"page-form"},{default:d(()=>[t(i,{label:r(a)("associatedType"),prop:"type"},{default:d(()=>[t(c,{placeholder:r(a)("associatedTypePlaceholder"),modelValue:o.value.type,"onUpdate:modelValue":e[0]||(e[0]=l=>o.value.type=l),class:"input-width"},{default:d(()=>[t(p,{label:r(a)("hasOne"),value:"has_one"},null,8,["label"]),t(p,{label:r(a)("hasMany"),value:"has_many"},null,8,["label"])]),_:1},8,["placeholder","modelValue"])]),_:1},8,["label"]),t(i,{label:r(a)("associatedName"),prop:"name"},{default:d(()=>[t(P,{modelValue:o.value.name,"onUpdate:modelValue":e[1]||(e[1]=l=>o.value.name=l),placeholder:r(a)("associatedNamePlaceholder"),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),t(i,{label:r(a)("addons"),prop:"addon"},{default:d(()=>[t(c,{modelValue:o.value.addon,"onUpdate:modelValue":e[2]||(e[2]=l=>o.value.addon=l),placeholder:r(a)("addonsPlaceholder"),class:"input-width",onChange:T},{default:d(()=>[(u(!0),_(b,null,h(v.value,(l,y)=>(u(),f(p,{label:l.title,value:l.key,key:y},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),t(i,{label:r(a)("associatedModel"),prop:"model"},{default:d(()=>[t(c,{placeholder:r(a)("associatedModelPlaceholder"),modelValue:o.value.model,"onUpdate:modelValue":e[3]||(e[3]=l=>o.value.model=l),class:"input-width"},{default:d(()=>[(u(!0),_(b,null,h(k.value,l=>(u(),f(p,{label:l,value:l,key:l},null,8,["label","value"]))),128))]),_:1},8,["placeholder","modelValue"])]),_:1},8,["label"]),t(i,{prop:"local_key",label:r(a)("localKey")},{default:d(()=>[t(c,{class:"input-width",placeholder:r(a)("localKeyPlaceholder"),modelValue:o.value.local_key,"onUpdate:modelValue":e[4]||(e[4]=l=>o.value.local_key=l)},{default:d(()=>[(u(!0),_(b,null,h(E.value,(l,y)=>(u(),f(p,{label:`${l.name}:${l.comment}`,value:l.name,key:y},null,8,["label","value"]))),128))]),_:1},8,["placeholder","modelValue"])]),_:1},8,["label"]),t(i,{label:r(a)("foreignKey"),prop:"foreign_key"},{default:d(()=>[t(P,{modelValue:o.value.foreign_key,"onUpdate:modelValue":e[5]||(e[5]=l=>o.value.foreign_key=l),placeholder:r(a)("foreignKeyPlaceholder"),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","rules"])]),_:1},8,["modelValue","title"])}}});export{Ve as _};
|
||||
1
niucloud/public/admin/assets/edit-c1377b83.js
Normal file
1
niucloud/public/admin/assets/edit-c1377b83.js
Normal file
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
import{_ as o}from"./edit.vue_vue_type_style_index_0_lang-58ba4510.js";import"./base-06478700.js";/* empty css */import"./el-overlay-42a687c6.js";import"./event-10eba222.js";import"./index-2fcd1254.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";/* empty css */import"./el-form-item-314d006d.js";/* empty css */import"./index-81ed253c.js";import"./dict-a587c715.js";import"./index-80fd3793.js";import"./vue-router-d09a2c28.js";import"./common-92a35870.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-6b67c4ac.js";import"./el-tooltip-58212670.js";import"./index-b52d0f2a.js";import"./index-b68e8463.js";import"./index-c2f001d3.js";import"./index-2a269c7c.js";import"./index-e4abfaa5.js";import"./index-9ee9102c.js";import"./directive-cb2d3366.js";export{o as default};
|
||||
import{_ as o}from"./edit.vue_vue_type_style_index_0_lang-4c7d1ce6.js";import"./base-06478700.js";/* empty css */import"./el-overlay-42a687c6.js";import"./event-10eba222.js";import"./index-2fcd1254.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";/* empty css */import"./el-form-item-314d006d.js";/* empty css */import"./index-81ed253c.js";import"./dict-1c7079b7.js";import"./index-981b0207.js";import"./vue-router-d09a2c28.js";import"./common-92a35870.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-6b67c4ac.js";import"./el-tooltip-58212670.js";import"./index-b52d0f2a.js";import"./index-b68e8463.js";import"./index-c2f001d3.js";import"./index-2a269c7c.js";import"./index-e4abfaa5.js";import"./index-9ee9102c.js";import"./directive-cb2d3366.js";export{o 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 +1 @@
|
||||
import{d as B,w as T,r as A,o as F,E as R,e as h,f,Q as c,u as o,g as m,B as b,y as l,x as d,A as v,F as x,z as $,h as z}from"./base-06478700.js";import{a as N,E as D}from"./el-form-item-314d006d.js";/* empty css */import{_ as P}from"./index.vue_vue_type_script_setup_true_lang-e2b813f3.js";import{_ as W}from"./index-80fd3793.js";import{_ as j}from"./index-315cf4d5.js";/* empty css */import{v as g}from"./event-10eba222.js";import{t as n}from"./index-81ed253c.js";import{S as M}from"./sortable.esm-be94e56d.js";import{d as O}from"./common-92a35870.js";import{u as L}from"./diy-81c73356.js";import{r as Q}from"./range-1a1bb482.js";import{E as q}from"./index-b68e8463.js";import{E as G}from"./index-c2f001d3.js";import{_ as J}from"./_plugin-vue_export-helper-c27b6911.js";const K={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=B({__name:"edit-image-ads",setup(ie,{expose:y}){const t=L();t.editComponent.ignore=[],t.editComponent.verify=a=>{var e={code:!0,message:""};return t.value[a].imageHeight==0?(e.code=!1,e.message=n("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=n("imageUrlTip"),e}),e):(e.code=!1,e.message=n("imageHeightRegNum"),e)},t.editComponent.list.forEach(a=>{a.id||(a.id=t.generateRandom())}),T(()=>t.editComponent.list,(a,e)=>{_()},{deep:!0});const w=()=>{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=O(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=parseInt(e.height)}}})},V=()=>{t.editComponent.imageHeight=parseInt(t.editComponent.imageHeight)},C=A();return F(()=>{R(()=>{const a=M.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(Q(t.editComponent.list.length).map(i=>i.toString())),_(!0)}})})}),y({}),(a,e)=>{const s=q,i=N,u=j,I=W,k=P,E=G,S=D;return h(),f(x,null,[c(m("div",K,[m("div",X,[m("h3",Y,b(o(n)("imageSet")),1),l(S,{"label-width":"80px",class:"px-[10px]"},{default:d(()=>[l(i,{label:o(n)("imageHeight"),class:"display-block"},{default:d(()=>[l(s,{modelValue:o(t).editComponent.imageHeight,"onUpdate:modelValue":e[0]||(e[0]=r=>o(t).editComponent.imageHeight=r),placeholder:o(n)("imageHeightPlaceholder"),clearable:"",maxlength:"10",onBlur:V},{append:d(()=>[v("px")]),_:1},8,["modelValue","placeholder"]),m("div",Z,b(o(n)("imageAdsTips")),1)]),_:1},8,["label"]),m("div",{ref_key:"imageBoxRef",ref:C},[(h(!0),f(x,null,$(o(t).editComponent.list,(r,U)=>(h(),f("div",{key:r.id,class:"item-wrap !cursor-move p-[10px] pb-0 relative border border-dashed border-gray-300 mb-[16px]"},[l(i,{label:o(n)("image")},{default:d(()=>[l(u,{modelValue:r.imageUrl,"onUpdate:modelValue":p=>r.imageUrl=p,limit:1,onChange:H},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["label"]),c(m("div",{class:"del absolute cursor-pointer z-[2] top-[-8px] right-[-8px]",onClick:p=>o(t).editComponent.list.splice(U,1)},[l(I,{name:"element-CircleCloseFilled",color:"#bbb",size:"20px"})],8,ee),[[g,o(t).editComponent.list.length>1]]),l(i,{label:o(n)("link")},{default:d(()=>[l(k,{modelValue:r.link,"onUpdate:modelValue":p=>r.link=p},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["label"])]))),128))],512),c(l(E,{class:"w-full",onClick:w},{default:d(()=>[v(b(o(n)("addImageAd")),1)]),_:1},512),[[g,o(t).editComponent.list.length<10]])]),_:1})])],512),[[g,o(t).editTab=="content"]]),c(m("div",te,[z(a.$slots,"style",{},void 0,!0)],512),[[g,o(t).editTab=="style"]])],64)}}});const ae=J(oe,[["__scopeId","data-v-cb793c9e"]]),xe=Object.freeze(Object.defineProperty({__proto__:null,default:ae},Symbol.toStringTag,{value:"Module"}));export{xe as _};
|
||||
import{d as B,w as T,r as A,o as F,E as R,e as h,f,Q as c,u as o,g as m,B as b,y as l,x as d,A as v,F as x,z as $,h as z}from"./base-06478700.js";import{a as N,E as D}from"./el-form-item-314d006d.js";/* empty css */import{_ as P}from"./index.vue_vue_type_script_setup_true_lang-f38acddf.js";import{_ as W}from"./index-981b0207.js";import{_ as j}from"./index-7eaa3a3d.js";/* empty css */import{v as g}from"./event-10eba222.js";import{t as n}from"./index-81ed253c.js";import{S as M}from"./sortable.esm-be94e56d.js";import{d as O}from"./common-92a35870.js";import{u as L}from"./diy-81c73356.js";import{r as Q}from"./range-1a1bb482.js";import{E as q}from"./index-b68e8463.js";import{E as G}from"./index-c2f001d3.js";import{_ as J}from"./_plugin-vue_export-helper-c27b6911.js";const K={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=B({__name:"edit-image-ads",setup(ie,{expose:y}){const t=L();t.editComponent.ignore=[],t.editComponent.verify=a=>{var e={code:!0,message:""};return t.value[a].imageHeight==0?(e.code=!1,e.message=n("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=n("imageUrlTip"),e}),e):(e.code=!1,e.message=n("imageHeightRegNum"),e)},t.editComponent.list.forEach(a=>{a.id||(a.id=t.generateRandom())}),T(()=>t.editComponent.list,(a,e)=>{_()},{deep:!0});const w=()=>{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=O(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=parseInt(e.height)}}})},V=()=>{t.editComponent.imageHeight=parseInt(t.editComponent.imageHeight)},C=A();return F(()=>{R(()=>{const a=M.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(Q(t.editComponent.list.length).map(i=>i.toString())),_(!0)}})})}),y({}),(a,e)=>{const s=q,i=N,u=j,I=W,k=P,E=G,S=D;return h(),f(x,null,[c(m("div",K,[m("div",X,[m("h3",Y,b(o(n)("imageSet")),1),l(S,{"label-width":"80px",class:"px-[10px]"},{default:d(()=>[l(i,{label:o(n)("imageHeight"),class:"display-block"},{default:d(()=>[l(s,{modelValue:o(t).editComponent.imageHeight,"onUpdate:modelValue":e[0]||(e[0]=r=>o(t).editComponent.imageHeight=r),placeholder:o(n)("imageHeightPlaceholder"),clearable:"",maxlength:"10",onBlur:V},{append:d(()=>[v("px")]),_:1},8,["modelValue","placeholder"]),m("div",Z,b(o(n)("imageAdsTips")),1)]),_:1},8,["label"]),m("div",{ref_key:"imageBoxRef",ref:C},[(h(!0),f(x,null,$(o(t).editComponent.list,(r,U)=>(h(),f("div",{key:r.id,class:"item-wrap !cursor-move p-[10px] pb-0 relative border border-dashed border-gray-300 mb-[16px]"},[l(i,{label:o(n)("image")},{default:d(()=>[l(u,{modelValue:r.imageUrl,"onUpdate:modelValue":p=>r.imageUrl=p,limit:1,onChange:H},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["label"]),c(m("div",{class:"del absolute cursor-pointer z-[2] top-[-8px] right-[-8px]",onClick:p=>o(t).editComponent.list.splice(U,1)},[l(I,{name:"element-CircleCloseFilled",color:"#bbb",size:"20px"})],8,ee),[[g,o(t).editComponent.list.length>1]]),l(i,{label:o(n)("link")},{default:d(()=>[l(k,{modelValue:r.link,"onUpdate:modelValue":p=>r.link=p},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["label"])]))),128))],512),c(l(E,{class:"w-full",onClick:w},{default:d(()=>[v(b(o(n)("addImageAd")),1)]),_:1},512),[[g,o(t).editComponent.list.length<10]])]),_:1})])],512),[[g,o(t).editTab=="content"]]),c(m("div",te,[z(a.$slots,"style",{},void 0,!0)],512),[[g,o(t).editTab=="style"]])],64)}}});const ae=J(oe,[["__scopeId","data-v-cb793c9e"]]),xe=Object.freeze(Object.defineProperty({__proto__:null,default:ae},Symbol.toStringTag,{value:"Module"}));export{xe as _};
|
||||
@ -1 +1 @@
|
||||
import{_ as o}from"./edit-label.vue_vue_type_script_setup_true_lang-0cd7c602.js";import"./base-06478700.js";/* empty css */import"./el-overlay-42a687c6.js";import"./event-10eba222.js";import"./index-2fcd1254.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";/* empty css */import"./el-form-item-314d006d.js";/* empty css */import"./index-81ed253c.js";import"./member-c227fc40.js";import"./index-80fd3793.js";import"./vue-router-d09a2c28.js";import"./common-92a35870.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-6b67c4ac.js";import"./el-tooltip-58212670.js";import"./index-b52d0f2a.js";import"./index-b68e8463.js";import"./index-c2f001d3.js";import"./index-2a269c7c.js";import"./index-e4abfaa5.js";import"./index-9ee9102c.js";import"./directive-cb2d3366.js";export{o as default};
|
||||
import{_ as o}from"./edit-label.vue_vue_type_script_setup_true_lang-81974905.js";import"./base-06478700.js";/* empty css */import"./el-overlay-42a687c6.js";import"./event-10eba222.js";import"./index-2fcd1254.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";/* empty css */import"./el-form-item-314d006d.js";/* empty css */import"./index-81ed253c.js";import"./member-b587e6d0.js";import"./index-981b0207.js";import"./vue-router-d09a2c28.js";import"./common-92a35870.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-6b67c4ac.js";import"./el-tooltip-58212670.js";import"./index-b52d0f2a.js";import"./index-b68e8463.js";import"./index-c2f001d3.js";import"./index-2a269c7c.js";import"./index-e4abfaa5.js";import"./index-9ee9102c.js";import"./directive-cb2d3366.js";export{o as default};
|
||||
@ -1 +1 @@
|
||||
import{d as M,r as c,R,c as C,e as g,v as V,x as n,g as O,y as i,i as w,A as y,B as h,u as t,Q as P}from"./base-06478700.js";/* empty css */import{E as U}from"./el-overlay-42a687c6.js";/* empty css */import{a as I,E as T}from"./el-form-item-314d006d.js";/* empty css */import{t as a}from"./index-81ed253c.js";import{u as j,s as k,t as S}from"./member-c227fc40.js";import{E as q}from"./index-b68e8463.js";import{E as A}from"./index-c2f001d3.js";import{v as Q}from"./directive-cb2d3366.js";const $={class:"dialog-footer"},te=M({__name:"edit-label",emits:["complete"],setup(z,{expose:E,emit:x}){let s=c(!1);const m=c(!1);let p="";const b={label_id:"",label_name:"",memo:"",sort:0},o=R({...b}),_=c(),D=C(()=>({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()},N=async d=>{if(m.value||!d)return;let e=o.label_id?j:k;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 S(d.label_id)).data;e&&Object.keys(o).forEach(l=>{e[l]!=null&&(o[l]=e[l])})}m.value=!1}}),(d,e)=>{const l=q,u=I,f=T,v=A,B=U,F=Q;return g(),V(B,{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(()=>[O("span",$,[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=>N(_.value))},{default:n(()=>[y(h(t(a)("confirm")),1)]),_:1},8,["loading"])])]),default:n(()=>[P((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{te as _};
|
||||
import{d as M,r as c,R,c as C,e as g,v as V,x as n,g as O,y as i,i as w,A as y,B as h,u as t,Q as P}from"./base-06478700.js";/* empty css */import{E as U}from"./el-overlay-42a687c6.js";/* empty css */import{a as I,E as T}from"./el-form-item-314d006d.js";/* empty css */import{t as a}from"./index-81ed253c.js";import{u as j,s as k,t as S}from"./member-b587e6d0.js";import{E as q}from"./index-b68e8463.js";import{E as A}from"./index-c2f001d3.js";import{v as Q}from"./directive-cb2d3366.js";const $={class:"dialog-footer"},te=M({__name:"edit-label",emits:["complete"],setup(z,{expose:E,emit:x}){let s=c(!1);const m=c(!1);let p="";const b={label_id:"",label_name:"",memo:"",sort:0},o=R({...b}),_=c(),D=C(()=>({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()},N=async d=>{if(m.value||!d)return;let e=o.label_id?j:k;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 S(d.label_id)).data;e&&Object.keys(o).forEach(l=>{e[l]!=null&&(o[l]=e[l])})}m.value=!1}}),(d,e)=>{const l=q,u=I,f=T,v=A,B=U,F=Q;return g(),V(B,{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(()=>[O("span",$,[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=>N(_.value))},{default:n(()=>[y(h(t(a)("confirm")),1)]),_:1},8,["loading"])])]),default:n(()=>[P((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{te as _};
|
||||
@ -1 +1 @@
|
||||
import{_ as o}from"./edit-member.vue_vue_type_script_setup_true_lang-b7d63a95.js";import"./base-06478700.js";/* empty css */import"./el-overlay-42a687c6.js";import"./event-10eba222.js";import"./index-2fcd1254.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";/* empty css */import"./el-form-item-314d006d.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./index-80fd3793.js";import"./vue-router-d09a2c28.js";import"./index-81ed253c.js";import"./common-92a35870.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-6b67c4ac.js";import"./el-tooltip-58212670.js";import"./index-b52d0f2a.js";import"./index-b68e8463.js";import"./index-c2f001d3.js";import"./index-2a269c7c.js";import"./index-e4abfaa5.js";import"./index-9ee9102c.js";/* empty css */import"./index-315cf4d5.js";/* empty css */import"./index.vue_vue_type_style_index_0_lang-cd1fd676.js";import"./attachment-49fa540a.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index-9f9e1d50.js";import"./index-01f6e375.js";import"./validator-6e9db238.js";import"./index-41a974fa.js";import"./index-c17093ae.js";import"./index-543fb162.js";import"./index-b6a184ba.js";import"./debounce-1db848fd.js";import"./position-c3bcd0be.js";import"./index-b56195b5.js";import"./index-40e21e72.js";import"./isEqual-42d4b10f.js";import"./index-137757c0.js";import"./index-35e821cc.js";import"./index-34d55b7e.js";import"./strings-fe930bc4.js";import"./index-5a0d60aa.js";import"./directive-cb2d3366.js";import"./member-c227fc40.js";import"./index-3e5f7032.js";import"./index-992fe6cc.js";export{o as default};
|
||||
import{_ as o}from"./edit-member.vue_vue_type_script_setup_true_lang-907470f7.js";import"./base-06478700.js";/* empty css */import"./el-overlay-42a687c6.js";import"./event-10eba222.js";import"./index-2fcd1254.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";/* empty css */import"./el-form-item-314d006d.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./index-981b0207.js";import"./vue-router-d09a2c28.js";import"./index-81ed253c.js";import"./common-92a35870.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-6b67c4ac.js";import"./el-tooltip-58212670.js";import"./index-b52d0f2a.js";import"./index-b68e8463.js";import"./index-c2f001d3.js";import"./index-2a269c7c.js";import"./index-e4abfaa5.js";import"./index-9ee9102c.js";/* empty css */import"./index-7eaa3a3d.js";/* empty css */import"./index.vue_vue_type_style_index_0_lang-e59c442c.js";import"./attachment-21666979.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index-4a01421d.js";import"./index-01f6e375.js";import"./validator-6e9db238.js";import"./index-41a974fa.js";import"./index-c17093ae.js";import"./index-543fb162.js";import"./index-b6a184ba.js";import"./debounce-1db848fd.js";import"./position-c3bcd0be.js";import"./index-b56195b5.js";import"./index-40e21e72.js";import"./isEqual-42d4b10f.js";import"./index-137757c0.js";import"./index-35e821cc.js";import"./index-34d55b7e.js";import"./strings-fe930bc4.js";import"./index-5a0d60aa.js";import"./directive-cb2d3366.js";import"./member-b587e6d0.js";import"./index-3e5f7032.js";import"./index-992fe6cc.js";export{o as default};
|
||||
@ -1 +1 @@
|
||||
import{d as x,e as g,f as h,Q as _,u as e,g as o,B as p,y as l,x as a,h as y,F as C}from"./base-06478700.js";/* empty css *//* empty css *//* empty css */import{a as v,E as w}from"./el-form-item-314d006d.js";import{_ as S}from"./index-315cf4d5.js";import{v as d}from"./event-10eba222.js";import{t as r}from"./index-81ed253c.js";import{u as V}from"./diy-81c73356.js";import{E}from"./index-b12abbd4.js";const U={class:"content-wrap"},k={class:"edit-attr-item-wrap"},B={class:"mb-[10px]"},F={class:"style-wrap"},D={class:"edit-attr-item-wrap"},T={class:"mb-[10px]"},j=x({__name:"edit-member-info",setup(N,{expose:c}){const t=V();return t.editComponent.ignore=[],c({}),(u,s)=>{const f=S,m=v,i=w,b=E;return g(),h(C,null,[_(o("div",U,[o("div",k,[o("h3",B,p(e(r)("memberStyle")),1),l(i,{"label-width":"80px",class:"px-[10px]"},{default:a(()=>[l(m,{label:e(r)("bgUrl")},{default:a(()=>[l(f,{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),[[d,e(t).editTab=="content"]]),_(o("div",F,[o("div",D,[o("h3",T,p(e(r)("memberStyle")),1),l(i,{"label-width":"80px",class:"px-[10px]"},{default:a(()=>[l(m,{label:e(r)("textColor")},{default:a(()=>[l(b,{modelValue:e(t).editComponent.textColor,"onUpdate:modelValue":s[1]||(s[1]=n=>e(t).editComponent.textColor=n)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),y(u.$slots,"style")],512),[[d,e(t).editTab=="style"]])],64)}}}),H=Object.freeze(Object.defineProperty({__proto__:null,default:j},Symbol.toStringTag,{value:"Module"}));export{H as _};
|
||||
import{d as x,e as g,f as h,Q as _,u as e,g as o,B as p,y as l,x as a,h as y,F as C}from"./base-06478700.js";/* empty css *//* empty css *//* empty css */import{a as v,E as w}from"./el-form-item-314d006d.js";import{_ as S}from"./index-7eaa3a3d.js";import{v as d}from"./event-10eba222.js";import{t as r}from"./index-81ed253c.js";import{u as V}from"./diy-81c73356.js";import{E}from"./index-b12abbd4.js";const U={class:"content-wrap"},k={class:"edit-attr-item-wrap"},B={class:"mb-[10px]"},F={class:"style-wrap"},D={class:"edit-attr-item-wrap"},T={class:"mb-[10px]"},j=x({__name:"edit-member-info",setup(N,{expose:c}){const t=V();return t.editComponent.ignore=[],c({}),(u,s)=>{const f=S,m=v,i=w,b=E;return g(),h(C,null,[_(o("div",U,[o("div",k,[o("h3",B,p(e(r)("memberStyle")),1),l(i,{"label-width":"80px",class:"px-[10px]"},{default:a(()=>[l(m,{label:e(r)("bgUrl")},{default:a(()=>[l(f,{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),[[d,e(t).editTab=="content"]]),_(o("div",F,[o("div",D,[o("h3",T,p(e(r)("memberStyle")),1),l(i,{"label-width":"80px",class:"px-[10px]"},{default:a(()=>[l(m,{label:e(r)("textColor")},{default:a(()=>[l(b,{modelValue:e(t).editComponent.textColor,"onUpdate:modelValue":s[1]||(s[1]=n=>e(t).editComponent.textColor=n)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),y(u.$slots,"style")],512),[[d,e(t).editTab=="style"]])],64)}}}),H=Object.freeze(Object.defineProperty({__proto__:null,default:j},Symbol.toStringTag,{value:"Module"}));export{H as _};
|
||||
@ -1 +1 @@
|
||||
import{d as T,r as d,R as Y,e as n,v as s,x as r,g as I,y as c,i as E,A as x,B as D,u as a,Q as z,H as _,f as F,F as w,z as L}from"./base-06478700.js";/* empty css */import{E as H}from"./el-overlay-42a687c6.js";/* empty css */import{a as O,E as Q}from"./el-form-item-314d006d.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./index-80fd3793.js";import"./el-tooltip-58212670.js";/* empty css */import{_ as $}from"./index-315cf4d5.js";import{t as o}from"./index-81ed253c.js";import{v as j,w as q}from"./member-c227fc40.js";import{E as G}from"./index-b68e8463.js";import{E as J}from"./index-3e5f7032.js";import{a as K,E as W}from"./index-35e821cc.js";import{E as X}from"./index-c2f001d3.js";import{v as Z}from"./directive-cb2d3366.js";const ee={class:"dialog-footer"},De=T({__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),B=d([{id:0,name:o("secrecySex")},{id:1,name:o("manSex")},{id:2,name:o("girlSex")}]);let y=d(null);(async()=>{y.value=await(await j()).data})();const t=Y({...{headimg:"",nickname:"",member_label:"",sex:"",birthday:""}}),N=async u=>{p.value=!0;let e=d({member_id:g.value,field:m.value,value:t[m.value]});q(e.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((e,b)=>{t[m.value][b]=Number.parseFloat(e)}),p.value=!1}}),(u,e)=>{const b=$,f=O,U=G,C=J,V=K,h=W,A=Q,k=X,P=H,R=Z;return n(),s(P,{modelValue:a(i),"onUpdate:modelValue":e[7]||(e[7]=l=>E(i)?i.value=l:i=l),title:a(v)||a(o)("updateMember"),width:"500px","destroy-on-close":!0},{footer:r(()=>[I("span",ee,[c(k,{onClick:e[5]||(e[5]=l=>E(i)?i.value=!1:i=!1)},{default:r(()=>[x(D(a(o)("cancel")),1)]),_:1}),c(k,{type:"primary",loading:p.value,onClick:e[6]||(e[6]=l=>N(u.formRef))},{default:r(()=>[x(D(a(o)("confirm")),1)]),_:1},8,["loading"])])]),default:r(()=>[z((n(),s(A,{model:t,"label-width":"90px",rules:u.formRules,class:"page-form"},{default:r(()=>[a(m)=="headimg"?(n(),s(f,{key:0,label:a(o)("headimg")},{default:r(()=>[c(b,{modelValue:t.headimg,"onUpdate:modelValue":e[0]||(e[0]=l=>t.headimg=l)},null,8,["modelValue"])]),_:1},8,["label"])):_("",!0),a(m)=="nickname"?(n(),s(f,{key:1,label:a(o)("nickname")},{default:r(()=>[c(U,{modelValue:t.nickname,"onUpdate:modelValue":e[1]||(e[1]=l=>t.nickname=l),clearable:"",placeholder:a(o)("nickNamePlaceholder"),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"])):_("",!0),a(m)=="birthday"?(n(),s(f,{key:2,label:a(o)("birthday")},{default:r(()=>[c(C,{modelValue:t.birthday,"onUpdate:modelValue":e[2]||(e[2]=l=>t.birthday=l),"value-format":"YYYY-MM-DD",type:"date",placeholder:a(o)("birthdayTip")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])):_("",!0),a(m)=="sex"?(n(),s(f,{key:3,label:a(o)("sex")},{default:r(()=>[c(h,{modelValue:t.sex,"onUpdate:modelValue":e[3]||(e[3]=l=>t.sex=l),clearable:"",placeholder:a(o)("sexPlaceholder"),class:"input-width"},{default:r(()=>[(n(!0),F(w,null,L(B.value,l=>(n(),s(V,{label:l.name,value:l.id},null,8,["label","value"]))),256))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"])):_("",!0),a(m)=="member_label"?(n(),s(f,{key:4,label:a(o)("memberLabel")},{default:r(()=>[c(h,{modelValue:t.member_label,"onUpdate:modelValue":e[4]||(e[4]=l=>t.member_label=l),multiple:"","collapse-tags":"",placeholder:a(o)("memberLabelPlaceholder"),class:"input-width"},{default:r(()=>[(n(!0),F(w,null,L(a(y),l=>(n(),s(V,{label:l.label_name,value:l.label_id},null,8,["label","value"]))),256))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"])):_("",!0)]),_:1},8,["model","rules"])),[[R,p.value]])]),_:1},8,["modelValue","title"])}}});export{De as _};
|
||||
import{d as T,r as d,R as Y,e as n,v as s,x as r,g as I,y as c,i as E,A as x,B as D,u as a,Q as z,H as _,f as F,F as w,z as L}from"./base-06478700.js";/* empty css */import{E as H}from"./el-overlay-42a687c6.js";/* empty css */import{a as O,E as Q}from"./el-form-item-314d006d.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./index-981b0207.js";import"./el-tooltip-58212670.js";/* empty css */import{_ as $}from"./index-7eaa3a3d.js";import{t as o}from"./index-81ed253c.js";import{v as j,w as q}from"./member-b587e6d0.js";import{E as G}from"./index-b68e8463.js";import{E as J}from"./index-3e5f7032.js";import{a as K,E as W}from"./index-35e821cc.js";import{E as X}from"./index-c2f001d3.js";import{v as Z}from"./directive-cb2d3366.js";const ee={class:"dialog-footer"},De=T({__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),B=d([{id:0,name:o("secrecySex")},{id:1,name:o("manSex")},{id:2,name:o("girlSex")}]);let y=d(null);(async()=>{y.value=await(await j()).data})();const t=Y({...{headimg:"",nickname:"",member_label:"",sex:"",birthday:""}}),N=async u=>{p.value=!0;let e=d({member_id:g.value,field:m.value,value:t[m.value]});q(e.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((e,b)=>{t[m.value][b]=Number.parseFloat(e)}),p.value=!1}}),(u,e)=>{const b=$,f=O,U=G,C=J,V=K,h=W,A=Q,k=X,P=H,R=Z;return n(),s(P,{modelValue:a(i),"onUpdate:modelValue":e[7]||(e[7]=l=>E(i)?i.value=l:i=l),title:a(v)||a(o)("updateMember"),width:"500px","destroy-on-close":!0},{footer:r(()=>[I("span",ee,[c(k,{onClick:e[5]||(e[5]=l=>E(i)?i.value=!1:i=!1)},{default:r(()=>[x(D(a(o)("cancel")),1)]),_:1}),c(k,{type:"primary",loading:p.value,onClick:e[6]||(e[6]=l=>N(u.formRef))},{default:r(()=>[x(D(a(o)("confirm")),1)]),_:1},8,["loading"])])]),default:r(()=>[z((n(),s(A,{model:t,"label-width":"90px",rules:u.formRules,class:"page-form"},{default:r(()=>[a(m)=="headimg"?(n(),s(f,{key:0,label:a(o)("headimg")},{default:r(()=>[c(b,{modelValue:t.headimg,"onUpdate:modelValue":e[0]||(e[0]=l=>t.headimg=l)},null,8,["modelValue"])]),_:1},8,["label"])):_("",!0),a(m)=="nickname"?(n(),s(f,{key:1,label:a(o)("nickname")},{default:r(()=>[c(U,{modelValue:t.nickname,"onUpdate:modelValue":e[1]||(e[1]=l=>t.nickname=l),clearable:"",placeholder:a(o)("nickNamePlaceholder"),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"])):_("",!0),a(m)=="birthday"?(n(),s(f,{key:2,label:a(o)("birthday")},{default:r(()=>[c(C,{modelValue:t.birthday,"onUpdate:modelValue":e[2]||(e[2]=l=>t.birthday=l),"value-format":"YYYY-MM-DD",type:"date",placeholder:a(o)("birthdayTip")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])):_("",!0),a(m)=="sex"?(n(),s(f,{key:3,label:a(o)("sex")},{default:r(()=>[c(h,{modelValue:t.sex,"onUpdate:modelValue":e[3]||(e[3]=l=>t.sex=l),clearable:"",placeholder:a(o)("sexPlaceholder"),class:"input-width"},{default:r(()=>[(n(!0),F(w,null,L(B.value,l=>(n(),s(V,{label:l.name,value:l.id},null,8,["label","value"]))),256))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"])):_("",!0),a(m)=="member_label"?(n(),s(f,{key:4,label:a(o)("memberLabel")},{default:r(()=>[c(h,{modelValue:t.member_label,"onUpdate:modelValue":e[4]||(e[4]=l=>t.member_label=l),multiple:"","collapse-tags":"",placeholder:a(o)("memberLabelPlaceholder"),class:"input-width"},{default:r(()=>[(n(!0),F(w,null,L(a(y),l=>(n(),s(V,{label:l.label_name,value:l.label_id},null,8,["label","value"]))),256))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"])):_("",!0)]),_:1},8,["model","rules"])),[[R,p.value]])]),_:1},8,["modelValue","title"])}}});export{De as _};
|
||||
@ -1 +1 @@
|
||||
import{_ as o}from"./edit-menu.vue_vue_type_script_setup_true_lang-698aa1e0.js";import"./base-06478700.js";/* empty css */import"./el-overlay-42a687c6.js";import"./event-10eba222.js";import"./index-2fcd1254.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";/* empty css */import"./el-form-item-314d006d.js";/* empty css *//* empty css */import"./index-e61af573.js";import"./index.vue_vue_type_style_index_0_lang-cd1fd676.js";import"./index-81ed253c.js";import"./attachment-49fa540a.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./index-80fd3793.js";import"./vue-router-d09a2c28.js";import"./common-92a35870.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-6b67c4ac.js";import"./el-tooltip-58212670.js";import"./index-b52d0f2a.js";import"./index-b68e8463.js";import"./index-c2f001d3.js";import"./index-2a269c7c.js";import"./index-e4abfaa5.js";import"./index-9ee9102c.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index-9f9e1d50.js";import"./index-01f6e375.js";import"./validator-6e9db238.js";import"./index-41a974fa.js";import"./index-c17093ae.js";import"./index-543fb162.js";import"./index-b6a184ba.js";import"./debounce-1db848fd.js";import"./position-c3bcd0be.js";import"./index-b56195b5.js";import"./index-40e21e72.js";import"./isEqual-42d4b10f.js";import"./index-137757c0.js";import"./index-35e821cc.js";import"./index-34d55b7e.js";import"./strings-fe930bc4.js";import"./index-5a0d60aa.js";import"./directive-cb2d3366.js";/* empty css *//* empty css *//* empty css */import"./tools-ddcb412e.js";import"./index-6290cf08.js";import"./index-f9b5ad10.js";import"./index-6a9a5926.js";import"./index-7f381641.js";import"./index-992fe6cc.js";export{o as default};
|
||||
import{_ as o}from"./edit-menu.vue_vue_type_script_setup_true_lang-060b6ca8.js";import"./base-06478700.js";/* empty css */import"./el-overlay-42a687c6.js";import"./event-10eba222.js";import"./index-2fcd1254.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";/* empty css */import"./el-form-item-314d006d.js";/* empty css *//* empty css */import"./index-8e46e578.js";import"./index.vue_vue_type_style_index_0_lang-e59c442c.js";import"./index-81ed253c.js";import"./attachment-21666979.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./index-981b0207.js";import"./vue-router-d09a2c28.js";import"./common-92a35870.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-6b67c4ac.js";import"./el-tooltip-58212670.js";import"./index-b52d0f2a.js";import"./index-b68e8463.js";import"./index-c2f001d3.js";import"./index-2a269c7c.js";import"./index-e4abfaa5.js";import"./index-9ee9102c.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index-4a01421d.js";import"./index-01f6e375.js";import"./validator-6e9db238.js";import"./index-41a974fa.js";import"./index-c17093ae.js";import"./index-543fb162.js";import"./index-b6a184ba.js";import"./debounce-1db848fd.js";import"./position-c3bcd0be.js";import"./index-b56195b5.js";import"./index-40e21e72.js";import"./isEqual-42d4b10f.js";import"./index-137757c0.js";import"./index-35e821cc.js";import"./index-34d55b7e.js";import"./strings-fe930bc4.js";import"./index-5a0d60aa.js";import"./directive-cb2d3366.js";/* empty css *//* empty css *//* empty css */import"./tools-3f2c0b23.js";import"./index-6290cf08.js";import"./index-f9b5ad10.js";import"./index-6a9a5926.js";import"./index-7f381641.js";import"./index-992fe6cc.js";export{o as default};
|
||||
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{d as x,w as V,e as S,f as y,Q as _,u as l,g as i,B as p,y as o,x as r,F as E}from"./base-06478700.js";/* empty css *//* empty css *//* empty css */import"./el-tooltip-58212670.js";import{_ as v}from"./index-315cf4d5.js";/* empty css *//* empty css */import{a as B,E as U}from"./el-form-item-314d006d.js";/* empty css */import{v as b}from"./event-10eba222.js";import{t as a}from"./index-81ed253c.js";import{u as C}from"./diy-81c73356.js";import{d as k}from"./common-92a35870.js";import{E as T}from"./index-b68e8463.js";import{E as F}from"./index-f84999b2.js";import{E as N}from"./index-b12abbd4.js";import{E as z}from"./index-be5bff6d.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"},H={class:"edit-attr-item-wrap"},M={class:"mb-[10px]"},Q={class:"edit-attr-item-wrap"},W={class:"mb-[10px]"},q=x({__name:"edit-page",setup(A,{expose:c}){const e=C();return V(()=>e.global.bgUrl,(g,t)=>{let m=new Image;m.src=k(e.global.bgUrl),m.onload=async()=>{e.global.imgWidth=m.width,e.global.imgHeight=m.height}}),c({}),(g,t)=>{const m=T,n=B,u=F,d=U,h=N,f=v,w=z;return S(),y(E,null,[_(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.bottomTabBarSwitch,"onUpdate:modelValue":t[1]||(t[1]=s=>l(e).global.bottomTabBarSwitch=s)},null,8,["modelValue"]),i("div",j,p(l(a)("tabbarSwitchTips")),1)]),_:1},8,["label"])]),_:1})])],512),[[b,l(e).editTab=="content"]]),_(i("div",O,[i("div",H,[i("h3",M,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",Q,[i("h3",W,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),[[b,l(e).editTab=="style"]])],64)}}}),nl=Object.freeze(Object.defineProperty({__proto__:null,default:q},Symbol.toStringTag,{value:"Module"}));export{nl as _};
|
||||
import{d as x,w as V,e as S,f as y,Q as _,u as l,g as i,B as p,y as o,x as r,F as E}from"./base-06478700.js";/* empty css *//* empty css *//* empty css */import"./el-tooltip-58212670.js";import{_ as v}from"./index-7eaa3a3d.js";/* empty css *//* empty css */import{a as B,E as U}from"./el-form-item-314d006d.js";/* empty css */import{v as b}from"./event-10eba222.js";import{t as a}from"./index-81ed253c.js";import{u as C}from"./diy-81c73356.js";import{d as k}from"./common-92a35870.js";import{E as T}from"./index-b68e8463.js";import{E as F}from"./index-f84999b2.js";import{E as N}from"./index-b12abbd4.js";import{E as z}from"./index-be5bff6d.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"},H={class:"edit-attr-item-wrap"},M={class:"mb-[10px]"},Q={class:"edit-attr-item-wrap"},W={class:"mb-[10px]"},q=x({__name:"edit-page",setup(A,{expose:c}){const e=C();return V(()=>e.global.bgUrl,(g,t)=>{let m=new Image;m.src=k(e.global.bgUrl),m.onload=async()=>{e.global.imgWidth=m.width,e.global.imgHeight=m.height}}),c({}),(g,t)=>{const m=T,n=B,u=F,d=U,h=N,f=v,w=z;return S(),y(E,null,[_(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.bottomTabBarSwitch,"onUpdate:modelValue":t[1]||(t[1]=s=>l(e).global.bottomTabBarSwitch=s)},null,8,["modelValue"]),i("div",j,p(l(a)("tabbarSwitchTips")),1)]),_:1},8,["label"])]),_:1})])],512),[[b,l(e).editTab=="content"]]),_(i("div",O,[i("div",H,[i("h3",M,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",Q,[i("h3",W,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),[[b,l(e).editTab=="style"]])],64)}}}),nl=Object.freeze(Object.defineProperty({__proto__:null,default:q},Symbol.toStringTag,{value:"Module"}));export{nl as _};
|
||||
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"./edit-user.vue_vue_type_script_setup_true_lang-fccc268e.js";import"./base-06478700.js";/* empty css */import"./el-overlay-42a687c6.js";import"./event-10eba222.js";import"./index-2fcd1254.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";/* empty css */import"./el-form-item-314d006d.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index-80fd3793.js";import"./vue-router-d09a2c28.js";import"./index-81ed253c.js";import"./common-92a35870.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-6b67c4ac.js";import"./el-tooltip-58212670.js";import"./index-b52d0f2a.js";import"./index-b68e8463.js";import"./index-c2f001d3.js";import"./index-2a269c7c.js";import"./index-e4abfaa5.js";import"./index-9ee9102c.js";import"./index-315cf4d5.js";/* empty css */import"./index.vue_vue_type_style_index_0_lang-cd1fd676.js";import"./attachment-49fa540a.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index-9f9e1d50.js";import"./index-01f6e375.js";import"./validator-6e9db238.js";import"./index-41a974fa.js";import"./index-c17093ae.js";import"./index-543fb162.js";import"./index-b6a184ba.js";import"./debounce-1db848fd.js";import"./position-c3bcd0be.js";import"./index-b56195b5.js";import"./index-40e21e72.js";import"./isEqual-42d4b10f.js";import"./index-137757c0.js";import"./index-35e821cc.js";import"./index-34d55b7e.js";import"./strings-fe930bc4.js";import"./index-5a0d60aa.js";import"./directive-cb2d3366.js";import"./user-58ca6858.js";import"./index-6290cf08.js";export{o as default};
|
||||
import{_ as o}from"./edit-user.vue_vue_type_script_setup_true_lang-8eef60fc.js";import"./base-06478700.js";/* empty css */import"./el-overlay-42a687c6.js";import"./event-10eba222.js";import"./index-2fcd1254.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";/* empty css */import"./el-form-item-314d006d.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index-981b0207.js";import"./vue-router-d09a2c28.js";import"./index-81ed253c.js";import"./common-92a35870.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-6b67c4ac.js";import"./el-tooltip-58212670.js";import"./index-b52d0f2a.js";import"./index-b68e8463.js";import"./index-c2f001d3.js";import"./index-2a269c7c.js";import"./index-e4abfaa5.js";import"./index-9ee9102c.js";import"./index-7eaa3a3d.js";/* empty css */import"./index.vue_vue_type_style_index_0_lang-e59c442c.js";import"./attachment-21666979.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index-4a01421d.js";import"./index-01f6e375.js";import"./validator-6e9db238.js";import"./index-41a974fa.js";import"./index-c17093ae.js";import"./index-543fb162.js";import"./index-b6a184ba.js";import"./debounce-1db848fd.js";import"./position-c3bcd0be.js";import"./index-b56195b5.js";import"./index-40e21e72.js";import"./isEqual-42d4b10f.js";import"./index-137757c0.js";import"./index-35e821cc.js";import"./index-34d55b7e.js";import"./strings-fe930bc4.js";import"./index-5a0d60aa.js";import"./directive-cb2d3366.js";import"./user-2519a405.js";import"./index-6290cf08.js";export{o as default};
|
||||
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
import{_ as o}from"./edit-view-type.vue_vue_type_script_setup_true_async_true_lang-f31833ae.js";import"./base-06478700.js";import"./el-overlay-42a687c6.js";import"./event-10eba222.js";import"./index-2fcd1254.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";/* empty css */import"./el-form-item-314d006d.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./index-80fd3793.js";import"./vue-router-d09a2c28.js";import"./index-81ed253c.js";import"./common-92a35870.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-6b67c4ac.js";import"./el-tooltip-58212670.js";import"./index-b52d0f2a.js";import"./index-b68e8463.js";import"./index-c2f001d3.js";import"./index-2a269c7c.js";import"./index-e4abfaa5.js";import"./index-9ee9102c.js";import"./dict-a587c715.js";import"./cloneDeep-9cc74b12.js";import"./index-35e821cc.js";import"./index-34d55b7e.js";import"./strings-fe930bc4.js";import"./isEqual-42d4b10f.js";import"./debounce-1db848fd.js";import"./index-5a0d60aa.js";import"./validator-6e9db238.js";export{o as default};
|
||||
import{_ as o}from"./edit-view-type.vue_vue_type_script_setup_true_async_true_lang-598edfc6.js";import"./base-06478700.js";import"./el-overlay-42a687c6.js";import"./event-10eba222.js";import"./index-2fcd1254.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";/* empty css */import"./el-form-item-314d006d.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./index-981b0207.js";import"./vue-router-d09a2c28.js";import"./index-81ed253c.js";import"./common-92a35870.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-6b67c4ac.js";import"./el-tooltip-58212670.js";import"./index-b52d0f2a.js";import"./index-b68e8463.js";import"./index-c2f001d3.js";import"./index-2a269c7c.js";import"./index-e4abfaa5.js";import"./index-9ee9102c.js";import"./dict-1c7079b7.js";import"./cloneDeep-9cc74b12.js";import"./index-35e821cc.js";import"./index-34d55b7e.js";import"./strings-fe930bc4.js";import"./isEqual-42d4b10f.js";import"./debounce-1db848fd.js";import"./index-5a0d60aa.js";import"./validator-6e9db238.js";export{o as default};
|
||||
@ -1 +1 @@
|
||||
import{d as T,r as s,c as A,e as p,v as _,x as l,g as N,y as n,A as v,B as y,u as i,f as L,F as O,z as P,an as S}from"./base-06478700.js";import{E as U}from"./el-overlay-42a687c6.js";/* empty css */import{a as $,E as j}from"./el-form-item-314d006d.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./index-80fd3793.js";import"./el-tooltip-58212670.js";import{t as c}from"./index-81ed253c.js";import{c as q}from"./dict-a587c715.js";import{c as z}from"./cloneDeep-9cc74b12.js";import{a as I,E as G}from"./index-35e821cc.js";import{E as H}from"./index-c2f001d3.js";const J={class:"dialog-footer"},ce=T({__name:"edit-view-type",emits:["complete"],setup(K,{expose:g,emit:b}){const a=s(!1),E=s(""),u={dict_type:""},r=s({...u}),m=s(),d=s([]),V=A(()=>({dict_type:[{required:!0,message:c("dictTypePlaceholder"),trigger:"change"}]})),k=()=>{q().then(t=>{d.value=t.data})},D=async t=>{t&&await t.validate(async e=>{e&&(b("complete",S(r.value)),a.value=!1)})},w=async(t=null)=>{r.value=z(Object.assign(u,t)),k(),a.value=!0},x=t=>{var e;(e=m.value)==null||e.clearValidate(),t()};return g({showDialog:a,setFormData:w}),(t,e)=>{const F=I,B=G,h=$,C=j,f=H,R=U;return p(),_(R,{modelValue:a.value,"onUpdate:modelValue":e[3]||(e[3]=o=>a.value=o),title:E.value,width:"480px","before-close":x,"destroy-on-close":!0},{footer:l(()=>[N("span",J,[n(f,{onClick:e[1]||(e[1]=o=>a.value=!1)},{default:l(()=>[v(y(i(c)("cancel")),1)]),_:1}),n(f,{type:"primary",onClick:e[2]||(e[2]=o=>D(m.value))},{default:l(()=>[v(y(i(c)("confirm")),1)]),_:1})])]),default:l(()=>[n(C,{model:r.value,"label-width":"130px",ref_key:"formRef",ref:m,rules:i(V),class:"page-form"},{default:l(()=>[n(h,{label:i(c)("dictType")},{default:l(()=>[n(B,{class:"input-width",placeholder:i(c)("dictTypePlaceholder"),modelValue:r.value.dict_type,"onUpdate:modelValue":e[0]||(e[0]=o=>r.value.dict_type=o),filterable:"",remote:"",clearable:""},{default:l(()=>[(p(!0),L(O,null,P(d.value,o=>(p(),_(F,{label:o.name,value:o.key,key:o.key},null,8,["label","value"]))),128))]),_:1},8,["placeholder","modelValue"])]),_:1},8,["label"])]),_:1},8,["model","rules"])]),_:1},8,["modelValue","title"])}}});export{ce as _};
|
||||
import{d as T,r as s,c as A,e as p,v as _,x as l,g as N,y as n,A as v,B as y,u as i,f as L,F as O,z as P,an as S}from"./base-06478700.js";import{E as U}from"./el-overlay-42a687c6.js";/* empty css */import{a as $,E as j}from"./el-form-item-314d006d.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./index-981b0207.js";import"./el-tooltip-58212670.js";import{t as c}from"./index-81ed253c.js";import{c as q}from"./dict-1c7079b7.js";import{c as z}from"./cloneDeep-9cc74b12.js";import{a as I,E as G}from"./index-35e821cc.js";import{E as H}from"./index-c2f001d3.js";const J={class:"dialog-footer"},ce=T({__name:"edit-view-type",emits:["complete"],setup(K,{expose:g,emit:b}){const a=s(!1),E=s(""),u={dict_type:""},r=s({...u}),m=s(),d=s([]),V=A(()=>({dict_type:[{required:!0,message:c("dictTypePlaceholder"),trigger:"change"}]})),k=()=>{q().then(t=>{d.value=t.data})},D=async t=>{t&&await t.validate(async e=>{e&&(b("complete",S(r.value)),a.value=!1)})},w=async(t=null)=>{r.value=z(Object.assign(u,t)),k(),a.value=!0},x=t=>{var e;(e=m.value)==null||e.clearValidate(),t()};return g({showDialog:a,setFormData:w}),(t,e)=>{const F=I,B=G,h=$,C=j,f=H,R=U;return p(),_(R,{modelValue:a.value,"onUpdate:modelValue":e[3]||(e[3]=o=>a.value=o),title:E.value,width:"480px","before-close":x,"destroy-on-close":!0},{footer:l(()=>[N("span",J,[n(f,{onClick:e[1]||(e[1]=o=>a.value=!1)},{default:l(()=>[v(y(i(c)("cancel")),1)]),_:1}),n(f,{type:"primary",onClick:e[2]||(e[2]=o=>D(m.value))},{default:l(()=>[v(y(i(c)("confirm")),1)]),_:1})])]),default:l(()=>[n(C,{model:r.value,"label-width":"130px",ref_key:"formRef",ref:m,rules:i(V),class:"page-form"},{default:l(()=>[n(h,{label:i(c)("dictType")},{default:l(()=>[n(B,{class:"input-width",placeholder:i(c)("dictTypePlaceholder"),modelValue:r.value.dict_type,"onUpdate:modelValue":e[0]||(e[0]=o=>r.value.dict_type=o),filterable:"",remote:"",clearable:""},{default:l(()=>[(p(!0),L(O,null,P(d.value,o=>(p(),_(F,{label:o.name,value:o.key,key:o.key},null,8,["label","value"]))),128))]),_:1},8,["placeholder","modelValue"])]),_:1},8,["label"])]),_:1},8,["model","rules"])]),_:1},8,["modelValue","title"])}}});export{ce as _};
|
||||
@ -1 +1 @@
|
||||
import{d as B,r as p,R as F,c as R,e as v,v as y,x as d,g as C,y as n,i as b,A as V,B as h,u as t,Q as U}from"./base-06478700.js";/* empty css */import{E as q}from"./el-overlay-42a687c6.js";/* empty css */import{a as I,E as N}from"./el-form-item-314d006d.js";/* empty css */import{t as l}from"./index-81ed253c.js";import{e as j,a as O,g as A}from"./dict-a587c715.js";import{E as L}from"./index-b68e8463.js";import{E as Q}from"./index-c2f001d3.js";import{v as S}from"./directive-cb2d3366.js";const T={class:"dialog-footer"},le=B({__name:"edit",emits:["complete"],setup($,{expose:D,emit:k}){let r=p(!1);const i=p(!1),f={id:"",name:"",key:"",memo:""},a=F({...f}),_=p(),w=R(()=>({name:[{required:!0,message:l("namePlaceholder"),trigger:"blur"}],key:[{required:!0,message:l("keyPlaceholder"),trigger:"blur"}],data:[{required:!0,message:l("dataPlaceholder"),trigger:"blur"}]})),E=async m=>{if(i.value||!m)return;let e=a.id?j:O;await m.validate(async s=>{s&&(i.value=!0,e(a).then(c=>{i.value=!1,r.value=!1,k("complete")}).catch(c=>{i.value=!1}))})};return D({showDialog:r,setFormData:async(m=null)=>{if(Object.assign(a,f),i.value=!0,m){const e=await(await A(m.id)).data;e&&Object.keys(a).forEach(s=>{e[s]!=null&&(a[s]=e[s])})}i.value=!1}}),(m,e)=>{const s=L,u=I,c=N,g=Q,x=q,P=S;return v(),y(x,{modelValue:t(r),"onUpdate:modelValue":e[5]||(e[5]=o=>b(r)?r.value=o:r=o),title:a.id?t(l)("updateDict"):t(l)("addDict"),width:"480",class:"diy-dialog-wrap","destroy-on-close":!0},{footer:d(()=>[C("span",T,[n(g,{onClick:e[3]||(e[3]=o=>b(r)?r.value=!1:r=!1)},{default:d(()=>[V(h(t(l)("cancel")),1)]),_:1}),n(g,{type:"primary",loading:i.value,onClick:e[4]||(e[4]=o=>E(_.value))},{default:d(()=>[V(h(t(l)("confirm")),1)]),_:1},8,["loading"])])]),default:d(()=>[U((v(),y(c,{model:a,"label-width":"120px",ref_key:"formRef",ref:_,rules:t(w),class:"page-form"},{default:d(()=>[n(u,{label:t(l)("name"),prop:"name"},{default:d(()=>[n(s,{modelValue:a.name,"onUpdate:modelValue":e[0]||(e[0]=o=>a.name=o),clearable:"",placeholder:t(l)("namePlaceholder"),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),n(u,{label:t(l)("key"),prop:"key"},{default:d(()=>[n(s,{modelValue:a.key,"onUpdate:modelValue":e[1]||(e[1]=o=>a.key=o),clearable:"",placeholder:t(l)("keyPlaceholder"),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),n(u,{label:t(l)("memo")},{default:d(()=>[n(s,{modelValue:a.memo,"onUpdate:modelValue":e[2]||(e[2]=o=>a.memo=o),type:"textarea",clearable:"",placeholder:t(l)("memoPlaceholder"),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","rules"])),[[P,i.value]])]),_:1},8,["modelValue","title"])}}});export{le as _};
|
||||
import{d as B,r as p,R as F,c as R,e as v,v as y,x as d,g as C,y as n,i as b,A as V,B as h,u as t,Q as U}from"./base-06478700.js";/* empty css */import{E as q}from"./el-overlay-42a687c6.js";/* empty css */import{a as I,E as N}from"./el-form-item-314d006d.js";/* empty css */import{t as l}from"./index-81ed253c.js";import{e as j,a as O,g as A}from"./dict-1c7079b7.js";import{E as L}from"./index-b68e8463.js";import{E as Q}from"./index-c2f001d3.js";import{v as S}from"./directive-cb2d3366.js";const T={class:"dialog-footer"},le=B({__name:"edit",emits:["complete"],setup($,{expose:D,emit:k}){let r=p(!1);const i=p(!1),f={id:"",name:"",key:"",memo:""},a=F({...f}),_=p(),w=R(()=>({name:[{required:!0,message:l("namePlaceholder"),trigger:"blur"}],key:[{required:!0,message:l("keyPlaceholder"),trigger:"blur"}],data:[{required:!0,message:l("dataPlaceholder"),trigger:"blur"}]})),E=async m=>{if(i.value||!m)return;let e=a.id?j:O;await m.validate(async s=>{s&&(i.value=!0,e(a).then(c=>{i.value=!1,r.value=!1,k("complete")}).catch(c=>{i.value=!1}))})};return D({showDialog:r,setFormData:async(m=null)=>{if(Object.assign(a,f),i.value=!0,m){const e=await(await A(m.id)).data;e&&Object.keys(a).forEach(s=>{e[s]!=null&&(a[s]=e[s])})}i.value=!1}}),(m,e)=>{const s=L,u=I,c=N,g=Q,x=q,P=S;return v(),y(x,{modelValue:t(r),"onUpdate:modelValue":e[5]||(e[5]=o=>b(r)?r.value=o:r=o),title:a.id?t(l)("updateDict"):t(l)("addDict"),width:"480",class:"diy-dialog-wrap","destroy-on-close":!0},{footer:d(()=>[C("span",T,[n(g,{onClick:e[3]||(e[3]=o=>b(r)?r.value=!1:r=!1)},{default:d(()=>[V(h(t(l)("cancel")),1)]),_:1}),n(g,{type:"primary",loading:i.value,onClick:e[4]||(e[4]=o=>E(_.value))},{default:d(()=>[V(h(t(l)("confirm")),1)]),_:1},8,["loading"])])]),default:d(()=>[U((v(),y(c,{model:a,"label-width":"120px",ref_key:"formRef",ref:_,rules:t(w),class:"page-form"},{default:d(()=>[n(u,{label:t(l)("name"),prop:"name"},{default:d(()=>[n(s,{modelValue:a.name,"onUpdate:modelValue":e[0]||(e[0]=o=>a.name=o),clearable:"",placeholder:t(l)("namePlaceholder"),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),n(u,{label:t(l)("key"),prop:"key"},{default:d(()=>[n(s,{modelValue:a.key,"onUpdate:modelValue":e[1]||(e[1]=o=>a.key=o),clearable:"",placeholder:t(l)("keyPlaceholder"),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),n(u,{label:t(l)("memo")},{default:d(()=>[n(s,{modelValue:a.memo,"onUpdate:modelValue":e[2]||(e[2]=o=>a.memo=o),type:"textarea",clearable:"",placeholder:t(l)("memoPlaceholder"),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","rules"])),[[P,i.value]])]),_:1},8,["modelValue","title"])}}});export{le as _};
|
||||
@ -1 +1 @@
|
||||
import{d as E,R as I,r as v,Q as U,f as F,g as d,B as _,u as t,y as r,x as l,e as N,A as b}from"./base-06478700.js";/* empty css *//* empty css *//* empty css */import{a as k,E as B}from"./el-form-item-314d006d.js";/* empty css */import{_ as C}from"./index-315cf4d5.js";import{t as i}from"./index-81ed253c.js";import{n as R,s as j}from"./index-80fd3793.js";import{a as D}from"./vue-router-d09a2c28.js";import{E as P}from"./index-b68e8463.js";import{E as $}from"./index-c2f001d3.js";import{E as A}from"./index-e10fccde.js";import{v as L}from"./directive-cb2d3366.js";import{_ as Q}from"./_plugin-vue_export-helper-c27b6911.js";import"./index-2fcd1254.js";import"./event-10eba222.js";/* empty css */import"./index.vue_vue_type_style_index_0_lang-cd1fd676.js";import"./el-overlay-42a687c6.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";import"./attachment-49fa540a.js";/* empty css *//* empty css *//* empty css */import"./el-tooltip-58212670.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index-b52d0f2a.js";import"./index-9f9e1d50.js";import"./index-2a269c7c.js";import"./common-92a35870.js";import"./index-01f6e375.js";import"./validator-6e9db238.js";import"./index-e4abfaa5.js";import"./index-41a974fa.js";import"./index-c17093ae.js";import"./index-543fb162.js";import"./index-b6a184ba.js";import"./debounce-1db848fd.js";import"./position-c3bcd0be.js";import"./index-b56195b5.js";import"./index-40e21e72.js";import"./isEqual-42d4b10f.js";import"./index-137757c0.js";import"./index-35e821cc.js";import"./index-34d55b7e.js";import"./strings-fe930bc4.js";import"./index-5a0d60aa.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./index-6b67c4ac.js";import"./index-9ee9102c.js";const S={class:"main-container w-full p-5 bg-white"},T={class:"flex justify-between items-center h-[32px] mb-4"},q={class:"text-[20px]"},z={class:"flex justify-center mt-[50px]"},G=E({__name:"edit_personal",setup(H){const g=D();let o=I({head_img:"",real_name:"",username:""});const n=v(),a=v(!0);(()=>{a.value=!0,R().then(s=>{a.value=!1;let e=s.data;o.head_img=e.head_img,o.real_name=e.real_name,o.username=e.username}).catch(()=>{a.value=!1})})();const h=s=>{a.value||!s||s.validate(e=>{if(e)a.value=!0,j(o).then(p=>{a.value=!1}).catch(p=>{a.value=!1});else return!1})},x=()=>{g.push("/user/center")};return(s,e)=>{const p=C,u=k,c=P,y=B,f=$,V=A,w=L;return U((N(),F("div",S,[d("div",T,[d("span",q,_(t(i)("editPersonal")),1)]),r(V,{class:"box-card !border-none",shadow:"never"},{default:l(()=>[r(y,{model:t(o),"label-width":"90px",ref_key:"formRef",ref:n,rules:s.formRules,class:"page-form"},{default:l(()=>[r(u,{label:t(i)("headImg")},{default:l(()=>[r(p,{modelValue:t(o).head_img,"onUpdate:modelValue":e[0]||(e[0]=m=>t(o).head_img=m),limit:1},null,8,["modelValue"])]),_:1},8,["label"]),r(u,{label:t(i)("userName")},{default:l(()=>[r(c,{modelValue:t(o).username,"onUpdate:modelValue":e[1]||(e[1]=m=>t(o).username=m),clearable:"",class:"input-width",readonly:!0},null,8,["modelValue"])]),_:1},8,["label"]),r(u,{label:t(i)("realName")},{default:l(()=>[r(c,{modelValue:t(o).real_name,"onUpdate:modelValue":e[2]||(e[2]=m=>t(o).real_name=m),placeholder:t(i)("realNamePlaceholder"),clearable:"",class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","rules"]),d("div",z,[r(f,{type:"primary",onClick:e[3]||(e[3]=m=>h(n.value))},{default:l(()=>[b(_(t(i)("save")),1)]),_:1}),r(f,{type:"primary",onClick:e[4]||(e[4]=m=>x(n.value))},{default:l(()=>[b(_(t(i)("cancel")),1)]),_:1})])]),_:1})])),[[w,a.value]])}}});const et=Q(G,[["__scopeId","data-v-d0b410cb"]]);export{et as default};
|
||||
import{d as E,R as I,r as v,Q as U,f as F,g as d,B as _,u as t,y as r,x as l,e as N,A as b}from"./base-06478700.js";/* empty css *//* empty css *//* empty css */import{a as k,E as B}from"./el-form-item-314d006d.js";/* empty css */import{_ as C}from"./index-7eaa3a3d.js";import{t as i}from"./index-81ed253c.js";import{n as R,s as j}from"./index-981b0207.js";import{a as D}from"./vue-router-d09a2c28.js";import{E as P}from"./index-b68e8463.js";import{E as $}from"./index-c2f001d3.js";import{E as A}from"./index-e10fccde.js";import{v as L}from"./directive-cb2d3366.js";import{_ as Q}from"./_plugin-vue_export-helper-c27b6911.js";import"./index-2fcd1254.js";import"./event-10eba222.js";/* empty css */import"./index.vue_vue_type_style_index_0_lang-e59c442c.js";import"./el-overlay-42a687c6.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";import"./attachment-21666979.js";/* empty css *//* empty css *//* empty css */import"./el-tooltip-58212670.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index-b52d0f2a.js";import"./index-4a01421d.js";import"./index-2a269c7c.js";import"./common-92a35870.js";import"./index-01f6e375.js";import"./validator-6e9db238.js";import"./index-e4abfaa5.js";import"./index-41a974fa.js";import"./index-c17093ae.js";import"./index-543fb162.js";import"./index-b6a184ba.js";import"./debounce-1db848fd.js";import"./position-c3bcd0be.js";import"./index-b56195b5.js";import"./index-40e21e72.js";import"./isEqual-42d4b10f.js";import"./index-137757c0.js";import"./index-35e821cc.js";import"./index-34d55b7e.js";import"./strings-fe930bc4.js";import"./index-5a0d60aa.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./index-6b67c4ac.js";import"./index-9ee9102c.js";const S={class:"main-container w-full p-5 bg-white"},T={class:"flex justify-between items-center h-[32px] mb-4"},q={class:"text-[20px]"},z={class:"flex justify-center mt-[50px]"},G=E({__name:"edit_personal",setup(H){const g=D();let o=I({head_img:"",real_name:"",username:""});const n=v(),a=v(!0);(()=>{a.value=!0,R().then(s=>{a.value=!1;let e=s.data;o.head_img=e.head_img,o.real_name=e.real_name,o.username=e.username}).catch(()=>{a.value=!1})})();const h=s=>{a.value||!s||s.validate(e=>{if(e)a.value=!0,j(o).then(p=>{a.value=!1}).catch(p=>{a.value=!1});else return!1})},x=()=>{g.push("/user/center")};return(s,e)=>{const p=C,u=k,c=P,y=B,f=$,V=A,w=L;return U((N(),F("div",S,[d("div",T,[d("span",q,_(t(i)("editPersonal")),1)]),r(V,{class:"box-card !border-none",shadow:"never"},{default:l(()=>[r(y,{model:t(o),"label-width":"90px",ref_key:"formRef",ref:n,rules:s.formRules,class:"page-form"},{default:l(()=>[r(u,{label:t(i)("headImg")},{default:l(()=>[r(p,{modelValue:t(o).head_img,"onUpdate:modelValue":e[0]||(e[0]=m=>t(o).head_img=m),limit:1},null,8,["modelValue"])]),_:1},8,["label"]),r(u,{label:t(i)("userName")},{default:l(()=>[r(c,{modelValue:t(o).username,"onUpdate:modelValue":e[1]||(e[1]=m=>t(o).username=m),clearable:"",class:"input-width",readonly:!0},null,8,["modelValue"])]),_:1},8,["label"]),r(u,{label:t(i)("realName")},{default:l(()=>[r(c,{modelValue:t(o).real_name,"onUpdate:modelValue":e[2]||(e[2]=m=>t(o).real_name=m),placeholder:t(i)("realNamePlaceholder"),clearable:"",class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","rules"]),d("div",z,[r(f,{type:"primary",onClick:e[3]||(e[3]=m=>h(n.value))},{default:l(()=>[b(_(t(i)("save")),1)]),_:1}),r(f,{type:"primary",onClick:e[4]||(e[4]=m=>x(n.value))},{default:l(()=>[b(_(t(i)("cancel")),1)]),_:1})])]),_:1})])),[[w,a.value]])}}});const et=Q(G,[["__scopeId","data-v-d0b410cb"]]);export{et as default};
|
||||
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{d as L,R as C,r as f,Q as B,u as n,e as s,f as r,v as S,x as u,g as e,F as A,z as I,y as x,B as h,H as d,aP as j,aQ as V}from"./base-06478700.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{_ as D}from"./app_store_default-c4798c2d.js";import{k as F,B as N,C as R}from"./index-80fd3793.js";import{d as Q}from"./common-92a35870.js";import{a as z}from"./vue-router-d09a2c28.js";import{t as H}from"./index-81ed253c.js";import{E as M}from"./index-543fb162.js";import{E as P}from"./index-e10fccde.js";import{E as U}from"./index-b56195b5.js";import{v as $}from"./directive-cb2d3366.js";import{_ as q}from"./_plugin-vue_export-helper-c27b6911.js";import"./event-10eba222.js";import"./index-2fcd1254.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./index-6b67c4ac.js";import"./el-overlay-42a687c6.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";/* empty css */import"./el-form-item-314d006d.js";/* empty css */import"./el-tooltip-58212670.js";import"./index-b52d0f2a.js";import"./index-b68e8463.js";import"./index-c2f001d3.js";import"./index-2a269c7c.js";import"./index-e4abfaa5.js";import"./index-9ee9102c.js";import"./index-b6a184ba.js";import"./debounce-1db848fd.js";import"./position-c3bcd0be.js";const v=i=>(j("data-v-f5937e57"),i=i(),V(),i),G={class:"main-container w-full bg-white"},J=v(()=>e("div",{class:"flex justify-between items-center"},[e("span",{class:"text-[20px]"},"应用管理")],-1)),K={class:"flex flex-wrap plug-list pb-10 plug-large"},O={key:0,class:"relative app-item cursor-pointer px-4 mr-4 mt-[20px] bg-[#f7f7f7] border-[1px] hover:border-primary"},T=["onClick"],W={class:"flex py-5 items-center"},X={class:"flex justify-center items-center"},Y=v(()=>e("div",{class:"image-slot"},[e("img",{class:"w-[50px] h-[50px]",src:D})],-1)),Z={class:"flex flex-col justify-between text-left w-[190px]"},tt={class:"app-text w-[190px] text-[17px] text-[#222] pl-3"},et={class:"border-t-[1px] border-[#e8e9eb] py-3"},st={class:"app-text text-[14px] text-[#999] w-[200px]"},ot={key:1,class:"empty flex items-center justify-center"},rt=L({__name:"history",setup(i){const _=F(),y=z(),p=C({list:[]});let c=f(!0);(async()=>{const t=await N({});let l=_.appMenuList;p.list=t.data.filter(m=>l.includes(m.key)),c.value=!1})();const a=f({});(()=>{_.routers.forEach((t,l)=>{t.meta.app!=""&&(t.children&&t.children.length?a.value[t.meta.app]=R(t.children):a.value[t.meta.app]=t.name)})})();const g=t=>{y.push({name:a.value[t]})};return(t,l)=>{const m=M,k=P,w=U,b=$;return B((s(),r("div",G,[p.list.length?(s(),S(k,{key:0,class:"box-card !border-none",shadow:"never"},{default:u(()=>[J,e("div",K,[(s(!0),r(A,null,I(p.list,(o,E)=>(s(),r("div",{key:E+"b"},[a.value[o.key]?(s(),r("div",O,[e("div",{onClick:at=>g(o.key)},[e("div",W,[e("div",X,[x(m,{class:"w-[50px] h-[50px]",src:n(Q)(o.icon),fit:"contain"},{error:u(()=>[Y]),_:2},1032,["src"])]),e("div",Z,[e("p",tt,h(o.title),1)])]),e("div",et,[e("p",st,h(o.desc),1)])],8,T)])):d("",!0)]))),128))])]),_:1})):d("",!0),!n(c)&&!p.list.length?(s(),r("div",ot,[x(w,{description:n(H)("emptyData")},null,8,["description"])])):d("",!0)])),[[b,n(c)]])}}});const Kt=q(rt,[["__scopeId","data-v-f5937e57"]]);export{Kt as default};
|
||||
import{d as L,R as C,r as f,Q as B,u as n,e as s,f as r,v as S,x as u,g as e,F as A,z as I,y as x,B as h,H as d,aP as j,aQ as V}from"./base-06478700.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{_ as D}from"./app_store_default-c4798c2d.js";import{k as F,B as N,C as R}from"./index-981b0207.js";import{d as Q}from"./common-92a35870.js";import{a as z}from"./vue-router-d09a2c28.js";import{t as H}from"./index-81ed253c.js";import{E as M}from"./index-543fb162.js";import{E as P}from"./index-e10fccde.js";import{E as U}from"./index-b56195b5.js";import{v as $}from"./directive-cb2d3366.js";import{_ as q}from"./_plugin-vue_export-helper-c27b6911.js";import"./event-10eba222.js";import"./index-2fcd1254.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./index-6b67c4ac.js";import"./el-overlay-42a687c6.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";/* empty css */import"./el-form-item-314d006d.js";/* empty css */import"./el-tooltip-58212670.js";import"./index-b52d0f2a.js";import"./index-b68e8463.js";import"./index-c2f001d3.js";import"./index-2a269c7c.js";import"./index-e4abfaa5.js";import"./index-9ee9102c.js";import"./index-b6a184ba.js";import"./debounce-1db848fd.js";import"./position-c3bcd0be.js";const v=i=>(j("data-v-f5937e57"),i=i(),V(),i),G={class:"main-container w-full bg-white"},J=v(()=>e("div",{class:"flex justify-between items-center"},[e("span",{class:"text-[20px]"},"应用管理")],-1)),K={class:"flex flex-wrap plug-list pb-10 plug-large"},O={key:0,class:"relative app-item cursor-pointer px-4 mr-4 mt-[20px] bg-[#f7f7f7] border-[1px] hover:border-primary"},T=["onClick"],W={class:"flex py-5 items-center"},X={class:"flex justify-center items-center"},Y=v(()=>e("div",{class:"image-slot"},[e("img",{class:"w-[50px] h-[50px]",src:D})],-1)),Z={class:"flex flex-col justify-between text-left w-[190px]"},tt={class:"app-text w-[190px] text-[17px] text-[#222] pl-3"},et={class:"border-t-[1px] border-[#e8e9eb] py-3"},st={class:"app-text text-[14px] text-[#999] w-[200px]"},ot={key:1,class:"empty flex items-center justify-center"},rt=L({__name:"history",setup(i){const _=F(),y=z(),p=C({list:[]});let c=f(!0);(async()=>{const t=await N({});let l=_.appMenuList;p.list=t.data.filter(m=>l.includes(m.key)),c.value=!1})();const a=f({});(()=>{_.routers.forEach((t,l)=>{t.meta.app!=""&&(t.children&&t.children.length?a.value[t.meta.app]=R(t.children):a.value[t.meta.app]=t.name)})})();const g=t=>{y.push({name:a.value[t]})};return(t,l)=>{const m=M,k=P,w=U,b=$;return B((s(),r("div",G,[p.list.length?(s(),S(k,{key:0,class:"box-card !border-none",shadow:"never"},{default:u(()=>[J,e("div",K,[(s(!0),r(A,null,I(p.list,(o,E)=>(s(),r("div",{key:E+"b"},[a.value[o.key]?(s(),r("div",O,[e("div",{onClick:at=>g(o.key)},[e("div",W,[e("div",X,[x(m,{class:"w-[50px] h-[50px]",src:n(Q)(o.icon),fit:"contain"},{error:u(()=>[Y]),_:2},1032,["src"])]),e("div",Z,[e("p",tt,h(o.title),1)])]),e("div",et,[e("p",st,h(o.desc),1)])],8,T)])):d("",!0)]))),128))])]),_:1})):d("",!0),!n(c)&&!p.list.length?(s(),r("div",ot,[x(w,{description:n(H)("emptyData")},null,8,["description"])])):d("",!0)])),[[b,n(c)]])}}});const Kt=q(rt,[["__scopeId","data-v-f5937e57"]]);export{Kt 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
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
import{d as u,R as g,r as v,e as r,f as p,y as n,x as i,g as s,F as k,z as w,u as y,B as c}from"./base-06478700.js";/* empty css *//* empty css *//* empty css */import{_ as b}from"./app_store_default-c4798c2d.js";import{k as C,B as E,C as L}from"./index-80fd3793.js";import{d as A}from"./common-92a35870.js";import{a as B}from"./vue-router-d09a2c28.js";import{E as F}from"./index-543fb162.js";import{E as R}from"./index-e10fccde.js";import"./index-81ed253c.js";import"./event-10eba222.js";import"./index-2fcd1254.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-6b67c4ac.js";import"./el-overlay-42a687c6.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";/* empty css */import"./el-form-item-314d006d.js";/* empty css */import"./el-tooltip-58212670.js";import"./index-b52d0f2a.js";import"./index-b68e8463.js";import"./index-c2f001d3.js";import"./index-2a269c7c.js";import"./index-e4abfaa5.js";import"./index-9ee9102c.js";import"./index-b6a184ba.js";import"./debounce-1db848fd.js";import"./position-c3bcd0be.js";const S={class:"main-container h-[500px] w-full p-5 bg-white"},V=s("div",{class:"card-header"},[s("span",{class:"text-[15px]"},"基本应用")],-1),N={class:"flex flex-wrap plug-list pb-10 plug-large"},j=["onClick"],z={class:"flex justify-center items-center"},D=s("div",{class:"image-slot"},[s("img",{class:"w-[240px] h-[120px]",src:b})],-1),I={class:"flex w-[240px] h-[46px]"},U={class:"text-left mt-2 w-[190px]"},$={class:"app-text text-[14px] text-[#222] pl-2"},q={class:"app-text text-[12px] text-[#999] pl-2"},Lt=u({__name:"index",setup(G){const l=C(),m=B(),a=g({list:[]});(async()=>{const t=await E({});a.list=t.data})();const o=v({});(()=>{l.routers.forEach((t,_)=>{t.meta.app!=""&&(t.children&&t.children.length?o.value[t.meta.app]=L(t.children):o.value[t.meta.app]=t.name)})})();const d=t=>{m.push({name:o.value[t]})};return(t,_)=>{const x=F,f=R;return r(),p("div",S,[n(f,{class:"box-card !border-none",shadow:"never"},{header:i(()=>[V]),default:i(()=>[s("div",N,[(r(!0),p(k,null,w(a.list,(e,h)=>(r(),p("div",{key:h+"b",class:"app-item cursor-pointer mr-4 mt-[20px] pb-2 bg-[#f7f7f7]",onClick:K=>d(e.key)},[s("div",z,[n(x,{class:"w-[240px] h-[120px]",src:y(A)(e.icon),fit:"contain"},{error:i(()=>[D]),_:2},1032,["src"])]),s("div",I,[s("div",U,[s("p",$,c(e.title),1),s("p",q,c(e.desc),1)])])],8,j))),128))])]),_:1})])}}});export{Lt as default};
|
||||
import{d as u,R as g,r as v,e as r,f as p,y as n,x as i,g as s,F as k,z as w,u as y,B as c}from"./base-06478700.js";/* empty css *//* empty css *//* empty css */import{_ as b}from"./app_store_default-c4798c2d.js";import{k as C,B as E,C as L}from"./index-981b0207.js";import{d as A}from"./common-92a35870.js";import{a as B}from"./vue-router-d09a2c28.js";import{E as F}from"./index-543fb162.js";import{E as R}from"./index-e10fccde.js";import"./index-81ed253c.js";import"./event-10eba222.js";import"./index-2fcd1254.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-6b67c4ac.js";import"./el-overlay-42a687c6.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";/* empty css */import"./el-form-item-314d006d.js";/* empty css */import"./el-tooltip-58212670.js";import"./index-b52d0f2a.js";import"./index-b68e8463.js";import"./index-c2f001d3.js";import"./index-2a269c7c.js";import"./index-e4abfaa5.js";import"./index-9ee9102c.js";import"./index-b6a184ba.js";import"./debounce-1db848fd.js";import"./position-c3bcd0be.js";const S={class:"main-container h-[500px] w-full p-5 bg-white"},V=s("div",{class:"card-header"},[s("span",{class:"text-[15px]"},"基本应用")],-1),N={class:"flex flex-wrap plug-list pb-10 plug-large"},j=["onClick"],z={class:"flex justify-center items-center"},D=s("div",{class:"image-slot"},[s("img",{class:"w-[240px] h-[120px]",src:b})],-1),I={class:"flex w-[240px] h-[46px]"},U={class:"text-left mt-2 w-[190px]"},$={class:"app-text text-[14px] text-[#222] pl-2"},q={class:"app-text text-[12px] text-[#999] pl-2"},Lt=u({__name:"index",setup(G){const l=C(),m=B(),a=g({list:[]});(async()=>{const t=await E({});a.list=t.data})();const o=v({});(()=>{l.routers.forEach((t,_)=>{t.meta.app!=""&&(t.children&&t.children.length?o.value[t.meta.app]=L(t.children):o.value[t.meta.app]=t.name)})})();const d=t=>{m.push({name:o.value[t]})};return(t,_)=>{const x=F,f=R;return r(),p("div",S,[n(f,{class:"box-card !border-none",shadow:"never"},{header:i(()=>[V]),default:i(()=>[s("div",N,[(r(!0),p(k,null,w(a.list,(e,h)=>(r(),p("div",{key:h+"b",class:"app-item cursor-pointer mr-4 mt-[20px] pb-2 bg-[#f7f7f7]",onClick:K=>d(e.key)},[s("div",z,[n(x,{class:"w-[240px] h-[120px]",src:y(A)(e.icon),fit:"contain"},{error:i(()=>[D]),_:2},1032,["src"])]),s("div",I,[s("div",U,[s("p",$,c(e.title),1),s("p",q,c(e.desc),1)])])],8,j))),128))])]),_:1})])}}});export{Lt as default};
|
||||
@ -1 +1 @@
|
||||
import{d,u as a,E as R}from"./index-2a269c7c.js";import{b as U,c as T,e as $}from"./index-2fcd1254.js";import{i as f}from"./index-80fd3793.js";import{d as g,c as n,b as D,r as V,u as p,e as u,v as H,x as c,f as O,n as I,B as v,H as b,h as m,A as L,C as z,_ as F,bb as K,l as j}from"./base-06478700.js";const q=U({trigger:d.trigger,placement:f.placement,disabled:d.disabled,visible:a.visible,transition:a.transition,popperOptions:f.popperOptions,tabindex:f.tabindex,content:a.content,popperStyle:a.popperStyle,popperClass:a.popperClass,enterable:{...a.enterable,default:!0},effect:{...a.effect,default:"light"},teleported:a.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),G={"update:visible":t=>T(t),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},J="onUpdate:visible",M=g({name:"ElPopover"}),Q=g({...M,props:q,emits:G,setup(t,{expose:r,emit:s}){const o=t,w=n(()=>o[J]),l=D("popover"),i=V(),y=n(()=>{var e;return(e=p(i))==null?void 0:e.popperRef}),C=n(()=>[{width:$(o.width)},o.popperStyle]),E=n(()=>[l.b(),o.popperClass,{[l.m("plain")]:!!o.content}]),P=n(()=>o.transition===`${l.namespace.value}-fade-in-linear`),k=()=>{var e;(e=i.value)==null||e.hide()},B=()=>{s("before-enter")},S=()=>{s("before-leave")},A=()=>{s("after-enter")},N=()=>{s("update:visible",!1),s("after-leave")};return r({popperRef:y,hide:k}),(e,_)=>(u(),H(p(R),z({ref_key:"tooltipRef",ref:i},e.$attrs,{trigger:e.trigger,placement:e.placement,disabled:e.disabled,visible:e.visible,transition:e.transition,"popper-options":e.popperOptions,tabindex:e.tabindex,content:e.content,offset:e.offset,"show-after":e.showAfter,"hide-after":e.hideAfter,"auto-close":e.autoClose,"show-arrow":e.showArrow,"aria-label":e.title,effect:e.effect,enterable:e.enterable,"popper-class":p(E),"popper-style":p(C),teleported:e.teleported,persistent:e.persistent,"gpu-acceleration":p(P),"onUpdate:visible":p(w),onBeforeShow:B,onBeforeHide:S,onShow:A,onHide:N}),{content:c(()=>[e.title?(u(),O("div",{key:0,class:I(p(l).e("title")),role:"title"},v(e.title),3)):b("v-if",!0),m(e.$slots,"default",{},()=>[L(v(e.content),1)])]),default:c(()=>[e.$slots.reference?m(e.$slots,"reference",{key:0}):b("v-if",!0)]),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration","onUpdate:visible"]))}});var W=F(Q,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);const h=(t,r)=>{const s=r.arg||r.value,o=s==null?void 0:s.popperRef;o&&(o.triggerRef=t)};var X={mounted(t,r){h(t,r)},updated(t,r){h(t,r)}};const Y="popover",Z=K(X,Y),re=j(W,{directive:Z});export{re as E,Z as a};
|
||||
import{d,u as a,E as R}from"./index-2a269c7c.js";import{b as U,c as T,e as $}from"./index-2fcd1254.js";import{i as f}from"./index-981b0207.js";import{d as g,c as n,b as D,r as V,u as p,e as u,v as H,x as c,f as O,n as I,B as v,H as b,h as m,A as L,C as z,_ as F,bb as K,l as j}from"./base-06478700.js";const q=U({trigger:d.trigger,placement:f.placement,disabled:d.disabled,visible:a.visible,transition:a.transition,popperOptions:f.popperOptions,tabindex:f.tabindex,content:a.content,popperStyle:a.popperStyle,popperClass:a.popperClass,enterable:{...a.enterable,default:!0},effect:{...a.effect,default:"light"},teleported:a.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),G={"update:visible":t=>T(t),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},J="onUpdate:visible",M=g({name:"ElPopover"}),Q=g({...M,props:q,emits:G,setup(t,{expose:r,emit:s}){const o=t,w=n(()=>o[J]),l=D("popover"),i=V(),y=n(()=>{var e;return(e=p(i))==null?void 0:e.popperRef}),C=n(()=>[{width:$(o.width)},o.popperStyle]),E=n(()=>[l.b(),o.popperClass,{[l.m("plain")]:!!o.content}]),P=n(()=>o.transition===`${l.namespace.value}-fade-in-linear`),k=()=>{var e;(e=i.value)==null||e.hide()},B=()=>{s("before-enter")},S=()=>{s("before-leave")},A=()=>{s("after-enter")},N=()=>{s("update:visible",!1),s("after-leave")};return r({popperRef:y,hide:k}),(e,_)=>(u(),H(p(R),z({ref_key:"tooltipRef",ref:i},e.$attrs,{trigger:e.trigger,placement:e.placement,disabled:e.disabled,visible:e.visible,transition:e.transition,"popper-options":e.popperOptions,tabindex:e.tabindex,content:e.content,offset:e.offset,"show-after":e.showAfter,"hide-after":e.hideAfter,"auto-close":e.autoClose,"show-arrow":e.showArrow,"aria-label":e.title,effect:e.effect,enterable:e.enterable,"popper-class":p(E),"popper-style":p(C),teleported:e.teleported,persistent:e.persistent,"gpu-acceleration":p(P),"onUpdate:visible":p(w),onBeforeShow:B,onBeforeHide:S,onShow:A,onHide:N}),{content:c(()=>[e.title?(u(),O("div",{key:0,class:I(p(l).e("title")),role:"title"},v(e.title),3)):b("v-if",!0),m(e.$slots,"default",{},()=>[L(v(e.content),1)])]),default:c(()=>[e.$slots.reference?m(e.$slots,"reference",{key:0}):b("v-if",!0)]),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration","onUpdate:visible"]))}});var W=F(Q,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);const h=(t,r)=>{const s=r.arg||r.value,o=s==null?void 0:s.popperRef;o&&(o.triggerRef=t)};var X={mounted(t,r){h(t,r)},updated(t,r){h(t,r)}};const Y="popover",Z=K(X,Y),re=j(W,{directive:Z});export{re as E,Z as a};
|
||||
@ -1 +1 @@
|
||||
import{d as C,r as f,R as L,c as S,Q as B,e,f as c,g as t,F as I,z as N,v as h,B as m,u as i,x as l,y as R,A as V,H as j,aP as z,aQ as D}from"./base-06478700.js";/* empty css *//* empty css */import{_ as F}from"./apply_empty-78684083.js";import{k as Q,_ as $}from"./index-80fd3793.js";import{_ as A}from"./app_store_default-c4798c2d.js";import{t as _}from"./index-81ed253c.js";import{a as H}from"./vue-router-d09a2c28.js";import{E as P}from"./index-8c476f28.js";import{E as T}from"./index-b56195b5.js";import{v as U}from"./directive-cb2d3366.js";import{_ as q}from"./_plugin-vue_export-helper-c27b6911.js";import"./common-92a35870.js";import"./index-2fcd1254.js";import"./event-10eba222.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./index-6b67c4ac.js";import"./el-overlay-42a687c6.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";/* empty css */import"./el-form-item-314d006d.js";/* empty css */import"./el-tooltip-58212670.js";import"./index-b52d0f2a.js";import"./index-b68e8463.js";import"./index-c2f001d3.js";import"./index-2a269c7c.js";import"./index-e4abfaa5.js";import"./index-9ee9102c.js";const v=a=>(z("data-v-cf54080d"),a=a(),D(),a),G={class:"box-border px-[30px] pt-[60px]"},J=v(()=>t("div",{class:"flex justify-between items-center"},[t("div",{class:"font-600 text-[20px] text-[#222]"},"工具管理")],-1)),K={class:"flex flex-wrap mt-[28px]"},M=["onClick"],O={class:"flex items-center"},W={key:1,class:"w-[40px] h-[40px] rounded-[8px]",src:A},X={class:"flex-1 font-600 text-[14px] text-[#222] ml-[12px]"},Y=v(()=>t("div",{class:"w-[230px] mx-auto"},[t("img",{src:F,class:"max-w-full",alt:""})],-1)),Z={class:"flex items-center"},tt=C({__name:"index",setup(a){const w=H(),y=Q(),n=f(!0);L({appList:[]}),f({});const d=S(()=>{let o=[];return n.value=!0,y.routers.forEach((s,u)=>{s.meta.key=="tool"&&s.children&&s.children.length&&s.children.forEach((p,x)=>{p.meta.show==1&&o.push(p)})}),n.value=!1,o}),g=o=>{w.push({name:o.name})},k=()=>{window.open("https://www.niucloud.com/product")};return(o,s)=>{const u=$,p=P,x=T,b=U;return B((e(),c("div",G,[J,t("div",K,[(e(!0),c(I,null,N(i(d),(r,E)=>(e(),c("div",{key:E,class:"app-item w-[284px] box-border p-[15px] bg-[#fff] rounded-[8px] cursor-pointer mr-[24px] mb-[24px]",onClick:et=>g(r)},[t("div",O,[r.meta.icon?(e(),h(u,{key:0,name:r.meta.icon,class:"!w-auto",size:"40px",title:r.meta.title},null,8,["name","title"])):(e(),c("img",W)),t("div",X,m(r.meta.title),1)])],8,M))),128)),!i(d).length&&!n.value?(e(),h(x,{key:0,class:"mx-auto overview-empty"},{image:l(()=>[Y]),description:l(()=>[t("p",Z,[t("span",null,m(i(_)("descriptionLeft")),1),R(p,{type:"primary",onClick:k,class:"mx-[5px]"},{default:l(()=>[V(m(i(_)("link")),1)]),_:1}),t("span",null,m(i(_)("descriptionRight")),1)])]),_:1})):j("",!0)])])),[[b,n.value]])}}});const Dt=q(tt,[["__scopeId","data-v-cf54080d"]]);export{Dt as default};
|
||||
import{d as C,r as f,R as L,c as S,Q as B,e,f as c,g as t,F as I,z as N,v as h,B as m,u as i,x as l,y as R,A as V,H as j,aP as z,aQ as D}from"./base-06478700.js";/* empty css *//* empty css */import{_ as F}from"./apply_empty-78684083.js";import{k as Q,_ as $}from"./index-981b0207.js";import{_ as A}from"./app_store_default-c4798c2d.js";import{t as _}from"./index-81ed253c.js";import{a as H}from"./vue-router-d09a2c28.js";import{E as P}from"./index-8c476f28.js";import{E as T}from"./index-b56195b5.js";import{v as U}from"./directive-cb2d3366.js";import{_ as q}from"./_plugin-vue_export-helper-c27b6911.js";import"./common-92a35870.js";import"./index-2fcd1254.js";import"./event-10eba222.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./index-6b67c4ac.js";import"./el-overlay-42a687c6.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";/* empty css */import"./el-form-item-314d006d.js";/* empty css */import"./el-tooltip-58212670.js";import"./index-b52d0f2a.js";import"./index-b68e8463.js";import"./index-c2f001d3.js";import"./index-2a269c7c.js";import"./index-e4abfaa5.js";import"./index-9ee9102c.js";const v=a=>(z("data-v-cf54080d"),a=a(),D(),a),G={class:"box-border px-[30px] pt-[60px]"},J=v(()=>t("div",{class:"flex justify-between items-center"},[t("div",{class:"font-600 text-[20px] text-[#222]"},"工具管理")],-1)),K={class:"flex flex-wrap mt-[28px]"},M=["onClick"],O={class:"flex items-center"},W={key:1,class:"w-[40px] h-[40px] rounded-[8px]",src:A},X={class:"flex-1 font-600 text-[14px] text-[#222] ml-[12px]"},Y=v(()=>t("div",{class:"w-[230px] mx-auto"},[t("img",{src:F,class:"max-w-full",alt:""})],-1)),Z={class:"flex items-center"},tt=C({__name:"index",setup(a){const w=H(),y=Q(),n=f(!0);L({appList:[]}),f({});const d=S(()=>{let o=[];return n.value=!0,y.routers.forEach((s,u)=>{s.meta.key=="tool"&&s.children&&s.children.length&&s.children.forEach((p,x)=>{p.meta.show==1&&o.push(p)})}),n.value=!1,o}),g=o=>{w.push({name:o.name})},k=()=>{window.open("https://www.niucloud.com/product")};return(o,s)=>{const u=$,p=P,x=T,b=U;return B((e(),c("div",G,[J,t("div",K,[(e(!0),c(I,null,N(i(d),(r,E)=>(e(),c("div",{key:E,class:"app-item w-[284px] box-border p-[15px] bg-[#fff] rounded-[8px] cursor-pointer mr-[24px] mb-[24px]",onClick:et=>g(r)},[t("div",O,[r.meta.icon?(e(),h(u,{key:0,name:r.meta.icon,class:"!w-auto",size:"40px",title:r.meta.title},null,8,["name","title"])):(e(),c("img",W)),t("div",X,m(r.meta.title),1)])],8,M))),128)),!i(d).length&&!n.value?(e(),h(x,{key:0,class:"mx-auto overview-empty"},{image:l(()=>[Y]),description:l(()=>[t("p",Z,[t("span",null,m(i(_)("descriptionLeft")),1),R(p,{type:"primary",onClick:k,class:"mx-[5px]"},{default:l(()=>[V(m(i(_)("link")),1)]),_:1}),t("span",null,m(i(_)("descriptionRight")),1)])]),_:1})):j("",!0)])])),[[b,n.value]])}}});const Dt=q(tt,[["__scopeId","data-v-cf54080d"]]);export{Dt as default};
|
||||
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
import{d as L,c as S,R as h,w as O,e as o,f as n,g as l,j as v,u as i,y as a,v as j,x as E,B as $,F as g,z as P,H as B,an as N}from"./base-06478700.js";/* empty css */import{_ as R}from"./index.vue_vue_type_style_index_0_lang-cd1fd676.js";import{_ as Z}from"./index-80fd3793.js";/* empty css */import{d as y}from"./common-92a35870.js";import{t as D}from"./index-81ed253c.js";import{E as H}from"./index-b6a184ba.js";import{E as q}from"./index-543fb162.js";import{_ as A}from"./_plugin-vue_export-helper-c27b6911.js";const G={class:"flex flex-wrap"},J={key:0,class:"w-full h-full relative"},K={class:"w-full h-full flex items-center justify-center"},M={class:"absolute z-[1] flex items-center justify-center w-full h-full inset-0 bg-black bg-opacity-60 operation"},Q={class:"w-full h-full flex items-center justify-center flex-col"},U={class:"leading-none text-xs mt-[10px] text-secondary"},W={class:"w-full h-full relative"},X={class:"w-full h-full flex items-center justify-center"},Y={class:"absolute z-[1] flex items-center justify-center w-full h-full inset-0 bg-black bg-opacity-60 operation"},ee={class:"w-full h-full flex items-center justify-center flex-col"},te={class:"leading-none text-xs mt-[10px] text-secondary"},le=L({__name:"index",props:{modelValue:{type:String,default:""},width:{type:String,default:"100px"},height:{type:String,default:"100px"},imageText:{type:String},limit:{type:Number,default:1}},emits:["update:modelValue","change"],setup(s,{emit:w}){const m=s,r=S({get(){return m.modelValue},set(t){w("update:modelValue",t)}}),e=h({data:[]});let b=h([]);const f=()=>{r.value=N(e.data).toString(),b=N(e.data).map(t=>y(t))};O(()=>r.value,()=>{r.value.indexOf("data:image")!=-1?e.data[0]=r.value+"":e.data=[...r.value.split(",").filter(t=>t)],f()},{immediate:!0});const p=S(()=>({width:m.width,height:m.height})),k=t=>{m.limit==1?(e.data.splice(0,1),t&&e.data.push(t.url)):t.forEach(c=>{e.data.length<m.limit&&e.data.push(c.url)}),f(),w("change",r.value)},C=(t=0)=>{e.data.splice(t,1),f()},u=h({show:!1,index:0}),z=(t=0)=>{u.show=!0,u.index=t};return(t,c)=>{const V=q,d=Z,I=R,T=H;return o(),n(g,null,[l("div",G,[s.limit==1?(o(),n("div",{key:0,class:"cursor-pointer overflow-hidden relative border border-solid border-color image-wrap mr-[10px]",style:v(i(p))},[e.data.length?(o(),n("div",J,[l("div",K,[a(V,{src:e.data[0].indexOf("data:image")!=-1?e.data[0]:i(y)(e.data[0]),fit:"contain"},null,8,["src"])]),l("div",M,[a(d,{name:"element-ZoomIn",color:"#fff",size:"18px",class:"mr-[10px]",onClick:c[0]||(c[0]=_=>z())}),a(d,{name:"element-Delete",color:"#fff",size:"18px",onClick:C})])])):(o(),j(I,{key:1,limit:s.limit,onConfirm:k},{default:E(()=>[l("div",Q,[a(d,{name:"element-Plus",size:"20px",color:"var(--el-text-color-secondary)"}),l("div",U,$(s.imageText||i(D)("upload.root")),1)])]),_:1},8,["limit"]))],4)):(o(),n(g,{key:1},[(o(!0),n(g,null,P(e.data,(_,x)=>(o(),n("div",{class:"cursor-pointer overflow-hidden relative border border-solid border-color image-wrap mr-[10px]",style:v(i(p)),key:x},[l("div",W,[l("div",X,[a(V,{src:i(y)(_),fit:"contain"},null,8,["src"])]),l("div",Y,[a(d,{name:"element-ZoomIn",color:"#fff",size:"18px",class:"mr-[10px]",onClick:F=>z(x)},null,8,["onClick"]),a(d,{name:"element-Delete",color:"#fff",size:"18px",onClick:F=>C(x)},null,8,["onClick"])])])],4))),128)),e.data.length<s.limit?(o(),n("div",{key:0,class:"rounded cursor-pointer overflow-hidden relative border border-dashed border-color",style:v(i(p))},[a(I,{limit:s.limit,onConfirm:k},{default:E(()=>[l("div",ee,[a(d,{name:"element-Plus",size:"20px",color:"var(--el-text-color-secondary)"}),l("div",te,$(s.imageText||i(D)("upload.root")),1)])]),_:1},8,["limit"])],4)):B("",!0)],64))]),u.show?(o(),j(T,{key:0,"url-list":i(b),onClose:c[1]||(c[1]=_=>u.show=!1),"initial-index":u.index,"zoom-rate":1},null,8,["url-list","initial-index"])):B("",!0)],64)}}});const fe=A(le,[["__scopeId","data-v-8dae4fdf"]]);export{fe as _};
|
||||
import{d as L,c as S,R as h,w as O,e as o,f as n,g as l,j as v,u as i,y as a,v as j,x as E,B as $,F as g,z as P,H as B,an as N}from"./base-06478700.js";/* empty css */import{_ as R}from"./index.vue_vue_type_style_index_0_lang-e59c442c.js";import{_ as Z}from"./index-981b0207.js";/* empty css */import{d as y}from"./common-92a35870.js";import{t as D}from"./index-81ed253c.js";import{E as H}from"./index-b6a184ba.js";import{E as q}from"./index-543fb162.js";import{_ as A}from"./_plugin-vue_export-helper-c27b6911.js";const G={class:"flex flex-wrap"},J={key:0,class:"w-full h-full relative"},K={class:"w-full h-full flex items-center justify-center"},M={class:"absolute z-[1] flex items-center justify-center w-full h-full inset-0 bg-black bg-opacity-60 operation"},Q={class:"w-full h-full flex items-center justify-center flex-col"},U={class:"leading-none text-xs mt-[10px] text-secondary"},W={class:"w-full h-full relative"},X={class:"w-full h-full flex items-center justify-center"},Y={class:"absolute z-[1] flex items-center justify-center w-full h-full inset-0 bg-black bg-opacity-60 operation"},ee={class:"w-full h-full flex items-center justify-center flex-col"},te={class:"leading-none text-xs mt-[10px] text-secondary"},le=L({__name:"index",props:{modelValue:{type:String,default:""},width:{type:String,default:"100px"},height:{type:String,default:"100px"},imageText:{type:String},limit:{type:Number,default:1}},emits:["update:modelValue","change"],setup(s,{emit:w}){const m=s,r=S({get(){return m.modelValue},set(t){w("update:modelValue",t)}}),e=h({data:[]});let b=h([]);const f=()=>{r.value=N(e.data).toString(),b=N(e.data).map(t=>y(t))};O(()=>r.value,()=>{r.value.indexOf("data:image")!=-1?e.data[0]=r.value+"":e.data=[...r.value.split(",").filter(t=>t)],f()},{immediate:!0});const p=S(()=>({width:m.width,height:m.height})),k=t=>{m.limit==1?(e.data.splice(0,1),t&&e.data.push(t.url)):t.forEach(c=>{e.data.length<m.limit&&e.data.push(c.url)}),f(),w("change",r.value)},C=(t=0)=>{e.data.splice(t,1),f()},u=h({show:!1,index:0}),z=(t=0)=>{u.show=!0,u.index=t};return(t,c)=>{const V=q,d=Z,I=R,T=H;return o(),n(g,null,[l("div",G,[s.limit==1?(o(),n("div",{key:0,class:"cursor-pointer overflow-hidden relative border border-solid border-color image-wrap mr-[10px]",style:v(i(p))},[e.data.length?(o(),n("div",J,[l("div",K,[a(V,{src:e.data[0].indexOf("data:image")!=-1?e.data[0]:i(y)(e.data[0]),fit:"contain"},null,8,["src"])]),l("div",M,[a(d,{name:"element-ZoomIn",color:"#fff",size:"18px",class:"mr-[10px]",onClick:c[0]||(c[0]=_=>z())}),a(d,{name:"element-Delete",color:"#fff",size:"18px",onClick:C})])])):(o(),j(I,{key:1,limit:s.limit,onConfirm:k},{default:E(()=>[l("div",Q,[a(d,{name:"element-Plus",size:"20px",color:"var(--el-text-color-secondary)"}),l("div",U,$(s.imageText||i(D)("upload.root")),1)])]),_:1},8,["limit"]))],4)):(o(),n(g,{key:1},[(o(!0),n(g,null,P(e.data,(_,x)=>(o(),n("div",{class:"cursor-pointer overflow-hidden relative border border-solid border-color image-wrap mr-[10px]",style:v(i(p)),key:x},[l("div",W,[l("div",X,[a(V,{src:i(y)(_),fit:"contain"},null,8,["src"])]),l("div",Y,[a(d,{name:"element-ZoomIn",color:"#fff",size:"18px",class:"mr-[10px]",onClick:F=>z(x)},null,8,["onClick"]),a(d,{name:"element-Delete",color:"#fff",size:"18px",onClick:F=>C(x)},null,8,["onClick"])])])],4))),128)),e.data.length<s.limit?(o(),n("div",{key:0,class:"rounded cursor-pointer overflow-hidden relative border border-dashed border-color",style:v(i(p))},[a(I,{limit:s.limit,onConfirm:k},{default:E(()=>[l("div",ee,[a(d,{name:"element-Plus",size:"20px",color:"var(--el-text-color-secondary)"}),l("div",te,$(s.imageText||i(D)("upload.root")),1)])]),_:1},8,["limit"])],4)):B("",!0)],64))]),u.show?(o(),j(T,{key:0,"url-list":i(b),onClose:c[1]||(c[1]=_=>u.show=!1),"initial-index":u.index,"zoom-rate":1},null,8,["url-list","initial-index"])):B("",!0)],64)}}});const fe=A(le,[["__scopeId","data-v-8dae4fdf"]]);export{fe as _};
|
||||
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 S}from"./index.vue_vue_type_style_index_0_lang-cd1fd676.js";import{_ as V}from"./index-80fd3793.js";import{t as g}from"./index-81ed253c.js";import{d as j,c as w,R as B,w as N,e as o,f as a,j as f,u as c,g as l,y as n,v as D,x as b,B as k,F as z,z as T,H as $,an as E}from"./base-06478700.js";import{_ as F}from"./_plugin-vue_export-helper-c27b6911.js";const I={class:"flex flex-wrap"},P={key:0,class:"w-full h-full relative"},R={class:"w-full h-full flex items-center justify-center"},H={class:"absolute z-[1] flex items-center justify-center w-full h-full inset-0 bg-black bg-opacity-60 operation"},L={class:"w-full h-full flex items-center justify-center flex-col"},q={class:"leading-none text-xs mt-[10px] text-secondary"},A={class:"w-full h-full relative"},G={class:"w-full h-full flex items-center justify-center"},J={class:"absolute z-[1] flex items-center justify-center w-full h-full inset-0 bg-black bg-opacity-60 operation"},K={class:"w-full h-full flex items-center justify-center flex-col"},M={class:"leading-none text-xs mt-[10px] text-secondary"},O=j({__name:"index",props:{modelValue:{type:String,default:""},width:{type:String,default:"100px"},height:{type:String,default:"100px"},iconText:{type:String},limit:{type:Number,default:1}},emits:["update:modelValue","change"],setup(s,{emit:p}){const r=s,d=w({get(){return r.modelValue},set(t){p("update:modelValue",t)}}),e=B({data:[]}),u=()=>{d.value=E(e.data).toString()};N(()=>d.value,()=>{e.data=[...d.value.split(",").filter(t=>t)],u()},{immediate:!0});const m=w(()=>({width:r.width,height:r.height})),_=t=>{r.limit==1?(e.data.splice(0,1),t&&e.data.push(t.url)):t.forEach(x=>{e.data.length<r.limit&&e.data.push(x.url)}),u(),p("change",d.value)},h=(t=0)=>{e.data.splice(t,1),u()};return(t,x)=>{const i=V,v=S;return o(),a("div",I,[s.limit==1?(o(),a("div",{key:0,class:"rounded cursor-pointer overflow-hidden relative border border-dashed border-color icon-wrap mr-[10px]",style:f(c(m))},[e.data.length?(o(),a("div",P,[l("div",R,[n(i,{name:e.data[0],size:"40px"},null,8,["name"])]),l("div",H,[n(i,{name:"element-Delete",color:"#fff",size:"18px",onClick:h})])])):(o(),D(v,{key:1,limit:s.limit,type:"icon",onConfirm:_},{default:b(()=>[l("div",L,[n(i,{name:"element-Plus",size:"20px",color:"var(--el-text-color-secondary)"}),l("div",q,k(s.iconText||c(g)("upload.selecticon")),1)])]),_:1},8,["limit"]))],4)):(o(),a(z,{key:1},[(o(!0),a(z,null,T(e.data,(C,y)=>(o(),a("div",{class:"rounded cursor-pointer overflow-hidden relative border border-dashed border-color icon-wrap mr-[10px]",style:f(c(m)),key:y},[l("div",A,[l("div",G,[n(i,{name:C,size:"40px"},null,8,["name"])]),l("div",J,[n(i,{name:"element-Delete",color:"#fff",size:"18px",onClick:Q=>h(y)},null,8,["onClick"])])])],4))),128)),e.data.length<s.limit?(o(),a("div",{key:0,class:"rounded cursor-pointer overflow-hidden relative border border-dashed border-color",style:f(c(m))},[n(v,{limit:s.limit,onConfirm:_},{default:b(()=>[l("div",K,[n(i,{name:"element-Plus",size:"20px",color:"var(--el-text-color-secondary)"}),l("div",M,k(s.iconText||c(g)("upload.selecticon")),1)])]),_:1},8,["limit"])],4)):$("",!0)],64))])}}});const ee=F(O,[["__scopeId","data-v-17433687"]]);export{ee as _};
|
||||
import{_ as S}from"./index.vue_vue_type_style_index_0_lang-e59c442c.js";import{_ as V}from"./index-981b0207.js";import{t as g}from"./index-81ed253c.js";import{d as j,c as w,R as B,w as N,e as o,f as a,j as f,u as c,g as l,y as n,v as D,x as b,B as k,F as z,z as T,H as $,an as E}from"./base-06478700.js";import{_ as F}from"./_plugin-vue_export-helper-c27b6911.js";const I={class:"flex flex-wrap"},P={key:0,class:"w-full h-full relative"},R={class:"w-full h-full flex items-center justify-center"},H={class:"absolute z-[1] flex items-center justify-center w-full h-full inset-0 bg-black bg-opacity-60 operation"},L={class:"w-full h-full flex items-center justify-center flex-col"},q={class:"leading-none text-xs mt-[10px] text-secondary"},A={class:"w-full h-full relative"},G={class:"w-full h-full flex items-center justify-center"},J={class:"absolute z-[1] flex items-center justify-center w-full h-full inset-0 bg-black bg-opacity-60 operation"},K={class:"w-full h-full flex items-center justify-center flex-col"},M={class:"leading-none text-xs mt-[10px] text-secondary"},O=j({__name:"index",props:{modelValue:{type:String,default:""},width:{type:String,default:"100px"},height:{type:String,default:"100px"},iconText:{type:String},limit:{type:Number,default:1}},emits:["update:modelValue","change"],setup(s,{emit:p}){const r=s,d=w({get(){return r.modelValue},set(t){p("update:modelValue",t)}}),e=B({data:[]}),u=()=>{d.value=E(e.data).toString()};N(()=>d.value,()=>{e.data=[...d.value.split(",").filter(t=>t)],u()},{immediate:!0});const m=w(()=>({width:r.width,height:r.height})),_=t=>{r.limit==1?(e.data.splice(0,1),t&&e.data.push(t.url)):t.forEach(x=>{e.data.length<r.limit&&e.data.push(x.url)}),u(),p("change",d.value)},h=(t=0)=>{e.data.splice(t,1),u()};return(t,x)=>{const i=V,v=S;return o(),a("div",I,[s.limit==1?(o(),a("div",{key:0,class:"rounded cursor-pointer overflow-hidden relative border border-dashed border-color icon-wrap mr-[10px]",style:f(c(m))},[e.data.length?(o(),a("div",P,[l("div",R,[n(i,{name:e.data[0],size:"40px"},null,8,["name"])]),l("div",H,[n(i,{name:"element-Delete",color:"#fff",size:"18px",onClick:h})])])):(o(),D(v,{key:1,limit:s.limit,type:"icon",onConfirm:_},{default:b(()=>[l("div",L,[n(i,{name:"element-Plus",size:"20px",color:"var(--el-text-color-secondary)"}),l("div",q,k(s.iconText||c(g)("upload.selecticon")),1)])]),_:1},8,["limit"]))],4)):(o(),a(z,{key:1},[(o(!0),a(z,null,T(e.data,(C,y)=>(o(),a("div",{class:"rounded cursor-pointer overflow-hidden relative border border-dashed border-color icon-wrap mr-[10px]",style:f(c(m)),key:y},[l("div",A,[l("div",G,[n(i,{name:C,size:"40px"},null,8,["name"])]),l("div",J,[n(i,{name:"element-Delete",color:"#fff",size:"18px",onClick:Q=>h(y)},null,8,["onClick"])])])],4))),128)),e.data.length<s.limit?(o(),a("div",{key:0,class:"rounded cursor-pointer overflow-hidden relative border border-dashed border-color",style:f(c(m))},[n(v,{limit:s.limit,onConfirm:_},{default:b(()=>[l("div",K,[n(i,{name:"element-Plus",size:"20px",color:"var(--el-text-color-secondary)"}),l("div",M,k(s.iconText||c(g)("upload.selecticon")),1)])]),_:1},8,["limit"])],4)):$("",!0)],64))])}}});const ee=F(O,[["__scopeId","data-v-17433687"]]);export{ee as _};
|
||||
3
niucloud/public/admin/assets/index-981b0207.js
Normal file
3
niucloud/public/admin/assets/index-981b0207.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
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{d as Y,c as q,r as _,V as E,e as d,f as c,g as p,h as G,y as t,x as a,u as s,v as N,A as I,B as h,F as y,z as U,n as B}from"./base-06478700.js";import{E as H}from"./el-overlay-42a687c6.js";/* empty css */import{a as J}from"./el-form-item-314d006d.js";import"./index-80fd3793.js";/* empty css */import{d as Q}from"./event-10eba222.js";import{t as i}from"./index-81ed253c.js";import{g as W}from"./diy-66fce28c.js";import{c as b}from"./cloneDeep-9cc74b12.js";import{a as D}from"./index-b52d0f2a.js";import{E as X}from"./index-2fcd1254.js";import{E as Z}from"./index-b68e8463.js";import{E as ee}from"./index-e4abfaa5.js";import{E as le}from"./index-c2f001d3.js";const te=["onClick"],ae={class:"flex items-start"},oe=["onClick"],se={class:"mb-[16px]"},ne={class:"mb-[16px]"},re=p("div",{class:"text-sm text-gray-400 select-text"},"路径必须以“/”开头,例:/app/pages/index/index",-1),ie=p("div",{class:"text-sm text-gray-400 select-text"},"跳转外部链接“/”开头,例:http://www.niucloud.com",-1),ue={key:1,class:"flex flex-wrap"},de=["onClick"],pe={class:"dialog-footer"},Ee=Y({__name:"index",props:{modelValue:{type:String,default:""}},emits:["update:modelValue"],setup(P,{expose:S,emit:$}){const j=P,u=q({get(){return j.modelValue},set(o){$("update:modelValue",o)}}),m=_(!1),v=_([]),n=_(""),x=_([]),e=_([]);W({}).then(o=>{v.value=o.data,x.value=Object.values(v.value)[0].child_list,u.value.name!=""?e.value=b(u.value):e.value={parent:Object.values(v.value)[0].name},n.value=e.value.parent});const A=()=>{u.value.name!=""&&(e.value=b(u.value),n.value=e.value.parent,n.value&&V(v.value[n.value])),m.value=!0},V=o=>{x.value=o.child_list,n.value=o.name},F=o=>{delete o.is_share,Object.assign(e.value,o)},O=()=>{u.value={name:"",parent:"",title:"",url:""}},z=()=>{if(n.value==="DIY_LINK"){if(e.value.parent=n.value,e.value.name=n.value,!e.value.title){D({message:i("diyLinkNameNotEmpty"),type:"warning"});return}if(!e.value.url){D({message:i("diyLinkUrlNotEmpty"),type:"warning"});return}}u.value=b(e.value),m.value=!1};return S({showDialog:m}),(o,r)=>{const K=E("Close"),w=X,M=E("ArrowRight"),g=Z,C=ee,f=J,L=le,R=H;return d(),c("div",null,[p("div",{onClick:A},[G(o.$slots,"default",{},()=>[t(g,{modelValue:s(u).title,"onUpdate:modelValue":r[0]||(r[0]=l=>s(u).title=l),placeholder:s(i)("linkPlaceholder"),readonly:""},{suffix:a(()=>[p("div",{onClick:Q(O,["stop"])},[s(u).name?(d(),N(w,{key:0},{default:a(()=>[t(K)]),_:1})):(d(),N(w,{key:1},{default:a(()=>[t(M)]),_:1}))],8,te)]),_:1},8,["modelValue","placeholder"])])]),t(R,{modelValue:m.value,"onUpdate:modelValue":r[4]||(r[4]=l=>m.value=l),title:s(i)("selectLinkTips"),width:"40%","close-on-press-escape":!1,"destroy-on-close":!0,"close-on-click-modal":!1},{footer:a(()=>[p("span",pe,[t(L,{onClick:r[3]||(r[3]=l=>m.value=!1)},{default:a(()=>[I(h(s(i)("cancel")),1)]),_:1}),t(L,{type:"primary",onClick:z},{default:a(()=>[I(h(s(i)("confirm")),1)]),_:1})])]),default:a(()=>[p("div",ae,[t(C,{class:"w-[140px] border-r",height:"360px"},{default:a(()=>[(d(!0),c(y,null,U(v.value,(l,k)=>(d(),c("div",{key:k,class:B(["h-[40px] leading-[40px] cursor-pointer hover:bg-primary-light-9 px-[10px] hover:text-primary",[l.name==n.value?"bg-primary-light-9 text-primary":""]]),onClick:T=>V(l)},h(l.title),11,oe))),128))]),_:1}),t(C,{class:"pl-4 h-[350px] flex-1"},{default:a(()=>[n.value=="DIY_LINK"?(d(),c(y,{key:0},[p("div",se,[t(f,{label:s(i)("diyLinkName")},{default:a(()=>[t(g,{modelValue:e.value.title,"onUpdate:modelValue":r[1]||(r[1]=l=>e.value.title=l),placeholder:s(i)("diyLinkNamePlaceholder"),class:"w-6/12"},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),p("div",ne,[t(f,{label:s(i)("diyLinkUrl")},{default:a(()=>[t(g,{modelValue:e.value.url,"onUpdate:modelValue":r[2]||(r[2]=l=>e.value.url=l),placeholder:s(i)("diyLinkUrlPlaceholder"),class:"w-6/12"},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),t(f,{label:" "},{default:a(()=>[re]),_:1}),t(f,{label:" "},{default:a(()=>[ie]),_:1})],64)):(d(),c("div",ue,[(d(!0),c(y,null,U(x.value,(l,k)=>(d(),c("div",{key:k,class:B(["border border-br rounded-[3px] mr-[10px] mb-[10px] px-4 h-[32px] leading-[32px] cursor-pointer hover:bg-primary-light-9 px-[10px] hover:text-primary",[l.name==e.value.name?"border-primary text-primary":""]]),onClick:T=>F(l)},h(l.title),11,de))),128))]))]),_:1})])]),_:1},8,["modelValue","title"])])}}});export{Ee as _};
|
||||
import{d as Y,c as q,r as _,V as E,e as d,f as c,g as p,h as G,y as t,x as a,u as s,v as N,A as I,B as h,F as y,z as U,n as B}from"./base-06478700.js";import{E as H}from"./el-overlay-42a687c6.js";/* empty css */import{a as J}from"./el-form-item-314d006d.js";import"./index-981b0207.js";/* empty css */import{d as Q}from"./event-10eba222.js";import{t as i}from"./index-81ed253c.js";import{g as W}from"./diy-fc4307cc.js";import{c as b}from"./cloneDeep-9cc74b12.js";import{a as D}from"./index-b52d0f2a.js";import{E as X}from"./index-2fcd1254.js";import{E as Z}from"./index-b68e8463.js";import{E as ee}from"./index-e4abfaa5.js";import{E as le}from"./index-c2f001d3.js";const te=["onClick"],ae={class:"flex items-start"},oe=["onClick"],se={class:"mb-[16px]"},ne={class:"mb-[16px]"},re=p("div",{class:"text-sm text-gray-400 select-text"},"路径必须以“/”开头,例:/app/pages/index/index",-1),ie=p("div",{class:"text-sm text-gray-400 select-text"},"跳转外部链接“/”开头,例:http://www.niucloud.com",-1),ue={key:1,class:"flex flex-wrap"},de=["onClick"],pe={class:"dialog-footer"},Ee=Y({__name:"index",props:{modelValue:{type:String,default:""}},emits:["update:modelValue"],setup(P,{expose:S,emit:$}){const j=P,u=q({get(){return j.modelValue},set(o){$("update:modelValue",o)}}),m=_(!1),v=_([]),n=_(""),x=_([]),e=_([]);W({}).then(o=>{v.value=o.data,x.value=Object.values(v.value)[0].child_list,u.value.name!=""?e.value=b(u.value):e.value={parent:Object.values(v.value)[0].name},n.value=e.value.parent});const A=()=>{u.value.name!=""&&(e.value=b(u.value),n.value=e.value.parent,n.value&&V(v.value[n.value])),m.value=!0},V=o=>{x.value=o.child_list,n.value=o.name},F=o=>{delete o.is_share,Object.assign(e.value,o)},O=()=>{u.value={name:"",parent:"",title:"",url:""}},z=()=>{if(n.value==="DIY_LINK"){if(e.value.parent=n.value,e.value.name=n.value,!e.value.title){D({message:i("diyLinkNameNotEmpty"),type:"warning"});return}if(!e.value.url){D({message:i("diyLinkUrlNotEmpty"),type:"warning"});return}}u.value=b(e.value),m.value=!1};return S({showDialog:m}),(o,r)=>{const K=E("Close"),w=X,M=E("ArrowRight"),g=Z,C=ee,f=J,L=le,R=H;return d(),c("div",null,[p("div",{onClick:A},[G(o.$slots,"default",{},()=>[t(g,{modelValue:s(u).title,"onUpdate:modelValue":r[0]||(r[0]=l=>s(u).title=l),placeholder:s(i)("linkPlaceholder"),readonly:""},{suffix:a(()=>[p("div",{onClick:Q(O,["stop"])},[s(u).name?(d(),N(w,{key:0},{default:a(()=>[t(K)]),_:1})):(d(),N(w,{key:1},{default:a(()=>[t(M)]),_:1}))],8,te)]),_:1},8,["modelValue","placeholder"])])]),t(R,{modelValue:m.value,"onUpdate:modelValue":r[4]||(r[4]=l=>m.value=l),title:s(i)("selectLinkTips"),width:"40%","close-on-press-escape":!1,"destroy-on-close":!0,"close-on-click-modal":!1},{footer:a(()=>[p("span",pe,[t(L,{onClick:r[3]||(r[3]=l=>m.value=!1)},{default:a(()=>[I(h(s(i)("cancel")),1)]),_:1}),t(L,{type:"primary",onClick:z},{default:a(()=>[I(h(s(i)("confirm")),1)]),_:1})])]),default:a(()=>[p("div",ae,[t(C,{class:"w-[140px] border-r",height:"360px"},{default:a(()=>[(d(!0),c(y,null,U(v.value,(l,k)=>(d(),c("div",{key:k,class:B(["h-[40px] leading-[40px] cursor-pointer hover:bg-primary-light-9 px-[10px] hover:text-primary",[l.name==n.value?"bg-primary-light-9 text-primary":""]]),onClick:T=>V(l)},h(l.title),11,oe))),128))]),_:1}),t(C,{class:"pl-4 h-[350px] flex-1"},{default:a(()=>[n.value=="DIY_LINK"?(d(),c(y,{key:0},[p("div",se,[t(f,{label:s(i)("diyLinkName")},{default:a(()=>[t(g,{modelValue:e.value.title,"onUpdate:modelValue":r[1]||(r[1]=l=>e.value.title=l),placeholder:s(i)("diyLinkNamePlaceholder"),class:"w-6/12"},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),p("div",ne,[t(f,{label:s(i)("diyLinkUrl")},{default:a(()=>[t(g,{modelValue:e.value.url,"onUpdate:modelValue":r[2]||(r[2]=l=>e.value.url=l),placeholder:s(i)("diyLinkUrlPlaceholder"),class:"w-6/12"},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),t(f,{label:" "},{default:a(()=>[re]),_:1}),t(f,{label:" "},{default:a(()=>[ie]),_:1})],64)):(d(),c("div",ue,[(d(!0),c(y,null,U(x.value,(l,k)=>(d(),c("div",{key:k,class:B(["border border-br rounded-[3px] mr-[10px] mb-[10px] px-4 h-[32px] leading-[32px] cursor-pointer hover:bg-primary-light-9 px-[10px] hover:text-primary",[l.name==e.value.name?"border-primary text-primary":""]]),onClick:T=>F(l)},h(l.title),11,de))),128))]))]),_:1})])]),_:1},8,["modelValue","title"])])}}});export{Ee as _};
|
||||
@ -1 +1 @@
|
||||
import{d as V,r as c,e as B,f as C,g as f,h as E,y as n,x as s,A as d,B as p,u as i,F as h}from"./base-06478700.js";import{E as D}from"./el-overlay-42a687c6.js";/* empty css */import{t as r}from"./index-81ed253c.js";import{a as N}from"./attachment-49fa540a.js";import{E as b}from"./index-c2f001d3.js";const w={class:"dialog-footer"},T=V({__name:"index",props:{limit:{type:Number,default:1},type:{type:String,default:"image"}},emits:["confirm"],setup(t,{expose:y,emit:_}){const g=t,e=c(!1),o=c(null),v=()=>{e.value=!0},x=()=>{e.value=!1;const l=Object.values(o==null?void 0:o.value.selectedFile);_("confirm",g.limit==1?l[0]??null:l)};return y({showDialog:e}),(l,a)=>{const m=b,k=D;return B(),C(h,null,[f("span",{onClick:v,class:"cursor-pointer"},[E(l.$slots,"default")]),n(k,{modelValue:e.value,"onUpdate:modelValue":a[1]||(a[1]=u=>e.value=u),title:i(r)("upload.select"+t.type),width:"60%",class:"attachment-dialog","destroy-on-close":!0},{footer:s(()=>[f("span",w,[n(m,{onClick:a[0]||(a[0]=u=>e.value=!1)},{default:s(()=>[d(p(i(r)("cancel")),1)]),_:1}),n(m,{type:"primary",onClick:x},{default:s(()=>[d(p(i(r)("confirm")),1)]),_:1})])]),default:s(()=>[n(N,{limit:t.limit,type:t.type,ref_key:"attachmentRef",ref:o},null,8,["limit","type"])]),_:1},8,["modelValue","title"])],64)}}});export{T as _};
|
||||
import{d as V,r as c,e as B,f as C,g as f,h as E,y as n,x as s,A as d,B as p,u as i,F as h}from"./base-06478700.js";import{E as D}from"./el-overlay-42a687c6.js";/* empty css */import{t as r}from"./index-81ed253c.js";import{a as N}from"./attachment-21666979.js";import{E as b}from"./index-c2f001d3.js";const w={class:"dialog-footer"},T=V({__name:"index",props:{limit:{type:Number,default:1},type:{type:String,default:"image"}},emits:["confirm"],setup(t,{expose:y,emit:_}){const g=t,e=c(!1),o=c(null),v=()=>{e.value=!0},x=()=>{e.value=!1;const l=Object.values(o==null?void 0:o.value.selectedFile);_("confirm",g.limit==1?l[0]??null:l)};return y({showDialog:e}),(l,a)=>{const m=b,k=D;return B(),C(h,null,[f("span",{onClick:v,class:"cursor-pointer"},[E(l.$slots,"default")]),n(k,{modelValue:e.value,"onUpdate:modelValue":a[1]||(a[1]=u=>e.value=u),title:i(r)("upload.select"+t.type),width:"60%",class:"attachment-dialog","destroy-on-close":!0},{footer:s(()=>[f("span",w,[n(m,{onClick:a[0]||(a[0]=u=>e.value=!1)},{default:s(()=>[d(p(i(r)("cancel")),1)]),_:1}),n(m,{type:"primary",onClick:x},{default:s(()=>[d(p(i(r)("confirm")),1)]),_:1})])]),default:s(()=>[n(N,{limit:t.limit,type:t.type,ref_key:"attachmentRef",ref:o},null,8,["limit","type"])]),_:1},8,["modelValue","title"])],64)}}});export{T as _};
|
||||
@ -1 +1 @@
|
||||
import{d as P,R as z,r as h,e as v,f as M,y as a,x as r,g as u,B as p,u as e,A as _,Q as T,v as V}from"./base-06478700.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index-80fd3793.js";import"./el-tooltip-58212670.js";/* empty css *//* empty css *//* empty css */import{a as $,E as R}from"./el-form-item-314d006d.js";/* empty css */import{t as o}from"./index-81ed253c.js";import{z as j,A as S}from"./member-c227fc40.js";import{_ as U}from"./edit-label.vue_vue_type_script_setup_true_lang-0cd7c602.js";import{u as A}from"./vue-router-d09a2c28.js";import{E as I}from"./index-01f6e375.js";import{E as Q}from"./index-c2f001d3.js";import{E as q}from"./index-b68e8463.js";import{E as G}from"./index-e10fccde.js";import{a as H,E as J}from"./index-4bec4464.js";import{E as K}from"./index-137757c0.js";import{v as O}from"./directive-cb2d3366.js";import"./common-92a35870.js";import"./index-2fcd1254.js";import"./event-10eba222.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-6b67c4ac.js";import"./el-overlay-42a687c6.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";import"./index-b52d0f2a.js";import"./index-2a269c7c.js";import"./index-e4abfaa5.js";import"./index-9ee9102c.js";import"./validator-6e9db238.js";import"./index-40e21e72.js";import"./isEqual-42d4b10f.js";import"./_isIterateeCall-1dc0e2ff.js";import"./debounce-1db848fd.js";import"./index-5a0d60aa.js";import"./index-35e821cc.js";import"./index-34d55b7e.js";import"./strings-fe930bc4.js";const W={class:"main-container"},X={class:"flex justify-between items-center"},Y={class:"text-[20px]"},Z={class:"mt-[10px]"},ee={class:"mt-[16px] flex justify-end"},Ze=P({__name:"label",setup(te){const x=A().meta.title;let t=z({page:1,limit:10,total:0,loading:!0,data:[],searchParam:{label_name:""}});const b=h(),y=m=>{m&&(m.resetFields(),n())},n=(m=1)=>{t.loading=!0,t.page=m,j({page:t.page,limit:t.limit,...t.searchParam}).then(l=>{t.loading=!1,t.data=l.data.data,t.total=l.data.total}).catch(()=>{t.loading=!1})};n();const s=h(null),E=()=>{s.value.setFormData(),s.value.showDialog=!0},C=m=>{s.value.setFormData(m),s.value.showDialog=!0},k=m=>{I.confirm(o("memberLabelDeleteTips"),o("warning"),{confirmButtonText:o("confirm"),cancelButtonText:o("cancel"),type:"warning"}).then(()=>{S(m).then(()=>{n()}).catch(()=>{})})};return(m,l)=>{const d=Q,w=q,f=$,D=R,g=G,c=H,L=J,B=K,F=O;return v(),M("div",W,[a(g,{class:"box-card !border-none",shadow:"never"},{default:r(()=>[u("div",X,[u("span",Y,p(e(x)),1),a(d,{type:"primary",onClick:E},{default:r(()=>[_(p(e(o)("addMemberLabel")),1)]),_:1})]),a(g,{class:"box-card !border-none my-[10px] table-search-wrap",shadow:"never"},{default:r(()=>[a(D,{inline:!0,model:e(t).searchParam,ref_key:"searchFormRef",ref:b},{default:r(()=>[a(f,{label:e(o)("labelName"),prop:"label_name"},{default:r(()=>[a(w,{modelValue:e(t).searchParam.label_name,"onUpdate:modelValue":l[0]||(l[0]=i=>e(t).searchParam.label_name=i),placeholder:e(o)("labelNamePlaceholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),a(f,null,{default:r(()=>[a(d,{type:"primary",onClick:l[1]||(l[1]=i=>n())},{default:r(()=>[_(p(e(o)("search")),1)]),_:1}),a(d,{onClick:l[2]||(l[2]=i=>y(b.value))},{default:r(()=>[_(p(e(o)("reset")),1)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),u("div",Z,[T((v(),V(L,{data:e(t).data,size:"large"},{empty:r(()=>[u("span",null,p(e(t).loading?"":e(o)("emptyData")),1)]),default:r(()=>[a(c,{prop:"label_name",label:e(o)("labelName"),"min-width":"120"},null,8,["label"]),a(c,{prop:"member_num",label:e(o)("memberNumber"),"min-width":"120"},null,8,["label"]),a(c,{prop:"memo",label:e(o)("memo"),"min-width":"120"},null,8,["label"]),a(c,{prop:"sort",label:e(o)("sort"),"min-width":"120"},null,8,["label"]),a(c,{label:e(o)("operation"),fixed:"right",align:"right",width:"130"},{default:r(({row:i})=>[a(d,{type:"primary",link:"",onClick:N=>C(i)},{default:r(()=>[_(p(e(o)("edit")),1)]),_:2},1032,["onClick"]),a(d,{type:"primary",link:"",onClick:N=>k(i.label_id)},{default:r(()=>[_(p(e(o)("delete")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[F,e(t).loading]]),u("div",ee,[a(B,{"current-page":e(t).page,"onUpdate:currentPage":l[3]||(l[3]=i=>e(t).page=i),"page-size":e(t).limit,"onUpdate:pageSize":l[4]||(l[4]=i=>e(t).limit=i),layout:"total, sizes, prev, pager, next, jumper",total:e(t).total,onSizeChange:l[5]||(l[5]=i=>n()),onCurrentChange:n},null,8,["current-page","page-size","total"])])]),a(U,{ref_key:"editMemberLabelDialog",ref:s,onComplete:n},null,512)]),_:1})])}}});export{Ze as default};
|
||||
import{d as P,R as z,r as h,e as v,f as M,y as a,x as r,g as u,B as p,u as e,A as _,Q as T,v as V}from"./base-06478700.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index-981b0207.js";import"./el-tooltip-58212670.js";/* empty css *//* empty css *//* empty css */import{a as $,E as R}from"./el-form-item-314d006d.js";/* empty css */import{t as o}from"./index-81ed253c.js";import{z as j,A as S}from"./member-b587e6d0.js";import{_ as U}from"./edit-label.vue_vue_type_script_setup_true_lang-81974905.js";import{u as A}from"./vue-router-d09a2c28.js";import{E as I}from"./index-01f6e375.js";import{E as Q}from"./index-c2f001d3.js";import{E as q}from"./index-b68e8463.js";import{E as G}from"./index-e10fccde.js";import{a as H,E as J}from"./index-4bec4464.js";import{E as K}from"./index-137757c0.js";import{v as O}from"./directive-cb2d3366.js";import"./common-92a35870.js";import"./index-2fcd1254.js";import"./event-10eba222.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-6b67c4ac.js";import"./el-overlay-42a687c6.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";import"./index-b52d0f2a.js";import"./index-2a269c7c.js";import"./index-e4abfaa5.js";import"./index-9ee9102c.js";import"./validator-6e9db238.js";import"./index-40e21e72.js";import"./isEqual-42d4b10f.js";import"./_isIterateeCall-1dc0e2ff.js";import"./debounce-1db848fd.js";import"./index-5a0d60aa.js";import"./index-35e821cc.js";import"./index-34d55b7e.js";import"./strings-fe930bc4.js";const W={class:"main-container"},X={class:"flex justify-between items-center"},Y={class:"text-[20px]"},Z={class:"mt-[10px]"},ee={class:"mt-[16px] flex justify-end"},Ze=P({__name:"label",setup(te){const x=A().meta.title;let t=z({page:1,limit:10,total:0,loading:!0,data:[],searchParam:{label_name:""}});const b=h(),y=m=>{m&&(m.resetFields(),n())},n=(m=1)=>{t.loading=!0,t.page=m,j({page:t.page,limit:t.limit,...t.searchParam}).then(l=>{t.loading=!1,t.data=l.data.data,t.total=l.data.total}).catch(()=>{t.loading=!1})};n();const s=h(null),E=()=>{s.value.setFormData(),s.value.showDialog=!0},C=m=>{s.value.setFormData(m),s.value.showDialog=!0},k=m=>{I.confirm(o("memberLabelDeleteTips"),o("warning"),{confirmButtonText:o("confirm"),cancelButtonText:o("cancel"),type:"warning"}).then(()=>{S(m).then(()=>{n()}).catch(()=>{})})};return(m,l)=>{const d=Q,w=q,f=$,D=R,g=G,c=H,L=J,B=K,F=O;return v(),M("div",W,[a(g,{class:"box-card !border-none",shadow:"never"},{default:r(()=>[u("div",X,[u("span",Y,p(e(x)),1),a(d,{type:"primary",onClick:E},{default:r(()=>[_(p(e(o)("addMemberLabel")),1)]),_:1})]),a(g,{class:"box-card !border-none my-[10px] table-search-wrap",shadow:"never"},{default:r(()=>[a(D,{inline:!0,model:e(t).searchParam,ref_key:"searchFormRef",ref:b},{default:r(()=>[a(f,{label:e(o)("labelName"),prop:"label_name"},{default:r(()=>[a(w,{modelValue:e(t).searchParam.label_name,"onUpdate:modelValue":l[0]||(l[0]=i=>e(t).searchParam.label_name=i),placeholder:e(o)("labelNamePlaceholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),a(f,null,{default:r(()=>[a(d,{type:"primary",onClick:l[1]||(l[1]=i=>n())},{default:r(()=>[_(p(e(o)("search")),1)]),_:1}),a(d,{onClick:l[2]||(l[2]=i=>y(b.value))},{default:r(()=>[_(p(e(o)("reset")),1)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),u("div",Z,[T((v(),V(L,{data:e(t).data,size:"large"},{empty:r(()=>[u("span",null,p(e(t).loading?"":e(o)("emptyData")),1)]),default:r(()=>[a(c,{prop:"label_name",label:e(o)("labelName"),"min-width":"120"},null,8,["label"]),a(c,{prop:"member_num",label:e(o)("memberNumber"),"min-width":"120"},null,8,["label"]),a(c,{prop:"memo",label:e(o)("memo"),"min-width":"120"},null,8,["label"]),a(c,{prop:"sort",label:e(o)("sort"),"min-width":"120"},null,8,["label"]),a(c,{label:e(o)("operation"),fixed:"right",align:"right",width:"130"},{default:r(({row:i})=>[a(d,{type:"primary",link:"",onClick:N=>C(i)},{default:r(()=>[_(p(e(o)("edit")),1)]),_:2},1032,["onClick"]),a(d,{type:"primary",link:"",onClick:N=>k(i.label_id)},{default:r(()=>[_(p(e(o)("delete")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[F,e(t).loading]]),u("div",ee,[a(B,{"current-page":e(t).page,"onUpdate:currentPage":l[3]||(l[3]=i=>e(t).page=i),"page-size":e(t).limit,"onUpdate:pageSize":l[4]||(l[4]=i=>e(t).limit=i),layout:"total, sizes, prev, pager, next, jumper",total:e(t).total,onSizeChange:l[5]||(l[5]=i=>n()),onCurrentChange:n},null,8,["current-page","page-size","total"])])]),a(U,{ref_key:"editMemberLabelDialog",ref:s,onComplete:n},null,512)]),_:1})])}}});export{Ze as default};
|
||||
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{d as D,R as L,r as v,e as y,f as F,y as a,x as i,g as d,B as s,u as l,A as c,Q as U,v as z}from"./base-06478700.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index-80fd3793.js";import"./el-tooltip-58212670.js";/* empty css *//* empty css *//* empty css */import{a as B,E as $}from"./el-form-item-314d006d.js";/* empty css */import{t as r}from"./index-81ed253c.js";import{c as T}from"./user-58ca6858.js";import{_ as N}from"./user-log-detail.vue_vue_type_script_setup_true_lang-507ea155.js";import{u as R}from"./vue-router-d09a2c28.js";import{E as S}from"./index-b68e8463.js";import{E as j}from"./index-c2f001d3.js";import{E as I}from"./index-e10fccde.js";import{a as A,E as Q}from"./index-4bec4464.js";import{E as q}from"./index-137757c0.js";import{v as G}from"./directive-cb2d3366.js";import"./common-92a35870.js";import"./index-2fcd1254.js";import"./event-10eba222.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-6b67c4ac.js";import"./el-overlay-42a687c6.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";import"./index-b52d0f2a.js";import"./index-2a269c7c.js";import"./index-e4abfaa5.js";import"./index-9ee9102c.js";import"./index-4feb8dac.js";import"./index-40e21e72.js";import"./isEqual-42d4b10f.js";import"./_isIterateeCall-1dc0e2ff.js";import"./debounce-1db848fd.js";import"./index-5a0d60aa.js";import"./index-35e821cc.js";import"./index-34d55b7e.js";import"./strings-fe930bc4.js";import"./validator-6e9db238.js";const H={class:"main-container"},J={class:"flex justify-between items-center"},K={class:"text-[20px]"},M={class:"mt-[16px] flex justify-end"},Me=D({__name:"log",setup(O){const x=R().meta.title,e=L({page:1,limit:10,total:0,loading:!0,data:[],searchParam:{ip:"",username:""}}),b=v(),E=n=>{n&&(n.resetFields(),m())},m=(n=1)=>{e.loading=!0,e.page=n,T({page:e.page,limit:e.limit,...e.searchParam}).then(t=>{e.loading=!1,e.data=t.data.data,e.total=t.data.total}).catch(()=>{e.loading=!1})};m();const f=v(null),P=n=>{f.value.setFormData(n),f.value.showDialog=!0};return(n,t)=>{const g=S,u=B,_=j,w=$,h=I,p=A,C=Q,V=q,k=G;return y(),F("div",H,[a(h,{class:"box-card !border-none",shadow:"never"},{default:i(()=>[d("div",J,[d("span",K,s(l(x)),1)]),a(h,{class:"box-card !border-none my-[10px] table-search-wrap",shadow:"never"},{default:i(()=>[a(w,{inline:!0,model:e.searchParam,ref_key:"searchFormRef",ref:b},{default:i(()=>[a(u,{label:l(r)("ip"),prop:"ip"},{default:i(()=>[a(g,{modelValue:e.searchParam.ip,"onUpdate:modelValue":t[0]||(t[0]=o=>e.searchParam.ip=o),placeholder:l(r)("ipPlaceholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),a(u,{label:l(r)("username"),prop:"username"},{default:i(()=>[a(g,{modelValue:e.searchParam.username,"onUpdate:modelValue":t[1]||(t[1]=o=>e.searchParam.username=o),placeholder:l(r)("usernamePlaceholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),a(u,{label:l(r)("url"),prop:"url"},{default:i(()=>[a(g,{modelValue:e.searchParam.url,"onUpdate:modelValue":t[2]||(t[2]=o=>e.searchParam.url=o),placeholder:l(r)("urlPlaceholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),a(u,null,{default:i(()=>[a(_,{type:"primary",onClick:t[3]||(t[3]=o=>m())},{default:i(()=>[c(s(l(r)("search")),1)]),_:1}),a(_,{onClick:t[4]||(t[4]=o=>E(b.value))},{default:i(()=>[c(s(l(r)("reset")),1)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),d("div",null,[U((y(),z(C,{data:e.data,size:"large"},{empty:i(()=>[d("span",null,s(e.loading?"":l(r)("emptyData")),1)]),default:i(()=>[a(p,{prop:"username",label:l(r)("username"),"min-width":"120"},null,8,["label"]),a(p,{prop:"ip",label:l(r)("ip"),"min-width":"100",align:"left"},null,8,["label"]),a(p,{prop:"url",label:l(r)("url"),"min-width":"180"},null,8,["label"]),a(p,{prop:"type",label:l(r)("type"),"min-width":"100",align:"center"},null,8,["label"]),a(p,{label:l(r)("createTime"),"min-width":"180",align:"center"},{default:i(({row:o})=>[c(s(o.create_time||""),1)]),_:1},8,["label"]),a(p,{label:l(r)("operation"),fixed:"right",align:"right",width:"130"},{default:i(({row:o})=>[a(_,{type:"primary",link:"",onClick:X=>P(o)},{default:i(()=>[c(s(l(r)("detail")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[k,e.loading]]),d("div",M,[a(V,{"current-page":e.page,"onUpdate:currentPage":t[5]||(t[5]=o=>e.page=o),"page-size":e.limit,"onUpdate:pageSize":t[6]||(t[6]=o=>e.limit=o),layout:"total, sizes, prev, pager, next, jumper",total:e.total,onSizeChange:t[7]||(t[7]=o=>m()),onCurrentChange:m},null,8,["current-page","page-size","total"])]),a(N,{ref_key:"userLogDetailDialog",ref:f,onComplete:t[8]||(t[8]=o=>m())},null,512)])]),_:1})])}}});export{Me as default};
|
||||
import{d as D,R as L,r as v,e as y,f as F,y as a,x as i,g as d,B as s,u as l,A as c,Q as U,v as z}from"./base-06478700.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index-981b0207.js";import"./el-tooltip-58212670.js";/* empty css *//* empty css *//* empty css */import{a as B,E as $}from"./el-form-item-314d006d.js";/* empty css */import{t as r}from"./index-81ed253c.js";import{c as T}from"./user-2519a405.js";import{_ as N}from"./user-log-detail.vue_vue_type_script_setup_true_lang-f502af43.js";import{u as R}from"./vue-router-d09a2c28.js";import{E as S}from"./index-b68e8463.js";import{E as j}from"./index-c2f001d3.js";import{E as I}from"./index-e10fccde.js";import{a as A,E as Q}from"./index-4bec4464.js";import{E as q}from"./index-137757c0.js";import{v as G}from"./directive-cb2d3366.js";import"./common-92a35870.js";import"./index-2fcd1254.js";import"./event-10eba222.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-6b67c4ac.js";import"./el-overlay-42a687c6.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";import"./index-b52d0f2a.js";import"./index-2a269c7c.js";import"./index-e4abfaa5.js";import"./index-9ee9102c.js";import"./index-4feb8dac.js";import"./index-40e21e72.js";import"./isEqual-42d4b10f.js";import"./_isIterateeCall-1dc0e2ff.js";import"./debounce-1db848fd.js";import"./index-5a0d60aa.js";import"./index-35e821cc.js";import"./index-34d55b7e.js";import"./strings-fe930bc4.js";import"./validator-6e9db238.js";const H={class:"main-container"},J={class:"flex justify-between items-center"},K={class:"text-[20px]"},M={class:"mt-[16px] flex justify-end"},Me=D({__name:"log",setup(O){const x=R().meta.title,e=L({page:1,limit:10,total:0,loading:!0,data:[],searchParam:{ip:"",username:""}}),b=v(),E=n=>{n&&(n.resetFields(),m())},m=(n=1)=>{e.loading=!0,e.page=n,T({page:e.page,limit:e.limit,...e.searchParam}).then(t=>{e.loading=!1,e.data=t.data.data,e.total=t.data.total}).catch(()=>{e.loading=!1})};m();const f=v(null),P=n=>{f.value.setFormData(n),f.value.showDialog=!0};return(n,t)=>{const g=S,u=B,_=j,w=$,h=I,p=A,C=Q,V=q,k=G;return y(),F("div",H,[a(h,{class:"box-card !border-none",shadow:"never"},{default:i(()=>[d("div",J,[d("span",K,s(l(x)),1)]),a(h,{class:"box-card !border-none my-[10px] table-search-wrap",shadow:"never"},{default:i(()=>[a(w,{inline:!0,model:e.searchParam,ref_key:"searchFormRef",ref:b},{default:i(()=>[a(u,{label:l(r)("ip"),prop:"ip"},{default:i(()=>[a(g,{modelValue:e.searchParam.ip,"onUpdate:modelValue":t[0]||(t[0]=o=>e.searchParam.ip=o),placeholder:l(r)("ipPlaceholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),a(u,{label:l(r)("username"),prop:"username"},{default:i(()=>[a(g,{modelValue:e.searchParam.username,"onUpdate:modelValue":t[1]||(t[1]=o=>e.searchParam.username=o),placeholder:l(r)("usernamePlaceholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),a(u,{label:l(r)("url"),prop:"url"},{default:i(()=>[a(g,{modelValue:e.searchParam.url,"onUpdate:modelValue":t[2]||(t[2]=o=>e.searchParam.url=o),placeholder:l(r)("urlPlaceholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),a(u,null,{default:i(()=>[a(_,{type:"primary",onClick:t[3]||(t[3]=o=>m())},{default:i(()=>[c(s(l(r)("search")),1)]),_:1}),a(_,{onClick:t[4]||(t[4]=o=>E(b.value))},{default:i(()=>[c(s(l(r)("reset")),1)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),d("div",null,[U((y(),z(C,{data:e.data,size:"large"},{empty:i(()=>[d("span",null,s(e.loading?"":l(r)("emptyData")),1)]),default:i(()=>[a(p,{prop:"username",label:l(r)("username"),"min-width":"120"},null,8,["label"]),a(p,{prop:"ip",label:l(r)("ip"),"min-width":"100",align:"left"},null,8,["label"]),a(p,{prop:"url",label:l(r)("url"),"min-width":"180"},null,8,["label"]),a(p,{prop:"type",label:l(r)("type"),"min-width":"100",align:"center"},null,8,["label"]),a(p,{label:l(r)("createTime"),"min-width":"180",align:"center"},{default:i(({row:o})=>[c(s(o.create_time||""),1)]),_:1},8,["label"]),a(p,{label:l(r)("operation"),fixed:"right",align:"right",width:"130"},{default:i(({row:o})=>[a(_,{type:"primary",link:"",onClick:X=>P(o)},{default:i(()=>[c(s(l(r)("detail")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[k,e.loading]]),d("div",M,[a(V,{"current-page":e.page,"onUpdate:currentPage":t[5]||(t[5]=o=>e.page=o),"page-size":e.limit,"onUpdate:pageSize":t[6]||(t[6]=o=>e.limit=o),layout:"total, sizes, prev, pager, next, jumper",total:e.total,onSizeChange:t[7]||(t[7]=o=>m()),onCurrentChange:m},null,8,["current-page","page-size","total"])]),a(N,{ref_key:"userLogDetailDialog",ref:f,onComplete:t[8]||(t[8]=o=>m())},null,512)])]),_:1})])}}});export{Me as default};
|
||||
@ -1 +1 @@
|
||||
import{d as E,r as b,R as y,e as g,f as B,g as l,B as n,u as s,Q as D,v as N,x as p,y as r,A as S}from"./base-06478700.js";/* empty css *//* empty css */import{a as U,E as k}from"./el-form-item-314d006d.js";/* empty css *//* empty css *//* empty css */import{t as i}from"./index-81ed253c.js";import{I as F,J as R}from"./member-c227fc40.js";import{u as T}from"./vue-router-d09a2c28.js";import{E as M}from"./index-40e21e72.js";import{E as O}from"./index-f84999b2.js";import{E as j}from"./index-e10fccde.js";import{E as A}from"./index-c2f001d3.js";import{v as I}from"./directive-cb2d3366.js";import{_ as J}from"./_plugin-vue_export-helper-c27b6911.js";import"./index-2fcd1254.js";import"./event-10eba222.js";import"./index-80fd3793.js";import"./common-92a35870.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./index-6b67c4ac.js";import"./el-overlay-42a687c6.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";/* empty css */import"./el-tooltip-58212670.js";import"./index-b52d0f2a.js";import"./index-b68e8463.js";import"./index-2a269c7c.js";import"./index-e4abfaa5.js";import"./index-9ee9102c.js";import"./isEqual-42d4b10f.js";import"./validator-6e9db238.js";const L={class:"main-container"},Q={class:"flex ml-[18px] justify-between items-center mt-[20px]"},$={class:"text-[20px]"},q={class:"panel-title !text-sm"},z={class:"form-tip"},G={class:"form-tip"},H={class:"form-tip"},K={class:"form-tip"},P={class:"panel-title !text-sm"},W={class:"form-tip"},X={class:"fixed-footer-wrap"},Y={class:"fixed-footer"},Z=E({__name:"login",setup(ee){const v=T().meta.title,d=b(!0),c=b(),t=y({is_username:0,is_mobile:0,is_auth_register:0,is_bind_mobile:0,agreement_show:0});(async(_=0)=>{const e=await(await F()).data;Object.keys(t).forEach(a=>{e[a]!=null&&(t[a]=Boolean(Number(e[a])))}),d.value=!1})();const u=(_,e)=>{t[e]=_},h=async _=>{d.value||!_||await _.validate(e=>{if(e){const a=JSON.parse(JSON.stringify(t));Object.keys(a).forEach(m=>{a[m]=Number(a[m])}),R(a).then(()=>{d.value=!1}).catch(()=>{d.value=!1})}})};return(_,e)=>{const a=M,m=U,f=O,x=j,V=k,w=A,C=I;return g(),B("div",L,[l("div",Q,[l("span",$,n(s(v)),1)]),D((g(),N(V,{model:t,"label-width":"150px",ref_key:"ruleFormRef",ref:c,class:"page-form"},{default:p(()=>[r(x,{class:"box-card !border-none",shadow:"never"},{default:p(()=>[l("h3",q,n(s(i)("commonSetting")),1),r(m,{label:s(i)("logonMode")},{default:p(()=>[r(a,{modelValue:t.is_username,"onUpdate:modelValue":e[0]||(e[0]=o=>t.is_username=o),label:s(i)("isUsername"),onChange:e[1]||(e[1]=o=>u(o,"is_username"))},null,8,["modelValue","label"]),l("div",z,n(s(i)("isUsernameTip")),1),r(a,{modelValue:t.is_mobile,"onUpdate:modelValue":e[2]||(e[2]=o=>t.is_mobile=o),label:s(i)("isMobile"),onChange:e[3]||(e[3]=o=>u(o,"is_mobile"))},null,8,["modelValue","label"]),l("div",G,n(s(i)("isMobileTip")),1)]),_:1},8,["label"]),r(m,{label:s(i)("isBindMobile"),prop:"formData.is_bind_mobile"},{default:p(()=>[r(f,{modelValue:t.is_bind_mobile,"onUpdate:modelValue":e[4]||(e[4]=o=>t.is_bind_mobile=o),onChange:e[5]||(e[5]=o=>u(o,"is_bind_mobile"))},null,8,["modelValue"]),l("div",H,n(s(i)("isBindMobileTip")),1)]),_:1},8,["label"]),r(m,{label:s(i)("agreement"),prop:"formData.agreement_show"},{default:p(()=>[r(f,{modelValue:t.agreement_show,"onUpdate:modelValue":e[6]||(e[6]=o=>t.agreement_show=o),onChange:e[7]||(e[7]=o=>u(o,"agreement_show"))},null,8,["modelValue"]),l("div",K,n(s(i)("agreementTips")),1)]),_:1},8,["label"]),l("h3",P,n(s(i)("tripartiteSetting")),1),r(m,{label:s(i)("isAuthRegister"),prop:"formData.is_auth_register"},{default:p(()=>[r(f,{modelValue:t.is_auth_register,"onUpdate:modelValue":e[8]||(e[8]=o=>t.is_auth_register=o),onChange:e[9]||(e[9]=o=>u(o,"is_auth_register"))},null,8,["modelValue"]),l("div",W,n(s(i)("isAuthRegisterTip")),1)]),_:1},8,["label"])]),_:1})]),_:1},8,["model"])),[[C,d.value]]),l("div",X,[l("div",Y,[r(w,{type:"primary",onClick:e[10]||(e[10]=o=>h(c.value))},{default:p(()=>[S(n(s(i)("save")),1)]),_:1})])])])}}});const Je=J(Z,[["__scopeId","data-v-1261a9ea"]]);export{Je as default};
|
||||
import{d as E,r as b,R as y,e as g,f as B,g as l,B as n,u as s,Q as D,v as N,x as p,y as r,A as S}from"./base-06478700.js";/* empty css *//* empty css */import{a as U,E as k}from"./el-form-item-314d006d.js";/* empty css *//* empty css *//* empty css */import{t as i}from"./index-81ed253c.js";import{I as F,J as R}from"./member-b587e6d0.js";import{u as T}from"./vue-router-d09a2c28.js";import{E as M}from"./index-40e21e72.js";import{E as O}from"./index-f84999b2.js";import{E as j}from"./index-e10fccde.js";import{E as A}from"./index-c2f001d3.js";import{v as I}from"./directive-cb2d3366.js";import{_ as J}from"./_plugin-vue_export-helper-c27b6911.js";import"./index-2fcd1254.js";import"./event-10eba222.js";import"./index-981b0207.js";import"./common-92a35870.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./index-6b67c4ac.js";import"./el-overlay-42a687c6.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";/* empty css */import"./el-tooltip-58212670.js";import"./index-b52d0f2a.js";import"./index-b68e8463.js";import"./index-2a269c7c.js";import"./index-e4abfaa5.js";import"./index-9ee9102c.js";import"./isEqual-42d4b10f.js";import"./validator-6e9db238.js";const L={class:"main-container"},Q={class:"flex ml-[18px] justify-between items-center mt-[20px]"},$={class:"text-[20px]"},q={class:"panel-title !text-sm"},z={class:"form-tip"},G={class:"form-tip"},H={class:"form-tip"},K={class:"form-tip"},P={class:"panel-title !text-sm"},W={class:"form-tip"},X={class:"fixed-footer-wrap"},Y={class:"fixed-footer"},Z=E({__name:"login",setup(ee){const v=T().meta.title,d=b(!0),c=b(),t=y({is_username:0,is_mobile:0,is_auth_register:0,is_bind_mobile:0,agreement_show:0});(async(_=0)=>{const e=await(await F()).data;Object.keys(t).forEach(a=>{e[a]!=null&&(t[a]=Boolean(Number(e[a])))}),d.value=!1})();const u=(_,e)=>{t[e]=_},h=async _=>{d.value||!_||await _.validate(e=>{if(e){const a=JSON.parse(JSON.stringify(t));Object.keys(a).forEach(m=>{a[m]=Number(a[m])}),R(a).then(()=>{d.value=!1}).catch(()=>{d.value=!1})}})};return(_,e)=>{const a=M,m=U,f=O,x=j,V=k,w=A,C=I;return g(),B("div",L,[l("div",Q,[l("span",$,n(s(v)),1)]),D((g(),N(V,{model:t,"label-width":"150px",ref_key:"ruleFormRef",ref:c,class:"page-form"},{default:p(()=>[r(x,{class:"box-card !border-none",shadow:"never"},{default:p(()=>[l("h3",q,n(s(i)("commonSetting")),1),r(m,{label:s(i)("logonMode")},{default:p(()=>[r(a,{modelValue:t.is_username,"onUpdate:modelValue":e[0]||(e[0]=o=>t.is_username=o),label:s(i)("isUsername"),onChange:e[1]||(e[1]=o=>u(o,"is_username"))},null,8,["modelValue","label"]),l("div",z,n(s(i)("isUsernameTip")),1),r(a,{modelValue:t.is_mobile,"onUpdate:modelValue":e[2]||(e[2]=o=>t.is_mobile=o),label:s(i)("isMobile"),onChange:e[3]||(e[3]=o=>u(o,"is_mobile"))},null,8,["modelValue","label"]),l("div",G,n(s(i)("isMobileTip")),1)]),_:1},8,["label"]),r(m,{label:s(i)("isBindMobile"),prop:"formData.is_bind_mobile"},{default:p(()=>[r(f,{modelValue:t.is_bind_mobile,"onUpdate:modelValue":e[4]||(e[4]=o=>t.is_bind_mobile=o),onChange:e[5]||(e[5]=o=>u(o,"is_bind_mobile"))},null,8,["modelValue"]),l("div",H,n(s(i)("isBindMobileTip")),1)]),_:1},8,["label"]),r(m,{label:s(i)("agreement"),prop:"formData.agreement_show"},{default:p(()=>[r(f,{modelValue:t.agreement_show,"onUpdate:modelValue":e[6]||(e[6]=o=>t.agreement_show=o),onChange:e[7]||(e[7]=o=>u(o,"agreement_show"))},null,8,["modelValue"]),l("div",K,n(s(i)("agreementTips")),1)]),_:1},8,["label"]),l("h3",P,n(s(i)("tripartiteSetting")),1),r(m,{label:s(i)("isAuthRegister"),prop:"formData.is_auth_register"},{default:p(()=>[r(f,{modelValue:t.is_auth_register,"onUpdate:modelValue":e[8]||(e[8]=o=>t.is_auth_register=o),onChange:e[9]||(e[9]=o=>u(o,"is_auth_register"))},null,8,["modelValue"]),l("div",W,n(s(i)("isAuthRegisterTip")),1)]),_:1},8,["label"])]),_:1})]),_:1},8,["model"])),[[C,d.value]]),l("div",X,[l("div",Y,[r(w,{type:"primary",onClick:e[10]||(e[10]=o=>h(c.value))},{default:p(()=>[S(n(s(i)("save")),1)]),_:1})])])])}}});const Je=J(Z,[["__scopeId","data-v-1261a9ea"]]);export{Je as default};
|
||||
@ -1 +1 @@
|
||||
import{d as h,r as c,R as x,e as d,f as w,Q as b,v as B,x as r,y as s,g as i,B as f,u as m,A as V}from"./base-06478700.js";/* empty css *//* empty css */import{a as D,E as C}from"./el-form-item-314d006d.js";/* empty css *//* empty css */import{t as n}from"./index-81ed253c.js";import{af as F,ag as N}from"./index-80fd3793.js";import{E as R}from"./index-b68e8463.js";import{E as I}from"./index-e10fccde.js";import{E as M}from"./index-c2f001d3.js";import{v as S}from"./directive-cb2d3366.js";import"./index-2fcd1254.js";import"./event-10eba222.js";import"./vue-router-d09a2c28.js";import"./common-92a35870.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-6b67c4ac.js";import"./el-overlay-42a687c6.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";import"./el-tooltip-58212670.js";import"./index-b52d0f2a.js";import"./index-2a269c7c.js";import"./index-e4abfaa5.js";import"./index-9ee9102c.js";const A={class:"main-container"},K={class:"panel-title"},L={class:"fixed-footer-wrap"},Q={class:"fixed-footer"},yt=h({__name:"map",setup(T){const t=c(!1),l=c(),e=x({key:""});(async()=>{const o=await(await F()).data;e.key=o.key})();const _=async o=>{t.value||!o||N(e).then(()=>{t.value=!1}).catch(()=>{t.value=!1})};return(o,a)=>{const u=R,v=D,y=I,g=C,k=M,E=S;return d(),w("div",A,[b((d(),B(g,{model:e,"label-width":"150px",ref_key:"formRef",ref:l,class:"page-form"},{default:r(()=>[s(y,{class:"box-card !border-none",shadow:"never"},{default:r(()=>[i("h3",K,f(m(n)("mapSetting")),1),s(v,{label:m(n)("mapKey"),prop:"site_name"},{default:r(()=>[s(u,{modelValue:e.key,"onUpdate:modelValue":a[0]||(a[0]=p=>e.key=p),class:"input-width",clearable:""},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1},8,["model"])),[[E,t.value]]),i("div",L,[i("div",Q,[s(k,{type:"primary",loading:t.value,onClick:a[1]||(a[1]=p=>_(l.value))},{default:r(()=>[V(f(m(n)("save")),1)]),_:1},8,["loading"])])])])}}});export{yt as default};
|
||||
import{d as h,r as c,R as x,e as d,f as w,Q as b,v as B,x as r,y as s,g as i,B as f,u as m,A as V}from"./base-06478700.js";/* empty css *//* empty css */import{a as D,E as C}from"./el-form-item-314d006d.js";/* empty css *//* empty css */import{t as n}from"./index-81ed253c.js";import{af as F,ag as N}from"./index-981b0207.js";import{E as R}from"./index-b68e8463.js";import{E as I}from"./index-e10fccde.js";import{E as M}from"./index-c2f001d3.js";import{v as S}from"./directive-cb2d3366.js";import"./index-2fcd1254.js";import"./event-10eba222.js";import"./vue-router-d09a2c28.js";import"./common-92a35870.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-6b67c4ac.js";import"./el-overlay-42a687c6.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";import"./el-tooltip-58212670.js";import"./index-b52d0f2a.js";import"./index-2a269c7c.js";import"./index-e4abfaa5.js";import"./index-9ee9102c.js";const A={class:"main-container"},K={class:"panel-title"},L={class:"fixed-footer-wrap"},Q={class:"fixed-footer"},yt=h({__name:"map",setup(T){const t=c(!1),l=c(),e=x({key:""});(async()=>{const o=await(await F()).data;e.key=o.key})();const _=async o=>{t.value||!o||N(e).then(()=>{t.value=!1}).catch(()=>{t.value=!1})};return(o,a)=>{const u=R,v=D,y=I,g=C,k=M,E=S;return d(),w("div",A,[b((d(),B(g,{model:e,"label-width":"150px",ref_key:"formRef",ref:l,class:"page-form"},{default:r(()=>[s(y,{class:"box-card !border-none",shadow:"never"},{default:r(()=>[i("h3",K,f(m(n)("mapSetting")),1),s(v,{label:m(n)("mapKey"),prop:"site_name"},{default:r(()=>[s(u,{modelValue:e.key,"onUpdate:modelValue":a[0]||(a[0]=p=>e.key=p),class:"input-width",clearable:""},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1},8,["model"])),[[E,t.value]]),i("div",L,[i("div",Q,[s(k,{type:"primary",loading:t.value,onClick:a[1]||(a[1]=p=>_(l.value))},{default:r(()=>[V(f(m(n)("save")),1)]),_:1},8,["loading"])])])])}}});export{yt as default};
|
||||
@ -1 +1 @@
|
||||
import{d as C,r as g,R as h,e as x,f as B,Q as F,v as N,x as s,y as i,g as f,B as _,u as l,A as D}from"./base-06478700.js";/* empty css *//* empty css */import{a as I,E as R}from"./el-form-item-314d006d.js";/* empty css *//* empty css */import{t as a}from"./index-81ed253c.js";import{K as $,L as M}from"./member-c227fc40.js";import{E as P}from"./index-b68e8463.js";import{E as k}from"./index-e10fccde.js";import{E as A}from"./index-c2f001d3.js";import{v as H}from"./directive-cb2d3366.js";import{_ as L}from"./_plugin-vue_export-helper-c27b6911.js";import"./index-2fcd1254.js";import"./event-10eba222.js";import"./index-80fd3793.js";import"./vue-router-d09a2c28.js";import"./common-92a35870.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./index-6b67c4ac.js";import"./el-overlay-42a687c6.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";import"./el-tooltip-58212670.js";import"./index-b52d0f2a.js";import"./index-2a269c7c.js";import"./index-e4abfaa5.js";import"./index-9ee9102c.js";const S={class:"main-container"},T={class:"panel-title"},U={class:"form-tip"},j={class:"text-lg"},q={class:"fixed-footer-wrap"},z={class:"fixed-footer"},K=C({__name:"member",setup(O){const m=g(!0),p=g({});let v=g("");const b=h({prefix:[{validator:(r,e,o)=>{e&&!/^[a-zA-Z]*$/g.test(e)?o(new Error(a("prefixHint"))):o()},trigger:"blur"}],length:[{required:!0,message:a("lengthPlaceholder"),trigger:"blur"},{validator:(r,e,o)=>{parseInt(e)>30||parseInt(e)-t.prefix.length<4?o(new Error(a("lengthHint"))):o()},trigger:"blur"}]}),t=h({prefix:"",length:10});(async()=>{const r=await(await $()).data;Object.keys(t).forEach(e=>{r[e]!=null&&(t[e]=r[e])}),c(p.value),m.value=!1})();const c=async r=>{await r.validate(e=>{if(e){let o="",d=t.length-t.prefix.length-1;for(let u=1;u<=d;u++)o+="0";v.value=t.prefix+o+"1"}})},w=async r=>{m.value||!r||await r.validate(e=>{e&&M(t).then(()=>{m.value=!1,c()}).catch(()=>{m.value=!1})})};return(r,e)=>{const o=P,d=I,u=k,y=R,E=A,V=H;return x(),B("div",S,[F((x(),N(y,{model:t,"label-width":"150px",ref_key:"ruleFormRef",ref:p,rules:b,class:"page-form"},{default:s(()=>[i(u,{class:"box-card !border-none",shadow:"never"},{default:s(()=>[f("h3",T,_(l(a)("memberNoRule")),1),i(d,{label:l(a)("prefix"),prop:"prefix"},{default:s(()=>[i(o,{modelValue:t.prefix,"onUpdate:modelValue":e[0]||(e[0]=n=>t.prefix=n),placeholder:l(a)("prefixPlaceholder"),class:"input-width",clearable:"",maxlength:"20",onChange:e[1]||(e[1]=n=>c(p.value))},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),i(d,{label:l(a)("length"),prop:"length"},{default:s(()=>[i(o,{modelValue:t.length,"onUpdate:modelValue":e[2]||(e[2]=n=>t.length=n),placeholder:l(a)("lengthPlaceholder"),class:"input-width",clearable:"",type:"number",onChange:e[3]||(e[3]=n=>c(p.value))},null,8,["modelValue","placeholder"]),f("div",U,_(l(a)("lengthTips")),1)]),_:1},8,["label"]),i(d,null,{default:s(()=>[f("div",j,_(l(v)),1)]),_:1})]),_:1})]),_:1},8,["model","rules"])),[[V,m.value]]),f("div",q,[f("div",z,[i(E,{type:"primary",onClick:e[4]||(e[4]=n=>w(p.value))},{default:s(()=>[D(_(l(a)("save")),1)]),_:1})])])])}}});const Be=L(K,[["__scopeId","data-v-a0e6aa65"]]);export{Be as default};
|
||||
import{d as C,r as g,R as h,e as x,f as B,Q as F,v as N,x as s,y as i,g as f,B as _,u as l,A as D}from"./base-06478700.js";/* empty css *//* empty css */import{a as I,E as R}from"./el-form-item-314d006d.js";/* empty css *//* empty css */import{t as a}from"./index-81ed253c.js";import{K as $,L as M}from"./member-b587e6d0.js";import{E as P}from"./index-b68e8463.js";import{E as k}from"./index-e10fccde.js";import{E as A}from"./index-c2f001d3.js";import{v as H}from"./directive-cb2d3366.js";import{_ as L}from"./_plugin-vue_export-helper-c27b6911.js";import"./index-2fcd1254.js";import"./event-10eba222.js";import"./index-981b0207.js";import"./vue-router-d09a2c28.js";import"./common-92a35870.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./index-6b67c4ac.js";import"./el-overlay-42a687c6.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";import"./el-tooltip-58212670.js";import"./index-b52d0f2a.js";import"./index-2a269c7c.js";import"./index-e4abfaa5.js";import"./index-9ee9102c.js";const S={class:"main-container"},T={class:"panel-title"},U={class:"form-tip"},j={class:"text-lg"},q={class:"fixed-footer-wrap"},z={class:"fixed-footer"},K=C({__name:"member",setup(O){const m=g(!0),p=g({});let v=g("");const b=h({prefix:[{validator:(r,e,o)=>{e&&!/^[a-zA-Z]*$/g.test(e)?o(new Error(a("prefixHint"))):o()},trigger:"blur"}],length:[{required:!0,message:a("lengthPlaceholder"),trigger:"blur"},{validator:(r,e,o)=>{parseInt(e)>30||parseInt(e)-t.prefix.length<4?o(new Error(a("lengthHint"))):o()},trigger:"blur"}]}),t=h({prefix:"",length:10});(async()=>{const r=await(await $()).data;Object.keys(t).forEach(e=>{r[e]!=null&&(t[e]=r[e])}),c(p.value),m.value=!1})();const c=async r=>{await r.validate(e=>{if(e){let o="",d=t.length-t.prefix.length-1;for(let u=1;u<=d;u++)o+="0";v.value=t.prefix+o+"1"}})},w=async r=>{m.value||!r||await r.validate(e=>{e&&M(t).then(()=>{m.value=!1,c()}).catch(()=>{m.value=!1})})};return(r,e)=>{const o=P,d=I,u=k,y=R,E=A,V=H;return x(),B("div",S,[F((x(),N(y,{model:t,"label-width":"150px",ref_key:"ruleFormRef",ref:p,rules:b,class:"page-form"},{default:s(()=>[i(u,{class:"box-card !border-none",shadow:"never"},{default:s(()=>[f("h3",T,_(l(a)("memberNoRule")),1),i(d,{label:l(a)("prefix"),prop:"prefix"},{default:s(()=>[i(o,{modelValue:t.prefix,"onUpdate:modelValue":e[0]||(e[0]=n=>t.prefix=n),placeholder:l(a)("prefixPlaceholder"),class:"input-width",clearable:"",maxlength:"20",onChange:e[1]||(e[1]=n=>c(p.value))},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),i(d,{label:l(a)("length"),prop:"length"},{default:s(()=>[i(o,{modelValue:t.length,"onUpdate:modelValue":e[2]||(e[2]=n=>t.length=n),placeholder:l(a)("lengthPlaceholder"),class:"input-width",clearable:"",type:"number",onChange:e[3]||(e[3]=n=>c(p.value))},null,8,["modelValue","placeholder"]),f("div",U,_(l(a)("lengthTips")),1)]),_:1},8,["label"]),i(d,null,{default:s(()=>[f("div",j,_(l(v)),1)]),_:1})]),_:1})]),_:1},8,["model","rules"])),[[V,m.value]]),f("div",q,[f("div",z,[i(E,{type:"primary",onClick:e[4]||(e[4]=n=>w(p.value))},{default:s(()=>[D(_(l(a)("save")),1)]),_:1})])])])}}});const Be=L(K,[["__scopeId","data-v-a0e6aa65"]]);export{Be as default};
|
||||
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