ss-component-new 1.3.340 → 1.3.342
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.
- package/dist/{MTLLoader-C-XJYnXR.js → MTLLoader-Ajg9K91w.js} +1 -1
- package/dist/{MTLLoader-Dx_OCevv.cjs → MTLLoader-PBhLgTVu.cjs} +1 -1
- package/dist/{OrbitControls-B55yzIKX.cjs → OrbitControls-C10-pt6H.cjs} +1 -1
- package/dist/{OrbitControls-BB87FyuR.js → OrbitControls-CgEewitL.js} +1 -1
- package/dist/{URDFLoader-Uh4bBb-n.cjs → URDFLoader-Bj47zJKE.cjs} +1 -1
- package/dist/{URDFLoader-DgP2bMhH.js → URDFLoader-CvMjtZ-x.js} +2 -2
- package/dist/{animationData-CF6benhM.js → animationData-BLdkUJ2X.js} +3 -3
- package/dist/{animationData-BfEyrEkb.cjs → animationData-D9-6Rod5.cjs} +1 -1
- package/dist/array-D7Bu5gb2.cjs +1 -0
- package/dist/{array-Dz0LlM28.js → array-DKwq_BSC.js} +38 -39
- package/dist/clone-BUCnBgnS.js +8 -0
- package/dist/clone-y_gmwkJo.cjs +1 -0
- package/dist/day-BNr9Td9D.cjs +7 -0
- package/dist/day-BV-VjzXX.js +2382 -0
- package/dist/{dayjs.min-bC5IyY3C.js → dayjs.min-B8ub8S6d.js} +4 -4
- package/dist/{dayjs.min-CSW85jLQ.cjs → dayjs.min-Bo5ALhPO.cjs} +1 -1
- package/dist/{iconfont-DV-mBuRs.js → iconfont-Cl-SDAtC.js} +2 -2
- package/dist/{iconfont-rvMUQHIL.cjs → iconfont-DpN6kvUK.cjs} +1 -1
- package/dist/index-6iwwUgL6.cjs +104 -0
- package/dist/{index-Dcp8sI4C.js → index-9V23Nn2F.js} +4 -4
- package/dist/index-9WLF0N-m.cjs +15 -0
- package/dist/{index-Ca3THBbJ.cjs → index-B0V9Wfze.cjs} +1 -1
- package/dist/index-B0cDSro0.cjs +1 -0
- package/dist/index-B4Yau3Cx.cjs +1 -0
- package/dist/index-B4u9cnxn.cjs +1 -0
- package/dist/{index-rW-jQkgq.js → index-B4yv_CI9.js} +9 -10
- package/dist/index-B5u9ckAG.cjs +1 -0
- package/dist/{index-C6gCT4vd.js → index-BGRqQYv0.js} +70 -71
- package/dist/{index-CbBP02RV.js → index-BLHM2RZs.js} +4 -4
- package/dist/{index-C4NN-IA4.js → index-BMt9iXGt.js} +16 -17
- package/dist/index-BO9LCv0L.js +327 -0
- package/dist/index-BTpsNI8m.cjs +1 -0
- package/dist/index-Bb9xuBcN.cjs +1 -0
- package/dist/{index-CHAqLCtD.js → index-Bieh0oMN.js} +8 -8
- package/dist/{index-BWpqDCVF.cjs → index-Bl1R6hLx.cjs} +1 -1
- package/dist/index-BndWdAyT.js +168 -0
- package/dist/index-BqtZ8oXB.cjs +1 -0
- package/dist/{index-CHIMUYG3.js → index-BxSJzmcq.js} +16 -17
- package/dist/{index-D0gKkud0.js → index-C3_fcg5b.js} +8 -20
- package/dist/{index-BSCoLGXF.js → index-CLasTJZ7.js} +318 -318
- package/dist/{index-0VkKesv_.js → index-CPuSbD0o.js} +13 -14
- package/dist/{index-DGwbEHLN.js → index-CUmttoQs.js} +6 -7
- package/dist/index-CWea8Hwx.cjs +2 -0
- package/dist/index-Cjsv9UB2.cjs +1 -0
- package/dist/{index-CHnN0kSC.js → index-CkJ5sZmH.js} +268 -279
- package/dist/{index-BPpYDffY.cjs → index-CyAk6NlY.cjs} +1 -1
- package/dist/index-Cz8oXtNa.cjs +1 -0
- package/dist/index-D0D-8tq3.cjs +1 -0
- package/dist/index-D28carCM.cjs +25 -0
- package/dist/{index-Ijbw1FIL.js → index-D2iun0qB.js} +18 -19
- package/dist/{index-BTgJ9oD-.cjs → index-D8TKh-Ur.cjs} +1 -1
- package/dist/index-DBl4_nFE.cjs +1 -0
- package/dist/{index-DMt7y2yA.js → index-DCBM-gqv.js} +104 -113
- package/dist/{index-COowXWF7.cjs → index-DCHyRwyR.cjs} +1 -1
- package/dist/index-DDz6oLBR.cjs +1 -0
- package/dist/{index-DWP-FYxV.js → index-DGaoFZNU.js} +13 -14
- package/dist/index-DJ3sA4Gm.cjs +1 -0
- package/dist/{index-c1EWDQO1.js → index-DKYHED4o.js} +1 -1
- package/dist/{index-CYgpY06q.js → index-DScuDjxN.js} +4 -4
- package/dist/{index-voXPz7Hq.js → index-DaHM_OEL.js} +251 -260
- package/dist/{index-S2ChvJMP.js → index-Dd6fkS6a.js} +1 -1
- package/dist/{index-D6Zkrpou.js → index-DehN_tZl.js} +13 -14
- package/dist/index-DfxDifWX.cjs +1 -0
- package/dist/{index-Bdh2uHRO.js → index-DimgHus_.js} +44 -45
- package/dist/index-DkR9zIgE.cjs +1 -0
- package/dist/index-DlDpjgK7.cjs +1 -0
- package/dist/{index-DN4OcDlg.js → index-Dmstdf9f.js} +1 -1
- package/dist/index-Ds0ibmGw.cjs +1 -0
- package/dist/{index-DLLST1Nd.js → index-DsfZZrDe.js} +11 -12
- package/dist/{index-Zvul3j_r.cjs → index-Dw5QRbm2.cjs} +1 -1
- package/dist/index-Dz06Dix4.js +21 -0
- package/dist/{index-C3lScvOV.cjs → index-Pmf6bCKe.cjs} +1 -1
- package/dist/index-_aEslAdL.cjs +1 -0
- package/dist/index-bs1KW4Mf.js +10008 -0
- package/dist/{index-CgjHHxqY.js → index-czdl81QC.js} +6 -7
- package/dist/index-fxwUfoBD.cjs +1 -0
- package/dist/index-jFQKdLGf.cjs +1 -0
- package/dist/{index-DyJCopUt.js → index-pfsYhNVv.js} +3 -4
- package/dist/index-qyNzhZ9p.js +68 -0
- package/dist/{index-9nQLsFiY.js → index-zwvfPNTm.js} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-CHrvpoVb.js → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-BDgIVZve.js} +1950 -1956
- package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-Dyd5heHe.cjs → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DAAbs6bU.cjs} +336 -336
- package/dist/main-BrOVZokA.cjs +11 -0
- package/dist/{main-Cd_mObtH.js → main-GGbIOSca.js} +8 -9
- package/dist/menu-CYazzvub.cjs +12 -0
- package/dist/menu-DGzm1FYA.js +5675 -0
- package/dist/menuIndex-Br2dXQqi.cjs +1 -0
- package/dist/menuIndex-CoVR5ix7.js +134 -0
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +13 -13
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +115 -10
- package/dist/ss-component3.cjs +1 -1
- package/dist/ss-component3.js +10 -5
- package/dist/{threeModel-CIZ5D8Df.js → threeModel-B8afF4RO.js} +4 -4
- package/dist/{threeModel-Dekl17Re.cjs → threeModel-BIcXUfRq.cjs} +1 -1
- package/dist/threePreview-CuXGNvBL.cjs +1 -0
- package/dist/{threePreview-B46ButBi.js → threePreview-DLxW-XYV.js} +6 -7
- package/dist/{threeSceneView-CoQQCgZ3.cjs → threeSceneView-DHahXsWx.cjs} +1 -1
- package/dist/{threeSceneView-D4mxD9hv.js → threeSceneView-RZtjgaQI.js} +14 -16
- package/dist/{threeSceneViewForCPMPIP-BR01ytzC.cjs → threeSceneViewForCPMPIP-0_i3LOfz.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-DTtZGOcw.js → threeSceneViewForCPMPIP-DMhM6ZvH.js} +10 -11
- package/dist/threeTrackPathView-CrlluuTz.cjs +1 -0
- package/dist/{threeTrackPathView-BQPS8ajS.js → threeTrackPathView-cclE9z18.js} +87 -88
- package/dist/threeViewerHost-BaEB4k1F.cjs +1 -0
- package/dist/{threeViewerHost-CsMI9jbX.js → threeViewerHost-LoU6OtMI.js} +10 -11
- package/dist/{urdfTree-umPKeRFh.cjs → urdfTree-BTD0A42y.cjs} +1 -1
- package/dist/{urdfTree-B118FC_3.js → urdfTree-RdS14ARy.js} +1 -1
- package/dist/{workpieceTreePanel-CwUXRyn3.cjs → workpieceTreePanel-CfwoCG1K.cjs} +1 -1
- package/dist/{workpieceTreePanel-D9TnLdIy.js → workpieceTreePanel-Q4_hCBXx.js} +4 -4
- package/package.json +1 -1
- package/dist/array-Dk18oefG.cjs +0 -1
- package/dist/clone-BDBSWARv.cjs +0 -1
- package/dist/clone-BqeCvECh.js +0 -8
- package/dist/index--E8u7lHy.cjs +0 -12
- package/dist/index-B38fQMRk.cjs +0 -1
- package/dist/index-BIg-Nt0x.cjs +0 -25
- package/dist/index-BQO25T-T.cjs +0 -1
- package/dist/index-BchGbZ1v.cjs +0 -15
- package/dist/index-Bio1_C_H.cjs +0 -1
- package/dist/index-BmJV5eVh.js +0 -4669
- package/dist/index-BtyugMgY.cjs +0 -1
- package/dist/index-BzeH13wt.cjs +0 -1
- package/dist/index-C3-1AlM-.js +0 -2765
- package/dist/index-C9baGOvW.js +0 -9647
- package/dist/index-CMsGT7Tl.cjs +0 -1
- package/dist/index-COTur3RT.cjs +0 -1
- package/dist/index-CUp0Z80f.cjs +0 -2
- package/dist/index-CoX9mofW.cjs +0 -1
- package/dist/index-CyQV3nI9.cjs +0 -1
- package/dist/index-DBhc2SoQ.cjs +0 -1
- package/dist/index-DBrXonf1.cjs +0 -1
- package/dist/index-DEfKSijb.cjs +0 -7
- package/dist/index-DNyLSjIf.cjs +0 -1
- package/dist/index-DOQApax-.cjs +0 -1
- package/dist/index-DtlQjI5L.cjs +0 -1
- package/dist/index-FJ_oMfF3.cjs +0 -1
- package/dist/index-L9DruvvE.cjs +0 -1
- package/dist/index-T25jN7df.cjs +0 -104
- package/dist/index-W6w3oiQ2.cjs +0 -1
- package/dist/index-ipcwULw-.js +0 -167
- package/dist/main-FOjt8u8O.cjs +0 -11
- package/dist/menu-7kw8Lwp_.cjs +0 -1
- package/dist/menu-CK0ndSHP.js +0 -1132
- package/dist/menuIndex-Ba-9R5jd.cjs +0 -1
- package/dist/menuIndex-DiNvd_FY.js +0 -125
- package/dist/obj/model.mtl +0 -42
- package/dist/obj/model.obj +0 -26110
- package/dist/threePreview-DcCfaIpB.cjs +0 -1
- package/dist/threeTrackPathView-C6IiddAw.cjs +0 -1
- package/dist/threeViewerHost-B3elQtpE.cjs +0 -1
- package/public/obj/model.mtl +0 -42
- package/public/obj/model.obj +0 -26110
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const i=require("vue"),I=require("./menu-CYazzvub.cjs"),pe=require("./index-6iwwUgL6.cjs"),k=require("./index-CW4qJdP8.cjs"),fe=require("./menuIndex-Br2dXQqi.cjs"),w=require("./request-BC2w2vGr.cjs"),F=I.useModelComp(I.pinia),ee=I.useUnit(I.pinia),C=I.useMenuState(I.pinia),{menus:te,configMenu:q,activeMenuPath:j,cacheStructures:K}=I.storeToRefs(C),$=i.ref(!1),le=i.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(te.value))==null?void 0:e.map(l=>({...l,menuType:"系统菜单"})))==null?void 0:t.filter(l=>l.title!=="系统管理"&&l.title!=="平台管理")}]}),J=i.ref([]),R=i.ref([{label:"新建"}]),de=i.computed(()=>[{key:"extraButton",contents:R.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:J.value}]),U=i.ref([]),T=i.ref({}),ie=i.ref({}),O=i.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}]),_=e=>{var t;U.value=e?(t=O.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]:""}):O.value},ge=i.ref([{label:"查询"},{label:"重置"}]),ve=async()=>{},ae=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:ae(t.childMenus)}:{...t,value:t==null?void 0:t.title,label:t==null?void 0:t.title}),g=i.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),z=i.ref([]),h=i.ref({}),b=i.ref(null),oe=i.ref([]),ne=i.computed(()=>{var e;return(e=ae(te.value))==null?void 0:e.filter(t=>t.title!=="系统管理"&&t.title!=="平台管理")}),ue=async e=>{var l,u,n,c;const t=await k.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}});oe.value=r,C.setCacheStructures({key:"contentConfig",data:r})}},ye=async e=>{var t;$.value=!0,b.value={...e,rootNode:fe.findRootNodeByPath(ne.value,e.path)},C.setCacheStructures(null),(e==null?void 0:e.level)===0?R.value.splice(0):(R.value=[{label:"新建"}],z.value=(t=e==null?void 0:e.path)==null?void 0:t.split("/")),await C.setConfigMenu(null),await ue(e==null?void 0:e.path),await B(e)},be=e=>{switch(e){case"新建":return"create";case"修改":return"update";case"删除":return"delete"}},he=async(e,t)=>{var l,u;if(!b.value)return w.ElMessage.warning("请先选择菜单");if(g.type=be(e),z.value=[],F.setSubmitCurStructure(!1),ee.setSelectTitle([]),h.value=I.cloneDeep(t),g.type!=="delete"){switch(g.type){case"create":_(null),await C.setConfigMenu(null);break;case"update":_(h.value),await C.setConfigMenu(h.value),console.log("clickRowButton",h.value);break}await i.nextTick(),g.title=`【${g.type==="create"?(l=b.value)==null?void 0:l.path:(u=h.value)==null?void 0:u.path}】菜单配置${e}`,g.show=!0}else await se(h.value,g.type)},re=i.ref(!0),Ce=async e=>{var t;T.value=e,await C.setConfigMenu({...T.value,path:(t=b.value)==null?void 0:t.path}),re.value=(e==null?void 0:e.operateType)!=="新增"};i.watch(()=>re.value,async e=>{var t;await i.nextTick(),U.value=(t=O.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:T.value?T.value[l==null?void 0:l.prop]:""})},{immediate:!0,deep:!0});const Ie=i.ref(null),ke=async(e,t)=>{var r,p,f,s,y;if(g.type==="create"){const a=(p=(r=K.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);F.setItemData(a),C.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=(y=(s=e==null?void 0:e.structureIds)==null?void 0:s.filter(a=>(a==null?void 0:a.key)===t))==null?void 0:y.map(a=>a==null?void 0:a.id);let u=l==null?void 0:l.map(a=>{if(a)return k.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 M,D,A,P,E,o,H;return{id:(A=(D=(M=d==null?void 0:d.data)==null?void 0:M.result)==null?void 0:D[0])==null?void 0:A.id,...(H=(o=(E=(P=d==null?void 0:d.data)==null?void 0:P.result)==null?void 0:E[0])==null?void 0:o.value)==null?void 0:H.pageData}});F.setItemData(a),C.setCacheStructures({key:t,data:a})}},Te=async e=>{var n,c,r,p,f;const t=e==="操作触发的弹窗结构"?"dialogConfig":"contentConfig";C.setButtonTriggerType(t),await ke(h.value,t);let l;(n=T.value)!=null&&n.subMenus&&((c=T.value)==null?void 0:c.subMenus.length)>0&&(l=(r=z.value)==null?void 0:r.map(s=>({value:s})),l.unshift({value:(p=h.value)==null?void 0:p.title}));let u;g.type==="create"?u={...T.value,path:(f=b.value)==null?void 0:f.path}:g.type==="update"&&(u=q.value),await C.setConfigMenu(u),ee.setSelectTitle(l),F.setIsEdit("edit")},B=async e=>{var l,u,n,c,r,p;const t=await k.getInsofDataApi({key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:j.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&&(J.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}}):[]),$.value=!1},x=async(e,t,l="contentConfig")=>{var u,n,c,r,p,f;try{let s,y;t==="create"?(s={key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:j.value+"/"+((u=b.value)==null?void 0:u.path),type:"structure",rootNodePath:(c=(n=b.value)==null?void 0:n.rootNode)==null?void 0:c.path,structureBelong:l,parentTable:"",version:1},value:{pageData:e}},y=k.createInsofDataApi):t==="update"?(s={id:e==null?void 0:e.id,value:{pageData:e}},y=k.updateInsofDataApi):t==="delete"&&(s={id:e},y=k.deleteInsofDataApi);const a=await y(s);if(((r=a==null?void 0:a.data)==null?void 0:r.code)!==200)throw w.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{w.ElMessage.error("保存响应失败")}},Z=(e,t)=>{var f,s,y;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=(y=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:y.filter(a=>a==null?void 0:a.id).filter(a=>Object.keys(a).length>1),{deleteIds:c,createComps:r,updateComps:p}},m=(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},Me=e=>{const t=new Map;return e.forEach(l=>{t.set(l.id,l)}),Array.from(t.values())},De=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"),y=e==null?void 0:e.filter(o=>(o==null?void 0:o.key)==="dialogConfig");await i.nextTick();const a=(n=(u=(l=K.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=K.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=oe.value)==null?void 0:f.map(o=>o==null?void 0:o.id)];const M=Z(y,a),D=Z(s,d),A=m("dialogConfig",M),P=m("contentConfig",D),E=[...A,...P];await Promise.all(E).then(o=>{var G,L,V,Q,W,X,Y;if(!(o==null?void 0:o.every(v=>v.status)))return;let N=(G=o==null?void 0:o.flatMap(v=>v==null?void 0:v.data))==null?void 0:G.filter(v=>(v==null?void 0:v.id)!==null&&(v==null?void 0:v.id)!==void 0);if(((L=M==null?void 0:M.updateComps)==null?void 0:L.length)===0&&g.type==="update"){const v=(Q=(V=h.value)==null?void 0:V.structureIds)==null?void 0:Q.filter(S=>(S==null?void 0:S.key)==="dialogConfig");N=[...N,...v]}if(((W=D==null?void 0:D.updateComps)==null?void 0:W.length)===0&&g.type==="update"){const v=(Y=(X=h.value)==null?void 0:X.structureIds)==null?void 0:Y.filter(S=>(S==null?void 0:S.key)==="contentConfig");N=[...N,...v]}const ce=Me(N);se({...t,isNotInitial:!0,structureIds:ce},g.type)}).catch(o=>{w.ElMessage.error(o)})}catch(s){throw w.ElMessage.error(s),new Error(s)}},se=async(e,t)=>{var n,c;let l,u;t==="create"?(l={key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:j.value+"/"+((n=b.value)==null?void 0:n.path),tableId:"",rootNodePath:e==null?void 0:e.rootNodePath},value:{tableData:e}},u=k.createInsofDataApi):t==="update"?(l={id:e==null?void 0:e.id,value:{tableData:e}},u=k.updateInsofDataApi):t==="delete"&&(l={ids:[e.id,...(c=e==null?void 0:e.structureIds)==null?void 0:c.map(r=>r.id)]},u=k.batchDeleteInsofDataApi),pe.handleSubmitAsync(u,l,t).then(r=>{t==="create"&&J.value.push({...e,id:r}),t&&r&&w.ElMessage.success("响应成功"),B(b.value)})},Se=async()=>{var l,u,n,c,r;const e=JSON.parse(I.cloneDeep(JSON.stringify(K.value)));await i.nextTick();const t=g.type==="create"?{...q.value,rootNodePath:(u=(l=b.value)==null?void 0:l.rootNode)==null?void 0:u.path}:{...q.value,rootNodePath:(c=(n=b.value)==null?void 0:n.rootNode)==null?void 0:c.path,id:(r=h.value)==null?void 0:r.id};await De(e,t),T.value={},g.show=!1,await B(b.value)},we=()=>{g.show=!1},Ne={comp:"Group",name:"/平台管理/菜单管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:le.value,name:""}]}]},Ae=Object.freeze(Object.defineProperty({__proto__:null,beforeDialogDestroy:we,buttonValue:ge,changeTrigger:Ce,changedRow:ie,clickNodeTrigger:ye,clickRowButton:he,clickSubmitForm:Se,clickTrigger:Te,dialogInfo:g,formatFormData:_,getInitialSubStructure:ue,getTableDataAsync:B,handleItemDataChange:ve,inputForm:T,menuPageData:de,operatingForm:Ie,pageData:le,renderFormData:U,tableLoading:$,tempMenuPageData:Ne,treeData:ne},Symbol.toStringTag,{value:"Module"}));exports.State=Ae;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { ref as h, computed as E, reactive as
|
|
1
|
+
import { ref as h, computed as E, reactive as W, defineComponent as q, watch as H, createElementBlock as N, openBlock as k, createVNode as A, createCommentVNode as ue, withCtx as _, createTextVNode as x, toDisplayString as F, resolveComponent as D, createBlock as R, Fragment as ie, renderList as ce, createElementVNode as de, normalizeStyle as pe } from "vue";
|
|
2
2
|
import { G as fe, H as ve, J as ge, E as T } from "./request-CoGtW0Ux.js";
|
|
3
|
-
import {
|
|
4
|
-
import { s as J, p as G } from "./index-BmJV5eVh.js";
|
|
3
|
+
import { s as J, b as ye, u as me, p as G, c as be, j as he } from "./menu-DGzm1FYA.js";
|
|
5
4
|
import { g as Q, u as we } from "./index-o69TSiJu.js";
|
|
6
5
|
import { J as X } from "./JSEncrypt-B36c1iN5.js";
|
|
7
|
-
import { U as Se } from "./index-
|
|
8
|
-
import { A as _e } from "./index-
|
|
6
|
+
import { U as Se } from "./index-BGRqQYv0.js";
|
|
7
|
+
import { A as _e } from "./index-Dmstdf9f.js";
|
|
9
8
|
import { u as Y } from "./index-BIV-s4QY.js";
|
|
10
9
|
import { _ as Z } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
-
import { n as Ce } from "./index-
|
|
10
|
+
import { n as Ce } from "./index-DsfZZrDe.js";
|
|
12
11
|
import { S as V } from "./index-BHtNKL1L.js";
|
|
13
12
|
function Ae(t, s) {
|
|
14
13
|
const e = new X();
|
|
@@ -64,7 +63,7 @@ const M = ye(G), { loginUserInfo: d, cryptoInfo: P } = J(M), Ie = me(G), { activ
|
|
|
64
63
|
}
|
|
65
64
|
];
|
|
66
65
|
}), Be = () => {
|
|
67
|
-
}, $ = h(!1), L =
|
|
66
|
+
}, $ = h(!1), L = W({
|
|
68
67
|
dialogTitle: "电子签名",
|
|
69
68
|
dialogWidth: "30",
|
|
70
69
|
dialogShow: !1,
|
|
@@ -157,7 +156,7 @@ const M = ye(G), { loginUserInfo: d, cryptoInfo: P } = J(M), Ie = me(G), { activ
|
|
|
157
156
|
[e]: s
|
|
158
157
|
};
|
|
159
158
|
z.value = t === "avatarUrl", O.value = t === "signature", await ne(n, "图片修改");
|
|
160
|
-
}, B =
|
|
159
|
+
}, B = W({
|
|
161
160
|
baseCols: [],
|
|
162
161
|
otherCols: []
|
|
163
162
|
}), oe = h([]), le = h(), Pe = (t, s, e) => {
|
|
@@ -223,7 +222,7 @@ const M = ye(G), { loginUserInfo: d, cryptoInfo: P } = J(M), Ie = me(G), { activ
|
|
|
223
222
|
...t,
|
|
224
223
|
status: ((p = d.value) == null ? void 0 : p.status) ?? "启用"
|
|
225
224
|
}), $.value = !0, await ne(e, s);
|
|
226
|
-
},
|
|
225
|
+
}, j = () => {
|
|
227
226
|
var n, o;
|
|
228
227
|
const t = {
|
|
229
228
|
base: [
|
|
@@ -278,7 +277,7 @@ const M = ye(G), { loginUserInfo: d, cryptoInfo: P } = J(M), Ie = me(G), { activ
|
|
|
278
277
|
{ required: !0, message: "输入不能为空", trigger: "blur" }
|
|
279
278
|
]
|
|
280
279
|
},
|
|
281
|
-
buttonValue: (e =
|
|
280
|
+
buttonValue: (e = j()) == null ? void 0 : e.base,
|
|
282
281
|
isEnableWrap: !1,
|
|
283
282
|
isButtonRow: !1
|
|
284
283
|
},
|
|
@@ -307,7 +306,7 @@ const M = ye(G), { loginUserInfo: d, cryptoInfo: P } = J(M), Ie = me(G), { activ
|
|
|
307
306
|
trigger: "blur"
|
|
308
307
|
}
|
|
309
308
|
], a), {}),
|
|
310
|
-
buttonValue: (l =
|
|
309
|
+
buttonValue: (l = j()) == null ? void 0 : l.other,
|
|
311
310
|
isEnableWrap: !1
|
|
312
311
|
},
|
|
313
312
|
value: ""
|
|
@@ -315,7 +314,7 @@ const M = ye(G), { loginUserInfo: d, cryptoInfo: P } = J(M), Ie = me(G), { activ
|
|
|
315
314
|
]
|
|
316
315
|
}
|
|
317
316
|
];
|
|
318
|
-
},
|
|
317
|
+
}, aa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
319
318
|
__proto__: null,
|
|
320
319
|
avatarLoading: z,
|
|
321
320
|
beforeSignDestroy: se,
|
|
@@ -422,7 +421,7 @@ const M = ye(G), { loginUserInfo: d, cryptoInfo: P } = J(M), Ie = me(G), { activ
|
|
|
422
421
|
]);
|
|
423
422
|
};
|
|
424
423
|
}
|
|
425
|
-
}),
|
|
424
|
+
}), ta = /* @__PURE__ */ Z($e, [["__scopeId", "data-v-1a1f2575"]]), ze = /* @__PURE__ */ q({
|
|
426
425
|
__name: "index",
|
|
427
426
|
props: {
|
|
428
427
|
itemData: {
|
|
@@ -565,10 +564,10 @@ const M = ye(G), { loginUserInfo: d, cryptoInfo: P } = J(M), Ie = me(G), { activ
|
|
|
565
564
|
}, 8, ["signPadInfo"]);
|
|
566
565
|
};
|
|
567
566
|
}
|
|
568
|
-
}),
|
|
567
|
+
}), sa = /* @__PURE__ */ Z(ze, [["__scopeId", "data-v-ce5a2314"]]);
|
|
569
568
|
export {
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
569
|
+
aa as S,
|
|
570
|
+
sa as a,
|
|
571
|
+
ta as s,
|
|
573
572
|
Ue as t
|
|
574
573
|
};
|
|
@@ -1,18 +1,11 @@
|
|
|
1
1
|
import { defineComponent as J, ref as u, computed as Ve, resolveComponent as n, createElementBlock as D, openBlock as k, createElementVNode as o, createVNode as t, withCtx as s, toDisplayString as A, createBlock as ue, reactive as De, Fragment as pe, renderList as xe, unref as c, createTextVNode as h, onMounted as it, watch as dt, withModifiers as ct, createCommentVNode as H } from "vue";
|
|
2
2
|
import { u as ut, g as pt, h as mt } from "./request-CoGtW0Ux.js";
|
|
3
|
-
import { u as Se, o as _t, s as de, f as ce } from "./index-DMt7y2yA.js";
|
|
4
|
-
import "./dayjs.min-bC5IyY3C.js";
|
|
5
|
-
import { p as ft } from "./index-BmJV5eVh.js";
|
|
6
|
-
import { s as _e } from "./index-CnjGqJZS.js";
|
|
7
|
-
import "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-CHrvpoVb.js";
|
|
8
|
-
import { r as Le, s as vt, u as gt } from "./menu-CK0ndSHP.js";
|
|
9
|
-
import "./index-BSCoLGXF.js";
|
|
10
|
-
import "./index-BHtNKL1L.js";
|
|
11
3
|
import { _ as B } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
|
|
12
|
-
import "./index-
|
|
13
|
-
import "./index-
|
|
4
|
+
import { s as _e } from "./index-CnjGqJZS.js";
|
|
5
|
+
import { u as Se, o as _t, s as de, f as ce } from "./index-DCBM-gqv.js";
|
|
14
6
|
import { _ as W } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
-
import {
|
|
7
|
+
import { v as Le, w as ft, u as vt, p as gt } from "./menu-DGzm1FYA.js";
|
|
8
|
+
import { c as me } from "./clone-BUCnBgnS.js";
|
|
16
9
|
const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-content-wrapper" }, Ct = { class: "node-label-wrapper" }, bt = { class: "node-label" }, wt = /* @__PURE__ */ J({
|
|
17
10
|
__name: "index",
|
|
18
11
|
props: {
|
|
@@ -207,7 +200,7 @@ const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-
|
|
|
207
200
|
"onUpdate:modelValue": y[0] || (y[0] = (V) => m.value.departmentScope = V)
|
|
208
201
|
}, {
|
|
209
202
|
default: s(() => [
|
|
210
|
-
(k(!0), D(pe, null, xe(c(
|
|
203
|
+
(k(!0), D(pe, null, xe(c(ft), (V) => (k(), ue(X, {
|
|
211
204
|
key: V.value,
|
|
212
205
|
value: V.value
|
|
213
206
|
}, {
|
|
@@ -279,11 +272,7 @@ const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-
|
|
|
279
272
|
value: "id",
|
|
280
273
|
label: "label",
|
|
281
274
|
children: "children"
|
|
282
|
-
|
|
283
|
-
// const { isProperty } = data
|
|
284
|
-
// return isProperty ? 'property-node' : 'unit-node'
|
|
285
|
-
// }
|
|
286
|
-
}, _ = gt(ft), { initDepartmentScope: x, recAndInitNodeDataPermission: T } = Le(), {
|
|
275
|
+
}, _ = vt(gt), { initDepartmentScope: x, recAndInitNodeDataPermission: T } = Le(), {
|
|
287
276
|
initRoleItem: g,
|
|
288
277
|
queryInfo: S,
|
|
289
278
|
resetQuery: m,
|
|
@@ -291,7 +280,6 @@ const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-
|
|
|
291
280
|
setPageNum: b,
|
|
292
281
|
setPageSize: f,
|
|
293
282
|
initGetByPage: w,
|
|
294
|
-
// initRoleList,
|
|
295
283
|
initCreate: v,
|
|
296
284
|
initUpdate: N,
|
|
297
285
|
initDelete: E,
|
|
@@ -869,7 +857,7 @@ const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-
|
|
|
869
857
|
], 64);
|
|
870
858
|
};
|
|
871
859
|
}
|
|
872
|
-
}),
|
|
860
|
+
}), ga = /* @__PURE__ */ W(ia, [["__scopeId", "data-v-f67afe35"]]);
|
|
873
861
|
export {
|
|
874
|
-
|
|
862
|
+
ga as default
|
|
875
863
|
};
|