ss-component-new 1.2.188 → 1.2.190
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-Bwdl_ijc.js → MTLLoader-BSh7F1Fn.js} +1 -1
- package/dist/{MTLLoader-52cT13Wq.cjs → MTLLoader-DguG_DO9.cjs} +1 -1
- package/dist/{OrbitControls-DMqVKAk5.cjs → OrbitControls-B_2GOGJi.cjs} +1 -1
- package/dist/{OrbitControls-cd4r3wxq.js → OrbitControls-DYFKWAA1.js} +1 -1
- package/dist/{URDFLoader-BDY1qVGG.js → URDFLoader-CWYVsMHt.js} +2 -2
- package/dist/{URDFLoader-oXfdY-rS.cjs → URDFLoader-_oupFYo6.cjs} +1 -1
- package/dist/{animationData-Dmi0R_1_.js → animationData-Nl0it_q1.js} +1 -1
- package/dist/{animationData-X2hyTzQ_.cjs → animationData-ZB440Irc.cjs} +1 -1
- package/dist/{array-DHDMdPPJ.cjs → array-ChJaWGTV.cjs} +1 -1
- package/dist/{array-Dq0m47iO.js → array-CnprVx2o.js} +1 -1
- package/dist/{iconfont-DcWQQ9av.js → iconfont-DO3oS6Fj.js} +2 -2
- package/dist/{iconfont-DsrR9bD8.cjs → iconfont-vbTylzKO.cjs} +1 -1
- package/dist/{index-DOyoBGnv.cjs → index-92UxnX12.cjs} +1 -1
- package/dist/{index-B5DzeTg6.js → index-B1DCUfep.js} +1 -1
- package/dist/{index-B2aNDFtF.cjs → index-B21gYLA-.cjs} +1 -1
- package/dist/{index-S5wo7nhR.js → index-B2KwEUMh.js} +1 -1
- package/dist/{index-wgsGbZAW.cjs → index-B9i4rJaO.cjs} +1 -1
- package/dist/{index-CeJa9JEO.js → index-BBXQL35X.js} +2 -2
- package/dist/{index-B7qcKeSd.js → index-BDccXnEW.js} +1 -1
- package/dist/{index-BAZRH7IM.js → index-BGWQC1Dq.js} +4 -4
- package/dist/{index-BDHGe2Vj.js → index-BIb5LgiY.js} +7 -7
- package/dist/{index-CFIY9Quw.cjs → index-BKdQILG2.cjs} +1 -1
- package/dist/{index-BLasNQ06.js → index-BOHtn_4E.js} +1 -1
- package/dist/{index-BOA-uu5T.js → index-BRU-Ggwl.js} +1 -1
- package/dist/{index-J4M1E9GE.js → index-BYyP5k7Q.js} +8 -8
- package/dist/index-BmdxEAQJ.cjs +1 -0
- package/dist/{index-DZpoyovL.cjs → index-BoH1HX_6.cjs} +1 -1
- package/dist/{index-D4SOzoNv.cjs → index-BwPDjUkZ.cjs} +1 -1
- package/dist/{index-njtB1h2l.cjs → index-C6rIJL5h.cjs} +1 -1
- package/dist/{index-BOQw5u4u.js → index-C9Np-MtA.js} +4 -4
- package/dist/{index-P2nmqfof.cjs → index-CAVLsfIh.cjs} +1 -1
- package/dist/{index-A2Xfubu9.cjs → index-CJ5kSTfC.cjs} +1 -1
- package/dist/{index-CBJVWUJV.js → index-CNp8V8XB.js} +1 -1
- package/dist/{index-Dj9NSkW1.js → index-CV96CWmA.js} +1 -1
- package/dist/{index-CC2Wt-lU.js → index-CWFEUxGH.js} +1 -1
- package/dist/{index-aqi5siNL.cjs → index-CkhCXdHQ.cjs} +1 -1
- package/dist/{index-M9qZTlnG.cjs → index-Cqss8ayE.cjs} +1 -1
- package/dist/{index-CeA0frYA.cjs → index-CrCkz_ka.cjs} +1 -1
- package/dist/{index-DUnYjvnV.js → index-D-AIx9EX.js} +3 -3
- package/dist/{index-BwoSG3Tj.js → index-D2_UgMaS.js} +1 -1
- package/dist/{index-BRRq0MS9.cjs → index-D3w1GX8u.cjs} +1 -1
- package/dist/{index-DrWECPDX.cjs → index-D40DcIx9.cjs} +1 -1
- package/dist/{index-B-fOZotM.cjs → index-DBoq5ce1.cjs} +1 -1
- package/dist/{index-Cg4rc4xT.js → index-DEj3wIfi.js} +1 -1
- package/dist/{index-RDDhL31R.js → index-DLVT5wbT.js} +1 -1
- package/dist/{index-DAhRPM4s.js → index-DMx0HQxT.js} +3 -3
- package/dist/{index-ChuXrpU9.js → index-DgHcWbGX.js} +16 -16
- package/dist/{index-Dg4nOn5r.cjs → index-DhtJRBL8.cjs} +1 -1
- package/dist/{index-Dop59EPI.cjs → index-Dprvow-i.cjs} +1 -1
- package/dist/{index-BdLrlYvN.js → index-Dssst52D.js} +4 -4
- package/dist/{index-BT6euVXK.cjs → index-DtWvzD8M.cjs} +1 -1
- package/dist/{index-CL-zmaUx.cjs → index-KjoDF09s.cjs} +1 -1
- package/dist/{index-s3iFakjX.cjs → index-LoNO_h2U.cjs} +1 -1
- package/dist/{index-Bgf0BaOf.js → index-NcjgBztX.js} +2 -2
- package/dist/{index-DDyswLy6.js → index-tcG3R6A7.js} +8 -8
- package/dist/{index-Cb276xO3.cjs → index-uJ_obmMg.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-xuxqKQtW.cjs → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-CIZ-5p1C.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-CAVmgbKT.js → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-KrlnliIF.js} +6 -6
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Cbo6JcY2.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Bc9wY1DC.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Dj8FFC6m.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BwJ0ZUSS.js} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_140f5e74_lang-Co7Xi6DC.cjs → index.vue_vue_type_style_index_0_scoped_140f5e74_lang-C_uG7Zgc.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_140f5e74_lang-JEUCjPvW.js → index.vue_vue_type_style_index_0_scoped_140f5e74_lang-D4PmLz2E.js} +4 -4
- package/dist/{index.vue_vue_type_style_index_1_lang-A9UnLTMd.cjs → index.vue_vue_type_style_index_1_lang-CV5O1eU8.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-1I_XOQBn.js → index.vue_vue_type_style_index_1_lang-CXX9hYLt.js} +3 -3
- package/dist/{main-CyAl-8OH.cjs → main-47JtUHXu.cjs} +1 -1
- package/dist/{main-zCGV-3WD.js → main-OCu-noPK.js} +3 -3
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +9 -9
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +10 -10
- package/dist/{threeModel-SVWN4xD7.cjs → threeModel-BZMQiGNu.cjs} +1 -1
- package/dist/{threeModel-DsKbbu1Q.js → threeModel-Dg7GgvKM.js} +4 -4
- package/dist/{threePreview-D-1WEaDc.js → threePreview-DrICYLde.js} +3 -3
- package/dist/{threePreview-DefvUEmf.cjs → threePreview-uNyRtbRD.cjs} +1 -1
- package/dist/{threeSceneView-D4M6U-s7.js → threeSceneView-BggbVNn1.js} +8 -8
- package/dist/{threeSceneView-DXy0mHCj.cjs → threeSceneView-XfrTEfFk.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-BezqD_OO.cjs → threeSceneViewForCPMPIP-5dl01l1P.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-BkBPrt-2.js → threeSceneViewForCPMPIP-BZkkV_Y0.js} +7 -7
- package/dist/{threeTrackPathView-Dn0alEJ1.cjs → threeTrackPathView-CHz2fXK6.cjs} +1 -1
- package/dist/{threeTrackPathView-DgoahwjS.js → threeTrackPathView-DY_nKzg8.js} +3 -3
- package/dist/{threeViewerHost-CXzG2dOd.js → threeViewerHost-FoY6i-dk.js} +2 -2
- package/dist/{threeViewerHost-D1znOmxz.cjs → threeViewerHost-p_FHIzB6.cjs} +1 -1
- package/dist/{urdfTree-D3b6Z7jN.js → urdfTree-CqW072b0.js} +1 -1
- package/dist/{urdfTree-C_jJjcMG.cjs → urdfTree-DSm76cLI.cjs} +1 -1
- package/dist/{workpieceTreePanel-CAOPcTLh.js → workpieceTreePanel-CrzW-6RN.js} +4 -4
- package/dist/{workpieceTreePanel-ooxYSWzL.cjs → workpieceTreePanel-txKYEv-X.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index-E-nzTIaX.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-DtFLuXja.cjs"),r=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-DtFLuXja.cjs"),r=require("./index-BmdxEAQJ.cjs"),i=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),s={class:"log-wrap"},u=t.defineComponent({__name:"index",setup(_){const e=t.reactive({...c.State});t.onMounted(async()=>{e.tableData=await e.getLogTableDataAsync()});const l=n=>{var o;e.clickButton(n,(o=e.tableData)==null?void 0:o.map(a=>a.id),a=>{console.log("清空操作成功:",a),a&&(e.tableData=[])})};return(n,o)=>(t.openBlock(),t.createElementBlock("div",s,[t.createVNode(r.ssTable,{itemData:e.pageData,allowOperate:!1,allowSelect:!1,onOnButtonClick:l},null,8,["itemData"])]))}}),d=i._export_sfc(u,[["__scopeId","data-v-b4bfde04"]]);exports.default=d;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const g=require("vue"),O=require("./index-By--71sB.cjs"),i=require("./index-BP07Gnjo.cjs"),pe=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Cbo6JcY2.cjs"),A=O.useModelComp(i.pinia),m=pe.useUnit(i.pinia),I=O.useMenuState(i.pinia),{menus:ee,configMenu:x,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([]),B=g.ref([{label:"新建"}]),fe=g.computed(()=>[{key:"extraButton",contents:B.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({}),H=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=H.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]:""}):H.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?B.value.splice(0):(B.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 _(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=H.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,F;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,...(F=(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:F.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=x.value),await I.setConfigMenu(u),m.setSelectTitle(l),A.setIsEdit("edit")},_=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},K=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(K(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(K(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(K(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("响应成功"),_(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"?{...x.value,rootNodePath:(u=(l=h.value)==null?void 0:l.rootNode)==null?void 0:u.path}:{...x.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 _(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:_,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-By--71sB.cjs"),i=require("./index-BP07Gnjo.cjs"),pe=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Bc9wY1DC.cjs"),A=O.useModelComp(i.pinia),m=pe.useUnit(i.pinia),I=O.useMenuState(i.pinia),{menus:ee,configMenu:x,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([]),B=g.ref([{label:"新建"}]),fe=g.computed(()=>[{key:"extraButton",contents:B.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({}),H=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=H.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]:""}):H.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?B.value.splice(0):(B.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 _(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=H.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,F;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,...(F=(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:F.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=x.value),await I.setConfigMenu(u),m.setSelectTitle(l),A.setIsEdit("edit")},_=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},K=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(K(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(K(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(K(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("响应成功"),_(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"?{...x.value,rootNodePath:(u=(l=h.value)==null?void 0:l.rootNode)==null?void 0:u.path}:{...x.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 _(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:_,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,9 +1,9 @@
|
|
|
1
1
|
import { ref as s, watch as d, defineComponent as m, reactive as y, onMounted as g, createElementBlock as i, openBlock as D, createVNode as f } from "vue";
|
|
2
2
|
import "./index-BHtNKL1L.js";
|
|
3
|
-
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
3
|
+
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BwJ0ZUSS.js";
|
|
4
4
|
import { g as h, s as c } from "./index-DufZVmKf.js";
|
|
5
5
|
import { ag as C, af as _, a as k, u as S, ah as v } from "./index-VnVlZEmb.js";
|
|
6
|
-
import { s as T } from "./index-
|
|
6
|
+
import { s as T } from "./index-tcG3R6A7.js";
|
|
7
7
|
const A = k(), { itemData: B } = c(A), u = s(0), I = s([
|
|
8
8
|
{
|
|
9
9
|
label: "机构名称",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ref as X, watch as pl, nextTick as Ma, resolveComponent as fl, createBlock as qe, openBlock as ie, withCtx as ae, createElementVNode as ge, renderSlot as hr, onMounted as Ha, createElementBlock as Ae, normalizeStyle as Hl, normalizeClass as Lr, toDisplayString as Be, createCommentVNode as Me, createVNode as pe, unref as Sl, Fragment as Ll, renderList as Pl, createTextVNode as hl, defineComponent as Pr, reactive as ka, inject as Rn, provide as Gn, onBeforeUnmount as Hn, computed as vr, onUnmounted as Qn, createSlots as Xn, withModifiers as tr, withDirectives as gr, vShow as br } from "vue";
|
|
2
2
|
import { bh as kr, as as Sr, c as I, E as ul, bD as Mr, g as Gl, p as ql, s as ea, u as Yn, f as Zn, b as Rl, bv as In, bt as Tr, e as Vn, c3 as eu } from "./index-DufZVmKf.js";
|
|
3
|
-
import { _ as Ta, aH as lu, aI as Aa, aJ as au, g as la, b as ru, a as nu, Z as uu, u as iu, aK as Ar, aL as mr, aM as ou, aN as su, d as qa, W as xr, q as _r, l as du, aO as Dr, a6 as cu, aP as pu, aQ as fu, aR as yu, Y as hu, aS as vu } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
4
|
-
import { d as aa, _ as Or, j as tu, e as gu, E as bu } from "./index-
|
|
5
|
-
import { a as ku, T as Su } from "./threeViewerHost-
|
|
3
|
+
import { _ as Ta, aH as lu, aI as Aa, aJ as au, g as la, b as ru, a as nu, Z as uu, u as iu, aK as Ar, aL as mr, aM as ou, aN as su, d as qa, W as xr, q as _r, l as du, aO as Dr, a6 as cu, aP as pu, aQ as fu, aR as yu, Y as hu, aS as vu } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BwJ0ZUSS.js";
|
|
4
|
+
import { d as aa, _ as Or, j as tu, e as gu, E as bu } from "./index-C9Np-MtA.js";
|
|
5
|
+
import { a as ku, T as Su } from "./threeViewerHost-FoY6i-dk.js";
|
|
6
6
|
import { u as Tu, a as Au, E as Ur } from "./index-VnVlZEmb.js";
|
|
7
|
-
import "./index.vue_vue_type_style_index_1_lang-
|
|
7
|
+
import "./index.vue_vue_type_style_index_1_lang-CXX9hYLt.js";
|
|
8
8
|
import { _ as $a } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
|
-
import { s as Sa } from "./index-
|
|
9
|
+
import { s as Sa } from "./index-CV96CWmA.js";
|
|
10
10
|
import "./index-BdG8TrO6.js";
|
|
11
11
|
import { i as Er } from "./isString-5Nawl-Uc.js";
|
|
12
12
|
const jr = (R) => R.match(/\((.*)\)/)[1], Cr = {
|
|
@@ -1556,7 +1556,7 @@ const jr = (R) => R.match(/\((.*)\)/)[1], Cr = {
|
|
|
1556
1556
|
}), Fe.show = !1);
|
|
1557
1557
|
}, Pa = async (e, l, r) => {
|
|
1558
1558
|
var a, n, s, c, u, d, v, x, S, A, p, E, C, O, P;
|
|
1559
|
-
if (Ul.value = "", Ua.value = !0, Da.value = !0, Le("onButtonClick", e, l), e === "删除")
|
|
1559
|
+
if (Ul.value = "", Ua.value = !0, Da.value = !0, Le("onButtonClick", e, l), ce.value = [], e === "删除")
|
|
1560
1560
|
Ur.confirm("是否确认删除", "温馨提示", {
|
|
1561
1561
|
confirmButtonText: "确认",
|
|
1562
1562
|
cancelButtonText: "取消",
|
|
@@ -2279,7 +2279,7 @@ const jr = (R) => R.match(/\((.*)\)/)[1], Cr = {
|
|
|
2279
2279
|
var q, ee, D, ke, xe, $e, Re, Ge, He, Qe, Xe;
|
|
2280
2280
|
if ((($ == null ? void 0 : $.directiveLabel) === "#isMain" || (q = $ == null ? void 0 : $.optionUrl) != null && q.menuId) && Array.isArray($ == null ? void 0 : $.value)) {
|
|
2281
2281
|
if (N[$.prop] = (D = $.value) == null ? void 0 : D[((ee = $.value) == null ? void 0 : ee.length) - 1], (ke = $ == null ? void 0 : $.prop) != null && ke.includes("·")) {
|
|
2282
|
-
let he = (Re = ($e = (xe = $ == null ? void 0 : $.prop) == null ? void 0 : xe.split("·")) == null ? void 0 : $e.filter((fe) => fe && fe !== "")) == null ? void 0 : Re.map((fe) => fe == null ? void 0 : fe.trim()), we = (Xe = (Qe = (He = (Ge = $ == null ? void 0 : $.selectValue) == null ? void 0 : Ge[0]) == null ? void 0 : He.split("
|
|
2282
|
+
let he = (Re = ($e = (xe = $ == null ? void 0 : $.prop) == null ? void 0 : xe.split("·")) == null ? void 0 : $e.filter((fe) => fe && fe !== "")) == null ? void 0 : Re.map((fe) => fe == null ? void 0 : fe.trim()), we = (Xe = (Qe = (He = (Ge = $ == null ? void 0 : $.selectValue) == null ? void 0 : Ge[0]) == null ? void 0 : He.split(" ")) == null ? void 0 : Qe.filter((fe) => fe && fe !== "")) == null ? void 0 : Xe.map((fe) => fe == null ? void 0 : fe.trim());
|
|
2283
2283
|
he == null || he.forEach((fe, ze) => {
|
|
2284
2284
|
N[fe] = we == null ? void 0 : we[ze];
|
|
2285
2285
|
});
|
|
@@ -3074,7 +3074,7 @@ const jr = (R) => R.match(/\((.*)\)/)[1], Cr = {
|
|
|
3074
3074
|
]);
|
|
3075
3075
|
};
|
|
3076
3076
|
}
|
|
3077
|
-
}, Ni = /* @__PURE__ */ $a(Si, [["__scopeId", "data-v-
|
|
3077
|
+
}, Ni = /* @__PURE__ */ $a(Si, [["__scopeId", "data-v-9b77717d"]]);
|
|
3078
3078
|
export {
|
|
3079
3079
|
Wu as a,
|
|
3080
3080
|
jr as f,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const l=require("vue");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
1
|
+
"use strict";const l=require("vue");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Bc9wY1DC.cjs");const r=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),f={class:"dialog-title"},g={__name:"index",props:{title:{type:String,default:""},dialogWidth:{type:[Number,String],default:600},visible:{type:Boolean,default:!1},fullScreen:{type:Boolean,default:!1},dialogHeight:{type:Number,default:600},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},modalClass:{type:String,default:""},alignCenter:{type:Boolean,default:!1},appendToBody:{type:Boolean,default:!0}},emits:["beforeDestroy"],setup(t,{emit:s}){const e=t,d=s,o=l.ref(!1),i=()=>{d("beforeDestroy")};return l.watch(()=>e==null?void 0:e.visible,()=>{o.value=e==null?void 0:e.visible},{deep:!0,immediate:!0}),(a,n)=>{const u=l.resolveComponent("el-dialog");return l.openBlock(),l.createBlock(u,{modelValue:o.value,"onUpdate:modelValue":n[0]||(n[0]=c=>o.value=c),width:e==null?void 0:e.dialogWidth,"before-close":i,draggable:"",style:l.normalizeStyle({height:e==null?void 0:e.dialogHeight}),fullscreen:e==null?void 0:e.fullScreen,"destroy-on-close":!0,"show-close":e==null?void 0:e.showClose,"close-on-click-modal":e==null?void 0:e.closeOnClickModal,"modal-class":t.modalClass,"close-on-press-escape":e==null?void 0:e.closeOnPressEscape,"align-center":e==null?void 0:e.alignCenter,"append-to-body":t.appendToBody},{default:l.withCtx(()=>[l.renderSlot(a.$slots,"default",{},void 0,!0)]),header:l.withCtx(()=>[l.createElementVNode("div",f,l.toDisplayString(e==null?void 0:e.title),1),l.renderSlot(a.$slots,"header",{},void 0,!0)]),footer:l.withCtx(()=>[l.renderSlot(a.$slots,"footer",{},void 0,!0)]),_:3},8,["modelValue","width","style","fullscreen","show-close","close-on-click-modal","modal-class","close-on-press-escape","align-center","append-to-body"])}}},y=r._export_sfc(g,[["__scopeId","data-v-5e87a97b"]]);exports.ssDialog=y;
|