ss-component-new 1.1.263 → 1.1.265

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/dist/{array-BiSkXjDh.js → array-BDeF0W9f.js} +2 -2
  2. package/dist/{array-BCYeTWHp.cjs → array-C4J0REBC.cjs} +1 -1
  3. package/dist/{cloneDeep-BShYbOkw.cjs → cloneDeep-BBm-q9zg.cjs} +1 -1
  4. package/dist/{cloneDeep-CxhinJk5.js → cloneDeep-DkmyPpbh.js} +1 -1
  5. package/dist/{index-BJEmWdGc.cjs → index-3nmV5exu.cjs} +1 -1
  6. package/dist/{index-D0isXbYa.js → index-6vvw6VlW.js} +13 -14
  7. package/dist/{index-BRgT-cwL.cjs → index-9WpI_7dE.cjs} +1 -1
  8. package/dist/{index-6mqoLKfR.js → index-AwoY3kNB.js} +6 -6
  9. package/dist/{index-BG7p7J6-.js → index-B-9mTnND.js} +3 -3
  10. package/dist/{index-C9gBSiUj.cjs → index-B-9v-OGS.cjs} +1 -1
  11. package/dist/index-B3U--N-N.js +3579 -0
  12. package/dist/{index-BTWHfvj_.cjs → index-B3zMRbQE.cjs} +1 -1
  13. package/dist/{index-sYRfzwGi.cjs → index-B5yp0MJ0.cjs} +1 -1
  14. package/dist/index-B89EQikK.js +470 -0
  15. package/dist/{index-BEPkDcRB.js → index-BFiwTK0r.js} +4 -4
  16. package/dist/{index-YBOakoO-.js → index-BUy_hb9R.js} +1 -1
  17. package/dist/{index-DecqROTY.cjs → index-BWcD-AvF.cjs} +1 -1
  18. package/dist/index-BWsxt1qe.cjs +1 -0
  19. package/dist/{index-BRYyDz7j.cjs → index-BXAN_9-v.cjs} +1 -1
  20. package/dist/index-BYxgGA_C.cjs +1 -0
  21. package/dist/{index-BiIAlHzV.cjs → index-Ba3v5Pnx.cjs} +1 -1
  22. package/dist/{index-DJRZAkF4.js → index-Ba9vckoo.js} +4 -4
  23. package/dist/{index-CPNiI7xc.cjs → index-BaSmybMX.cjs} +1 -1
  24. package/dist/{index-B2bPpqmz.js → index-Bexirrje.js} +7 -7
  25. package/dist/{index-Duw1U19n.js → index-BfMZs6GX.js} +3 -3
  26. package/dist/{index-cPpFPrRC.cjs → index-BihDAtWi.cjs} +1 -1
  27. package/dist/{index-D9sisgye.js → index-BiiTIWm9.js} +1 -1
  28. package/dist/index-BjBbQixi.js +133 -0
  29. package/dist/{index-CzuGT7Su.cjs → index-BjFQDrdw.cjs} +1 -1
  30. package/dist/{index-B0SEIfhd.js → index-BsLnsDdu.js} +3 -3
  31. package/dist/{index-jxXiBXta.cjs → index-BvRyV8Vl.cjs} +1 -1
  32. package/dist/{index-CvoVhrqh.cjs → index-C2rdVtQX.cjs} +1 -1
  33. package/dist/{index-BEQcfNC8.js → index-C7nCSuLr.js} +503 -496
  34. package/dist/index-CE_c0ycI.cjs +1 -0
  35. package/dist/{index-CNnhenkX.cjs → index-CMH3PNYp.cjs} +1 -1
  36. package/dist/{index-h9avu7we.cjs → index-CcG-LN0V.cjs} +1 -1
  37. package/dist/{index-GDAKW2b9.cjs → index-Cfn3u5HC.cjs} +1 -1
  38. package/dist/{index-DdfwFwkR.js → index-CiUEPvSb.js} +3 -3
  39. package/dist/index-CjK23p7z.cjs +1 -0
  40. package/dist/{index-BJWxGK8l.cjs → index-D1RRSpG-.cjs} +1 -1
  41. package/dist/{index-Bl-nqQUb.cjs → index-D5QHaKXY.cjs} +1 -1
  42. package/dist/{index-B96mvnY6.js → index-DAV1YiOv.js} +1 -1
  43. package/dist/{index-kq_YOCp0.cjs → index-DIx9Mkjr.cjs} +7 -7
  44. package/dist/{index--CBmQToI.js → index-DPPFsHho.js} +4 -4
  45. package/dist/index-DPTRfubW.cjs +1 -0
  46. package/dist/index-DSitYT7k.js +708 -0
  47. package/dist/{index-5G9gxVsG.js → index-DV-_jtbC.js} +13 -8
  48. package/dist/{index-BReBoqZM.cjs → index-DbEBmWwO.cjs} +1 -1
  49. package/dist/{index-BxD91iWh.js → index-Dbc4BP6w.js} +1 -1
  50. package/dist/{index-BW_gJg6Y.js → index-DkUKAxT5.js} +4 -4
  51. package/dist/{index-DSPU33cy.js → index-DmicKsqe.js} +5 -5
  52. package/dist/{index-CWpNIgx-.js → index-DnhMKtPL.js} +5 -5
  53. package/dist/index-DqotuDvT.cjs +1 -0
  54. package/dist/{index-Cd2qjywt.cjs → index-DqxwBkoC.cjs} +1 -1
  55. package/dist/{index-Cmf6TSRr.js → index-Dtt3rH52.js} +9 -9
  56. package/dist/{index-B5fyktOS.js → index-Nm1gBK8p.js} +1 -1
  57. package/dist/{index-C8FwXAiK.js → index-W0a8zgHe.js} +1 -1
  58. package/dist/{index-BPGk6VZT.cjs → index-WTHHFOGK.cjs} +1 -1
  59. package/dist/{index-DhT3lFvD.js → index-YQ-VX6hF.js} +5 -5
  60. package/dist/{index-BqqWyJ_i.js → index-_d23aLDP.js} +8 -8
  61. package/dist/{index-DvydSDWz.js → index-e4nur009.js} +33 -33
  62. package/dist/{index-B8d1EBwW.cjs → index-i3SfTzb-.cjs} +1 -1
  63. package/dist/{index.vue_vue_type_script_setup_true_lang-WZ_0N2ba.cjs → index.vue_vue_type_script_setup_true_lang-CGNnqRgg.cjs} +1 -1
  64. package/dist/{index.vue_vue_type_script_setup_true_lang-dRZKrDpe.js → index.vue_vue_type_script_setup_true_lang-WT1bk-Ac.js} +1 -1
  65. package/dist/{index.vue_vue_type_style_index_0_scoped_11a5120d_lang-D6zTMeXs.js → index.vue_vue_type_style_index_0_scoped_11a5120d_lang-CW0J8V9s.js} +6 -6
  66. package/dist/{index.vue_vue_type_style_index_0_scoped_11a5120d_lang-DC0qx2mv.cjs → index.vue_vue_type_style_index_0_scoped_11a5120d_lang-DMNBfALW.cjs} +1 -1
  67. package/dist/index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-BSyTEUOh.js +662 -0
  68. package/dist/index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-BtkSTHBG.cjs +1 -0
  69. package/dist/login-DQOJjuKW.js +101 -0
  70. package/dist/login-HZtElTta.cjs +1 -0
  71. package/dist/{main-DRtNsfjw.cjs → main-DUx-SCAV.cjs} +1 -1
  72. package/dist/{main-CHSqRi2c.js → main-oajXOTpn.js} +7 -7
  73. package/dist/{menu-CH06rBlw.cjs → menu-B2CHVN4m.cjs} +4 -4
  74. package/dist/{menu-BjwI4sfO.js → menu-DEplmGob.js} +35 -26
  75. package/dist/{modelComp-CiiFZm1t.js → modelComp-BY5JHRXA.js} +1 -1
  76. package/dist/{modelComp-LhGhARtD.cjs → modelComp-DMKA6wLp.cjs} +1 -1
  77. package/dist/ss-component.cjs +1 -1
  78. package/dist/ss-component.css +2 -2
  79. package/dist/ss-component.js +7 -7
  80. package/dist/ss-component3.cjs +1 -1
  81. package/dist/ss-component3.js +1 -1
  82. package/package.json +1 -1
  83. package/dist/index-21rauG0g.cjs +0 -1
  84. package/dist/index-3fLiW589.cjs +0 -1
  85. package/dist/index-B5vG0PaI.cjs +0 -1
  86. package/dist/index-BeYDJriQ.js +0 -458
  87. package/dist/index-C3-tA5Oy.js +0 -3520
  88. package/dist/index-CYjQVlPG.cjs +0 -1
  89. package/dist/index-ClyxHDAy.cjs +0 -1
  90. package/dist/index-WOjw27kj.js +0 -683
  91. package/dist/index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-B9TnTaRE.cjs +0 -1
  92. package/dist/index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-Bnu6O5Dx.js +0 -662
  93. package/dist/login-B_Ta8W8C.cjs +0 -1
  94. package/dist/login-D_UosrWe.js +0 -89
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),I=require("./index.vue_vue_type_script_setup_true_lang-WZ_0N2ba.cjs"),B=require("./index-BJWxGK8l.cjs"),x=require("./menu-CH06rBlw.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),A=require("./index-BReBoqZM.cjs"),k=require("./index-BpPyaNFa.cjs"),N={class:"avatar-model-wrap"},V=e.defineComponent({__name:"index",props:{disabled:{type:Boolean,default:!1},avatarUrl:{type:String,default:""},userInfo:{type:Object,default:{}}},emits:["submitImage","deleteImage"],setup(i,{emit:b}){const u=i,c=b,_=e.computed(()=>"http://139.196.154.85:20013"),p=e.ref(""),d=e.ref(""),h=e.ref();e.watch(()=>{var o;return(o=u.userInfo)==null?void 0:o.avatarUrl},o=>{d.value=o},{immediate:!0});const w=async()=>{if(!(u!=null&&u.disabled))try{const o=await B.downloadAvatarApi({url:p.value});if(o.status!==200)throw new Error(`HTTP error! status: ${o.status}`);const f=new Blob([o.data],{type:o.headers["content-type"]});h.value=f}catch(o){throw new Error(o)}},S=async o=>{var f,g,t,n,l;try{const r=await B.uploadAvatarApi(o);((f=r==null?void 0:r.data)==null?void 0:f.code)===200&&(d.value=_.value+"/"+((t=(g=r.data)==null?void 0:g.result)==null?void 0:t.url),p.value=(l=(n=r.data)==null?void 0:n.result)==null?void 0:l.url,c("submitImage",d.value))}catch(r){x.ElMessage.error(r)}},y=async()=>{try{if(!d.value)return}catch(o){x.ElMessage.error(o)}};return(o,f)=>{var g,t,n;return e.openBlock(),e.createElementBlock("div",N,[e.createVNode(I._sfc_main,{avatarUrl:d.value,avatarBlob:h.value,onClickAvatar:w,onSubmitImage:S,onDeleteImage:y},{avatarDefault:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString(((l=i.userInfo)==null?void 0:l.account)??"未知"),1)]}),_:1},8,["avatarUrl","avatarBlob"]),e.createElementVNode("span",null,e.toDisplayString((g=i.userInfo)!=null&&g.userName?(t=i.userInfo)==null?void 0:t.userName:(n=i.userInfo)==null?void 0:n.account),1)])}}}),E=C._export_sfc(V,[["__scopeId","data-v-bcb7a17f"]]),U=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}}},emits:["clickSignButton","clickSubmitSign","beforeDestroy"],setup(i,{emit:b}){const u=i,c=e.ref({}),_=e.ref([]),p=b,d=t=>{c.value.dialogShow=(t==null?void 0:t.label)==="电子签名",p("clickSignButton",t)},h=()=>{c.value.dialogShow=!1,p("beforeDestroy")},w=e.computed(()=>"http://139.196.154.85:20013"),S=t=>{var a;const n=t.split(","),l=(a=n==null?void 0:n[0])==null?void 0:a.match(/:(.*?);/)[1],r=atob(n[1]);let s=r.length;const v=new Uint8Array(s);for(;s--;)v[s]=r.charCodeAt(s);return new Blob([v],{type:l})},y=async t=>{var n,l,r;try{const s=await B.uploadAvatarApi(t);((n=s==null?void 0:s.data)==null?void 0:n.code)===200&&p("clickSubmitSign",w.value+"/"+((r=(l=s.data)==null?void 0:l.result)==null?void 0:r.url))}catch(s){x.ElMessage.error(s)}},o=e.ref(""),f=t=>{o.value=t,c.value.dialogShow=!1;const n=new FormData,l=S(t);n.append("file",l,"image.png"),y(n)},g=t=>{const n=new FormData;n.append("file",t==null?void 0:t.file),y(n)};return e.watch(()=>u==null?void 0:u.itemData,t=>{var l,r,s,v;o.value="",(l=c.value)!=null&&l.dialogShow&&(c.value.dialogShow=!1);const n=(r=t==null?void 0:t.find(a=>(a==null?void 0:a.key)==="signConfig"))==null?void 0:r.contents;n&&Object.keys(n).forEach(a=>{(n[a]===void 0||n[a]===null||n[a]==="")&&delete n[a]}),c.value=(s=t==null?void 0:t.find(a=>(a==null?void 0:a.key)==="signConfig"))==null?void 0:s.contents,_.value=(v=t==null?void 0:t.find(a=>(a==null?void 0:a.key)==="signTypeList"))==null?void 0:v.contents},{immediate:!0}),(t,n)=>{const l=e.resolveComponent("el-empty"),r=e.resolveComponent("el-image"),s=e.resolveComponent("el-button"),v=e.resolveComponent("el-upload");return e.openBlock(),e.createBlock(A.Signature,{signPadInfo:c.value,onBeforeDestroy:h,onClickSubmitSign:f},{signatureRender:e.withCtx(()=>{var a,m;return[e.createElementVNode("div",{class:"signature-render",style:e.normalizeStyle({width:`${(a=c.value)==null?void 0:a.signPadWidth}%`})},[e.createVNode(r,{src:o.value?o.value:(m=i.userInfo)==null?void 0:m.signature,fit:"contain"},{error:e.withCtx(()=>[e.createVNode(l,{"image-size":60,description:" "},{image:e.withCtx(()=>[e.createVNode(k.SvgIcon,{name:"emptyImg"})]),_:1})]),_:1},8,["src"])],4)]}),signatureTypes:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,a=>{var m;return e.openBlock(),e.createElementBlock("div",{key:a.label,class:"signature-button"},[(m=a.label)!=null&&m.includes("上传")?(e.openBlock(),e.createBlock(v,{key:0,ref_for:!0,ref:"uploadRef","http-request":g,"show-file-list":!1},{trigger:e.withCtx(()=>[e.createVNode(s,{disabled:a.disabled,type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.label),1)]),icon:e.withCtx(()=>[e.createVNode(k.SvgIcon,{name:a.icon??""},null,8,["name"])]),_:2},1032,["disabled"])]),_:2},1536)):(e.openBlock(),e.createBlock(s,{key:1,type:"primary",disabled:a.disabled,onClick:q=>d(a)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.label),1)]),icon:e.withCtx(()=>[e.createVNode(k.SvgIcon,{name:a.icon??""},null,8,["name"])]),_:2},1032,["disabled","onClick"]))])}),128))]),_:1},8,["signPadInfo"])}}}),T=C._export_sfc(U,[["__scopeId","data-v-0bab2515"]]);exports.ssAvatar=E;exports.ssSignature=T;
1
+ "use strict";const e=require("vue"),I=require("./index.vue_vue_type_script_setup_true_lang-CGNnqRgg.cjs"),B=require("./index-D1RRSpG-.cjs"),x=require("./menu-B2CHVN4m.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),A=require("./index-DbEBmWwO.cjs"),k=require("./index-BpPyaNFa.cjs"),N={class:"avatar-model-wrap"},V=e.defineComponent({__name:"index",props:{disabled:{type:Boolean,default:!1},avatarUrl:{type:String,default:""},userInfo:{type:Object,default:{}}},emits:["submitImage","deleteImage"],setup(i,{emit:b}){const u=i,c=b,_=e.computed(()=>"http://139.196.154.85:20013"),p=e.ref(""),d=e.ref(""),h=e.ref();e.watch(()=>{var o;return(o=u.userInfo)==null?void 0:o.avatarUrl},o=>{d.value=o},{immediate:!0});const w=async()=>{if(!(u!=null&&u.disabled))try{const o=await B.downloadAvatarApi({url:p.value});if(o.status!==200)throw new Error(`HTTP error! status: ${o.status}`);const f=new Blob([o.data],{type:o.headers["content-type"]});h.value=f}catch(o){throw new Error(o)}},S=async o=>{var f,g,t,n,l;try{const r=await B.uploadAvatarApi(o);((f=r==null?void 0:r.data)==null?void 0:f.code)===200&&(d.value=_.value+"/"+((t=(g=r.data)==null?void 0:g.result)==null?void 0:t.url),p.value=(l=(n=r.data)==null?void 0:n.result)==null?void 0:l.url,c("submitImage",d.value))}catch(r){x.ElMessage.error(r)}},y=async()=>{try{if(!d.value)return}catch(o){x.ElMessage.error(o)}};return(o,f)=>{var g,t,n;return e.openBlock(),e.createElementBlock("div",N,[e.createVNode(I._sfc_main,{avatarUrl:d.value,avatarBlob:h.value,onClickAvatar:w,onSubmitImage:S,onDeleteImage:y},{avatarDefault:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString(((l=i.userInfo)==null?void 0:l.account)??"未知"),1)]}),_:1},8,["avatarUrl","avatarBlob"]),e.createElementVNode("span",null,e.toDisplayString((g=i.userInfo)!=null&&g.userName?(t=i.userInfo)==null?void 0:t.userName:(n=i.userInfo)==null?void 0:n.account),1)])}}}),E=C._export_sfc(V,[["__scopeId","data-v-bcb7a17f"]]),U=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}}},emits:["clickSignButton","clickSubmitSign","beforeDestroy"],setup(i,{emit:b}){const u=i,c=e.ref({}),_=e.ref([]),p=b,d=t=>{c.value.dialogShow=(t==null?void 0:t.label)==="电子签名",p("clickSignButton",t)},h=()=>{c.value.dialogShow=!1,p("beforeDestroy")},w=e.computed(()=>"http://139.196.154.85:20013"),S=t=>{var a;const n=t.split(","),l=(a=n==null?void 0:n[0])==null?void 0:a.match(/:(.*?);/)[1],r=atob(n[1]);let s=r.length;const v=new Uint8Array(s);for(;s--;)v[s]=r.charCodeAt(s);return new Blob([v],{type:l})},y=async t=>{var n,l,r;try{const s=await B.uploadAvatarApi(t);((n=s==null?void 0:s.data)==null?void 0:n.code)===200&&p("clickSubmitSign",w.value+"/"+((r=(l=s.data)==null?void 0:l.result)==null?void 0:r.url))}catch(s){x.ElMessage.error(s)}},o=e.ref(""),f=t=>{o.value=t,c.value.dialogShow=!1;const n=new FormData,l=S(t);n.append("file",l,"image.png"),y(n)},g=t=>{const n=new FormData;n.append("file",t==null?void 0:t.file),y(n)};return e.watch(()=>u==null?void 0:u.itemData,t=>{var l,r,s,v;o.value="",(l=c.value)!=null&&l.dialogShow&&(c.value.dialogShow=!1);const n=(r=t==null?void 0:t.find(a=>(a==null?void 0:a.key)==="signConfig"))==null?void 0:r.contents;n&&Object.keys(n).forEach(a=>{(n[a]===void 0||n[a]===null||n[a]==="")&&delete n[a]}),c.value=(s=t==null?void 0:t.find(a=>(a==null?void 0:a.key)==="signConfig"))==null?void 0:s.contents,_.value=(v=t==null?void 0:t.find(a=>(a==null?void 0:a.key)==="signTypeList"))==null?void 0:v.contents},{immediate:!0}),(t,n)=>{const l=e.resolveComponent("el-empty"),r=e.resolveComponent("el-image"),s=e.resolveComponent("el-button"),v=e.resolveComponent("el-upload");return e.openBlock(),e.createBlock(A.Signature,{signPadInfo:c.value,onBeforeDestroy:h,onClickSubmitSign:f},{signatureRender:e.withCtx(()=>{var a,m;return[e.createElementVNode("div",{class:"signature-render",style:e.normalizeStyle({width:`${(a=c.value)==null?void 0:a.signPadWidth}%`})},[e.createVNode(r,{src:o.value?o.value:(m=i.userInfo)==null?void 0:m.signature,fit:"contain"},{error:e.withCtx(()=>[e.createVNode(l,{"image-size":60,description:" "},{image:e.withCtx(()=>[e.createVNode(k.SvgIcon,{name:"emptyImg"})]),_:1})]),_:1},8,["src"])],4)]}),signatureTypes:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,a=>{var m;return e.openBlock(),e.createElementBlock("div",{key:a.label,class:"signature-button"},[(m=a.label)!=null&&m.includes("上传")?(e.openBlock(),e.createBlock(v,{key:0,ref_for:!0,ref:"uploadRef","http-request":g,"show-file-list":!1},{trigger:e.withCtx(()=>[e.createVNode(s,{disabled:a.disabled,type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.label),1)]),icon:e.withCtx(()=>[e.createVNode(k.SvgIcon,{name:a.icon??""},null,8,["name"])]),_:2},1032,["disabled"])]),_:2},1536)):(e.openBlock(),e.createBlock(s,{key:1,type:"primary",disabled:a.disabled,onClick:q=>d(a)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.label),1)]),icon:e.withCtx(()=>[e.createVNode(k.SvgIcon,{name:a.icon??""},null,8,["name"])]),_:2},1032,["disabled","onClick"]))])}),128))]),_:1},8,["signPadInfo"])}}}),T=C._export_sfc(U,[["__scopeId","data-v-0bab2515"]]);exports.ssAvatar=E;exports.ssSignature=T;
@@ -1 +1 @@
1
- "use strict";const w=require("./menu-CH06rBlw.cjs"),O=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,$=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,E=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function P(r,t){if(r==="__proto__"||r==="constructor"&&t&&typeof t=="object"&&"prototype"in t){h(r);return}return t}function h(r){console.warn(`[destr] Dropping "${r}" key to prevent prototype pollution.`)}function z(r,t={}){if(typeof r!="string")return r;if(r[0]==='"'&&r[r.length-1]==='"'&&r.indexOf("\\")===-1)return r.slice(1,-1);const e=r.trim();if(e.length<=9)switch(e.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!E.test(r)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return r}try{if(O.test(r)||$.test(r)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(r,P)}return JSON.parse(r)}catch(n){if(t.strict)throw n;return r}}function F(r,t){if(r==null)return;let e=r;for(let n=0;n<t.length;n++){if(e==null||e[t[n]]==null)return;e=e[t[n]]}return e}function d(r,t,e){if(e.length===0)return t;const n=e[0];return e.length>1&&(t=d(typeof r!="object"||r===null||!Object.prototype.hasOwnProperty.call(r,n)?Number.isInteger(Number(e[1]))?[]:{}:r[n],t,Array.prototype.slice.call(e,1))),Number.isInteger(Number(n))&&Array.isArray(r)?r.slice()[n]:Object.assign({},r,{[n]:t})}function N(r,t){if(r==null||t.length===0)return r;if(t.length===1){if(r==null)return r;if(Number.isInteger(t[0])&&Array.isArray(r))return Array.prototype.slice.call(r,0).splice(t[0],1);const e={};for(const n in r)e[n]=r[n];return delete e[t[0]],e}if(r[t[0]]==null){if(Number.isInteger(t[0])&&Array.isArray(r))return Array.prototype.concat.call([],r);const e={};for(const n in r)e[n]=r[n];return e}return d(r,N(r[t[0]],Array.prototype.slice.call(t,1)),[t[0]])}function I(r,t){return t.map(e=>e.split(".")).map(e=>[e,F(r,e)]).filter(e=>e[1]!==void 0).reduce((e,n)=>d(e,n[1],n[0]),{})}function S(r,t){return t.map(e=>e.split(".")).reduce((e,n)=>N(e,n),r)}function g(r,{storage:t,serializer:e,key:n,debug:s,pick:u,omit:f,beforeHydrate:c,afterHydrate:i},o,l=!0){try{l&&(c==null||c(o));const a=t.getItem(n);if(a){const p=e.deserialize(a),y=u?I(p,u):p,A=f?S(y,f):y;r.$patch(A)}l&&(i==null||i(o))}catch(a){s&&console.error("[pinia-plugin-persistedstate]",a)}}function m(r,{storage:t,serializer:e,key:n,debug:s,pick:u,omit:f}){try{const c=u?I(r,u):r,i=f?S(c,f):c,o=e.serialize(i);t.setItem(n,o)}catch(c){s&&console.error("[pinia-plugin-persistedstate]",c)}}function k(r,t,e){const{pinia:n,store:s,options:{persist:u=e}}=r;if(!u)return;if(!(s.$id in n.state.value)){const i=n._s.get(s.$id.replace("__hot:",""));i&&Promise.resolve().then(()=>i.$persist());return}const c=(Array.isArray(u)?u:u===!0?[{}]:[u]).map(t);s.$hydrate=({runHooks:i=!0}={})=>{c.forEach(o=>{g(s,o,r,i)})},s.$persist=()=>{c.forEach(i=>{m(s.$state,i)})},c.forEach(i=>{g(s,i,r),s.$subscribe((o,l)=>m(l,i),{detached:!0})})}function J(r={}){return function(t){k(t,e=>({key:(r.key?r.key:n=>n)(e.key??t.store.$id),debug:e.debug??r.debug??!1,serializer:e.serializer??r.serializer??{serialize:n=>JSON.stringify(n),deserialize:n=>z(n)},storage:e.storage??r.storage??window.localStorage,beforeHydrate:e.beforeHydrate,afterHydrate:e.afterHydrate,pick:e.pick,omit:e.omit}),r.auto??!1)}}var T=J();const _=w.createPinia();_.use(T);exports.pinia=_;
1
+ "use strict";const w=require("./menu-B2CHVN4m.cjs"),O=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,$=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,E=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function P(r,t){if(r==="__proto__"||r==="constructor"&&t&&typeof t=="object"&&"prototype"in t){h(r);return}return t}function h(r){console.warn(`[destr] Dropping "${r}" key to prevent prototype pollution.`)}function z(r,t={}){if(typeof r!="string")return r;if(r[0]==='"'&&r[r.length-1]==='"'&&r.indexOf("\\")===-1)return r.slice(1,-1);const e=r.trim();if(e.length<=9)switch(e.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!E.test(r)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return r}try{if(O.test(r)||$.test(r)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(r,P)}return JSON.parse(r)}catch(n){if(t.strict)throw n;return r}}function F(r,t){if(r==null)return;let e=r;for(let n=0;n<t.length;n++){if(e==null||e[t[n]]==null)return;e=e[t[n]]}return e}function d(r,t,e){if(e.length===0)return t;const n=e[0];return e.length>1&&(t=d(typeof r!="object"||r===null||!Object.prototype.hasOwnProperty.call(r,n)?Number.isInteger(Number(e[1]))?[]:{}:r[n],t,Array.prototype.slice.call(e,1))),Number.isInteger(Number(n))&&Array.isArray(r)?r.slice()[n]:Object.assign({},r,{[n]:t})}function N(r,t){if(r==null||t.length===0)return r;if(t.length===1){if(r==null)return r;if(Number.isInteger(t[0])&&Array.isArray(r))return Array.prototype.slice.call(r,0).splice(t[0],1);const e={};for(const n in r)e[n]=r[n];return delete e[t[0]],e}if(r[t[0]]==null){if(Number.isInteger(t[0])&&Array.isArray(r))return Array.prototype.concat.call([],r);const e={};for(const n in r)e[n]=r[n];return e}return d(r,N(r[t[0]],Array.prototype.slice.call(t,1)),[t[0]])}function I(r,t){return t.map(e=>e.split(".")).map(e=>[e,F(r,e)]).filter(e=>e[1]!==void 0).reduce((e,n)=>d(e,n[1],n[0]),{})}function S(r,t){return t.map(e=>e.split(".")).reduce((e,n)=>N(e,n),r)}function g(r,{storage:t,serializer:e,key:n,debug:s,pick:u,omit:f,beforeHydrate:c,afterHydrate:i},o,l=!0){try{l&&(c==null||c(o));const a=t.getItem(n);if(a){const p=e.deserialize(a),y=u?I(p,u):p,A=f?S(y,f):y;r.$patch(A)}l&&(i==null||i(o))}catch(a){s&&console.error("[pinia-plugin-persistedstate]",a)}}function m(r,{storage:t,serializer:e,key:n,debug:s,pick:u,omit:f}){try{const c=u?I(r,u):r,i=f?S(c,f):c,o=e.serialize(i);t.setItem(n,o)}catch(c){s&&console.error("[pinia-plugin-persistedstate]",c)}}function k(r,t,e){const{pinia:n,store:s,options:{persist:u=e}}=r;if(!u)return;if(!(s.$id in n.state.value)){const i=n._s.get(s.$id.replace("__hot:",""));i&&Promise.resolve().then(()=>i.$persist());return}const c=(Array.isArray(u)?u:u===!0?[{}]:[u]).map(t);s.$hydrate=({runHooks:i=!0}={})=>{c.forEach(o=>{g(s,o,r,i)})},s.$persist=()=>{c.forEach(i=>{m(s.$state,i)})},c.forEach(i=>{g(s,i,r),s.$subscribe((o,l)=>m(l,i),{detached:!0})})}function J(r={}){return function(t){k(t,e=>({key:(r.key?r.key:n=>n)(e.key??t.store.$id),debug:e.debug??r.debug??!1,serializer:e.serializer??r.serializer??{serialize:n=>JSON.stringify(n),deserialize:n=>z(n)},storage:e.storage??r.storage??window.localStorage,beforeHydrate:e.beforeHydrate,afterHydrate:e.afterHydrate,pick:e.pick,omit:e.omit}),r.auto??!1)}}var T=J();const _=w.createPinia();_.use(T);exports.pinia=_;
@@ -0,0 +1,470 @@
1
+ import { computed as w, ref as n, reactive as x, nextTick as K, defineComponent as W, onMounted as $, resolveComponent as F, createElementBlock as q, openBlock as G, createElementVNode as b, createVNode as d, withCtx as h, createTextVNode as B } from "vue";
2
+ import { s as N, E as R, u as P, g as J, c as L, b as Q, d as X } from "./menu-DEplmGob.js";
3
+ import { u as Y } from "./modelComp-BY5JHRXA.js";
4
+ import { p as m } from "./index-BUy_hb9R.js";
5
+ import { a as Z, s as ee } from "./index-C7nCSuLr.js";
6
+ import "./index-6vvw6VlW.js";
7
+ import { h as te } from "./index-e4nur009.js";
8
+ import "./crypto-BRyGpjGR.js";
9
+ import { f as ae } from "./login-DQOJjuKW.js";
10
+ import { c as I } from "./cloneDeep-DkmyPpbh.js";
11
+ import { s as le, a as oe } from "./index-DnhMKtPL.js";
12
+ import { _ as ne } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
+ const E = Y(m), O = Z(m), v = P(m), { menus: A, configMenu: D, activeMenuPath: T, cacheStructures: se } = N(v), re = w(() => {
14
+ var t, e;
15
+ return [
16
+ {
17
+ key: "extraButton",
18
+ contents: [
19
+ // {
20
+ // label: "新增"
21
+ // }
22
+ ]
23
+ },
24
+ {
25
+ key: "rowButton",
26
+ contents: [
27
+ {
28
+ label: "修改"
29
+ }
30
+ // {
31
+ // label: "删除"
32
+ // }
33
+ ]
34
+ },
35
+ {
36
+ key: "header",
37
+ contents: [
38
+ {
39
+ label: "菜单名称",
40
+ prop: "title",
41
+ isFormColHidden: !1
42
+ },
43
+ {
44
+ label: "菜单类型",
45
+ prop: "menuType",
46
+ formType: "select",
47
+ options: [
48
+ {
49
+ label: "系统菜单",
50
+ value: "集团"
51
+ },
52
+ {
53
+ label: "公司",
54
+ value: "公司"
55
+ }
56
+ ],
57
+ isTableColHidden: !1,
58
+ isFormColHidden: !0
59
+ },
60
+ {
61
+ label: "操作"
62
+ }
63
+ ]
64
+ },
65
+ {
66
+ key: "tableContents",
67
+ contents: (e = (t = I(A.value)) == null ? void 0 : t.map((a) => ({
68
+ ...a,
69
+ menuType: "系统菜单"
70
+ }))) == null ? void 0 : e.filter((a) => a.title !== "系统管理" && a.title !== "平台管理")
71
+ }
72
+ ];
73
+ }), y = n([]), _ = n([
74
+ {
75
+ // label: "新增",
76
+ label: "新建"
77
+ }
78
+ ]), ue = w(() => [
79
+ {
80
+ key: "extraButton",
81
+ contents: _.value
82
+ },
83
+ {
84
+ key: "rowButton",
85
+ contents: [
86
+ {
87
+ // label: "编辑",
88
+ label: "修改"
89
+ },
90
+ {
91
+ label: "删除"
92
+ }
93
+ ]
94
+ },
95
+ {
96
+ key: "header",
97
+ contents: [
98
+ {
99
+ label: "操作类型",
100
+ prop: "operateType",
101
+ formType: "select",
102
+ options: [
103
+ {
104
+ label: "新增",
105
+ value: "create"
106
+ },
107
+ {
108
+ label: "编辑",
109
+ value: "update"
110
+ },
111
+ {
112
+ label: "删除",
113
+ value: "delete"
114
+ }
115
+ ],
116
+ value: ""
117
+ },
118
+ {
119
+ label: "操作图标",
120
+ prop: "operateIcon",
121
+ formType: "inputPopover",
122
+ value: ""
123
+ },
124
+ {
125
+ label: "图标触发事件",
126
+ prop: "trigger",
127
+ formType: "select",
128
+ options: [
129
+ {
130
+ label: "弹出弹窗",
131
+ value: "openDialog"
132
+ }
133
+ ],
134
+ value: "openDialog"
135
+ },
136
+ {
137
+ label: "配置一:",
138
+ prop: "dialogConfig",
139
+ formType: "button",
140
+ value: "弹窗内容",
141
+ isTableColHidden: !0
142
+ },
143
+ {
144
+ label: "配置二:",
145
+ prop: "contentConfig",
146
+ formType: "button",
147
+ value: "模块内容",
148
+ isTableColHidden: !0
149
+ },
150
+ {
151
+ label: "操作"
152
+ }
153
+ ]
154
+ },
155
+ {
156
+ key: "tableContents",
157
+ contents: y.value
158
+ }
159
+ ]), H = n([]), g = n({}), ce = n({}), ie = n([
160
+ // {
161
+ // label: "配置菜单:",
162
+ // prop: 'menu',
163
+ // type: 'cascader',
164
+ // contents: [],
165
+ // config: {
166
+ // checkStrictly: true
167
+ // },
168
+ // // value: ['压气机叶片', 'CJ-1000A']
169
+ // value: []
170
+ // },
171
+ {
172
+ label: "菜单",
173
+ prop: "path",
174
+ isFormColHidden: !0,
175
+ value: ""
176
+ },
177
+ {
178
+ label: "菜单图标:",
179
+ prop: "menuIcon",
180
+ type: "inputPopover",
181
+ value: ""
182
+ },
183
+ {
184
+ label: "操作类型:",
185
+ prop: "operateType",
186
+ type: "select",
187
+ contents: [
188
+ {
189
+ label: "新增",
190
+ value: "create"
191
+ },
192
+ {
193
+ label: "编辑",
194
+ value: "update"
195
+ },
196
+ {
197
+ label: "删除",
198
+ value: "delete"
199
+ }
200
+ ],
201
+ value: ""
202
+ },
203
+ {
204
+ label: "操作图标:",
205
+ prop: "operateIcon",
206
+ type: "inputPopover",
207
+ value: ""
208
+ },
209
+ {
210
+ label: "图标触发事件:",
211
+ prop: "trigger",
212
+ type: "select",
213
+ contents: [
214
+ {
215
+ label: "弹出弹窗",
216
+ value: "openDialog"
217
+ }
218
+ ],
219
+ value: "openDialog"
220
+ },
221
+ {
222
+ label: "配置一:",
223
+ prop: "dialogConfig",
224
+ type: "button",
225
+ value: "弹窗结构"
226
+ },
227
+ {
228
+ label: "配置二:",
229
+ prop: "contentConfig",
230
+ type: "button",
231
+ value: "生成模块结构"
232
+ }
233
+ ]), V = (t) => {
234
+ var e;
235
+ H.value = (e = ie.value) == null ? void 0 : e.map((a) => a.prop === "menu" ? {
236
+ ...a,
237
+ // contents: options,
238
+ value: t == null ? void 0 : t[a == null ? void 0 : a.prop]
239
+ } : a.prop === "dialogConfig" || a.prop === "contentConfig" || a.prop === "trigger" ? a : {
240
+ ...a,
241
+ value: t == null ? void 0 : t[a == null ? void 0 : a.prop]
242
+ });
243
+ }, pe = n([
244
+ {
245
+ label: "查询"
246
+ },
247
+ {
248
+ label: "重置"
249
+ }
250
+ ]), ge = async (t) => {
251
+ console.log(12356, t);
252
+ }, j = (t) => t.map((e) => e.childMenus && e.childMenus.length > 0 ? {
253
+ ...e,
254
+ value: e == null ? void 0 : e.title,
255
+ label: e == null ? void 0 : e.title,
256
+ children: j(e.childMenus)
257
+ } : {
258
+ ...e,
259
+ value: e == null ? void 0 : e.title,
260
+ label: e == null ? void 0 : e.title
261
+ }), f = x({
262
+ show: !1,
263
+ title: "菜单配置",
264
+ width: "30%"
265
+ }), M = n([]), p = n({}), c = n(null), z = w(() => {
266
+ var t;
267
+ return (t = j(A.value)) == null ? void 0 : t.filter((e) => e.title !== "系统管理" && e.title !== "平台管理");
268
+ }), ve = (t) => {
269
+ var e;
270
+ c.value = {
271
+ ...t,
272
+ rootNode: ae(z.value, t.path)
273
+ }, (t == null ? void 0 : t.level) === 0 ? _.value.splice(0) : (_.value = [{ label: "新建" }], M.value = (e = t == null ? void 0 : t.path) == null ? void 0 : e.split("/")), console.log(345, c.value), k(t);
274
+ }, C = n(""), de = async (t, e) => {
275
+ var a, o;
276
+ if (!c.value) return R.warning("请先选择菜单");
277
+ switch (C.value = t, M.value = [], E.setSubmitCurStructure(!1), p.value = I(e), t) {
278
+ case "新建":
279
+ O.setSelectTitle([]), await v.setConfigMenu(null);
280
+ break;
281
+ case "修改":
282
+ console.log("修改", t, p.value), await v.setConfigMenu(p.value), V(p.value);
283
+ break;
284
+ case "删除":
285
+ await U(p.value, t);
286
+ break;
287
+ }
288
+ await K(), f.title = `【${t === "新建" ? (a = c.value) == null ? void 0 : a.path : (o = p.value) == null ? void 0 : o.path}】菜单配置`, f.show = !0;
289
+ }, fe = async (t) => {
290
+ var e;
291
+ g.value = t, await v.setConfigMenu({
292
+ ...g.value,
293
+ path: (e = c.value) == null ? void 0 : e.path
294
+ });
295
+ }, be = n(null), he = async (t) => {
296
+ var o, s, r, l, i;
297
+ v.setButtonTriggerType(t === "弹窗结构" ? "dialogConfig" : "contentConfig");
298
+ let e;
299
+ (o = g.value) != null && o.subMenus && ((s = g.value) == null ? void 0 : s.subMenus.length) > 0 && (e = (r = M.value) == null ? void 0 : r.map((u) => ({
300
+ value: u
301
+ })), e.unshift({
302
+ value: (l = p.value) == null ? void 0 : l.title
303
+ }));
304
+ let a;
305
+ C.value === "新建" ? a = {
306
+ ...g.value,
307
+ path: (i = c.value) == null ? void 0 : i.path
308
+ } : C.value === "修改" && (a = D.value), await v.setConfigMenu(a), O.setSelectTitle(e), E.setIsEdit("edit");
309
+ }, k = async (t) => {
310
+ var a, o, s, r, l, i;
311
+ const e = await J({
312
+ key: {
313
+ type: "menuConfigData",
314
+ systemKey: sessionStorage.getItem("systemKey"),
315
+ pageKey: T.value + "/" + (t == null ? void 0 : t.path),
316
+ tableId: ""
317
+ }
318
+ });
319
+ ((a = e == null ? void 0 : e.data) == null ? void 0 : a.code) === 200 && (o = e.data) != null && o.result && (y.value = ((r = (s = e.data) == null ? void 0 : s.result) == null ? void 0 : r.length) > 0 ? (i = (l = e.data) == null ? void 0 : l.result) == null ? void 0 : i.map((u) => {
320
+ var S;
321
+ return {
322
+ id: u == null ? void 0 : u.id,
323
+ ...(S = u == null ? void 0 : u.value) == null ? void 0 : S.tableData
324
+ };
325
+ }) : [], console.log(123, y.value));
326
+ }, U = async (t, e) => {
327
+ var s, r;
328
+ let a, o;
329
+ e === "新增" || e === "新建" ? (a = {
330
+ key: {
331
+ type: "menuConfigData",
332
+ systemKey: sessionStorage.getItem("systemKey"),
333
+ pageKey: T.value + "/" + ((s = c.value) == null ? void 0 : s.path),
334
+ tableId: ""
335
+ },
336
+ value: {
337
+ tableData: t
338
+ }
339
+ }, o = L) : e === "编辑" || e === "修改" ? (console.log(890, t), a = {
340
+ id: t == null ? void 0 : t.id,
341
+ key: {
342
+ type: "menuConfigData",
343
+ systemKey: sessionStorage.getItem("systemKey"),
344
+ pageKey: T.value + "/" + ((r = c.value) == null ? void 0 : r.path),
345
+ tableId: ""
346
+ },
347
+ value: {
348
+ tableData: t
349
+ }
350
+ }, o = Q) : e === "删除" && (a = {
351
+ id: t.id
352
+ }, o = X), te(o, a, e).then((l) => {
353
+ (e === "新增" || e === "新建") && y.value.push({
354
+ ...t,
355
+ id: l
356
+ }), e && l && R.success(e + "成功"), k(c.value);
357
+ });
358
+ }, ye = async () => {
359
+ const t = I(se.value);
360
+ console.log("clickSubmitForm", D.value, t), await U(D.value, C.value), g.value = {}, f.show = !1, v.setCacheStructures([]), await k(c.value);
361
+ }, Ce = () => {
362
+ f.show = !1;
363
+ }, me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
364
+ __proto__: null,
365
+ beforeDialogDestroy: Ce,
366
+ buttonValue: pe,
367
+ changeTrigger: fe,
368
+ changedRow: ce,
369
+ clickNode: ve,
370
+ clickRowButton: de,
371
+ clickSubmitForm: ye,
372
+ clickTrigger: he,
373
+ dialogInfo: f,
374
+ formatFormData: V,
375
+ getTableDataAsync: k,
376
+ handleItemDataChange: ge,
377
+ inputForm: g,
378
+ menuPageData: ue,
379
+ operatingForm: be,
380
+ pageData: re,
381
+ renderFormData: H,
382
+ treeData: z
383
+ }, Symbol.toStringTag, { value: "Module" })), ke = { class: "menu-module" }, De = { class: "tree-wrap" }, Te = { class: "table-wrap" }, _e = { class: "module-dialog-default" }, we = /* @__PURE__ */ W({
384
+ __name: "index",
385
+ setup(t) {
386
+ const e = x({ ...me }), a = n(null), o = P(m), { configMenu: s } = N(o);
387
+ return $(() => {
388
+ e.formatFormData(s.value), console.log(9099, s.value), K(() => {
389
+ var r, l;
390
+ (l = a.value) == null || l.setCurrentKey((r = s.value) == null ? void 0 : r.path);
391
+ });
392
+ }), (r, l) => {
393
+ const i = F("el-tree"), u = F("el-button");
394
+ return G(), q("div", ke, [
395
+ b("div", De, [
396
+ d(i, {
397
+ ref_key: "treeRef",
398
+ ref: a,
399
+ data: e.treeData,
400
+ "expand-on-click-node": !1,
401
+ "node-key": "path",
402
+ props: { children: "children", label: "label", path: "path" },
403
+ "highlight-current": "",
404
+ "default-expand-all": "",
405
+ "check-on-click-leaf": !1,
406
+ "check-strictly": "",
407
+ onNodeClick: e.clickNode
408
+ }, null, 8, ["data", "onNodeClick"])
409
+ ]),
410
+ b("div", Te, [
411
+ d(ee, {
412
+ itemData: e.menuPageData,
413
+ changedContent: e.changedRow,
414
+ operatingForm: e.operatingForm,
415
+ onOnFormChange: e.changeTrigger,
416
+ onChange: e.handleItemDataChange,
417
+ onClickTrigger: e.clickTrigger,
418
+ onOnButtonClick: e.clickRowButton
419
+ }, null, 8, ["itemData", "changedContent", "operatingForm", "onOnFormChange", "onChange", "onClickTrigger", "onOnButtonClick"])
420
+ ]),
421
+ d(le, {
422
+ class: "module-dialog",
423
+ title: e.dialogInfo.title,
424
+ visible: e.dialogInfo.show,
425
+ width: e.dialogInfo.width,
426
+ onBeforeDestroy: e.beforeDialogDestroy
427
+ }, {
428
+ default: h(() => [
429
+ b("div", _e, [
430
+ d(oe, {
431
+ rowContents: e.renderFormData,
432
+ isEnableWrap: !1,
433
+ isEdit: !0,
434
+ onChange: e.changeTrigger,
435
+ onClickTrigger: e.clickTrigger
436
+ }, null, 8, ["rowContents", "onChange", "onClickTrigger"])
437
+ ])
438
+ ]),
439
+ footer: h(() => [
440
+ b("div", null, [
441
+ d(u, {
442
+ onClick: e.beforeDialogDestroy
443
+ }, {
444
+ default: h(() => l[0] || (l[0] = [
445
+ B("取消")
446
+ ])),
447
+ _: 1,
448
+ __: [0]
449
+ }, 8, ["onClick"]),
450
+ d(u, {
451
+ type: "primary",
452
+ onClick: e.clickSubmitForm
453
+ }, {
454
+ default: h(() => l[1] || (l[1] = [
455
+ B(" 确认 ")
456
+ ])),
457
+ _: 1,
458
+ __: [1]
459
+ }, 8, ["onClick"])
460
+ ])
461
+ ]),
462
+ _: 1
463
+ }, 8, ["title", "visible", "width", "onBeforeDestroy"])
464
+ ]);
465
+ };
466
+ }
467
+ }), Ae = /* @__PURE__ */ ne(we, [["__scopeId", "data-v-712949e2"]]);
468
+ export {
469
+ Ae as default
470
+ };
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as $, computed as F, ref as y, watch as P, createElementBlock as E, openBlock as b, createVNode as v, createElementVNode as j, withCtx as c, createTextVNode as T, toDisplayString as B, resolveComponent as k, createBlock as U, Fragment as V, renderList as z, normalizeStyle as R } from "vue";
2
- import { _ as q } from "./index.vue_vue_type_script_setup_true_lang-dRZKrDpe.js";
3
- import { d as H, u as L } from "./index-B96mvnY6.js";
4
- import { E as N } from "./menu-BjwI4sfO.js";
2
+ import { _ as q } from "./index.vue_vue_type_script_setup_true_lang-WT1bk-Ac.js";
3
+ import { d as H, u as L } from "./index-DAV1YiOv.js";
4
+ import { E as N } from "./menu-DEplmGob.js";
5
5
  import { _ as O } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
- import { S as M } from "./index-CWpNIgx-.js";
6
+ import { S as M } from "./index-DnhMKtPL.js";
7
7
  import { S as x } from "./index-BHtNKL1L.js";
8
8
  const W = { class: "avatar-model-wrap" }, D = /* @__PURE__ */ $({
9
9
  __name: "index",
@@ -1,4 +1,4 @@
1
- import { h as A } from "./menu-BjwI4sfO.js";
1
+ import { h as A } from "./menu-DEplmGob.js";
2
2
  const w = /"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/, O = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/, $ = /^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;
3
3
  function h(r, t) {
4
4
  if (r === "__proto__" || r === "constructor" && t && typeof t == "object" && "prototype" in t) {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),f=require("./menu-CH06rBlw.cjs"),x=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),S=e.defineComponent({__name:"menuItem",props:{menuList:{type:Array,default:()=>[]}},emits:["clickMenu","openMenu","closeMenu"],setup(c,{emit:u}){const l=u,s=n=>{l("clickMenu",n)},a=n=>{l("openMenu",n)},r=n=>{l("closeMenu",n)};return e.onMounted(()=>{}),(n,k)=>{const p=e.resolveComponent("MenuItem",!0),d=e.resolveComponent("el-sub-menu"),m=e.resolveComponent("el-menu-item");return e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.menuList,t=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.show&&t.children&&t.children.length>0?(e.openBlock(),e.createBlock(d,{index:t.path,key:t.path},{title:e.withCtx(()=>[e.renderSlot(n.$slots,"title",{menu:t})]),default:e.withCtx(()=>[e.createVNode(p,{menuList:t.children,onClickMenu:s,onOpenMenu:a,onCloseMenu:r},e.createSlots({_:2},[e.renderList(n.$slots,(h,i)=>({name:i,fn:e.withCtx(_=>[e.renderSlot(n.$slots,i,e.mergeProps({ref_for:!0},_))])}))]),1032,["menuList"])]),_:2},1032,["index"])):t.show?(e.openBlock(),e.createBlock(m,{index:t.path,key:t.path,onClick:h=>s(t)},{title:e.withCtx(()=>[e.renderSlot(n.$slots,"title",{menu:t})]),_:2},1032,["index","onClick"])):e.createCommentVNode("",!0)],64))),256)}}}),w=e.defineComponent({__name:"index",props:{menuList:{type:Array,default:()=>[]},mode:{type:String,default:"vertical"}},emits:["clickMenu","openMenu","closeMenu"],setup(c,{emit:u}){const l=f.useMenuState(),{activeMenuPath:s,activeMenuOpenPaths:a}=f.storeToRefs(l),r=u,n=t=>{r("clickMenu",t)},k=t=>{r("openMenu",t)},p=t=>{r("closeMenu",t)},d=e.computed(()=>s.value),m=e.computed(()=>a.value);return(t,h)=>{const i=e.resolveComponent("el-sub-menu"),_=e.resolveComponent("el-menu-item"),C=e.resolveComponent("el-menu");return e.openBlock(),e.createBlock(C,{class:"menu-wrap",mode:c.mode,"default-active":d.value,"default-openeds":m.value,"unique-opened":!0,"collapse-transition":!1,"popper-offset":12,onOpen:k,onClose:p},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.menuList,o=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[o.show&&o.children&&o.children.length>0?(e.openBlock(),e.createBlock(i,{index:o.path,key:o.path},{title:e.withCtx(()=>[e.renderSlot(t.$slots,"title",{menu:o},void 0,!0)]),default:e.withCtx(()=>[e.createVNode(S,{menuList:o.children,onClickMenu:n},e.createSlots({_:2},[e.renderList(t.$slots,(v,M)=>({name:M,fn:e.withCtx(B=>[e.renderSlot(t.$slots,M,e.mergeProps({ref_for:!0},B),void 0,!0)])}))]),1032,["menuList"])]),_:2},1032,["index"])):o.show?(e.openBlock(),e.createBlock(_,{index:o.path,key:o.path,onClick:v=>n(o)},{title:e.withCtx(()=>[e.renderSlot(t.$slots,"title",{menu:o},void 0,!0)]),_:2},1032,["index","onClick"])):e.createCommentVNode("",!0)],64))),256))]),_:3},8,["mode","default-active","default-openeds"])}}}),g=x._export_sfc(w,[["__scopeId","data-v-04f811b6"]]);exports.default=g;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),f=require("./menu-B2CHVN4m.cjs"),x=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),S=e.defineComponent({__name:"menuItem",props:{menuList:{type:Array,default:()=>[]}},emits:["clickMenu","openMenu","closeMenu"],setup(c,{emit:u}){const l=u,s=n=>{l("clickMenu",n)},a=n=>{l("openMenu",n)},r=n=>{l("closeMenu",n)};return e.onMounted(()=>{}),(n,k)=>{const p=e.resolveComponent("MenuItem",!0),d=e.resolveComponent("el-sub-menu"),m=e.resolveComponent("el-menu-item");return e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.menuList,t=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.show&&t.children&&t.children.length>0?(e.openBlock(),e.createBlock(d,{index:t.path,key:t.path},{title:e.withCtx(()=>[e.renderSlot(n.$slots,"title",{menu:t})]),default:e.withCtx(()=>[e.createVNode(p,{menuList:t.children,onClickMenu:s,onOpenMenu:a,onCloseMenu:r},e.createSlots({_:2},[e.renderList(n.$slots,(h,i)=>({name:i,fn:e.withCtx(_=>[e.renderSlot(n.$slots,i,e.mergeProps({ref_for:!0},_))])}))]),1032,["menuList"])]),_:2},1032,["index"])):t.show?(e.openBlock(),e.createBlock(m,{index:t.path,key:t.path,onClick:h=>s(t)},{title:e.withCtx(()=>[e.renderSlot(n.$slots,"title",{menu:t})]),_:2},1032,["index","onClick"])):e.createCommentVNode("",!0)],64))),256)}}}),w=e.defineComponent({__name:"index",props:{menuList:{type:Array,default:()=>[]},mode:{type:String,default:"vertical"}},emits:["clickMenu","openMenu","closeMenu"],setup(c,{emit:u}){const l=f.useMenuState(),{activeMenuPath:s,activeMenuOpenPaths:a}=f.storeToRefs(l),r=u,n=t=>{r("clickMenu",t)},k=t=>{r("openMenu",t)},p=t=>{r("closeMenu",t)},d=e.computed(()=>s.value),m=e.computed(()=>a.value);return(t,h)=>{const i=e.resolveComponent("el-sub-menu"),_=e.resolveComponent("el-menu-item"),C=e.resolveComponent("el-menu");return e.openBlock(),e.createBlock(C,{class:"menu-wrap",mode:c.mode,"default-active":d.value,"default-openeds":m.value,"unique-opened":!0,"collapse-transition":!1,"popper-offset":12,onOpen:k,onClose:p},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.menuList,o=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[o.show&&o.children&&o.children.length>0?(e.openBlock(),e.createBlock(i,{index:o.path,key:o.path},{title:e.withCtx(()=>[e.renderSlot(t.$slots,"title",{menu:o},void 0,!0)]),default:e.withCtx(()=>[e.createVNode(S,{menuList:o.children,onClickMenu:n},e.createSlots({_:2},[e.renderList(t.$slots,(v,M)=>({name:M,fn:e.withCtx(B=>[e.renderSlot(t.$slots,M,e.mergeProps({ref_for:!0},B),void 0,!0)])}))]),1032,["menuList"])]),_:2},1032,["index"])):o.show?(e.openBlock(),e.createBlock(_,{index:o.path,key:o.path,onClick:v=>n(o)},{title:e.withCtx(()=>[e.renderSlot(t.$slots,"title",{menu:o},void 0,!0)]),_:2},1032,["index","onClick"])):e.createCommentVNode("",!0)],64))),256))]),_:3},8,["mode","default-active","default-openeds"])}}}),g=x._export_sfc(w,[["__scopeId","data-v-04f811b6"]]);exports.default=g;