ss-component-new 1.2.17 → 1.2.18

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 (86) hide show
  1. package/dist/{animationData-Qb9CDU4l.js → animationData-CYVo4cF3.js} +3 -3
  2. package/dist/{animationData-xvLbS7TE.cjs → animationData-DTnmVl43.cjs} +1 -1
  3. package/dist/{array-DkjKZF8I.js → array-D5WfaBtT.js} +1 -1
  4. package/dist/{array-CAYNJHAO.cjs → array-kfBiN1QA.cjs} +1 -1
  5. package/dist/{index-D8_S-Iuf.js → index-8U0_G_0R.js} +18 -18
  6. package/dist/{index-CpMQC4x1.js → index-9RCVRjgc.js} +1 -1
  7. package/dist/{index-CU44LzPf.js → index-BGnIpBtJ.js} +178 -175
  8. package/dist/{index--cSKDs-m.js → index-BHHFDjsi.js} +1133 -1126
  9. package/dist/{index-00LBNRcE.js → index-BgJ164SD.js} +1 -1
  10. package/dist/{index-B2NWkIpp.cjs → index-BiNsOjcC.cjs} +1 -1
  11. package/dist/{index-DxQj6FZE.js → index-Bj3QBLNZ.js} +1 -1
  12. package/dist/{index-AmqN11m8.cjs → index-Bjp7vtmT.cjs} +1 -1
  13. package/dist/{index-Bp9hPbvn.js → index-BoD05_J0.js} +1 -1
  14. package/dist/{index-JDMB7hc0.cjs → index-BpyDAfgJ.cjs} +1 -1
  15. package/dist/{index-B_pmpVvZ.js → index-BrdP9HC4.js} +2 -2
  16. package/dist/{index-DbiyWVzT.js → index-BsEOhglN.js} +5 -5
  17. package/dist/{index-DNgeBOyL.js → index-C0M4a5a7.js} +2 -2
  18. package/dist/{index-Bx7n6UDA.js → index-C8gXNO36.js} +2 -2
  19. package/dist/{index-CTbiBChu.cjs → index-CEsRU7PI.cjs} +1 -1
  20. package/dist/{index-CSrtwaZ6.cjs → index-CGGQf1Fy.cjs} +1 -1
  21. package/dist/{index-CBO4shBu.js → index-CQBynyM7.js} +3 -3
  22. package/dist/{index-lp8Qp4lU.cjs → index-CTd5yE7g.cjs} +1 -1
  23. package/dist/{index-DbmOtV2k.js → index-CgEp32Ha.js} +2 -2
  24. package/dist/{index-BZtXRbEZ.cjs → index-CgXgl7xg.cjs} +1 -1
  25. package/dist/{index-DORfWfLc.cjs → index-Cl1eN72c.cjs} +1 -1
  26. package/dist/{index-nldJ9Wpt.cjs → index-CoQXoOC5.cjs} +1 -1
  27. package/dist/{index-BGLsERtf.js → index-Cz9V1kg-.js} +5 -5
  28. package/dist/{index-Blj5w8sE.cjs → index-D51ekpXx.cjs} +1 -1
  29. package/dist/{index-BLdyKmTu.cjs → index-D7Y91W7M.cjs} +1 -1
  30. package/dist/{index-BgbkehBL.js → index-D9BKoQ6f.js} +3 -3
  31. package/dist/{index-C__Dwz_q.cjs → index-D9D2Wuf4.cjs} +1 -1
  32. package/dist/{index-C3pD8VjA.js → index-DFH8aI2Y.js} +1 -1
  33. package/dist/{index-kJ1GNgTl.cjs → index-DKo5-PGs.cjs} +1 -1
  34. package/dist/{index-Cki2sYVE.js → index-DLRyzLvk.js} +5 -5
  35. package/dist/index-DWCqPPU9.cjs +1 -0
  36. package/dist/{index-Bx9yQVlT.js → index-DYT7O5SY.js} +1 -1
  37. package/dist/{index-Dm9I-MGk.cjs → index-Djrsmf4o.cjs} +1 -1
  38. package/dist/{index-DwDRdcnb.cjs → index-DuE6CA_5.cjs} +1 -1
  39. package/dist/{index-snrR_lCj.cjs → index-DuX7JuNX.cjs} +1 -1
  40. package/dist/{index-DZMLa6sl.cjs → index-DviC5Mes.cjs} +1 -1
  41. package/dist/{index-DEwxTEA3.cjs → index-DxERe_o8.cjs} +1 -1
  42. package/dist/{index-DZ9voZQn.js → index-JqoJqpvd.js} +5 -5
  43. package/dist/{index-ChL8bsns.cjs → index-L_8m2Edi.cjs} +1 -1
  44. package/dist/{index-DXPIuRqL.js → index-PYM4eM9f.js} +2 -2
  45. package/dist/{index-UMRAFAXe.js → index-RSZafNJV.js} +2 -2
  46. package/dist/{index-Br3NE3cv.cjs → index-Upb8vZrJ.cjs} +1 -1
  47. package/dist/{index-JQmSnrnX.js → index-WkhOFQKy.js} +1 -1
  48. package/dist/{index-HNf73U8z.cjs → index-aTTU_ja_.cjs} +1 -1
  49. package/dist/{index-C-imeITi.cjs → index-brsfUqkV.cjs} +1 -1
  50. package/dist/{index-Dg_l3ZIM.cjs → index-fTU6D0EV.cjs} +1 -1
  51. package/dist/{index-Byjao__A.js → index-fcgKi8rF.js} +10 -10
  52. package/dist/{index-DvEGoB_c.cjs → index-loXBOUd5.cjs} +1 -1
  53. package/dist/{index-ClK5MJAc.cjs → index-oKm_bMcI.cjs} +1 -1
  54. package/dist/{index-DmYI7jW4.js → index-pDGtp9Y4.js} +1 -1
  55. package/dist/{index-BU242fNk.js → index-t-iLIRPH.js} +2 -2
  56. package/dist/{index-CVHse7As.js → index-uzUGa1I0.js} +2 -2
  57. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CmdURFaC.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DkvEh0kU.js} +1 -1
  58. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-0YQ6oGXD.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DyCjVGK4.cjs} +1 -1
  59. package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-pzTuaxv5.cjs → index.vue_vue_type_style_index_0_scoped_92477073_lang-CgRoTnM4.cjs} +1 -1
  60. package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-Bwe93Xrr.js → index.vue_vue_type_style_index_0_scoped_92477073_lang-DDuO2RJ1.js} +5 -5
  61. package/dist/{index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-6VezR8np.cjs → index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-BimjDwOI.cjs} +2 -2
  62. package/dist/{index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-q9M1UN39.js → index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-Cc_BYWMl.js} +14 -11
  63. package/dist/{index.vue_vue_type_style_index_1_lang-Bc10b8Mi.cjs → index.vue_vue_type_style_index_1_lang-B-382mSr.cjs} +1 -1
  64. package/dist/{index.vue_vue_type_style_index_1_lang-BDQcys0d.js → index.vue_vue_type_style_index_1_lang-CnzkLjVf.js} +2 -2
  65. package/dist/index.vue_vue_type_style_index_1_lang-YnBuuwY6.cjs +32 -0
  66. package/dist/{index.vue_vue_type_style_index_1_lang-DtRssJWg.js → index.vue_vue_type_style_index_1_lang-vU1VQMfs.js} +1431 -1384
  67. package/dist/{main-D8Dh7CUS.js → main-Dk1H52zm.js} +4 -4
  68. package/dist/{main-BpF0-mlu.cjs → main-hA5knk3Y.cjs} +1 -1
  69. package/dist/ss-component.cjs +1 -1
  70. package/dist/ss-component.css +1 -1
  71. package/dist/ss-component.js +10 -10
  72. package/dist/ss-component2.cjs +1 -1
  73. package/dist/ss-component2.js +11 -11
  74. package/dist/{threeModel-B6Q20_0g.js → threeModel-7FtoCWUL.js} +2 -2
  75. package/dist/{threeModel-WXskZd6Q.cjs → threeModel-B8ayOk4L.cjs} +1 -1
  76. package/dist/{threeSceneView-BFcPTomD.cjs → threeSceneView-DpIfHcs5.cjs} +1 -1
  77. package/dist/{threeSceneView-YnHu8FUZ.js → threeSceneView-kfQrdRjz.js} +7 -7
  78. package/dist/{threeSceneViewForCPMPIP-fG4x8LLj.cjs → threeSceneViewForCPMPIP-BTLpKMe4.cjs} +1 -1
  79. package/dist/{threeSceneViewForCPMPIP-p2-Ce2xO.js → threeSceneViewForCPMPIP-Cz1ay3aa.js} +6 -6
  80. package/dist/{threeViewerHost-CDEn7FfB.js → threeViewerHost-CXQi7gV5.js} +3 -3
  81. package/dist/{threeViewerHost-rcqedja4.cjs → threeViewerHost-Da6cfLt7.cjs} +1 -1
  82. package/dist/{useRayCaster-CJaAi3t4.js → useRayCaster-Ca7t2A9k.js} +1 -1
  83. package/dist/{useRayCaster-Cz13xqg3.cjs → useRayCaster-x0qmWO-B.cjs} +1 -1
  84. package/package.json +1 -1
  85. package/dist/index-C8W8SOHQ.cjs +0 -1
  86. package/dist/index.vue_vue_type_style_index_1_lang-0RaoPzBs.cjs +0 -32
@@ -1 +1 @@
1
- "use strict";const g=require("vue"),O=require("./index.vue_vue_type_style_index_1_lang-0RaoPzBs.cjs"),i=require("./index-1z9RrjZc.cjs"),pe=require("./index-Dm9I-MGk.cjs"),A=O.useModelComp(i.pinia),m=pe.useUnit(i.pinia),I=O.useMenuState(i.pinia),{menus:ee,configMenu:B,activeMenuPath:q,cacheStructures:E}=i.storeToRefs(I),j=g.ref(!1),te=g.computed(()=>{var e,t;return[{key:"extraButton",contents:[]},{key:"rowButton",contents:[{label:"修改"}]},{key:"header",contents:[{label:"菜单名称",prop:"title",isFormColHidden:!1},{label:"菜单类型",prop:"menuType",formType:"select",options:[{label:"系统菜单",value:"集团"},{label:"公司",value:"公司"}],isTableColHidden:!1,isFormColHidden:!0},{label:"操作"}]},{key:"tableContents",contents:(t=(e=i.cloneDeep(ee.value))==null?void 0:e.map(l=>({...l,menuType:"系统菜单"})))==null?void 0:t.filter(l=>l.title!=="系统管理"&&l.title!=="平台管理")}]}),$=g.ref([]),H=g.ref([{label:"新建"}]),fe=g.computed(()=>[{key:"extraButton",contents:H.value},{key:"rowButton",contents:[{label:"修改"},{label:"删除"}]},{key:"header",contents:[{label:"操作类型",prop:"operateType",formType:"select",options:[{label:"新增",value:"新增"},{label:"编辑",value:"编辑"},{label:"删除",value:"删除"}],value:""},{label:"操作图标",prop:"operateIcon",formType:"inputPopover",value:""},{label:"操作触发事件",prop:"trigger",formType:"select",options:[{label:"弹出弹窗",value:"openDialog"}],value:"openDialog"},{label:"配置一:",prop:"dialogConfig",formType:"button",value:"弹窗内容",isTableColHidden:!0},{label:"配置二:",prop:"contentConfig",formType:"button",value:"模块内容",isTableColHidden:!0},{label:"继承配置:",prop:"allowInherit",formType:"radio",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!1,isTableColHidden:!0},{label:"操作"}]},{key:"tableContents",contents:$.value}]),J=g.ref([]),k=g.ref({}),de=g.ref({}),_=g.ref([{label:"菜单",prop:"path",isFormColHidden:!0,value:""},{label:"操作类型:",prop:"operateType",type:"select",contents:[{label:"新增",value:"新增"},{label:"编辑",value:"编辑"},{label:"删除",value:"删除"}],value:""},{label:"操作图标:",prop:"operateIcon",type:"inputPopover",value:""},{label:"操作触发事件:",prop:"trigger",type:"select",contents:[{label:"弹出弹窗",value:"openDialog"}],value:"openDialog"},{label:"生成的菜单图标:",prop:"menuIcon",type:"inputPopover",value:""},{label:"配置一:",prop:"dialogConfig",type:"button",value:"操作触发的弹窗结构"},{label:"配置二:",prop:"contentConfig",type:"button",value:"操作生成的模块结构",isFormColHidden:!1},{label:"",prop:"structureIds",type:"input",value:[],isFormColHidden:!0},{label:"继承配置:",prop:"allowInherit",type:"radio",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0}]),R=e=>{var t;J.value=e?(t=_.value)==null?void 0:t.map(l=>l.prop==="dialogConfig"||l.prop==="contentConfig"||l.prop==="trigger"?l:{...l,value:e?e[l==null?void 0:l.prop]:""}):_.value},ie=g.ref([{label:"查询"},{label:"重置"}]),ge=async()=>{},le=e=>e.map(t=>t.childMenus&&t.childMenus.length>0?{...t,value:t==null?void 0:t.title,label:t==null?void 0:t.title,children:le(t.childMenus)}:{...t,value:t==null?void 0:t.title,label:t==null?void 0:t.title}),v=g.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),U=g.ref([]),C=g.ref({}),h=g.ref(null),ae=g.ref([]),oe=g.computed(()=>{var e;return(e=le(ee.value))==null?void 0:e.filter(t=>t.title!=="系统管理"&&t.title!=="平台管理")}),ne=async e=>{var l,u,n,c;const t=await i.getInsofDataApi({key:{type:"subStructure",systemKey:sessionStorage.getItem("systemKey"),pageKey:e,version:1}});if(((l=t==null?void 0:t.data)==null?void 0:l.code)===200&&(u=t.data)!=null&&u.result){const r=(c=(n=t.data)==null?void 0:n.result)==null?void 0:c.map(p=>{var f;return{id:p==null?void 0:p.id,...(f=p==null?void 0:p.value)==null?void 0:f.pageData}});ae.value=r,I.setCacheStructures({key:"contentConfig",data:r})}},ve=async e=>{var t;j.value=!0,h.value={...e,rootNode:i.findRootNodeByPath(oe.value,e.path)},I.setCacheStructures(null),(e==null?void 0:e.level)===0?H.value.splice(0):(H.value=[{label:"新建"}],U.value=(t=e==null?void 0:e.path)==null?void 0:t.split("/")),await I.setConfigMenu(null),await ne(e==null?void 0:e.path),await F(e)},ye=e=>{switch(e){case"新建":return"create";case"修改":return"update";case"删除":return"delete"}},be=async(e,t)=>{var l,u;if(!h.value)return i.ElMessage.warning("请先选择菜单");if(v.type=ye(e),U.value=[],A.setSubmitCurStructure(!1),m.setSelectTitle([]),C.value=i.cloneDeep(t),v.type!=="delete"){switch(v.type){case"create":R(null),await I.setConfigMenu(null);break;case"update":R(C.value),await I.setConfigMenu(C.value),console.log("clickRowButton",C.value);break}await g.nextTick(),v.title=`【${v.type==="create"?(l=h.value)==null?void 0:l.path:(u=C.value)==null?void 0:u.path}】菜单配置${e}`,v.show=!0}else await re(C.value,v.type)},ue=g.ref(!0),he=async e=>{var t;k.value=e,await I.setConfigMenu({...k.value,path:(t=h.value)==null?void 0:t.path}),ue.value=(e==null?void 0:e.operateType)!=="新增"};g.watch(()=>ue.value,async e=>{var t;await g.nextTick(),J.value=(t=_.value)==null?void 0:t.map(l=>l.prop==="dialogConfig"||l.prop==="contentConfig"||l.prop==="trigger"?l.prop==="contentConfig"?{...l,isFormColHidden:e}:l:{...l,value:k.value?k.value[l==null?void 0:l.prop]:""})},{immediate:!0,deep:!0});const Ce=g.ref(null),Ie=async(e,t)=>{var r,p,f,s,b;if(v.type==="create"){const a=(p=(r=E.value)==null?void 0:r.filter(d=>(d==null?void 0:d.key)===t))==null?void 0:p.flatMap(d=>d==null?void 0:d.data);A.setItemData(a),I.setCacheStructures({key:t,data:a})}if(console.log("getTriggerStructures1",e==null?void 0:e.structureIds,t),!(e!=null&&e.structureIds)||((f=e==null?void 0:e.structureIds)==null?void 0:f.length)===0)return;const l=(b=(s=e==null?void 0:e.structureIds)==null?void 0:s.filter(a=>(a==null?void 0:a.key)===t))==null?void 0:b.map(a=>a==null?void 0:a.id);let u=l==null?void 0:l.map(a=>{if(a)return i.getInsofDataApi({id:a})});const n=await Promise.all(u),c=n==null?void 0:n.every(a=>{var d;return((d=a==null?void 0:a.data)==null?void 0:d.code)===200});if(console.log("getTriggerStructures2",e==null?void 0:e.structureIds,t,n),c&&(n==null?void 0:n.length)>0){const a=n==null?void 0:n.map(d=>{var T,M,w,N,P,o,K;return{id:(w=(M=(T=d==null?void 0:d.data)==null?void 0:T.result)==null?void 0:M[0])==null?void 0:w.id,...(K=(o=(P=(N=d==null?void 0:d.data)==null?void 0:N.result)==null?void 0:P[0])==null?void 0:o.value)==null?void 0:K.pageData}});A.setItemData(a),I.setCacheStructures({key:t,data:a})}},ke=async e=>{var n,c,r,p,f;const t=e==="操作触发的弹窗结构"?"dialogConfig":"contentConfig";I.setButtonTriggerType(t),await Ie(C.value,t);let l;(n=k.value)!=null&&n.subMenus&&((c=k.value)==null?void 0:c.subMenus.length)>0&&(l=(r=U.value)==null?void 0:r.map(s=>({value:s})),l.unshift({value:(p=C.value)==null?void 0:p.title}));let u;v.type==="create"?u={...k.value,path:(f=h.value)==null?void 0:f.path}:v.type==="update"&&(u=B.value),await I.setConfigMenu(u),m.setSelectTitle(l),A.setIsEdit("edit")},F=async e=>{var l,u,n,c,r,p;const t=await i.getInsofDataApi({key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:q.value+"/"+(e==null?void 0:e.path),tableId:""}});((l=t==null?void 0:t.data)==null?void 0:l.code)===200&&(u=t.data)!=null&&u.result&&($.value=((c=(n=t.data)==null?void 0:n.result)==null?void 0:c.length)>0?(p=(r=t.data)==null?void 0:r.result)==null?void 0:p.map(f=>{var s;return{id:f==null?void 0:f.id,...(s=f==null?void 0:f.value)==null?void 0:s.tableData}}):[]),j.value=!1},x=async(e,t,l="contentConfig")=>{var u,n,c,r,p,f;try{let s,b;t==="create"?(s={key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:q.value+"/"+((u=h.value)==null?void 0:u.path),type:"structure",rootNodePath:(c=(n=h.value)==null?void 0:n.rootNode)==null?void 0:c.path,structureBelong:l,parentTable:"",version:1},value:{pageData:e}},b=i.createInsofDataApi):t==="update"?(s={id:e==null?void 0:e.id,value:{pageData:e}},b=i.updateInsofDataApi):t==="delete"&&(s={id:e},b=i.deleteInsofDataApi);const a=await b(s);if(((r=a==null?void 0:a.data)==null?void 0:r.code)!==200)throw i.ElMessage.error("保存响应失败"),new Error("保存响应失败");const d=t==="create"?(p=a==null?void 0:a.data)==null?void 0:p.result:e==null?void 0:e.id;return{status:((f=a==null?void 0:a.data)==null?void 0:f.code)===200,data:{id:d,key:l}}}catch{i.ElMessage.error("保存响应失败")}},Y=(e,t)=>{var f,s,b;const l=(f=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:f.map(a=>a==null?void 0:a.id),u=t.filter(a=>!(l!=null&&l.includes(a))),n=l==null?void 0:l.filter(a=>!t.includes(a));let c=null,r=null,p=null;return c=[...u,...n].filter(a=>a),r=(s=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:s.filter(a=>!(a!=null&&a.id)),p=(b=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:b.filter(a=>a==null?void 0:a.id).filter(a=>Object.keys(a).length>1),{deleteIds:c,createComps:r,updateComps:p}},Z=(e,t)=>{var u,n,c,r,p,f;let l=[];return((u=t==null?void 0:t.deleteIds)==null?void 0:u.length)>0&&((n=t==null?void 0:t.deleteIds)==null||n.forEach(s=>{l.push(x(s,"delete",e))})),((c=t==null?void 0:t.createComps)==null?void 0:c.length)>0&&((r=t==null?void 0:t.createComps)==null||r.forEach(s=>{l.push(x(s,"create",e))})),((p=t==null?void 0:t.updateComps)==null?void 0:p.length)>0&&((f=t==null?void 0:t.updateComps)==null||f.forEach(s=>{s!=null&&s.id&&l.push(x(s,"update",e))})),l},Te=e=>{const t=new Map;return e.forEach(l=>{t.set(l.id,l)}),Array.from(t.values())},Me=async(e,t)=>{var l,u,n,c,r,p,f;try{const s=e==null?void 0:e.filter(o=>(o==null?void 0:o.key)==="contentConfig"),b=e==null?void 0:e.filter(o=>(o==null?void 0:o.key)==="dialogConfig");await g.nextTick();const a=(n=(u=(l=E.value)==null?void 0:l.filter(o=>(o==null?void 0:o.key)==="dialogConfig"))==null?void 0:u.flatMap(o=>o==null?void 0:o.data))==null?void 0:n.map(o=>o==null?void 0:o.id);let d=(p=(r=(c=E.value)==null?void 0:c.filter(o=>(o==null?void 0:o.key)==="contentConfig"))==null?void 0:r.flatMap(o=>o==null?void 0:o.data))==null?void 0:p.map(o=>o==null?void 0:o.id);d=[...d,...(f=ae.value)==null?void 0:f.map(o=>o==null?void 0:o.id)];const T=Y(b,a),M=Y(s,d),w=Z("dialogConfig",T),N=Z("contentConfig",M),P=[...w,...N];await Promise.all(P).then(o=>{var z,G,L,V,Q,W,X;if(!(o==null?void 0:o.every(y=>y.status)))return;let S=(z=o==null?void 0:o.flatMap(y=>y==null?void 0:y.data))==null?void 0:z.filter(y=>(y==null?void 0:y.id)!==null&&(y==null?void 0:y.id)!==void 0);if(((G=T==null?void 0:T.updateComps)==null?void 0:G.length)===0&&v.type==="update"){const y=(V=(L=C.value)==null?void 0:L.structureIds)==null?void 0:V.filter(D=>(D==null?void 0:D.key)==="dialogConfig");S=[...S,...y]}if(((Q=M==null?void 0:M.updateComps)==null?void 0:Q.length)===0&&v.type==="update"){const y=(X=(W=C.value)==null?void 0:W.structureIds)==null?void 0:X.filter(D=>(D==null?void 0:D.key)==="contentConfig");S=[...S,...y]}const ce=Te(S);re({...t,isNotInitial:!0,structureIds:ce},v.type)}).catch(o=>{i.ElMessage.error(o)})}catch(s){throw i.ElMessage.error(s),new Error(s)}},re=async(e,t)=>{var n,c;let l,u;t==="create"?(l={key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:q.value+"/"+((n=h.value)==null?void 0:n.path),tableId:"",rootNodePath:e==null?void 0:e.rootNodePath},value:{tableData:e}},u=i.createInsofDataApi):t==="update"?(l={id:e==null?void 0:e.id,value:{tableData:e}},u=i.updateInsofDataApi):t==="delete"&&(l={ids:[e.id,...(c=e==null?void 0:e.structureIds)==null?void 0:c.map(r=>r.id)]},u=i.batchDeleteInsofDataApi),O.handleSubmitAsync(u,l,t).then(r=>{t==="create"&&$.value.push({...e,id:r}),t&&r&&i.ElMessage.success("响应成功"),F(h.value)})},De=async()=>{var l,u,n,c,r;const e=JSON.parse(i.cloneDeep(JSON.stringify(E.value)));await g.nextTick();const t=v.type==="create"?{...B.value,rootNodePath:(u=(l=h.value)==null?void 0:l.rootNode)==null?void 0:u.path}:{...B.value,rootNodePath:(c=(n=h.value)==null?void 0:n.rootNode)==null?void 0:c.path,id:(r=C.value)==null?void 0:r.id};await Me(e,t),k.value={},v.show=!1,await F(h.value)},Se=()=>{v.show=!1},se={comp:"Group",name:"/平台管理/菜单管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:te.value,name:""}]}]},we=Object.freeze(Object.defineProperty({__proto__:null,beforeDialogDestroy:Se,buttonValue:ie,changeTrigger:he,changedRow:de,clickNodeTrigger:ve,clickRowButton:be,clickSubmitForm:De,clickTrigger:ke,dialogInfo:v,formatFormData:R,getInitialSubStructure:ne,getTableDataAsync:F,handleItemDataChange:ge,inputForm:k,menuPageData:fe,operatingForm:Ce,pageData:te,renderFormData:J,tableLoading:j,tempMenuPageData:se,treeData:oe},Symbol.toStringTag,{value:"Module"}));exports.State=we;exports.tempMenuPageData=se;
1
+ "use strict";const g=require("vue"),O=require("./index.vue_vue_type_style_index_1_lang-YnBuuwY6.cjs"),i=require("./index-1z9RrjZc.cjs"),pe=require("./index-Djrsmf4o.cjs"),A=O.useModelComp(i.pinia),m=pe.useUnit(i.pinia),I=O.useMenuState(i.pinia),{menus:ee,configMenu:B,activeMenuPath:q,cacheStructures:E}=i.storeToRefs(I),j=g.ref(!1),te=g.computed(()=>{var e,t;return[{key:"extraButton",contents:[]},{key:"rowButton",contents:[{label:"修改"}]},{key:"header",contents:[{label:"菜单名称",prop:"title",isFormColHidden:!1},{label:"菜单类型",prop:"menuType",formType:"select",options:[{label:"系统菜单",value:"集团"},{label:"公司",value:"公司"}],isTableColHidden:!1,isFormColHidden:!0},{label:"操作"}]},{key:"tableContents",contents:(t=(e=i.cloneDeep(ee.value))==null?void 0:e.map(l=>({...l,menuType:"系统菜单"})))==null?void 0:t.filter(l=>l.title!=="系统管理"&&l.title!=="平台管理")}]}),$=g.ref([]),H=g.ref([{label:"新建"}]),fe=g.computed(()=>[{key:"extraButton",contents:H.value},{key:"rowButton",contents:[{label:"修改"},{label:"删除"}]},{key:"header",contents:[{label:"操作类型",prop:"operateType",formType:"select",options:[{label:"新增",value:"新增"},{label:"编辑",value:"编辑"},{label:"删除",value:"删除"}],value:""},{label:"操作图标",prop:"operateIcon",formType:"inputPopover",value:""},{label:"操作触发事件",prop:"trigger",formType:"select",options:[{label:"弹出弹窗",value:"openDialog"}],value:"openDialog"},{label:"配置一:",prop:"dialogConfig",formType:"button",value:"弹窗内容",isTableColHidden:!0},{label:"配置二:",prop:"contentConfig",formType:"button",value:"模块内容",isTableColHidden:!0},{label:"继承配置:",prop:"allowInherit",formType:"radio",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!1,isTableColHidden:!0},{label:"操作"}]},{key:"tableContents",contents:$.value}]),J=g.ref([]),k=g.ref({}),de=g.ref({}),_=g.ref([{label:"菜单",prop:"path",isFormColHidden:!0,value:""},{label:"操作类型:",prop:"operateType",type:"select",contents:[{label:"新增",value:"新增"},{label:"编辑",value:"编辑"},{label:"删除",value:"删除"}],value:""},{label:"操作图标:",prop:"operateIcon",type:"inputPopover",value:""},{label:"操作触发事件:",prop:"trigger",type:"select",contents:[{label:"弹出弹窗",value:"openDialog"}],value:"openDialog"},{label:"生成的菜单图标:",prop:"menuIcon",type:"inputPopover",value:""},{label:"配置一:",prop:"dialogConfig",type:"button",value:"操作触发的弹窗结构"},{label:"配置二:",prop:"contentConfig",type:"button",value:"操作生成的模块结构",isFormColHidden:!1},{label:"",prop:"structureIds",type:"input",value:[],isFormColHidden:!0},{label:"继承配置:",prop:"allowInherit",type:"radio",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0}]),R=e=>{var t;J.value=e?(t=_.value)==null?void 0:t.map(l=>l.prop==="dialogConfig"||l.prop==="contentConfig"||l.prop==="trigger"?l:{...l,value:e?e[l==null?void 0:l.prop]:""}):_.value},ie=g.ref([{label:"查询"},{label:"重置"}]),ge=async()=>{},le=e=>e.map(t=>t.childMenus&&t.childMenus.length>0?{...t,value:t==null?void 0:t.title,label:t==null?void 0:t.title,children:le(t.childMenus)}:{...t,value:t==null?void 0:t.title,label:t==null?void 0:t.title}),v=g.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),U=g.ref([]),C=g.ref({}),h=g.ref(null),ae=g.ref([]),oe=g.computed(()=>{var e;return(e=le(ee.value))==null?void 0:e.filter(t=>t.title!=="系统管理"&&t.title!=="平台管理")}),ne=async e=>{var l,u,n,c;const t=await i.getInsofDataApi({key:{type:"subStructure",systemKey:sessionStorage.getItem("systemKey"),pageKey:e,version:1}});if(((l=t==null?void 0:t.data)==null?void 0:l.code)===200&&(u=t.data)!=null&&u.result){const r=(c=(n=t.data)==null?void 0:n.result)==null?void 0:c.map(p=>{var f;return{id:p==null?void 0:p.id,...(f=p==null?void 0:p.value)==null?void 0:f.pageData}});ae.value=r,I.setCacheStructures({key:"contentConfig",data:r})}},ve=async e=>{var t;j.value=!0,h.value={...e,rootNode:i.findRootNodeByPath(oe.value,e.path)},I.setCacheStructures(null),(e==null?void 0:e.level)===0?H.value.splice(0):(H.value=[{label:"新建"}],U.value=(t=e==null?void 0:e.path)==null?void 0:t.split("/")),await I.setConfigMenu(null),await ne(e==null?void 0:e.path),await F(e)},ye=e=>{switch(e){case"新建":return"create";case"修改":return"update";case"删除":return"delete"}},be=async(e,t)=>{var l,u;if(!h.value)return i.ElMessage.warning("请先选择菜单");if(v.type=ye(e),U.value=[],A.setSubmitCurStructure(!1),m.setSelectTitle([]),C.value=i.cloneDeep(t),v.type!=="delete"){switch(v.type){case"create":R(null),await I.setConfigMenu(null);break;case"update":R(C.value),await I.setConfigMenu(C.value),console.log("clickRowButton",C.value);break}await g.nextTick(),v.title=`【${v.type==="create"?(l=h.value)==null?void 0:l.path:(u=C.value)==null?void 0:u.path}】菜单配置${e}`,v.show=!0}else await re(C.value,v.type)},ue=g.ref(!0),he=async e=>{var t;k.value=e,await I.setConfigMenu({...k.value,path:(t=h.value)==null?void 0:t.path}),ue.value=(e==null?void 0:e.operateType)!=="新增"};g.watch(()=>ue.value,async e=>{var t;await g.nextTick(),J.value=(t=_.value)==null?void 0:t.map(l=>l.prop==="dialogConfig"||l.prop==="contentConfig"||l.prop==="trigger"?l.prop==="contentConfig"?{...l,isFormColHidden:e}:l:{...l,value:k.value?k.value[l==null?void 0:l.prop]:""})},{immediate:!0,deep:!0});const Ce=g.ref(null),Ie=async(e,t)=>{var r,p,f,s,b;if(v.type==="create"){const a=(p=(r=E.value)==null?void 0:r.filter(d=>(d==null?void 0:d.key)===t))==null?void 0:p.flatMap(d=>d==null?void 0:d.data);A.setItemData(a),I.setCacheStructures({key:t,data:a})}if(console.log("getTriggerStructures1",e==null?void 0:e.structureIds,t),!(e!=null&&e.structureIds)||((f=e==null?void 0:e.structureIds)==null?void 0:f.length)===0)return;const l=(b=(s=e==null?void 0:e.structureIds)==null?void 0:s.filter(a=>(a==null?void 0:a.key)===t))==null?void 0:b.map(a=>a==null?void 0:a.id);let u=l==null?void 0:l.map(a=>{if(a)return i.getInsofDataApi({id:a})});const n=await Promise.all(u),c=n==null?void 0:n.every(a=>{var d;return((d=a==null?void 0:a.data)==null?void 0:d.code)===200});if(console.log("getTriggerStructures2",e==null?void 0:e.structureIds,t,n),c&&(n==null?void 0:n.length)>0){const a=n==null?void 0:n.map(d=>{var T,M,w,N,P,o,K;return{id:(w=(M=(T=d==null?void 0:d.data)==null?void 0:T.result)==null?void 0:M[0])==null?void 0:w.id,...(K=(o=(P=(N=d==null?void 0:d.data)==null?void 0:N.result)==null?void 0:P[0])==null?void 0:o.value)==null?void 0:K.pageData}});A.setItemData(a),I.setCacheStructures({key:t,data:a})}},ke=async e=>{var n,c,r,p,f;const t=e==="操作触发的弹窗结构"?"dialogConfig":"contentConfig";I.setButtonTriggerType(t),await Ie(C.value,t);let l;(n=k.value)!=null&&n.subMenus&&((c=k.value)==null?void 0:c.subMenus.length)>0&&(l=(r=U.value)==null?void 0:r.map(s=>({value:s})),l.unshift({value:(p=C.value)==null?void 0:p.title}));let u;v.type==="create"?u={...k.value,path:(f=h.value)==null?void 0:f.path}:v.type==="update"&&(u=B.value),await I.setConfigMenu(u),m.setSelectTitle(l),A.setIsEdit("edit")},F=async e=>{var l,u,n,c,r,p;const t=await i.getInsofDataApi({key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:q.value+"/"+(e==null?void 0:e.path),tableId:""}});((l=t==null?void 0:t.data)==null?void 0:l.code)===200&&(u=t.data)!=null&&u.result&&($.value=((c=(n=t.data)==null?void 0:n.result)==null?void 0:c.length)>0?(p=(r=t.data)==null?void 0:r.result)==null?void 0:p.map(f=>{var s;return{id:f==null?void 0:f.id,...(s=f==null?void 0:f.value)==null?void 0:s.tableData}}):[]),j.value=!1},x=async(e,t,l="contentConfig")=>{var u,n,c,r,p,f;try{let s,b;t==="create"?(s={key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:q.value+"/"+((u=h.value)==null?void 0:u.path),type:"structure",rootNodePath:(c=(n=h.value)==null?void 0:n.rootNode)==null?void 0:c.path,structureBelong:l,parentTable:"",version:1},value:{pageData:e}},b=i.createInsofDataApi):t==="update"?(s={id:e==null?void 0:e.id,value:{pageData:e}},b=i.updateInsofDataApi):t==="delete"&&(s={id:e},b=i.deleteInsofDataApi);const a=await b(s);if(((r=a==null?void 0:a.data)==null?void 0:r.code)!==200)throw i.ElMessage.error("保存响应失败"),new Error("保存响应失败");const d=t==="create"?(p=a==null?void 0:a.data)==null?void 0:p.result:e==null?void 0:e.id;return{status:((f=a==null?void 0:a.data)==null?void 0:f.code)===200,data:{id:d,key:l}}}catch{i.ElMessage.error("保存响应失败")}},Y=(e,t)=>{var f,s,b;const l=(f=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:f.map(a=>a==null?void 0:a.id),u=t.filter(a=>!(l!=null&&l.includes(a))),n=l==null?void 0:l.filter(a=>!t.includes(a));let c=null,r=null,p=null;return c=[...u,...n].filter(a=>a),r=(s=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:s.filter(a=>!(a!=null&&a.id)),p=(b=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:b.filter(a=>a==null?void 0:a.id).filter(a=>Object.keys(a).length>1),{deleteIds:c,createComps:r,updateComps:p}},Z=(e,t)=>{var u,n,c,r,p,f;let l=[];return((u=t==null?void 0:t.deleteIds)==null?void 0:u.length)>0&&((n=t==null?void 0:t.deleteIds)==null||n.forEach(s=>{l.push(x(s,"delete",e))})),((c=t==null?void 0:t.createComps)==null?void 0:c.length)>0&&((r=t==null?void 0:t.createComps)==null||r.forEach(s=>{l.push(x(s,"create",e))})),((p=t==null?void 0:t.updateComps)==null?void 0:p.length)>0&&((f=t==null?void 0:t.updateComps)==null||f.forEach(s=>{s!=null&&s.id&&l.push(x(s,"update",e))})),l},Te=e=>{const t=new Map;return e.forEach(l=>{t.set(l.id,l)}),Array.from(t.values())},Me=async(e,t)=>{var l,u,n,c,r,p,f;try{const s=e==null?void 0:e.filter(o=>(o==null?void 0:o.key)==="contentConfig"),b=e==null?void 0:e.filter(o=>(o==null?void 0:o.key)==="dialogConfig");await g.nextTick();const a=(n=(u=(l=E.value)==null?void 0:l.filter(o=>(o==null?void 0:o.key)==="dialogConfig"))==null?void 0:u.flatMap(o=>o==null?void 0:o.data))==null?void 0:n.map(o=>o==null?void 0:o.id);let d=(p=(r=(c=E.value)==null?void 0:c.filter(o=>(o==null?void 0:o.key)==="contentConfig"))==null?void 0:r.flatMap(o=>o==null?void 0:o.data))==null?void 0:p.map(o=>o==null?void 0:o.id);d=[...d,...(f=ae.value)==null?void 0:f.map(o=>o==null?void 0:o.id)];const T=Y(b,a),M=Y(s,d),w=Z("dialogConfig",T),N=Z("contentConfig",M),P=[...w,...N];await Promise.all(P).then(o=>{var z,G,L,V,Q,W,X;if(!(o==null?void 0:o.every(y=>y.status)))return;let S=(z=o==null?void 0:o.flatMap(y=>y==null?void 0:y.data))==null?void 0:z.filter(y=>(y==null?void 0:y.id)!==null&&(y==null?void 0:y.id)!==void 0);if(((G=T==null?void 0:T.updateComps)==null?void 0:G.length)===0&&v.type==="update"){const y=(V=(L=C.value)==null?void 0:L.structureIds)==null?void 0:V.filter(D=>(D==null?void 0:D.key)==="dialogConfig");S=[...S,...y]}if(((Q=M==null?void 0:M.updateComps)==null?void 0:Q.length)===0&&v.type==="update"){const y=(X=(W=C.value)==null?void 0:W.structureIds)==null?void 0:X.filter(D=>(D==null?void 0:D.key)==="contentConfig");S=[...S,...y]}const ce=Te(S);re({...t,isNotInitial:!0,structureIds:ce},v.type)}).catch(o=>{i.ElMessage.error(o)})}catch(s){throw i.ElMessage.error(s),new Error(s)}},re=async(e,t)=>{var n,c;let l,u;t==="create"?(l={key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:q.value+"/"+((n=h.value)==null?void 0:n.path),tableId:"",rootNodePath:e==null?void 0:e.rootNodePath},value:{tableData:e}},u=i.createInsofDataApi):t==="update"?(l={id:e==null?void 0:e.id,value:{tableData:e}},u=i.updateInsofDataApi):t==="delete"&&(l={ids:[e.id,...(c=e==null?void 0:e.structureIds)==null?void 0:c.map(r=>r.id)]},u=i.batchDeleteInsofDataApi),O.handleSubmitAsync(u,l,t).then(r=>{t==="create"&&$.value.push({...e,id:r}),t&&r&&i.ElMessage.success("响应成功"),F(h.value)})},De=async()=>{var l,u,n,c,r;const e=JSON.parse(i.cloneDeep(JSON.stringify(E.value)));await g.nextTick();const t=v.type==="create"?{...B.value,rootNodePath:(u=(l=h.value)==null?void 0:l.rootNode)==null?void 0:u.path}:{...B.value,rootNodePath:(c=(n=h.value)==null?void 0:n.rootNode)==null?void 0:c.path,id:(r=C.value)==null?void 0:r.id};await Me(e,t),k.value={},v.show=!1,await F(h.value)},Se=()=>{v.show=!1},se={comp:"Group",name:"/平台管理/菜单管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:te.value,name:""}]}]},we=Object.freeze(Object.defineProperty({__proto__:null,beforeDialogDestroy:Se,buttonValue:ie,changeTrigger:he,changedRow:de,clickNodeTrigger:ve,clickRowButton:be,clickSubmitForm:De,clickTrigger:ke,dialogInfo:v,formatFormData:R,getInitialSubStructure:ne,getTableDataAsync:F,handleItemDataChange:ge,inputForm:k,menuPageData:fe,operatingForm:Ce,pageData:te,renderFormData:J,tableLoading:j,tempMenuPageData:se,treeData:oe},Symbol.toStringTag,{value:"Module"}));exports.State=we;exports.tempMenuPageData=se;
@@ -1 +1 @@
1
- "use strict";const g=require("vue"),p=require("./index-1z9RrjZc.cjs"),w=require("./index.vue_vue_type_style_index_1_lang-0RaoPzBs.cjs"),D=p.useLoginState(p.pinia),{loginUserInfo:u,cryptoInfo:m}=p.storeToRefs(D),V=w.useMenuState(p.pinia),{activeMenuPath:y}=p.storeToRefs(V),E=g.ref(0),P=g.computed(()=>{var s,a,t,r,n,l,e,o,d,v,f;return[{label:"",name:"账号",prop:"账号",value:((s=u.value)==null?void 0:s.account)||(((a=u.value)==null?void 0:a.账号)??"未知")},{label:"",name:"角色名称",prop:"角色名称",value:((t=u.value)==null?void 0:t.layer)==="superAdmin"?"超级管理员":(r=u.value)==null?void 0:r.角色名称},{label:"",name:"部门名称",prop:"部门名称",value:((n=u.value)==null?void 0:n.部门名称)??"未知"},{label:"",name:"状态",prop:"状态",value:((l=u.value)==null?void 0:l.layer)==="superAdmin"?"启用":((e=u.value)==null?void 0:e.状态)??"未知"},{label:"",prop:"头像",isFormColHidden:!0,value:((o=u.value)==null?void 0:o.layer)==="superAdmin"?"启用":((d=u.value)==null?void 0:d.状态)??"未知"},{label:"",prop:"签名",isFormColHidden:!0,value:((v=u.value)==null?void 0:v.layer)==="superAdmin"?"启用":((f=u.value)==null?void 0:f.状态)??"未知"}]}),W=()=>{},U=g.ref(!1),h=g.reactive({dialogTitle:"电子签名",dialogWidth:"30",dialogShow:!1,url:""}),S=g.ref([{label:"签字版",icon:p.edit_pen_default,type:"button",disabled:!1},{label:"电子签名",icon:p.edit_default,type:"button",disabled:!1},{label:"上传手写签名",icon:p.upload_filled_default,type:"buttonUpload",disabled:!1}]),_=g.ref(!1),I=g.ref(!1),R=g.ref(!1),M=g.computed(()=>{var r,n,l;const s=sessionStorage.getItem("authority"),a=JSON.parse(s||""),t=(r=y.value)!=null&&r.startsWith("/")?(n=y.value)==null?void 0:n.substring(1):y.value;return Array.isArray(a)?(R.value=!(a!=null&&a.includes(`${t}/上传头像`)),(l=S.value)==null?void 0:l.map(e=>({...e,disabled:!(a!=null&&a.includes(`${t}/签名`))}))):typeof a=="string"&&(a==null?void 0:a.toUpperCase())==="SUPERADMIN"?S.value:[]}),O=g.computed(()=>[{key:"signConfig",contents:h},{key:"signTypeList",contents:M.value}]),$=s=>{h.dialogShow=s.label==="电子签名"},L=()=>{h.dialogShow=!1},N=async s=>{var t,r,n,l,e,o,d,v,f;const a=await p.getInsofDataApi({id:s});if(((t=a==null?void 0:a.data)==null?void 0:t.code)===200&&a.data.result&&Array.isArray(a.data.result)&&a.data.result.length>0){const b={...(l=(n=(r=a.data.result)==null?void 0:r[0])==null?void 0:n.value)==null?void 0:l.tableData,id:(o=(e=a.data.result)==null?void 0:e[0])==null?void 0:o.id,layer:(f=(v=(d=a.data.result)==null?void 0:d[0])==null?void 0:v.key)==null?void 0:f.layer};D.setLoginUserInfo(b)}},q=async(s,a)=>{var r,n,l;const t=p.cloneDeep(s);t==null||delete t.id;try{const e=await p.updateInsofDataApi({id:(r=u.value)==null?void 0:r.id,value:{tableData:t}});((n=e==null?void 0:e.data)==null?void 0:n.code)===200&&(L(),p.ElMessage.success("修改成功"),await N((l=u.value)==null?void 0:l.id),await D.setLogRecordAsync({type:a,data:s},y.value))}catch{p.ElMessage.error("修改响应失败")}finally{U.value=!1,_.value=!1,I.value=!1}},x=async(s,a)=>{var n;const t=s==="avatarUrl"?"头像":"签名",r={...u.value,status:((n=u.value)==null?void 0:n.status)??"启用",[t]:a};_.value=s==="avatarUrl",I.value=s==="signature",await q(r,"图片修改")},c=g.reactive({baseCols:[],otherCols:[]}),K=g.ref([]),k=g.ref(),B=(s,a,t)=>{var l,e,o,d,v,f;let r;const n=a;((e=(l=u.value)==null?void 0:l.layer)==null?void 0:e.toUpperCase())!=="SUPERADMIN"?r=(o=u.value)!=null&&o.password?w.decryptData((d=u.value)==null?void 0:d.password,(v=m==null?void 0:m.value)==null?void 0:v.privateKey):w.resetPassword:r=(f=u.value)==null?void 0:f.password,r===n?t():t(new Error("输入的密码与原密码不匹配,请重新输入"))},H=(s,a,t)=>{a?t():t(new Error("请输入密码"))},j=(s,a,t)=>{var r;a!==((r=k.value)==null?void 0:r.newtPass)?t(new Error("两次输入的密码不一致")):t()},J=async()=>{var a,t,r,n,l,e,o,d,v,f;const s=await p.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure",pageKey:"系统管理/用户管理"}});if(((a=s==null?void 0:s.data)==null?void 0:a.code)===200&&s.data.result&&((t=s.data.result)==null?void 0:t.length)>0){const b=(o=(e=(l=(n=(r=s.data.result)==null?void 0:r[0])==null?void 0:n.value)==null?void 0:l.pageData)==null?void 0:e.compData)==null?void 0:o.find(i=>(i==null?void 0:i.key)==="header"),C=(d=P.value)==null?void 0:d.map(i=>i==null?void 0:i.prop);c.baseCols=b&&((v=b.contents)==null?void 0:v.map(i=>({...i,isFormColHidden:(C==null?void 0:C.includes(i==null?void 0:i.prop))||(i==null?void 0:i.label)==="操作"})));const A=(f=b.contents)==null?void 0:f.find(i=>(i==null?void 0:i.prop)==="password"),F=[{...A,label:"当前密码",prop:"currentPass",validator:B},{...A,label:"新密码",prop:"newtPass",validator:H},{...A,label:"确认密码",prop:"confirmNewPass",validator:j}];c.otherCols=F,Q(u.value)}},z=s=>{k.value=s},G=async({content:s,buttonName:a})=>{var r,n,l,e,o;let t;a==="确定"&&(t={...u.value,status:((r=u.value)==null?void 0:r.status)??"启用",password:((l=(n=u.value)==null?void 0:n.layer)==null?void 0:l.toUpperCase())==="SUPERADMIN"?s==null?void 0:s.confirmNewPass:w.encryptData(s==null?void 0:s.confirmNewPass,(e=m.value)==null?void 0:e.publicKey)}),a==="保存基本信息"&&(t={...u.value,...s,status:((o=u.value)==null?void 0:o.status)??"启用"}),U.value=!0,await q(t,a)},T=()=>{var r,n;const s={base:[{label:"保存基本信息"}],other:[{label:"重置",background:"#b7b8b8"},{label:"确定"}]},a=sessionStorage.getItem("authority"),t=JSON.parse(a||"");if(Array.isArray(t)){const l=(r=y.value)!=null&&r.startsWith("/")?(n=y.value)==null?void 0:n.substring(1):y.value,e=t!=null&&t.includes(`${l}/基本信息`)?s==null?void 0:s.base:[],o=t!=null&&t.includes(`${l}/修改密码`)?s==null?void 0:s.other:[];return{base:e,other:o}}else return typeof t=="string"&&(t==null?void 0:t.toUpperCase())==="SUPERADMIN"?s:null},Q=s=>{var a,t,r,n,l;K.value=[{value:"基础信息",label:"基础信息",children:[{type:"form",content:{rowContents:(a=c.baseCols)==null?void 0:a.map(e=>({...e,width:2,type:e==null?void 0:e.formType,name:e==null?void 0:e.prop,prop:e==null?void 0:e.prop,contents:e==null?void 0:e.options,value:s[e==null?void 0:e.prop]})),formRules:{userName:[{required:!0,message:"输入不能为空",trigger:"blur"}],birthDay:[{required:!0,message:"输入不能为空",trigger:"blur"}],phone:[{required:!0,message:"输入不能为空",trigger:"blur"}]},buttonValue:(t=T())==null?void 0:t.base,isEnableWrap:!1,isButtonRow:!1},value:""}]},{value:"修改密码",label:"修改密码",children:[{type:"form",content:{rowContents:(r=c.otherCols)==null?void 0:r.map(e=>({...e,width:1,type:e==null?void 0:e.formType,name:e==null?void 0:e.prop,contents:e==null?void 0:e.options})),formRules:(n=c.otherCols)==null?void 0:n.reduce((e,o)=>(e[o.prop]=[{required:!0,message:"输入有误",trigger:"change"},{validator:(d,v,f)=>o.validator(d,v,f),trigger:"blur"}],e),{}),buttonValue:(l=T())==null?void 0:l.other,isEnableWrap:!1},value:""}]}]},X=Object.freeze(Object.defineProperty({__proto__:null,avatarLoading:_,beforeSignDestroy:L,changeFormTrigger:z,clickFormButton:W,clickSignButton:$,clickTabButton:G,getUserTableHeadersAsync:J,itemData:O,loading:U,refreshLoginUserInfoAsync:N,rowContents:P,signPadInfo:h,signTypes:M,signatureLoading:I,submitImageAsync:x,tabKey:E,tabsContents:K,tempSignTypes:S,uploadDisabled:R},Symbol.toStringTag,{value:"Module"}));exports.State=X;exports.tabKey=E;
1
+ "use strict";const g=require("vue"),p=require("./index-1z9RrjZc.cjs"),w=require("./index.vue_vue_type_style_index_1_lang-YnBuuwY6.cjs"),D=p.useLoginState(p.pinia),{loginUserInfo:u,cryptoInfo:m}=p.storeToRefs(D),V=w.useMenuState(p.pinia),{activeMenuPath:y}=p.storeToRefs(V),E=g.ref(0),P=g.computed(()=>{var s,a,t,r,n,l,e,o,d,v,f;return[{label:"",name:"账号",prop:"账号",value:((s=u.value)==null?void 0:s.account)||(((a=u.value)==null?void 0:a.账号)??"未知")},{label:"",name:"角色名称",prop:"角色名称",value:((t=u.value)==null?void 0:t.layer)==="superAdmin"?"超级管理员":(r=u.value)==null?void 0:r.角色名称},{label:"",name:"部门名称",prop:"部门名称",value:((n=u.value)==null?void 0:n.部门名称)??"未知"},{label:"",name:"状态",prop:"状态",value:((l=u.value)==null?void 0:l.layer)==="superAdmin"?"启用":((e=u.value)==null?void 0:e.状态)??"未知"},{label:"",prop:"头像",isFormColHidden:!0,value:((o=u.value)==null?void 0:o.layer)==="superAdmin"?"启用":((d=u.value)==null?void 0:d.状态)??"未知"},{label:"",prop:"签名",isFormColHidden:!0,value:((v=u.value)==null?void 0:v.layer)==="superAdmin"?"启用":((f=u.value)==null?void 0:f.状态)??"未知"}]}),W=()=>{},U=g.ref(!1),h=g.reactive({dialogTitle:"电子签名",dialogWidth:"30",dialogShow:!1,url:""}),S=g.ref([{label:"签字版",icon:p.edit_pen_default,type:"button",disabled:!1},{label:"电子签名",icon:p.edit_default,type:"button",disabled:!1},{label:"上传手写签名",icon:p.upload_filled_default,type:"buttonUpload",disabled:!1}]),_=g.ref(!1),I=g.ref(!1),R=g.ref(!1),M=g.computed(()=>{var r,n,l;const s=sessionStorage.getItem("authority"),a=JSON.parse(s||""),t=(r=y.value)!=null&&r.startsWith("/")?(n=y.value)==null?void 0:n.substring(1):y.value;return Array.isArray(a)?(R.value=!(a!=null&&a.includes(`${t}/上传头像`)),(l=S.value)==null?void 0:l.map(e=>({...e,disabled:!(a!=null&&a.includes(`${t}/签名`))}))):typeof a=="string"&&(a==null?void 0:a.toUpperCase())==="SUPERADMIN"?S.value:[]}),O=g.computed(()=>[{key:"signConfig",contents:h},{key:"signTypeList",contents:M.value}]),$=s=>{h.dialogShow=s.label==="电子签名"},L=()=>{h.dialogShow=!1},N=async s=>{var t,r,n,l,e,o,d,v,f;const a=await p.getInsofDataApi({id:s});if(((t=a==null?void 0:a.data)==null?void 0:t.code)===200&&a.data.result&&Array.isArray(a.data.result)&&a.data.result.length>0){const b={...(l=(n=(r=a.data.result)==null?void 0:r[0])==null?void 0:n.value)==null?void 0:l.tableData,id:(o=(e=a.data.result)==null?void 0:e[0])==null?void 0:o.id,layer:(f=(v=(d=a.data.result)==null?void 0:d[0])==null?void 0:v.key)==null?void 0:f.layer};D.setLoginUserInfo(b)}},q=async(s,a)=>{var r,n,l;const t=p.cloneDeep(s);t==null||delete t.id;try{const e=await p.updateInsofDataApi({id:(r=u.value)==null?void 0:r.id,value:{tableData:t}});((n=e==null?void 0:e.data)==null?void 0:n.code)===200&&(L(),p.ElMessage.success("修改成功"),await N((l=u.value)==null?void 0:l.id),await D.setLogRecordAsync({type:a,data:s},y.value))}catch{p.ElMessage.error("修改响应失败")}finally{U.value=!1,_.value=!1,I.value=!1}},x=async(s,a)=>{var n;const t=s==="avatarUrl"?"头像":"签名",r={...u.value,status:((n=u.value)==null?void 0:n.status)??"启用",[t]:a};_.value=s==="avatarUrl",I.value=s==="signature",await q(r,"图片修改")},c=g.reactive({baseCols:[],otherCols:[]}),K=g.ref([]),k=g.ref(),B=(s,a,t)=>{var l,e,o,d,v,f;let r;const n=a;((e=(l=u.value)==null?void 0:l.layer)==null?void 0:e.toUpperCase())!=="SUPERADMIN"?r=(o=u.value)!=null&&o.password?w.decryptData((d=u.value)==null?void 0:d.password,(v=m==null?void 0:m.value)==null?void 0:v.privateKey):w.resetPassword:r=(f=u.value)==null?void 0:f.password,r===n?t():t(new Error("输入的密码与原密码不匹配,请重新输入"))},H=(s,a,t)=>{a?t():t(new Error("请输入密码"))},j=(s,a,t)=>{var r;a!==((r=k.value)==null?void 0:r.newtPass)?t(new Error("两次输入的密码不一致")):t()},J=async()=>{var a,t,r,n,l,e,o,d,v,f;const s=await p.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure",pageKey:"系统管理/用户管理"}});if(((a=s==null?void 0:s.data)==null?void 0:a.code)===200&&s.data.result&&((t=s.data.result)==null?void 0:t.length)>0){const b=(o=(e=(l=(n=(r=s.data.result)==null?void 0:r[0])==null?void 0:n.value)==null?void 0:l.pageData)==null?void 0:e.compData)==null?void 0:o.find(i=>(i==null?void 0:i.key)==="header"),C=(d=P.value)==null?void 0:d.map(i=>i==null?void 0:i.prop);c.baseCols=b&&((v=b.contents)==null?void 0:v.map(i=>({...i,isFormColHidden:(C==null?void 0:C.includes(i==null?void 0:i.prop))||(i==null?void 0:i.label)==="操作"})));const A=(f=b.contents)==null?void 0:f.find(i=>(i==null?void 0:i.prop)==="password"),F=[{...A,label:"当前密码",prop:"currentPass",validator:B},{...A,label:"新密码",prop:"newtPass",validator:H},{...A,label:"确认密码",prop:"confirmNewPass",validator:j}];c.otherCols=F,Q(u.value)}},z=s=>{k.value=s},G=async({content:s,buttonName:a})=>{var r,n,l,e,o;let t;a==="确定"&&(t={...u.value,status:((r=u.value)==null?void 0:r.status)??"启用",password:((l=(n=u.value)==null?void 0:n.layer)==null?void 0:l.toUpperCase())==="SUPERADMIN"?s==null?void 0:s.confirmNewPass:w.encryptData(s==null?void 0:s.confirmNewPass,(e=m.value)==null?void 0:e.publicKey)}),a==="保存基本信息"&&(t={...u.value,...s,status:((o=u.value)==null?void 0:o.status)??"启用"}),U.value=!0,await q(t,a)},T=()=>{var r,n;const s={base:[{label:"保存基本信息"}],other:[{label:"重置",background:"#b7b8b8"},{label:"确定"}]},a=sessionStorage.getItem("authority"),t=JSON.parse(a||"");if(Array.isArray(t)){const l=(r=y.value)!=null&&r.startsWith("/")?(n=y.value)==null?void 0:n.substring(1):y.value,e=t!=null&&t.includes(`${l}/基本信息`)?s==null?void 0:s.base:[],o=t!=null&&t.includes(`${l}/修改密码`)?s==null?void 0:s.other:[];return{base:e,other:o}}else return typeof t=="string"&&(t==null?void 0:t.toUpperCase())==="SUPERADMIN"?s:null},Q=s=>{var a,t,r,n,l;K.value=[{value:"基础信息",label:"基础信息",children:[{type:"form",content:{rowContents:(a=c.baseCols)==null?void 0:a.map(e=>({...e,width:2,type:e==null?void 0:e.formType,name:e==null?void 0:e.prop,prop:e==null?void 0:e.prop,contents:e==null?void 0:e.options,value:s[e==null?void 0:e.prop]})),formRules:{userName:[{required:!0,message:"输入不能为空",trigger:"blur"}],birthDay:[{required:!0,message:"输入不能为空",trigger:"blur"}],phone:[{required:!0,message:"输入不能为空",trigger:"blur"}]},buttonValue:(t=T())==null?void 0:t.base,isEnableWrap:!1,isButtonRow:!1},value:""}]},{value:"修改密码",label:"修改密码",children:[{type:"form",content:{rowContents:(r=c.otherCols)==null?void 0:r.map(e=>({...e,width:1,type:e==null?void 0:e.formType,name:e==null?void 0:e.prop,contents:e==null?void 0:e.options})),formRules:(n=c.otherCols)==null?void 0:n.reduce((e,o)=>(e[o.prop]=[{required:!0,message:"输入有误",trigger:"change"},{validator:(d,v,f)=>o.validator(d,v,f),trigger:"blur"}],e),{}),buttonValue:(l=T())==null?void 0:l.other,isEnableWrap:!1},value:""}]}]},X=Object.freeze(Object.defineProperty({__proto__:null,avatarLoading:_,beforeSignDestroy:L,changeFormTrigger:z,clickFormButton:W,clickSignButton:$,clickTabButton:G,getUserTableHeadersAsync:J,itemData:O,loading:U,refreshLoginUserInfoAsync:N,rowContents:P,signPadInfo:h,signTypes:M,signatureLoading:I,submitImageAsync:x,tabKey:E,tabsContents:K,tempSignTypes:S,uploadDisabled:R},Symbol.toStringTag,{value:"Module"}));exports.State=X;exports.tabKey=E;
@@ -1,19 +1,19 @@
1
1
  import { watch as u, onMounted as g, onUnmounted as C, resolveComponent as S, createElementBlock as v, openBlock as B, createVNode as I } from "vue";
2
- import "./index--cSKDs-m.js";
2
+ import "./index-BHHFDjsi.js";
3
3
  import { u as K } from "./index-CYp77kPp.js";
4
- import "./array-DkjKZF8I.js";
4
+ import "./array-D5WfaBtT.js";
5
5
  import { _ as D } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
- import "./index.vue_vue_type_style_index_0_scoped_92477073_lang-Bwe93Xrr.js";
7
- import "./index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-q9M1UN39.js";
6
+ import "./index.vue_vue_type_style_index_0_scoped_92477073_lang-DDuO2RJ1.js";
7
+ import "./index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-Cc_BYWMl.js";
8
8
  import "./index-BHtNKL1L.js";
9
- import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CmdURFaC.js";
9
+ import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DkvEh0kU.js";
10
10
  import "./three-viewport-gizmo-CkQ98n-T.js";
11
- import "./index.vue_vue_type_style_index_1_lang-DtRssJWg.js";
12
- import "./index.vue_vue_type_style_index_1_lang-BDQcys0d.js";
13
- import "./index-00LBNRcE.js";
11
+ import "./index.vue_vue_type_style_index_1_lang-vU1VQMfs.js";
12
+ import "./index.vue_vue_type_style_index_1_lang-CnzkLjVf.js";
13
+ import "./index-BgJ164SD.js";
14
14
  import "vue-router";
15
- import "./index-CBO4shBu.js";
16
- import "./index-DmYI7jW4.js";
15
+ import "./index-CQBynyM7.js";
16
+ import "./index-pDGtp9Y4.js";
17
17
  const j = {
18
18
  __name: "index",
19
19
  props: {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),u=require("./index-Dm9I-MGk.cjs"),n=require("./index.vue_vue_type_style_index_1_lang-0RaoPzBs.cjs"),a=require("./index-1z9RrjZc.cjs"),s={class:"routerPage-wrapper"},i=t.defineComponent({__name:"index",setup(d){const o=n.useMenuState(),{activeMenuPath:c}=a.storeToRefs(o),r=a.useLoginState(),e=t.reactive({...n.State});return t.onMounted(async()=>{r.getModelSecretAsync(),e.structureId=await n.getActivePageStructureId(c.value)}),(l,_)=>(t.openBlock(),t.createElementBlock("div",s,[t.createVNode(u.ssTable,{index:e.structureId,compName:e.compName,itemData:e.pageData,changedContent:e.changedRow,onChange:e.handleItemDataChange,onOnButtonClick:e.clickRowButton},null,8,["index","compName","itemData","changedContent","onChange","onOnButtonClick"])]))}});exports.default=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),u=require("./index-Djrsmf4o.cjs"),n=require("./index.vue_vue_type_style_index_1_lang-YnBuuwY6.cjs"),a=require("./index-1z9RrjZc.cjs"),s={class:"routerPage-wrapper"},i=t.defineComponent({__name:"index",setup(d){const o=n.useMenuState(),{activeMenuPath:c}=a.storeToRefs(o),r=a.useLoginState(),e=t.reactive({...n.State});return t.onMounted(async()=>{r.getModelSecretAsync(),e.structureId=await n.getActivePageStructureId(c.value)}),(l,_)=>(t.openBlock(),t.createElementBlock("div",s,[t.createVNode(u.ssTable,{index:e.structureId,compName:e.compName,itemData:e.pageData,changedContent:e.changedRow,onChange:e.handleItemDataChange,onOnButtonClick:e.clickRowButton},null,8,["index","compName","itemData","changedContent","onChange","onOnButtonClick"])]))}});exports.default=i;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),V=require("./index-Dm9I-MGk.cjs"),h=require("./index.vue_vue_type_style_index_1_lang-0RaoPzBs.cjs"),_=require("./index-1z9RrjZc.cjs"),B=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),w={class:"routerPage-wrapper"},N={class:"role-dialog-header"},b=["title"],D={title:"更多"},y={class:"dialog-footer"},S=e.defineComponent({__name:"index",setup(T){const g=h.useMenuState(),{menus:C,activeMenuPath:k}=_.storeToRefs(g),o=e.reactive({...h.State$1}),{treeRef:x}=h.State$1;e.onMounted(async()=>{await o.getActivePageStructureId(k.value)});const u=i=>i==null?void 0:i.map(t=>{var c,s,d;return t!=null&&t.childMenus&&((c=t==null?void 0:t.childMenus)==null?void 0:c.length)>0?{...t,childMenus:[],children:u(t==null?void 0:t.childMenus)}:{...t,childMenus:[],path:(s=t==null?void 0:t.path)!=null&&s.startsWith("/")?(d=t==null?void 0:t.path)==null?void 0:d.substring(1):t.path}});return e.watch(()=>C.value,i=>{e.nextTick(()=>{const t=_.cloneDeep(i),c=u(t);o.tempSysMenus=o.handleAddSysMenusButtons(c,"系统维护",["查看"]),o.menuData=o.addButtonsToTree(c,o.structureButtons)})},{immediate:!0,deep:!0}),(i,t)=>{const c=e.resolveComponent("el-checkbox"),s=e.resolveComponent("el-checkbox-group"),d=e.resolveComponent("svg-icon"),v=e.resolveComponent("el-popover"),f=e.resolveComponent("el-tree"),p=e.resolveComponent("el-button"),m=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock("div",w,[e.createVNode(V.ssTable,{index:o.structureId,compName:o.compName,itemData:o.pageDataFiltered,changedContent:o.changedRow,onChange:o.handleItemDataChange,onOnButtonClick:o.clickRowButton},null,8,["index","compName","itemData","changedContent","onChange","onOnButtonClick"]),e.createVNode(m,{modelValue:o.authorizeDialog.show,"onUpdate:modelValue":t[0]||(t[0]=a=>o.authorizeDialog.show=a),width:o.authorizeDialog.width,draggable:o.authorizeDialog.draggable,"before-close":o.closeAuthorizeDialog,class:"role-dialog"},{header:e.withCtx(()=>[e.createElementVNode("div",N,e.toDisplayString(o.authorizeDialog.title),1)]),footer:e.withCtx(()=>[e.createElementVNode("div",y,[e.createVNode(p,{id:"themeBorderButton",onClick:o.closeAuthorizeDialog},{default:e.withCtx(()=>t[1]||(t[1]=[e.createTextVNode("取消")])),_:1,__:[1]},8,["onClick"]),e.createVNode(p,{id:"themeButton",onClick:o.clickSubmitAuthority},{default:e.withCtx(()=>t[2]||(t[2]=[e.createTextVNode(" 确认 ")])),_:1,__:[2]},8,["onClick"])])]),default:e.withCtx(()=>[e.createVNode(f,{class:"role-tree",ref_key:"treeRef",ref:x,data:o.menuData,"expand-on-click-node":!1,"node-key":"path",props:{children:"children",label:"title",path:"path"},"highlight-current":"","default-expand-all":"","check-on-click-leaf":!1,"show-checkbox":"",onCheckChange:o.handleNodeCheckChange,style:{height:"500px","overflow-y":"auto"}},{default:e.withCtx(({node:a,data:n})=>[e.createElementVNode("span",{class:"node-text",title:a==null?void 0:a.label},e.toDisplayString(a==null?void 0:a.label),9,b),e.createVNode(s,{modelValue:n.checkedButtons,"onUpdate:modelValue":l=>n.checkedButtons=l,onChange:l=>o.handleNodeBtnChange(l,n),class:"node-buttons"},{default:e.withCtx(()=>{var l;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((l=n.renderButtons)==null?void 0:l.slice(0,2),r=>(e.openBlock(),e.createBlock(c,{key:r.title,label:r.title,value:r.path},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.title),1)]),_:2},1032,["label","value"]))),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange"]),e.createVNode(v,{title:a==null?void 0:a.label,placement:"right-start"},{reference:e.withCtx(()=>{var l;return[e.createElementVNode("span",D,[e.withDirectives(e.createVNode(d,{name:"treeMore",class:"node-trigger"},null,512),[[e.vShow,((l=n.renderButtons)==null?void 0:l.length)>0]])])]}),default:e.withCtx(()=>[e.createVNode(s,{modelValue:n.checkedButtons,"onUpdate:modelValue":l=>n.checkedButtons=l,onChange:l=>o.handleNodeBtnChange(l,n),class:"node-buttons"},{default:e.withCtx(()=>{var l;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((l=n.renderButtons)==null?void 0:l.slice(2),r=>(e.openBlock(),e.createBlock(c,{key:r.title,label:r.title,value:r.path},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.title),1)]),_:2},1032,["label","value"]))),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])]),_:2},1032,["title"])]),_:1},8,["data","onCheckChange"])]),_:1},8,["modelValue","width","draggable","before-close"])])}}}),M=B._export_sfc(S,[["__scopeId","data-v-78a46dd8"]]);exports.default=M;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),V=require("./index-Djrsmf4o.cjs"),h=require("./index.vue_vue_type_style_index_1_lang-YnBuuwY6.cjs"),_=require("./index-1z9RrjZc.cjs"),B=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),w={class:"routerPage-wrapper"},N={class:"role-dialog-header"},b=["title"],D={title:"更多"},y={class:"dialog-footer"},S=e.defineComponent({__name:"index",setup(T){const g=h.useMenuState(),{menus:C,activeMenuPath:k}=_.storeToRefs(g),o=e.reactive({...h.State$1}),{treeRef:x}=h.State$1;e.onMounted(async()=>{await o.getActivePageStructureId(k.value)});const u=i=>i==null?void 0:i.map(t=>{var c,s,d;return t!=null&&t.childMenus&&((c=t==null?void 0:t.childMenus)==null?void 0:c.length)>0?{...t,childMenus:[],children:u(t==null?void 0:t.childMenus)}:{...t,childMenus:[],path:(s=t==null?void 0:t.path)!=null&&s.startsWith("/")?(d=t==null?void 0:t.path)==null?void 0:d.substring(1):t.path}});return e.watch(()=>C.value,i=>{e.nextTick(()=>{const t=_.cloneDeep(i),c=u(t);o.tempSysMenus=o.handleAddSysMenusButtons(c,"系统维护",["查看"]),o.menuData=o.addButtonsToTree(c,o.structureButtons)})},{immediate:!0,deep:!0}),(i,t)=>{const c=e.resolveComponent("el-checkbox"),s=e.resolveComponent("el-checkbox-group"),d=e.resolveComponent("svg-icon"),v=e.resolveComponent("el-popover"),f=e.resolveComponent("el-tree"),p=e.resolveComponent("el-button"),m=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock("div",w,[e.createVNode(V.ssTable,{index:o.structureId,compName:o.compName,itemData:o.pageDataFiltered,changedContent:o.changedRow,onChange:o.handleItemDataChange,onOnButtonClick:o.clickRowButton},null,8,["index","compName","itemData","changedContent","onChange","onOnButtonClick"]),e.createVNode(m,{modelValue:o.authorizeDialog.show,"onUpdate:modelValue":t[0]||(t[0]=a=>o.authorizeDialog.show=a),width:o.authorizeDialog.width,draggable:o.authorizeDialog.draggable,"before-close":o.closeAuthorizeDialog,class:"role-dialog"},{header:e.withCtx(()=>[e.createElementVNode("div",N,e.toDisplayString(o.authorizeDialog.title),1)]),footer:e.withCtx(()=>[e.createElementVNode("div",y,[e.createVNode(p,{id:"themeBorderButton",onClick:o.closeAuthorizeDialog},{default:e.withCtx(()=>t[1]||(t[1]=[e.createTextVNode("取消")])),_:1,__:[1]},8,["onClick"]),e.createVNode(p,{id:"themeButton",onClick:o.clickSubmitAuthority},{default:e.withCtx(()=>t[2]||(t[2]=[e.createTextVNode(" 确认 ")])),_:1,__:[2]},8,["onClick"])])]),default:e.withCtx(()=>[e.createVNode(f,{class:"role-tree",ref_key:"treeRef",ref:x,data:o.menuData,"expand-on-click-node":!1,"node-key":"path",props:{children:"children",label:"title",path:"path"},"highlight-current":"","default-expand-all":"","check-on-click-leaf":!1,"show-checkbox":"",onCheckChange:o.handleNodeCheckChange,style:{height:"500px","overflow-y":"auto"}},{default:e.withCtx(({node:a,data:n})=>[e.createElementVNode("span",{class:"node-text",title:a==null?void 0:a.label},e.toDisplayString(a==null?void 0:a.label),9,b),e.createVNode(s,{modelValue:n.checkedButtons,"onUpdate:modelValue":l=>n.checkedButtons=l,onChange:l=>o.handleNodeBtnChange(l,n),class:"node-buttons"},{default:e.withCtx(()=>{var l;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((l=n.renderButtons)==null?void 0:l.slice(0,2),r=>(e.openBlock(),e.createBlock(c,{key:r.title,label:r.title,value:r.path},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.title),1)]),_:2},1032,["label","value"]))),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange"]),e.createVNode(v,{title:a==null?void 0:a.label,placement:"right-start"},{reference:e.withCtx(()=>{var l;return[e.createElementVNode("span",D,[e.withDirectives(e.createVNode(d,{name:"treeMore",class:"node-trigger"},null,512),[[e.vShow,((l=n.renderButtons)==null?void 0:l.length)>0]])])]}),default:e.withCtx(()=>[e.createVNode(s,{modelValue:n.checkedButtons,"onUpdate:modelValue":l=>n.checkedButtons=l,onChange:l=>o.handleNodeBtnChange(l,n),class:"node-buttons"},{default:e.withCtx(()=>{var l;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((l=n.renderButtons)==null?void 0:l.slice(2),r=>(e.openBlock(),e.createBlock(c,{key:r.title,label:r.title,value:r.path},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.title),1)]),_:2},1032,["label","value"]))),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])]),_:2},1032,["title"])]),_:1},8,["data","onCheckChange"])]),_:1},8,["modelValue","width","draggable","before-close"])])}}}),M=B._export_sfc(S,[["__scopeId","data-v-78a46dd8"]]);exports.default=M;
@@ -1,5 +1,5 @@
1
1
  import { g as S, E as v, u as P, p as K } from "./index-CYp77kPp.js";
2
- import { u as k } from "./index.vue_vue_type_style_index_1_lang-DtRssJWg.js";
2
+ import { u as k } from "./index.vue_vue_type_style_index_1_lang-vU1VQMfs.js";
3
3
  import { ref as h } from "vue";
4
4
  const A = k(K), E = P(K), x = h(!1), D = h(!1), j = async () => {
5
5
  const I = S({
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as z, reactive as R, onMounted as T, watch as A, nextTick as U, resolveComponent as i, createElementBlock as k, openBlock as u, createVNode as c, withCtx as l, createElementVNode as _, toDisplayString as g, Fragment as B, renderList as v, createBlock as b, createTextVNode as f, withDirectives as I, vShow as P } from "vue";
2
- import { s as E } from "./index-CU44LzPf.js";
3
- import { u as F, aB as x } from "./index.vue_vue_type_style_index_1_lang-DtRssJWg.js";
2
+ import { s as E } from "./index-BGnIpBtJ.js";
3
+ import { u as F, aB as x } from "./index.vue_vue_type_style_index_1_lang-vU1VQMfs.js";
4
4
  import { s as O, c as H } from "./index-CYp77kPp.js";
5
5
  import { _ as L } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
6
  const W = { class: "routerPage-wrapper" }, j = { class: "role-dialog-header" }, q = ["title"], G = { title: "更多" }, J = { class: "dialog-footer" }, K = /* @__PURE__ */ z({
@@ -1,7 +1,7 @@
1
1
  import { ref as l, watch as m, defineComponent as y, reactive as b, onMounted as g, createElementBlock as D, openBlock as i, createVNode as f } from "vue";
2
- import { s as h } from "./index-CU44LzPf.js";
2
+ import { s as h } from "./index-BGnIpBtJ.js";
3
3
  import { g as C, s as c } from "./index-CYp77kPp.js";
4
- import { ay as k, ax as _, a as S, u as A, az as T } from "./index.vue_vue_type_style_index_1_lang-DtRssJWg.js";
4
+ import { ay as k, ax as _, a as S, u as A, az as T } from "./index.vue_vue_type_style_index_1_lang-vU1VQMfs.js";
5
5
  const B = S(), { itemData: I } = c(B), u = l(0), x = l([
6
6
  {
7
7
  label: "机构名称",
@@ -2,7 +2,7 @@ var oit = Object.defineProperty;
2
2
  var sit = (r, e, t) => e in r ? oit(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
3
  var Cr = (r, e, t) => sit(r, typeof e != "symbol" ? e + "" : e, t);
4
4
  import { i as k9, o as hW, bA as lit, bB as dW, bC as pW, bD as uit, bE as cit, bF as fit, v as hit, bG as vW, bH as dit, bI as pit, h as uO, bJ as vit, bK as git, bL as mit, bM as cO, bN as yit, bO as bit, S as wit, g as _it, s as xit, u as Sit, p as kit, c as D1 } from "./index-CYp77kPp.js";
5
- import { aC as Tit, aD as Cit, p as Ait, aE as Eit, i as Mit, aF as Iit, O as T9 } from "./index.vue_vue_type_style_index_1_lang-DtRssJWg.js";
5
+ import { aC as Tit, aD as Cit, p as Ait, aE as Eit, i as Mit, aF as Iit, O as T9 } from "./index.vue_vue_type_style_index_1_lang-vU1VQMfs.js";
6
6
  function Dit(r, e) {
7
7
  return Tit(Cit(r, e, Ait), r + "");
8
8
  }
@@ -1,4 +1,4 @@
1
- "use strict";var ait=Object.defineProperty;var oit=(r,e,t)=>e in r?ait(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var Cr=(r,e,t)=>oit(r,typeof e!="symbol"?e+"":e,t);const ai=require("./index-1z9RrjZc.cjs"),Zh=require("./index.vue_vue_type_style_index_1_lang-0RaoPzBs.cjs");function uW(r,e){return Zh.setToString(Zh.overRest(r,e,Zh.identity),r+"")}function sit(r,e,t){if(!ai.isObject(t))return!1;var n=typeof e;return(n=="number"?ai.isArrayLike(t)&&ai.isIndex(e,t.length):n=="string"&&e in t)?ai.eq(t[e],r):!1}function lit(r){return uW(function(e,t){var n=-1,i=t.length,a=i>1?t[i-1]:void 0,o=i>2?t[2]:void 0;for(a=r.length>3&&typeof a=="function"?(i--,a):void 0,o&&sit(t[0],t[1],o)&&(a=i<3?void 0:a,i=1),e=Object(e);++n<i;){var s=t[n];s&&r(e,s,n,a)}return e})}var uit="[object Object]",cit=Function.prototype,fit=Object.prototype,cW=cit.toString,hit=fit.hasOwnProperty,dit=cW.call(Object);function fW(r){if(!ai.isObjectLike(r)||ai.baseGetTag(r)!=uit)return!1;var e=ai.getPrototype(r);if(e===null)return!0;var t=hit.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&cW.call(t)==dit}function pit(r){return function(e,t,n){for(var i=-1,a=Object(e),o=n(e),s=o.length;s--;){var l=o[++i];if(t(a[l],l,a)===!1)break}return e}}var hW=pit();function bE(r,e,t){(t!==void 0&&!ai.eq(r[e],t)||t===void 0&&!(e in r))&&ai.baseAssignValue(r,e,t)}function dW(r){return ai.isObjectLike(r)&&ai.isArrayLike(r)}function wE(r,e){if(!(e==="constructor"&&typeof r[e]=="function")&&e!="__proto__")return r[e]}function vit(r){return ai.copyObject(r,ai.keysIn(r))}function git(r,e,t,n,i,a,o){var s=wE(r,t),l=wE(e,t),u=o.get(l);if(u){bE(r,t,u);return}var c=a?a(s,l,t+"",r,e,o):void 0,f=c===void 0;if(f){var h=ai.isArray(l),d=!h&&ai.isBuffer(l),p=!h&&!d&&ai.isTypedArray(l);c=l,h||d||p?ai.isArray(s)?c=s:dW(s)?c=ai.copyArray(s):d?(f=!1,c=ai.cloneBuffer(l,!0)):p?(f=!1,c=ai.cloneTypedArray(l,!0)):c=[]:fW(l)||ai.isArguments(l)?(c=s,ai.isArguments(s)?c=vit(s):(!ai.isObject(s)||ai.isFunction$1(s))&&(c=ai.initCloneObject(l))):f=!1}f&&(o.set(l,c),i(c,l,n,a,o),o.delete(l)),bE(r,t,c)}function pW(r,e,t,n,i){r!==e&&hW(e,function(a,o){if(i||(i=new ai.Stack),ai.isObject(a))git(r,e,o,t,pW,n,i);else{var s=n?n(wE(r,o),a,o+"",r,e,i):void 0;s===void 0&&(s=a),bE(r,o,s)}},ai.keysIn)}var Kh=lit(function(r,e,t){pW(r,e,t)}),bs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function m0(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function mit(r){if(Object.prototype.hasOwnProperty.call(r,"__esModule"))return r;var e=r.default;if(typeof e=="function"){var t=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(r).forEach(function(n){var i=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return r[n]}})}),t}var p4={exports:{}},yit=p4.exports,lO;function bit(){return lO||(lO=1,function(r,e){(function(t,n){r.exports=n()})(yit,function(){var t=1e3,n=6e4,i=36e5,a="millisecond",o="second",s="minute",l="hour",u="day",c="week",f="month",h="quarter",d="year",p="date",g="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(D){var k=["th","st","nd","rd"],C=D%100;return"["+D+(k[(C-20)%10]||k[C]||k[0])+"]"}},b=function(D,k,C){var I=String(D);return!I||I.length>=k?D:""+Array(k+1-I.length).join(C)+D},w={s:b,z:function(D){var k=-D.utcOffset(),C=Math.abs(k),I=Math.floor(C/60),M=C%60;return(k<=0?"+":"-")+b(I,2,"0")+":"+b(M,2,"0")},m:function D(k,C){if(k.date()<C.date())return-D(C,k);var I=12*(C.year()-k.year())+(C.month()-k.month()),M=k.clone().add(I,f),L=C-M<0,z=k.clone().add(I+(L?-1:1),f);return+(-(I+(C-M)/(L?M-z:z-M))||0)},a:function(D){return D<0?Math.ceil(D)||0:Math.floor(D)},p:function(D){return{M:f,y:d,w:c,d:u,D:p,h:l,m:s,s:o,ms:a,Q:h}[D]||String(D||"").toLowerCase().replace(/s$/,"")},u:function(D){return D===void 0}},_="en",x={};x[_]=v;var S="$isDayjsObject",T=function(D){return D instanceof F||!(!D||!D[S])},A=function D(k,C,I){var M;if(!k)return _;if(typeof k=="string"){var L=k.toLowerCase();x[L]&&(M=L),C&&(x[L]=C,M=L);var z=k.split("-");if(!M&&z.length>1)return D(z[0])}else{var N=k.name;x[N]=k,M=N}return!I&&M&&(_=M),M||!I&&_},B=function(D,k){if(T(D))return D.clone();var C=typeof k=="object"?k:{};return C.date=D,C.args=arguments,new F(C)},O=w;O.l=A,O.i=T,O.w=function(D,k){return B(D,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var F=function(){function D(C){this.$L=A(C.locale,null,!0),this.parse(C),this.$x=this.$x||C.x||{},this[S]=!0}var k=D.prototype;return k.parse=function(C){this.$d=function(I){var M=I.date,L=I.utc;if(M===null)return new Date(NaN);if(O.u(M))return new Date;if(M instanceof Date)return new Date(M);if(typeof M=="string"&&!/Z$/i.test(M)){var z=M.match(m);if(z){var N=z[2]-1||0,U=(z[7]||"0").substring(0,3);return L?new Date(Date.UTC(z[1],N,z[3]||1,z[4]||0,z[5]||0,z[6]||0,U)):new Date(z[1],N,z[3]||1,z[4]||0,z[5]||0,z[6]||0,U)}}return new Date(M)}(C),this.init()},k.init=function(){var C=this.$d;this.$y=C.getFullYear(),this.$M=C.getMonth(),this.$D=C.getDate(),this.$W=C.getDay(),this.$H=C.getHours(),this.$m=C.getMinutes(),this.$s=C.getSeconds(),this.$ms=C.getMilliseconds()},k.$utils=function(){return O},k.isValid=function(){return this.$d.toString()!==g},k.isSame=function(C,I){var M=B(C);return this.startOf(I)<=M&&M<=this.endOf(I)},k.isAfter=function(C,I){return B(C)<this.startOf(I)},k.isBefore=function(C,I){return this.endOf(I)<B(C)},k.$g=function(C,I,M){return O.u(C)?this[I]:this.set(M,C)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(C,I){var M=this,L=!!O.u(I)||I,z=O.p(C),N=function(pt,rt){var X=O.w(M.$u?Date.UTC(M.$y,rt,pt):new Date(M.$y,rt,pt),M);return L?X:X.endOf(u)},U=function(pt,rt){return O.w(M.toDate()[pt].apply(M.toDate("s"),(L?[0,0,0,0]:[23,59,59,999]).slice(rt)),M)},V=this.$W,G=this.$M,Y=this.$D,Q="set"+(this.$u?"UTC":"");switch(z){case d:return L?N(1,0):N(31,11);case f:return L?N(1,G):N(0,G+1);case c:var yt=this.$locale().weekStart||0,ot=(V<yt?V+7:V)-yt;return N(L?Y-ot:Y+(6-ot),G);case u:case p:return U(Q+"Hours",0);case l:return U(Q+"Minutes",1);case s:return U(Q+"Seconds",2);case o:return U(Q+"Milliseconds",3);default:return this.clone()}},k.endOf=function(C){return this.startOf(C,!1)},k.$set=function(C,I){var M,L=O.p(C),z="set"+(this.$u?"UTC":""),N=(M={},M[u]=z+"Date",M[p]=z+"Date",M[f]=z+"Month",M[d]=z+"FullYear",M[l]=z+"Hours",M[s]=z+"Minutes",M[o]=z+"Seconds",M[a]=z+"Milliseconds",M)[L],U=L===u?this.$D+(I-this.$W):I;if(L===f||L===d){var V=this.clone().set(p,1);V.$d[N](U),V.init(),this.$d=V.set(p,Math.min(this.$D,V.daysInMonth())).$d}else N&&this.$d[N](U);return this.init(),this},k.set=function(C,I){return this.clone().$set(C,I)},k.get=function(C){return this[O.p(C)]()},k.add=function(C,I){var M,L=this;C=Number(C);var z=O.p(I),N=function(G){var Y=B(L);return O.w(Y.date(Y.date()+Math.round(G*C)),L)};if(z===f)return this.set(f,this.$M+C);if(z===d)return this.set(d,this.$y+C);if(z===u)return N(1);if(z===c)return N(7);var U=(M={},M[s]=n,M[l]=i,M[o]=t,M)[z]||1,V=this.$d.getTime()+C*U;return O.w(V,this)},k.subtract=function(C,I){return this.add(-1*C,I)},k.format=function(C){var I=this,M=this.$locale();if(!this.isValid())return M.invalidDate||g;var L=C||"YYYY-MM-DDTHH:mm:ssZ",z=O.z(this),N=this.$H,U=this.$m,V=this.$M,G=M.weekdays,Y=M.months,Q=M.meridiem,yt=function(rt,X,et,ut){return rt&&(rt[X]||rt(I,L))||et[X].slice(0,ut)},ot=function(rt){return O.s(N%12||12,rt,"0")},pt=Q||function(rt,X,et){var ut=rt<12?"AM":"PM";return et?ut.toLowerCase():ut};return L.replace(y,function(rt,X){return X||function(et){switch(et){case"YY":return String(I.$y).slice(-2);case"YYYY":return O.s(I.$y,4,"0");case"M":return V+1;case"MM":return O.s(V+1,2,"0");case"MMM":return yt(M.monthsShort,V,Y,3);case"MMMM":return yt(Y,V);case"D":return I.$D;case"DD":return O.s(I.$D,2,"0");case"d":return String(I.$W);case"dd":return yt(M.weekdaysMin,I.$W,G,2);case"ddd":return yt(M.weekdaysShort,I.$W,G,3);case"dddd":return G[I.$W];case"H":return String(N);case"HH":return O.s(N,2,"0");case"h":return ot(1);case"hh":return ot(2);case"a":return pt(N,U,!0);case"A":return pt(N,U,!1);case"m":return String(U);case"mm":return O.s(U,2,"0");case"s":return String(I.$s);case"ss":return O.s(I.$s,2,"0");case"SSS":return O.s(I.$ms,3,"0");case"Z":return z}return null}(rt)||z.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(C,I,M){var L,z=this,N=O.p(I),U=B(C),V=(U.utcOffset()-this.utcOffset())*n,G=this-U,Y=function(){return O.m(z,U)};switch(N){case d:L=Y()/12;break;case f:L=Y();break;case h:L=Y()/3;break;case c:L=(G-V)/6048e5;break;case u:L=(G-V)/864e5;break;case l:L=G/i;break;case s:L=G/n;break;case o:L=G/t;break;default:L=G}return M?L:O.a(L)},k.daysInMonth=function(){return this.endOf(f).$D},k.$locale=function(){return x[this.$L]},k.locale=function(C,I){if(!C)return this.$L;var M=this.clone(),L=A(C,I,!0);return L&&(M.$L=L),M},k.clone=function(){return O.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},D}(),E=F.prototype;return B.prototype=E,[["$ms",a],["$s",o],["$m",s],["$H",l],["$W",u],["$M",f],["$y",d],["$D",p]].forEach(function(D){E[D[1]]=function(k){return this.$g(k,D[0],D[1])}}),B.extend=function(D,k){return D.$i||(D(k,F,B),D.$i=!0),B},B.locale=A,B.isDayjs=T,B.unix=function(D){return B(1e3*D)},B.en=x[_],B.Ls=x,B.p={},B})}(p4)),p4.exports}var wit=bit();const _it=m0(wit),xit=ai.useLoginState(ai.pinia),{loginUserInfo:BT}=ai.storeToRefs(xit),Sit=async r=>{var i,a,o,s,l,u,c,f,h,d,p,g,m,y,v,b,w,_,x,S,T,A,B,O,F,E,D,k,C,I,M,L;let e=[];(i=r==null?void 0:r.menuSelect)==null||i.forEach(z=>{});let t="",n;if(r!=null&&r.menuSelect&&(n=await Zh.menuToParent(r==null?void 0:r.menuSelect)),n==null||n.forEach(z=>{var N,U;(z==null?void 0:z.name)===(((U=(N=r==null?void 0:r.groupSelect)==null?void 0:N[0])==null?void 0:U.replaceAll("'",""))??"")&&(t=z==null?void 0:z.id)}),r!=null&&r.menuId){t=r==null?void 0:r.menuId;const z=await ai.getInsofDataApi({id:t}),N=(l=(s=(o=(a=z==null?void 0:z.data)==null?void 0:a.result)==null?void 0:o[0])==null?void 0:s.key)==null?void 0:l.pageKey;n=await Zh.getItemData(N,sessionStorage.getItem("systemKey"),"")}if(t!==""){const z=(f=(c=(u=n==null?void 0:n.find(V=>(V==null?void 0:V.id)===t))==null?void 0:u.compData)==null?void 0:c.find(V=>(V==null?void 0:V.key)==="header"))==null?void 0:f.contents;let N=0;z.every(V=>Array.isArray(V))?N=(h=z==null?void 0:z[0])==null?void 0:h.findIndex(V=>{var G,Y,Q;return(V==null?void 0:V.label)===((Q=(Y=(G=r==null?void 0:r.groupSelect)==null?void 0:G[1])==null?void 0:Y.replaceAll("[",""))==null?void 0:Q.replaceAll("]",""))}):N=z==null?void 0:z.findIndex(V=>{var G,Y,Q;return(V==null?void 0:V.label)===((Q=(Y=(G=r==null?void 0:r.groupSelect)==null?void 0:G[1])==null?void 0:Y.replaceAll("[",""))==null?void 0:Q.replaceAll("]",""))}),N===-1&&(N=0);let U=(m=(g=(p=(d=n==null?void 0:n.find(V=>(V==null?void 0:V.id)===t))==null?void 0:d.compData)==null?void 0:p.find(V=>(V==null?void 0:V.key)==="tableContents"))==null?void 0:g.contents)==null?void 0:m.map(V=>(V=V==null?void 0:V.filter(G=>!(G!=null&&G.id)),V));if((r==null?void 0:r.filter)!==""){let V={};V[(v=(y=r==null?void 0:r.filter)==null?void 0:y.split("#"))==null?void 0:v[0]]=(w=(b=r==null?void 0:r.filter)==null?void 0:b.split("#"))==null?void 0:w[1];let G=(x=(_=r==null?void 0:r.filter)==null?void 0:_.split("#"))==null?void 0:x[1];G==="@loginUser"&&(G=((S=BT.value)==null?void 0:S.姓名)||((T=BT.value)==null?void 0:T.account)||((A=BT.value)==null?void 0:A.账号));let Y=z==null?void 0:z.findIndex(Q=>{var yt,ot;return(Q==null?void 0:Q.prop)===((ot=(yt=Object.keys(V))==null?void 0:yt[0])==null?void 0:ot.replaceAll("'",""))});U=U==null?void 0:U.filter(Q=>(Q==null?void 0:Q[Y])===G)}if((B=r==null?void 0:r.menuFilter)!=null&&B.find(V=>{var G;return(G=V==null?void 0:V.content)==null?void 0:G.includes("@Condition")})){let V=(D=(E=(F=(O=r==null?void 0:r.menuFilter)==null?void 0:O.find(Y=>{var Q;return(Q=Y==null?void 0:Y.content)==null?void 0:Q.includes("@Condition")}))==null?void 0:F.content)==null?void 0:E.split(":"))==null?void 0:D[1],G=(k=n==null?void 0:n.find(Y=>(Y==null?void 0:Y.id)===t))==null?void 0:k.compData;U=(L=(M=(I=(C=Zh.onConditionContents([G],V))==null?void 0:C[0])==null?void 0:I.find(Y=>(Y==null?void 0:Y.key)==="tableContents"))==null?void 0:M.contents)==null?void 0:L.map(Y=>(Y=Y==null?void 0:Y.filter(Q=>!(Q!=null&&Q.id)),Y))}U==null||U.forEach(V=>{e.push({label:V==null?void 0:V[N],value:V==null?void 0:V[N]})})}return e};/**!
1
+ "use strict";var ait=Object.defineProperty;var oit=(r,e,t)=>e in r?ait(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var Cr=(r,e,t)=>oit(r,typeof e!="symbol"?e+"":e,t);const ai=require("./index-1z9RrjZc.cjs"),Zh=require("./index.vue_vue_type_style_index_1_lang-YnBuuwY6.cjs");function uW(r,e){return Zh.setToString(Zh.overRest(r,e,Zh.identity),r+"")}function sit(r,e,t){if(!ai.isObject(t))return!1;var n=typeof e;return(n=="number"?ai.isArrayLike(t)&&ai.isIndex(e,t.length):n=="string"&&e in t)?ai.eq(t[e],r):!1}function lit(r){return uW(function(e,t){var n=-1,i=t.length,a=i>1?t[i-1]:void 0,o=i>2?t[2]:void 0;for(a=r.length>3&&typeof a=="function"?(i--,a):void 0,o&&sit(t[0],t[1],o)&&(a=i<3?void 0:a,i=1),e=Object(e);++n<i;){var s=t[n];s&&r(e,s,n,a)}return e})}var uit="[object Object]",cit=Function.prototype,fit=Object.prototype,cW=cit.toString,hit=fit.hasOwnProperty,dit=cW.call(Object);function fW(r){if(!ai.isObjectLike(r)||ai.baseGetTag(r)!=uit)return!1;var e=ai.getPrototype(r);if(e===null)return!0;var t=hit.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&cW.call(t)==dit}function pit(r){return function(e,t,n){for(var i=-1,a=Object(e),o=n(e),s=o.length;s--;){var l=o[++i];if(t(a[l],l,a)===!1)break}return e}}var hW=pit();function bE(r,e,t){(t!==void 0&&!ai.eq(r[e],t)||t===void 0&&!(e in r))&&ai.baseAssignValue(r,e,t)}function dW(r){return ai.isObjectLike(r)&&ai.isArrayLike(r)}function wE(r,e){if(!(e==="constructor"&&typeof r[e]=="function")&&e!="__proto__")return r[e]}function vit(r){return ai.copyObject(r,ai.keysIn(r))}function git(r,e,t,n,i,a,o){var s=wE(r,t),l=wE(e,t),u=o.get(l);if(u){bE(r,t,u);return}var c=a?a(s,l,t+"",r,e,o):void 0,f=c===void 0;if(f){var h=ai.isArray(l),d=!h&&ai.isBuffer(l),p=!h&&!d&&ai.isTypedArray(l);c=l,h||d||p?ai.isArray(s)?c=s:dW(s)?c=ai.copyArray(s):d?(f=!1,c=ai.cloneBuffer(l,!0)):p?(f=!1,c=ai.cloneTypedArray(l,!0)):c=[]:fW(l)||ai.isArguments(l)?(c=s,ai.isArguments(s)?c=vit(s):(!ai.isObject(s)||ai.isFunction$1(s))&&(c=ai.initCloneObject(l))):f=!1}f&&(o.set(l,c),i(c,l,n,a,o),o.delete(l)),bE(r,t,c)}function pW(r,e,t,n,i){r!==e&&hW(e,function(a,o){if(i||(i=new ai.Stack),ai.isObject(a))git(r,e,o,t,pW,n,i);else{var s=n?n(wE(r,o),a,o+"",r,e,i):void 0;s===void 0&&(s=a),bE(r,o,s)}},ai.keysIn)}var Kh=lit(function(r,e,t){pW(r,e,t)}),bs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function m0(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function mit(r){if(Object.prototype.hasOwnProperty.call(r,"__esModule"))return r;var e=r.default;if(typeof e=="function"){var t=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(r).forEach(function(n){var i=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return r[n]}})}),t}var p4={exports:{}},yit=p4.exports,lO;function bit(){return lO||(lO=1,function(r,e){(function(t,n){r.exports=n()})(yit,function(){var t=1e3,n=6e4,i=36e5,a="millisecond",o="second",s="minute",l="hour",u="day",c="week",f="month",h="quarter",d="year",p="date",g="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(D){var k=["th","st","nd","rd"],C=D%100;return"["+D+(k[(C-20)%10]||k[C]||k[0])+"]"}},b=function(D,k,C){var I=String(D);return!I||I.length>=k?D:""+Array(k+1-I.length).join(C)+D},w={s:b,z:function(D){var k=-D.utcOffset(),C=Math.abs(k),I=Math.floor(C/60),M=C%60;return(k<=0?"+":"-")+b(I,2,"0")+":"+b(M,2,"0")},m:function D(k,C){if(k.date()<C.date())return-D(C,k);var I=12*(C.year()-k.year())+(C.month()-k.month()),M=k.clone().add(I,f),L=C-M<0,z=k.clone().add(I+(L?-1:1),f);return+(-(I+(C-M)/(L?M-z:z-M))||0)},a:function(D){return D<0?Math.ceil(D)||0:Math.floor(D)},p:function(D){return{M:f,y:d,w:c,d:u,D:p,h:l,m:s,s:o,ms:a,Q:h}[D]||String(D||"").toLowerCase().replace(/s$/,"")},u:function(D){return D===void 0}},_="en",x={};x[_]=v;var S="$isDayjsObject",T=function(D){return D instanceof F||!(!D||!D[S])},A=function D(k,C,I){var M;if(!k)return _;if(typeof k=="string"){var L=k.toLowerCase();x[L]&&(M=L),C&&(x[L]=C,M=L);var z=k.split("-");if(!M&&z.length>1)return D(z[0])}else{var N=k.name;x[N]=k,M=N}return!I&&M&&(_=M),M||!I&&_},B=function(D,k){if(T(D))return D.clone();var C=typeof k=="object"?k:{};return C.date=D,C.args=arguments,new F(C)},O=w;O.l=A,O.i=T,O.w=function(D,k){return B(D,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var F=function(){function D(C){this.$L=A(C.locale,null,!0),this.parse(C),this.$x=this.$x||C.x||{},this[S]=!0}var k=D.prototype;return k.parse=function(C){this.$d=function(I){var M=I.date,L=I.utc;if(M===null)return new Date(NaN);if(O.u(M))return new Date;if(M instanceof Date)return new Date(M);if(typeof M=="string"&&!/Z$/i.test(M)){var z=M.match(m);if(z){var N=z[2]-1||0,U=(z[7]||"0").substring(0,3);return L?new Date(Date.UTC(z[1],N,z[3]||1,z[4]||0,z[5]||0,z[6]||0,U)):new Date(z[1],N,z[3]||1,z[4]||0,z[5]||0,z[6]||0,U)}}return new Date(M)}(C),this.init()},k.init=function(){var C=this.$d;this.$y=C.getFullYear(),this.$M=C.getMonth(),this.$D=C.getDate(),this.$W=C.getDay(),this.$H=C.getHours(),this.$m=C.getMinutes(),this.$s=C.getSeconds(),this.$ms=C.getMilliseconds()},k.$utils=function(){return O},k.isValid=function(){return this.$d.toString()!==g},k.isSame=function(C,I){var M=B(C);return this.startOf(I)<=M&&M<=this.endOf(I)},k.isAfter=function(C,I){return B(C)<this.startOf(I)},k.isBefore=function(C,I){return this.endOf(I)<B(C)},k.$g=function(C,I,M){return O.u(C)?this[I]:this.set(M,C)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(C,I){var M=this,L=!!O.u(I)||I,z=O.p(C),N=function(pt,rt){var X=O.w(M.$u?Date.UTC(M.$y,rt,pt):new Date(M.$y,rt,pt),M);return L?X:X.endOf(u)},U=function(pt,rt){return O.w(M.toDate()[pt].apply(M.toDate("s"),(L?[0,0,0,0]:[23,59,59,999]).slice(rt)),M)},V=this.$W,G=this.$M,Y=this.$D,Q="set"+(this.$u?"UTC":"");switch(z){case d:return L?N(1,0):N(31,11);case f:return L?N(1,G):N(0,G+1);case c:var yt=this.$locale().weekStart||0,ot=(V<yt?V+7:V)-yt;return N(L?Y-ot:Y+(6-ot),G);case u:case p:return U(Q+"Hours",0);case l:return U(Q+"Minutes",1);case s:return U(Q+"Seconds",2);case o:return U(Q+"Milliseconds",3);default:return this.clone()}},k.endOf=function(C){return this.startOf(C,!1)},k.$set=function(C,I){var M,L=O.p(C),z="set"+(this.$u?"UTC":""),N=(M={},M[u]=z+"Date",M[p]=z+"Date",M[f]=z+"Month",M[d]=z+"FullYear",M[l]=z+"Hours",M[s]=z+"Minutes",M[o]=z+"Seconds",M[a]=z+"Milliseconds",M)[L],U=L===u?this.$D+(I-this.$W):I;if(L===f||L===d){var V=this.clone().set(p,1);V.$d[N](U),V.init(),this.$d=V.set(p,Math.min(this.$D,V.daysInMonth())).$d}else N&&this.$d[N](U);return this.init(),this},k.set=function(C,I){return this.clone().$set(C,I)},k.get=function(C){return this[O.p(C)]()},k.add=function(C,I){var M,L=this;C=Number(C);var z=O.p(I),N=function(G){var Y=B(L);return O.w(Y.date(Y.date()+Math.round(G*C)),L)};if(z===f)return this.set(f,this.$M+C);if(z===d)return this.set(d,this.$y+C);if(z===u)return N(1);if(z===c)return N(7);var U=(M={},M[s]=n,M[l]=i,M[o]=t,M)[z]||1,V=this.$d.getTime()+C*U;return O.w(V,this)},k.subtract=function(C,I){return this.add(-1*C,I)},k.format=function(C){var I=this,M=this.$locale();if(!this.isValid())return M.invalidDate||g;var L=C||"YYYY-MM-DDTHH:mm:ssZ",z=O.z(this),N=this.$H,U=this.$m,V=this.$M,G=M.weekdays,Y=M.months,Q=M.meridiem,yt=function(rt,X,et,ut){return rt&&(rt[X]||rt(I,L))||et[X].slice(0,ut)},ot=function(rt){return O.s(N%12||12,rt,"0")},pt=Q||function(rt,X,et){var ut=rt<12?"AM":"PM";return et?ut.toLowerCase():ut};return L.replace(y,function(rt,X){return X||function(et){switch(et){case"YY":return String(I.$y).slice(-2);case"YYYY":return O.s(I.$y,4,"0");case"M":return V+1;case"MM":return O.s(V+1,2,"0");case"MMM":return yt(M.monthsShort,V,Y,3);case"MMMM":return yt(Y,V);case"D":return I.$D;case"DD":return O.s(I.$D,2,"0");case"d":return String(I.$W);case"dd":return yt(M.weekdaysMin,I.$W,G,2);case"ddd":return yt(M.weekdaysShort,I.$W,G,3);case"dddd":return G[I.$W];case"H":return String(N);case"HH":return O.s(N,2,"0");case"h":return ot(1);case"hh":return ot(2);case"a":return pt(N,U,!0);case"A":return pt(N,U,!1);case"m":return String(U);case"mm":return O.s(U,2,"0");case"s":return String(I.$s);case"ss":return O.s(I.$s,2,"0");case"SSS":return O.s(I.$ms,3,"0");case"Z":return z}return null}(rt)||z.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(C,I,M){var L,z=this,N=O.p(I),U=B(C),V=(U.utcOffset()-this.utcOffset())*n,G=this-U,Y=function(){return O.m(z,U)};switch(N){case d:L=Y()/12;break;case f:L=Y();break;case h:L=Y()/3;break;case c:L=(G-V)/6048e5;break;case u:L=(G-V)/864e5;break;case l:L=G/i;break;case s:L=G/n;break;case o:L=G/t;break;default:L=G}return M?L:O.a(L)},k.daysInMonth=function(){return this.endOf(f).$D},k.$locale=function(){return x[this.$L]},k.locale=function(C,I){if(!C)return this.$L;var M=this.clone(),L=A(C,I,!0);return L&&(M.$L=L),M},k.clone=function(){return O.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},D}(),E=F.prototype;return B.prototype=E,[["$ms",a],["$s",o],["$m",s],["$H",l],["$W",u],["$M",f],["$y",d],["$D",p]].forEach(function(D){E[D[1]]=function(k){return this.$g(k,D[0],D[1])}}),B.extend=function(D,k){return D.$i||(D(k,F,B),D.$i=!0),B},B.locale=A,B.isDayjs=T,B.unix=function(D){return B(1e3*D)},B.en=x[_],B.Ls=x,B.p={},B})}(p4)),p4.exports}var wit=bit();const _it=m0(wit),xit=ai.useLoginState(ai.pinia),{loginUserInfo:BT}=ai.storeToRefs(xit),Sit=async r=>{var i,a,o,s,l,u,c,f,h,d,p,g,m,y,v,b,w,_,x,S,T,A,B,O,F,E,D,k,C,I,M,L;let e=[];(i=r==null?void 0:r.menuSelect)==null||i.forEach(z=>{});let t="",n;if(r!=null&&r.menuSelect&&(n=await Zh.menuToParent(r==null?void 0:r.menuSelect)),n==null||n.forEach(z=>{var N,U;(z==null?void 0:z.name)===(((U=(N=r==null?void 0:r.groupSelect)==null?void 0:N[0])==null?void 0:U.replaceAll("'",""))??"")&&(t=z==null?void 0:z.id)}),r!=null&&r.menuId){t=r==null?void 0:r.menuId;const z=await ai.getInsofDataApi({id:t}),N=(l=(s=(o=(a=z==null?void 0:z.data)==null?void 0:a.result)==null?void 0:o[0])==null?void 0:s.key)==null?void 0:l.pageKey;n=await Zh.getItemData(N,sessionStorage.getItem("systemKey"),"")}if(t!==""){const z=(f=(c=(u=n==null?void 0:n.find(V=>(V==null?void 0:V.id)===t))==null?void 0:u.compData)==null?void 0:c.find(V=>(V==null?void 0:V.key)==="header"))==null?void 0:f.contents;let N=0;z.every(V=>Array.isArray(V))?N=(h=z==null?void 0:z[0])==null?void 0:h.findIndex(V=>{var G,Y,Q;return(V==null?void 0:V.label)===((Q=(Y=(G=r==null?void 0:r.groupSelect)==null?void 0:G[1])==null?void 0:Y.replaceAll("[",""))==null?void 0:Q.replaceAll("]",""))}):N=z==null?void 0:z.findIndex(V=>{var G,Y,Q;return(V==null?void 0:V.label)===((Q=(Y=(G=r==null?void 0:r.groupSelect)==null?void 0:G[1])==null?void 0:Y.replaceAll("[",""))==null?void 0:Q.replaceAll("]",""))}),N===-1&&(N=0);let U=(m=(g=(p=(d=n==null?void 0:n.find(V=>(V==null?void 0:V.id)===t))==null?void 0:d.compData)==null?void 0:p.find(V=>(V==null?void 0:V.key)==="tableContents"))==null?void 0:g.contents)==null?void 0:m.map(V=>(V=V==null?void 0:V.filter(G=>!(G!=null&&G.id)),V));if((r==null?void 0:r.filter)!==""){let V={};V[(v=(y=r==null?void 0:r.filter)==null?void 0:y.split("#"))==null?void 0:v[0]]=(w=(b=r==null?void 0:r.filter)==null?void 0:b.split("#"))==null?void 0:w[1];let G=(x=(_=r==null?void 0:r.filter)==null?void 0:_.split("#"))==null?void 0:x[1];G==="@loginUser"&&(G=((S=BT.value)==null?void 0:S.姓名)||((T=BT.value)==null?void 0:T.account)||((A=BT.value)==null?void 0:A.账号));let Y=z==null?void 0:z.findIndex(Q=>{var yt,ot;return(Q==null?void 0:Q.prop)===((ot=(yt=Object.keys(V))==null?void 0:yt[0])==null?void 0:ot.replaceAll("'",""))});U=U==null?void 0:U.filter(Q=>(Q==null?void 0:Q[Y])===G)}if((B=r==null?void 0:r.menuFilter)!=null&&B.find(V=>{var G;return(G=V==null?void 0:V.content)==null?void 0:G.includes("@Condition")})){let V=(D=(E=(F=(O=r==null?void 0:r.menuFilter)==null?void 0:O.find(Y=>{var Q;return(Q=Y==null?void 0:Y.content)==null?void 0:Q.includes("@Condition")}))==null?void 0:F.content)==null?void 0:E.split(":"))==null?void 0:D[1],G=(k=n==null?void 0:n.find(Y=>(Y==null?void 0:Y.id)===t))==null?void 0:k.compData;U=(L=(M=(I=(C=Zh.onConditionContents([G],V))==null?void 0:C[0])==null?void 0:I.find(Y=>(Y==null?void 0:Y.key)==="tableContents"))==null?void 0:M.contents)==null?void 0:L.map(Y=>(Y=Y==null?void 0:Y.filter(Q=>!(Q!=null&&Q.id)),Y))}U==null||U.forEach(V=>{e.push({label:V==null?void 0:V[N],value:V==null?void 0:V[N]})})}return e};/**!
2
2
  * Sortable 1.15.6
3
3
  * @author RubaXa <trash@rubaxa.org>
4
4
  * @author owenm <owen23355@gmail.com>
@@ -1 +1 @@
1
- "use strict";const s=require("vue"),ne=require("./index-BpPyaNFa.cjs"),w=require("./index-1z9RrjZc.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-0YQ6oGXD.cjs");const R=require("./index.vue_vue_type_style_index_1_lang-0RaoPzBs.cjs"),le=require("./index-BZtXRbEZ.cjs"),oe=require("vue-router"),k=require("./index-9hspBVrQ.cjs"),ue=require("./index-C8W8SOHQ.cjs"),P=s.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-HNf73U8z.cjs")).then(v=>v.index));P.install=v=>{v.component("ssMenu",P)};const U={__name:"index",props:{name:String},setup(v){const a=v,x=s.computed(()=>w.ElIcons[a.name]);return s.onMounted(()=>{}),(T,g)=>{const S=s.resolveComponent("el-icon");return s.openBlock(),s.createBlock(S,null,{default:s.withCtx(()=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(x.value)))]),_:1})}}},ce=s.defineComponent({name:"menu",components:{SvgIcon:ne.SvgIcon,ssMenu:P,DynamicIcon:U,ssDialog:le.ssDialog},setup(){const v=s.defineProps({mode:{type:String,default:"vertical"}}),a=R.useMenuState(),x=R.useModelComp(w.pinia),T=s.ref(0),g=oe.useRouter(),{asideMenus:S,menuTriggerType:V,platform:z}=w.storeToRefs(a),H=s.computed(()=>v==null?void 0:v.mode),B=s.computed(()=>{let e=[...S.value];if((e==null?void 0:e.length)===0)return g.push("/"),[];const t=G(e,L.value);return t.isFlag||(e=t==null?void 0:t.data),e}),W=async e=>{x.setRouteToChildPath(""),a.setMenuTriggerType("click"),a.setActiveMenuPath(e==null?void 0:e.path),a.setActiveAsideMenu(e),e.isRouter?g.push(e.path):g.push("/")},J=async e=>{const t=w.findNodeByPropInTree(B.value,"path",e);a.setActiveAsideMenu(t),x.setRouteToChildPath(""),V.value==="click"?T.value===1?a.setActiveMenuPath(sessionStorage.getItem("pageKey")):a.setActiveMenuPath(e):(a.setMenuTriggerType("click"),a.setActiveMenuPath(e)),e!=null&&e.startsWith("/")?g.push(e):g.push("/"),T.value++},K=e=>{a.setActiveMenuPath(e)},h=e=>{const t=document.documentElement;e==null||e.forEach(o=>{t.style.setProperty(o.name,o.value)})};s.onMounted(()=>{T.value=1});const L=s.computed(()=>{const e=sessionStorage.getItem("authority");return e?JSON.parse(e):[]});s.watch(()=>z.value,e=>{e==="browser"?h(k.browserVerticalMenuClasses):e==="client"?(h(k.clientHorizontalMenuClasses),h(k.clientVerticalMenuClasses)):e==="three"&&(h(k.threeHorizontalMenuClasses),h(k.threeVerticalMenuClasses))},{immediate:!0});const j=(e,t)=>{function o(u){u==null||u.forEach(r=>{var f,C;const c=(f=r==null?void 0:r.path)!=null&&f.startsWith("/")?(C=r==null?void 0:r.path)==null?void 0:C.substring(1):r==null?void 0:r.path;r.show=t==null?void 0:t.some(d=>d==null?void 0:d.includes(c)),r.children&&o(r.children)})}return o(e),e},G=(e,t)=>{if(Array.isArray(t)){const o=Array.from(new Set(t==null?void 0:t.map(u=>u.substring(0,u.lastIndexOf("/")))));return{data:j(e,o),isFlag:!1}}else return{isFlag:(t==null?void 0:t.toUpperCase())==="SUPERADMIN"}},p=s.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),I=e=>ue.getComponent(e),Q=s.ref({}),F=s.ref([]),X=async(e,t,o)=>{var C,d,E;if(!(e!=null&&e.structureIds)||((C=e==null?void 0:e.structureIds)==null?void 0:C.length)===0)return;const u=(E=(d=e==null?void 0:e.structureIds)==null?void 0:d.filter(n=>(n==null?void 0:n.key)==="dialogConfig"))==null?void 0:E.map(n=>n==null?void 0:n.id);let r=u==null?void 0:u.map(n=>w.getInsofDataApi({id:n}));const c=await Promise.all(r);if(c==null?void 0:c.every(n=>{var l;return((l=n==null?void 0:n.data)==null?void 0:l.code)===200})){const n=c==null?void 0:c.map(l=>{var _,m,i,A,D,O,N;return{id:(i=(m=(_=l==null?void 0:l.data)==null?void 0:_.result)==null?void 0:m[0])==null?void 0:i.id,...(N=(O=(D=(A=l==null?void 0:l.data)==null?void 0:A.result)==null?void 0:D[0])==null?void 0:O.value)==null?void 0:N.pageData}});t==="create"&&(F.value=n),t==="update"&&(F.value=n==null?void 0:n.map(l=>{var _,m;return((_=l==null?void 0:l.comp)==null?void 0:_.toUpperCase())==="FORM"?{...l,compData:(m=l==null?void 0:l.compData)==null?void 0:m.map(i=>{var A;return(i==null?void 0:i.key)==="formContent"?{...i,contents:(A=i==null?void 0:i.contents)==null?void 0:A.map(D=>({...D,value:o==null?void 0:o.title}))}:i})}:l}))}},y=s.ref({}),M=s.ref({}),Y=e=>{switch(e){case"新增":return"create";case"编辑":return"update";case"删除":return"delete"}},b=s.ref({}),$=e=>{a.setCacheInputMenu({type:p.type,data:e}),a.setIsRefreshMenus(!0)},Z=async(e,t)=>{p.type=Y(t==null?void 0:t.operateType),await X(t,p.type,e),M.value=e,b.value=t,(t==null?void 0:t.operateType)!=="删除"?(p.show=(t==null?void 0:t.trigger)==="openDialog",p.title=(t==null?void 0:t.operateType)+"菜单"):R.ElMessageBox.confirm(`是否确认要删除【${e==null?void 0:e.title}】`,"",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{$(e)})},ee=()=>{p.show=!1},te=e=>e==null?void 0:e.filter(t=>t.allowInherit),se=()=>{var o,u,r,c,f;let e;p.type==="create"&&(e=((o=M.value)==null?void 0:o.path)+"/"+y.value[(u=y.value)==null?void 0:u.prop]),p.type==="update"&&(e=(r=M.value)==null?void 0:r.path);const t={...M.value,config:te((c=M.value)==null?void 0:c.config),children:[],childMenus:[],title:y.value[(f=y.value)==null?void 0:f.prop],path:e};console.log("clickSubmitForm",b.value,M.value,t),$(t),p.show=!1},re=e=>{var o,u;const t=(o=e==null?void 0:e.contents)==null?void 0:o.find(r=>r.key==="formContent");t&&(y.value=(u=t==null?void 0:t.contents)==null?void 0:u.reduce((r,c)=>(r[c.key]=c.value,r.prop=c.key,r),{}))},q=s.ref(!1);return{isCollapse:q,handleMenuCollapse:()=>{q.value=!q.value},handleCompChange:re,dialogForm:Q,dialogRenderComps:F,getComponents:I,clickSubmitForm:se,dialogInfo:p,beforeDialogDestroy:ee,clickMenuIcon:Z,mode:H,renderMenuList:B,clickMenu:W,openMenu:J,closeMenu:K,changeMenuStyle:h}}});exports._sfc_main=ce;exports._sfc_main$1=U;exports.ssMenu=P;
1
+ "use strict";const s=require("vue"),ne=require("./index-BpPyaNFa.cjs"),w=require("./index-1z9RrjZc.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DyCjVGK4.cjs");const R=require("./index.vue_vue_type_style_index_1_lang-YnBuuwY6.cjs"),le=require("./index-CgXgl7xg.cjs"),oe=require("vue-router"),k=require("./index-9hspBVrQ.cjs"),ue=require("./index-DWCqPPU9.cjs"),P=s.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-aTTU_ja_.cjs")).then(v=>v.index));P.install=v=>{v.component("ssMenu",P)};const U={__name:"index",props:{name:String},setup(v){const a=v,x=s.computed(()=>w.ElIcons[a.name]);return s.onMounted(()=>{}),(T,g)=>{const S=s.resolveComponent("el-icon");return s.openBlock(),s.createBlock(S,null,{default:s.withCtx(()=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(x.value)))]),_:1})}}},ce=s.defineComponent({name:"menu",components:{SvgIcon:ne.SvgIcon,ssMenu:P,DynamicIcon:U,ssDialog:le.ssDialog},setup(){const v=s.defineProps({mode:{type:String,default:"vertical"}}),a=R.useMenuState(),x=R.useModelComp(w.pinia),T=s.ref(0),g=oe.useRouter(),{asideMenus:S,menuTriggerType:V,platform:z}=w.storeToRefs(a),H=s.computed(()=>v==null?void 0:v.mode),B=s.computed(()=>{let e=[...S.value];if((e==null?void 0:e.length)===0)return g.push("/"),[];const t=G(e,L.value);return t.isFlag||(e=t==null?void 0:t.data),e}),W=async e=>{x.setRouteToChildPath(""),a.setMenuTriggerType("click"),a.setActiveMenuPath(e==null?void 0:e.path),a.setActiveAsideMenu(e),e.isRouter?g.push(e.path):g.push("/")},J=async e=>{const t=w.findNodeByPropInTree(B.value,"path",e);a.setActiveAsideMenu(t),x.setRouteToChildPath(""),V.value==="click"?T.value===1?a.setActiveMenuPath(sessionStorage.getItem("pageKey")):a.setActiveMenuPath(e):(a.setMenuTriggerType("click"),a.setActiveMenuPath(e)),e!=null&&e.startsWith("/")?g.push(e):g.push("/"),T.value++},K=e=>{a.setActiveMenuPath(e)},h=e=>{const t=document.documentElement;e==null||e.forEach(o=>{t.style.setProperty(o.name,o.value)})};s.onMounted(()=>{T.value=1});const L=s.computed(()=>{const e=sessionStorage.getItem("authority");return e?JSON.parse(e):[]});s.watch(()=>z.value,e=>{e==="browser"?h(k.browserVerticalMenuClasses):e==="client"?(h(k.clientHorizontalMenuClasses),h(k.clientVerticalMenuClasses)):e==="three"&&(h(k.threeHorizontalMenuClasses),h(k.threeVerticalMenuClasses))},{immediate:!0});const j=(e,t)=>{function o(u){u==null||u.forEach(r=>{var f,C;const c=(f=r==null?void 0:r.path)!=null&&f.startsWith("/")?(C=r==null?void 0:r.path)==null?void 0:C.substring(1):r==null?void 0:r.path;r.show=t==null?void 0:t.some(d=>d==null?void 0:d.includes(c)),r.children&&o(r.children)})}return o(e),e},G=(e,t)=>{if(Array.isArray(t)){const o=Array.from(new Set(t==null?void 0:t.map(u=>u.substring(0,u.lastIndexOf("/")))));return{data:j(e,o),isFlag:!1}}else return{isFlag:(t==null?void 0:t.toUpperCase())==="SUPERADMIN"}},p=s.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),I=e=>ue.getComponent(e),Q=s.ref({}),F=s.ref([]),X=async(e,t,o)=>{var C,d,E;if(!(e!=null&&e.structureIds)||((C=e==null?void 0:e.structureIds)==null?void 0:C.length)===0)return;const u=(E=(d=e==null?void 0:e.structureIds)==null?void 0:d.filter(n=>(n==null?void 0:n.key)==="dialogConfig"))==null?void 0:E.map(n=>n==null?void 0:n.id);let r=u==null?void 0:u.map(n=>w.getInsofDataApi({id:n}));const c=await Promise.all(r);if(c==null?void 0:c.every(n=>{var l;return((l=n==null?void 0:n.data)==null?void 0:l.code)===200})){const n=c==null?void 0:c.map(l=>{var _,m,i,A,D,O,N;return{id:(i=(m=(_=l==null?void 0:l.data)==null?void 0:_.result)==null?void 0:m[0])==null?void 0:i.id,...(N=(O=(D=(A=l==null?void 0:l.data)==null?void 0:A.result)==null?void 0:D[0])==null?void 0:O.value)==null?void 0:N.pageData}});t==="create"&&(F.value=n),t==="update"&&(F.value=n==null?void 0:n.map(l=>{var _,m;return((_=l==null?void 0:l.comp)==null?void 0:_.toUpperCase())==="FORM"?{...l,compData:(m=l==null?void 0:l.compData)==null?void 0:m.map(i=>{var A;return(i==null?void 0:i.key)==="formContent"?{...i,contents:(A=i==null?void 0:i.contents)==null?void 0:A.map(D=>({...D,value:o==null?void 0:o.title}))}:i})}:l}))}},y=s.ref({}),M=s.ref({}),Y=e=>{switch(e){case"新增":return"create";case"编辑":return"update";case"删除":return"delete"}},b=s.ref({}),$=e=>{a.setCacheInputMenu({type:p.type,data:e}),a.setIsRefreshMenus(!0)},Z=async(e,t)=>{p.type=Y(t==null?void 0:t.operateType),await X(t,p.type,e),M.value=e,b.value=t,(t==null?void 0:t.operateType)!=="删除"?(p.show=(t==null?void 0:t.trigger)==="openDialog",p.title=(t==null?void 0:t.operateType)+"菜单"):R.ElMessageBox.confirm(`是否确认要删除【${e==null?void 0:e.title}】`,"",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{$(e)})},ee=()=>{p.show=!1},te=e=>e==null?void 0:e.filter(t=>t.allowInherit),se=()=>{var o,u,r,c,f;let e;p.type==="create"&&(e=((o=M.value)==null?void 0:o.path)+"/"+y.value[(u=y.value)==null?void 0:u.prop]),p.type==="update"&&(e=(r=M.value)==null?void 0:r.path);const t={...M.value,config:te((c=M.value)==null?void 0:c.config),children:[],childMenus:[],title:y.value[(f=y.value)==null?void 0:f.prop],path:e};console.log("clickSubmitForm",b.value,M.value,t),$(t),p.show=!1},re=e=>{var o,u;const t=(o=e==null?void 0:e.contents)==null?void 0:o.find(r=>r.key==="formContent");t&&(y.value=(u=t==null?void 0:t.contents)==null?void 0:u.reduce((r,c)=>(r[c.key]=c.value,r.prop=c.key,r),{}))},q=s.ref(!1);return{isCollapse:q,handleMenuCollapse:()=>{q.value=!q.value},handleCompChange:re,dialogForm:Q,dialogRenderComps:F,getComponents:I,clickSubmitForm:se,dialogInfo:p,beforeDialogDestroy:ee,clickMenuIcon:Z,mode:H,renderMenuList:B,clickMenu:W,openMenu:J,closeMenu:K,changeMenuStyle:h}}});exports._sfc_main=ce;exports._sfc_main$1=U;exports.ssMenu=P;
@@ -1,13 +1,13 @@
1
1
  import { defineAsyncComponent as ne, computed as D, onMounted as z, resolveComponent as le, createBlock as U, openBlock as V, withCtx as ae, resolveDynamicComponent as oe, defineComponent as ue, defineProps as ce, ref as g, watch as ie, reactive as pe } from "vue";
2
2
  import { S as ge } from "./index-BHtNKL1L.js";
3
3
  import { bx as ve, p as he, s as fe, by as Me, g as me } from "./index-CYp77kPp.js";
4
- import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CmdURFaC.js";
5
- import { u as Ce, a as ye, E as de } from "./index.vue_vue_type_style_index_1_lang-DtRssJWg.js";
6
- import { s as Ae } from "./index-C3pD8VjA.js";
4
+ import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DkvEh0kU.js";
5
+ import { u as Ce, a as ye, E as de } from "./index.vue_vue_type_style_index_1_lang-vU1VQMfs.js";
6
+ import { s as Ae } from "./index-DFH8aI2Y.js";
7
7
  import { useRouter as we } from "vue-router";
8
8
  import { e as Te, g as ke, h as Se, a as De, d as Pe } from "./index-C2usxP_Q.js";
9
- import { g as _e } from "./index--cSKDs-m.js";
10
- const b = ne(() => import("./index-DZ9voZQn.js").then((p) => p.j));
9
+ import { g as _e } from "./index-BHHFDjsi.js";
10
+ const b = ne(() => import("./index-JqoJqpvd.js").then((p) => p.j));
11
11
  b.install = (p) => {
12
12
  p.component("ssMenu", b);
13
13
  };