ss-component-new 1.2.179 → 1.2.181
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-CMpGG9Bd.cjs → MTLLoader-BTzWsYw_.cjs} +1 -1
- package/dist/{MTLLoader-d2OpvLOW.js → MTLLoader-DlOCq_sz.js} +1 -1
- package/dist/{OrbitControls-DpyXjBNP.cjs → OrbitControls-D7H4f_sG.cjs} +1 -1
- package/dist/{OrbitControls-DBHqNrQL.js → OrbitControls-DCbMLAja.js} +1 -1
- package/dist/{URDFLoader-C7hv2huD.js → URDFLoader-DSUuVt4R.js} +2 -2
- package/dist/{URDFLoader-wguISxmK.cjs → URDFLoader-YD4JI4sU.cjs} +1 -1
- package/dist/{animationData-iNdJN_D_.js → animationData-B5xqHLuz.js} +1 -1
- package/dist/{animationData-C5sjWEaT.cjs → animationData-BYxqN-uC.cjs} +1 -1
- package/dist/{array-ByUgkJ37.cjs → array-BhwYx3CX.cjs} +1 -1
- package/dist/{array-Bgrj1oV3.js → array-C-MjDZXh.js} +1 -1
- package/dist/{iconfont-Buh2Df98.cjs → iconfont-BtG836y-.cjs} +1 -1
- package/dist/{iconfont-BPJ9ourc.js → iconfont-Cm6W7V0P.js} +2 -2
- package/dist/{index-D1RoGIsd.js → index-3Y-fsm3p.js} +1 -1
- package/dist/{index-DHZH0zPO.js → index-5mnjOCYW.js} +1 -1
- package/dist/{index-BNidg3es.cjs → index-7Rgwef3k.cjs} +1 -1
- package/dist/{index-D5CeFNcY.cjs → index-9ApOn61r.cjs} +1 -1
- package/dist/{index-ZHpKUOhR.js → index-B0MQCBhs.js} +1 -1
- package/dist/{index-BynBceMd.js → index-B2-M6ik1.js} +3 -3
- package/dist/{index-DDmxZO6i.cjs → index-B5ppr9pu.cjs} +1 -1
- package/dist/{index-CCUAW6sC.cjs → index-BEn3QVcQ.cjs} +1 -1
- package/dist/index-BLoH9dR_.cjs +1 -0
- package/dist/{index-CvarvnV1.js → index-BMZrbMHo.js} +2 -2
- package/dist/{index-EofXU0MK.js → index-Ba_0Eysx.js} +1 -1
- package/dist/{index-BjhN2cZK.cjs → index-BgXZt8Yv.cjs} +1 -1
- package/dist/{index-BxNdoe0W.js → index-BjqURa8X.js} +16 -16
- package/dist/{index-CN-T4mBv.js → index-Bo6yVJ9h.js} +119 -122
- package/dist/{index-D0LjT3cL.js → index-C4wWbHco.js} +4 -4
- package/dist/{index-CqbOb7X5.js → index-CFfdoEXp.js} +2 -2
- package/dist/{index-ClmxTuZZ.js → index-CIsLzHcf.js} +1 -1
- package/dist/{index-CcosIFS7.js → index-CNoioYHZ.js} +1 -1
- package/dist/{index-BMHV_Brb.cjs → index-CO7kEMmf.cjs} +1 -1
- package/dist/{index-CbBel_Ly.cjs → index-CanI2V9h.cjs} +1 -1
- package/dist/{index-y6LkQUgu.cjs → index-CavNDUBi.cjs} +1 -1
- package/dist/{index-xzZKgB24.cjs → index-CbpyErg_.cjs} +1 -1
- package/dist/{index-DMkTj7aZ.cjs → index-ChnNZfEN.cjs} +1 -1
- package/dist/{index-BQKz83nF.js → index-Cv5oRI7Q.js} +1 -1
- package/dist/{index-Co4vN6r7.cjs → index-D49xaWHR.cjs} +1 -1
- package/dist/{index-BxS6-5bI.cjs → index-D8WLnGRC.cjs} +1 -1
- package/dist/{index-Duk7yWiP.cjs → index-DL_aJUHm.cjs} +1 -1
- package/dist/{index-lvZVl2Vw.js → index-DPnffFdz.js} +8 -8
- package/dist/{index-BCWHX3eK.cjs → index-D_tiSZ9j.cjs} +1 -1
- package/dist/{index-Cn3W-yV7.cjs → index-DdeUgqk3.cjs} +1 -1
- package/dist/{index-xHfmd7Ni.js → index-DeXx8Vko.js} +1 -1
- package/dist/{index-CHQVBVEk.cjs → index-DkU8Eq1c.cjs} +1 -1
- package/dist/{index-DqMnk5wX.cjs → index-EXE6oqX9.cjs} +1 -1
- package/dist/{index-BKK7zx0h.js → index-Iobde4Mg.js} +4 -4
- package/dist/{index-C8X6R7q5.js → index-KO6c2_4C.js} +4 -4
- package/dist/{index-DXselp6c.cjs → index-Xfa3De_r.cjs} +1 -1
- package/dist/{index-BYvy0l-n.cjs → index-bBQaYoAM.cjs} +1 -1
- package/dist/{index-BYDeJDc_.js → index-bXwcWWT4.js} +3 -3
- package/dist/{index-B3Kt07UJ.js → index-cnLMVBEH.js} +1 -1
- package/dist/{index-3ZZbSXzg.js → index-eMDBWTDY.js} +7 -7
- package/dist/{index-CtrZr-Cc.js → index-h6qSKvm4.js} +1 -1
- package/dist/{index-CEZuSXRM.js → index-iuHQqiR7.js} +1 -1
- package/dist/{index-BKxw0UBQ.cjs → index-nKXcthha.cjs} +1 -1
- package/dist/{index-BJnycjrK.cjs → index-xrC3zZoP.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-BhTZLmHo.js → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-ClX-um0I.js} +7 -7
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-C4PEXKSp.cjs → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-DXY29h1f.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BtDy8n8V.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CfZR3ABW.cjs} +212 -212
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-9XvSEGdS.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-T859a6kf.js} +14884 -14899
- package/dist/{index.vue_vue_type_style_index_0_scoped_140f5e74_lang-B5QsbB6Q.cjs → index.vue_vue_type_style_index_0_scoped_140f5e74_lang-BJK4Ar7-.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_140f5e74_lang-DPVGY0eJ.js → index.vue_vue_type_style_index_0_scoped_140f5e74_lang-CyUG5izb.js} +4 -4
- package/dist/{index.vue_vue_type_style_index_1_lang-ClIZyFAZ.cjs → index.vue_vue_type_style_index_1_lang-CNa3MLOt.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-DBIY-mVS.js → index.vue_vue_type_style_index_1_lang-Dml01rWN.js} +3 -3
- package/dist/{main-CjhywWOM.js → main-43YwuY9x.js} +3 -3
- package/dist/{main-CuyIrRZV.cjs → main-BwzBl_3h.cjs} +1 -1
- 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-ukCJmnVO.cjs → threeModel-Cs1MSH2i.cjs} +1 -1
- package/dist/{threeModel-DdsWlYl2.js → threeModel-DgFpDEHd.js} +4 -4
- package/dist/{threePreview-BZvdxIa2.cjs → threePreview-C3AbBY21.cjs} +1 -1
- package/dist/{threePreview-p9D877JF.js → threePreview-z9rz6n5g.js} +3 -3
- package/dist/{threeSceneView-B12dxEfS.cjs → threeSceneView-B3y6V-yN.cjs} +1 -1
- package/dist/{threeSceneView-C2zoPlRp.js → threeSceneView-C8vMKO0w.js} +8 -8
- package/dist/{threeSceneViewForCPMPIP-CIEoqdr8.cjs → threeSceneViewForCPMPIP-B7HSnAYV.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-B7s_szJB.js → threeSceneViewForCPMPIP-C8Lgc1n_.js} +7 -7
- package/dist/{threeTrackPathView-Cap0mVmC.cjs → threeTrackPathView-VB2cv_wS.cjs} +1 -1
- package/dist/{threeTrackPathView-BxK49ljq.js → threeTrackPathView-x9nKVqZP.js} +3 -3
- package/dist/{threeViewerHost-DGNd3WrL.js → threeViewerHost-Bi6Ire9J.js} +2 -2
- package/dist/{threeViewerHost-Cg_dRiGk.cjs → threeViewerHost-t-1xFz37.cjs} +1 -1
- package/dist/{urdfTree-Lfkc4b95.js → urdfTree-B7VGj9Ok.js} +1 -1
- package/dist/{urdfTree-B0LbjhKN.cjs → urdfTree-BbcmeygS.cjs} +1 -1
- package/dist/{workpieceTreePanel-D60hJ3BF.js → workpieceTreePanel-D1eW_Xi1.js} +4 -4
- package/dist/{workpieceTreePanel-BrOxOnjQ.cjs → workpieceTreePanel-DTXRhhGv.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index-dRtOvQRS.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-y1mE3_ai.cjs"),_=require("./index-C5woD5Cw.cjs"),C=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-y1mE3_ai.cjs"),_=require("./index-C5woD5Cw.cjs"),C=require("./index-BLoH9dR_.cjs"),r=require("./index-BAsZ3voF.cjs"),g=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),v={class:"menu-content"},x=l.defineComponent({__name:"index",setup(q){const m=_.useMenuState(u.pinia),{menus:c}=u.storeToRefs(m),p=l.ref([]),f=async()=>{var i,t,n,a;const e=await u.getInsofDataApi({key:{type:"mainEquip",systemKey:sessionStorage.getItem("systemKey")}});if(((i=e==null?void 0:e.data)==null?void 0:i.type)==="success"){let o=(n=(t=e==null?void 0:e.data)==null?void 0:t.result)==null?void 0:n.map(s=>s);return o=(a=u.cloneDeep(o))==null?void 0:a.map(s=>{var d;const b=Object.values((d=s==null?void 0:s.value)==null?void 0:d.tableData);return b.unshift({id:s==null?void 0:s.id}),b}),o}else return[]};l.onMounted(async()=>{var n;const e=await f(),t=[{key:"header",contents:[{label:"主菜单名称",formType:"Select",options:(n=u.cloneDeep(c.value))==null?void 0:n.map(a=>({label:a==null?void 0:a.title,value:a==null?void 0:a.title})),prop:"主菜单名称"},{label:"隐藏三维显示",formType:"Switch",value:!1,prop:"隐藏三维显示"},{label:"操作"}]},{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}];t.push({key:"tableContents",contents:e}),p.value=t});const y=e=>{(e==null?void 0:e.buttonName)==="新增"?r.addMenuContent(e==null?void 0:e.singleContent):(e==null?void 0:e.buttonName)==="删除"?r.deleteMenuContent(e==null?void 0:e.singleContent):(e==null?void 0:e.buttonName)==="编辑"&&r.fixMenuContent(e==null?void 0:e.singleContent)};return(e,i)=>(l.openBlock(),l.createElementBlock("div",v,[l.createVNode(C.ssTable,{itemData:p.value,class:"table-content",onChange:y},null,8,["itemData"])]))}}),h=g._export_sfc(x,[["__scopeId","data-v-26f5cadc"]]);exports.default=h;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { a as Pr, u as $r, f as Fr, g as Kr, s as jr } from "./index-
|
|
1
|
+
import { a as Pr, u as $r, f as Fr, g as Kr, s as jr } from "./index-Bo6yVJ9h.js";
|
|
2
2
|
import { computed as Ut, ref as ce, watch as wt, onUnmounted as Nr, resolveComponent as Mt, createElementBlock as at, openBlock as Ee, createVNode as Te, createBlock as Tt, createCommentVNode as fa, withCtx as Me, createElementVNode as se, Fragment as Ht, renderList as Xt, toDisplayString as ht, nextTick as Ka, createTextVNode as zt, defineComponent as ga, resolveDynamicComponent as Na, onMounted as on, unref as Ot, reactive as Ba, renderSlot as zn, createSlots as Ur, mergeProps as vl, normalizeStyle as an, withModifiers as jn, defineAsyncComponent as Wr, defineProps as Hr, getCurrentInstance as Vr, inject as _o, shallowRef as qr, toRef as Gr, onBeforeMount as hl, watchEffect as Xr, onBeforeUnmount as gl, normalizeClass as Co, getCurrentScope as Yr, onScopeDispose as Jr, provide as So, toRefs as Do, withDirectives as Zr, vShow as Qr } from "vue";
|
|
3
3
|
import { bO as es, l as oi, bP as ts, bQ as as, bR as ns, s as Zt, p as Yt, u as Ai, c as K, E as Gt, b as Wi, g as la, e as gn, bJ as li, bK as Ln, f as qa, bI as Oi, h as oo, bS as is, bT as os, bN as ls } from "./index-KFoWHXov.js";
|
|
4
|
-
import { d as ca, b as lo, e as yl, E as ml, f as bl, h as rs, c as kl, i as Zn } from "./index-
|
|
5
|
-
import { a as ro, R as ss, S as Hi, I as us, g as Ft, T as cs, U as so, V as Vi, W as ha, X as Un, Y as Va, Z as On, _ as Pi, $ as fs, o as ds, N as $i, a0 as ps, a1 as Eo, a2 as vs, a3 as gi, b as To, Q as wl, a4 as ui, a5 as hs, a6 as gs, a7 as ys, a8 as Di, a9 as ms, u as bs, p as ks } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
6
|
-
import { s as pa } from "./index-
|
|
7
|
-
import { a as ws, T as xs } from "./threeViewerHost-
|
|
4
|
+
import { d as ca, b as lo, e as yl, E as ml, f as bl, h as rs, c as kl, i as Zn } from "./index-KO6c2_4C.js";
|
|
5
|
+
import { a as ro, R as ss, S as Hi, I as us, g as Ft, T as cs, U as so, V as Vi, W as ha, X as Un, Y as Va, Z as On, _ as Pi, $ as fs, o as ds, N as $i, a0 as ps, a1 as Eo, a2 as vs, a3 as gi, b as To, Q as wl, a4 as ui, a5 as hs, a6 as gs, a7 as ys, a8 as Di, a9 as ms, u as bs, p as ks } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-T859a6kf.js";
|
|
6
|
+
import { s as pa } from "./index-Cv5oRI7Q.js";
|
|
7
|
+
import { a as ws, T as xs } from "./threeViewerHost-Bi6Ire9J.js";
|
|
8
8
|
import { a as Mn, u as Hn, E as ja, ac as _s } from "./index-Dh_LOm8w.js";
|
|
9
9
|
import { _ as Jt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
10
|
import { i as Io } from "./isString-BcJYo5aE.js";
|
|
11
11
|
import { _ as Ao } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
|
|
12
|
-
import { a as Cs, s as Ss } from "./index-
|
|
12
|
+
import { a as Cs, s as Ss } from "./index-bXwcWWT4.js";
|
|
13
13
|
import xl from "./index-rlStojTL.js";
|
|
14
|
-
import { s as Ds } from "./index-
|
|
14
|
+
import { s as Ds } from "./index-5mnjOCYW.js";
|
|
15
15
|
import { S as Es } from "./index-BHtNKL1L.js";
|
|
16
16
|
import { useRouter as Ts } from "vue-router";
|
|
17
17
|
import { a as Is, e as As, f as Os, g as zs, h as Bs } from "./index-CAPx0_D4.js";
|
|
@@ -6727,7 +6727,7 @@ function $d() {
|
|
|
6727
6727
|
}(xi)), xi.exports;
|
|
6728
6728
|
}
|
|
6729
6729
|
$d();
|
|
6730
|
-
const qi = Wr(() => import("./index-
|
|
6730
|
+
const qi = Wr(() => import("./index-KO6c2_4C.js").then((a) => a.k));
|
|
6731
6731
|
qi.install = (a) => {
|
|
6732
6732
|
a.component("ssMenu", qi);
|
|
6733
6733
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-BLoH9dR_.cjs"),n=require("./index-BXaReejM.cjs"),u=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),r=e.ref([]),i=e.computed(()=>[{key:"extraButton",contents:[{label:"清空",background:"#f56c6c",color:"#ffffff"}]},{key:"rowButton",contents:[]},{key:"header",contents:[{label:"模块名称",prop:"module",filterable:!0},{label:"操作类型",prop:"type",filterable:!0},{label:"账号",prop:"account",filterable:!0},{label:"姓名",prop:"userName",filterable:!0},{label:"时间",prop:"timeStamp",sortable:!0}]},{key:"tableContents",contents:r.value}]),p=Object.freeze(Object.defineProperty({__proto__:null,pageData:i,tableData:r},Symbol.toStringTag,{value:"Module"})),b={class:"log-wrap"},d=e.defineComponent({__name:"index",setup(_){const t=e.reactive({...p});e.onMounted(async()=>{t.tableData=await n.getLogTableDataAsync("operate")});const c=l=>{var a;n.clickButton(l,(a=t.tableData)==null?void 0:a.map(o=>o.id),o=>{o&&(t.tableData=[])})};return(l,a)=>(e.openBlock(),e.createElementBlock("div",b,[e.createVNode(s.ssTable,{itemData:t.pageData,allowOperate:!1,allowSelect:!1,onOnButtonClick:c},null,8,["itemData"])]))}}),f=u._export_sfc(d,[["__scopeId","data-v-3d3b471d"]]);exports.default=f;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const g=require("vue"),O=require("./index-C5woD5Cw.cjs"),i=require("./index-y1mE3_ai.cjs"),pe=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BtDy8n8V.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-C5woD5Cw.cjs"),i=require("./index-y1mE3_ai.cjs"),pe=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CfZR3ABW.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,7 +1,7 @@
|
|
|
1
1
|
import { ref as i, computed as j, reactive as ie, nextTick as B, watch as ye } from "vue";
|
|
2
2
|
import { u as be, a as he, ad as Ce } from "./index-Dh_LOm8w.js";
|
|
3
3
|
import { c as U, s as Ie, g as J, bU as ke, E as S, p as L, h as ae, e as oe, bL as Te, f as Me } from "./index-KFoWHXov.js";
|
|
4
|
-
import { u as Se } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
4
|
+
import { u as Se } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-T859a6kf.js";
|
|
5
5
|
const F = he(L), ne = Se(L), C = be(L), { menus: ue, configMenu: R, activeMenuPath: $, cacheStructures: K } = Ie(C), q = i(!1), se = j(() => {
|
|
6
6
|
var e, t;
|
|
7
7
|
return [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("./index-Xb_d3z-H.cjs"),_=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("./index-Xb_d3z-H.cjs"),_=require("./index-B5ppr9pu.cjs");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CfZR3ABW.cjs");const h=require("./index-ChnNZfEN.cjs"),f=require("./index-y1mE3_ai.cjs"),y=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),V={class:"personal-wrapper"},x={class:"personal-box left"},N={class:"base-avatar"},S={class:"center-avatar"},D={class:"base-info"},E={class:"base-signature"},k={class:"personal-box right"},B=e.defineComponent({__name:"index",setup(T){const t=e.reactive({...l.State}),b=f.useLoginState(),{loginUserInfo:n}=f.storeToRefs(b);return e.onMounted(()=>{var s;t.getUserTableHeadersAsync(),t.refreshLoginUserInfoAsync((s=n==null?void 0:n.value)==null?void 0:s.id),l.tabKey.value++}),(s,o)=>{var c,d,u,g,p,m,v;const r=e.resolveComponent("svg-icon"),i=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",V,[e.createElementVNode("div",x,[e.createElementVNode("div",N,[e.createElementVNode("div",S,[e.withDirectives(e.createVNode(_.ssAvatar,{size:100,disabled:t.uploadDisabled,userInfo:e.unref(n),onSubmitImage:o[0]||(o[0]=a=>t.submitImageAsync("avatarUrl",a))},null,8,["disabled","userInfo"]),[[i,t.avatarLoading]])])]),e.createElementVNode("div",D,[e.createElementVNode("div",null,[e.createVNode(r,{name:"userAccount",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((c=e.unref(n))==null?void 0:c.account)||(((d=e.unref(n))==null?void 0:d.姓名)??"未知")),1)]),e.createElementVNode("div",null,[e.createVNode(r,{name:"role",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((u=e.unref(n))==null?void 0:u.layer)==="superAdmin"?"超级管理员":((g=e.unref(n))==null?void 0:g.角色名称)??"未知"),1)]),e.createElementVNode("div",null,[e.createVNode(r,{name:"dept",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((p=e.unref(n))==null?void 0:p.部门名称)??"未知"),1)]),e.createElementVNode("div",null,[e.createVNode(r,{name:"status",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((m=e.unref(n))==null?void 0:m.layer)==="superAdmin"?"启用":((v=e.unref(n))==null?void 0:v.状态)??"未知"),1)])]),e.createElementVNode("div",E,[e.withDirectives(e.createVNode(_.ssSignature,{userInfo:e.unref(n),itemData:t.itemData,onClickSignButton:t.clickSignButton,onBeforeDestroy:t.beforeSignDestroy,onClickSubmitSign:o[1]||(o[1]=a=>t.submitImageAsync("signature",a))},null,8,["userInfo","itemData","onClickSignButton","onBeforeDestroy"]),[[i,t.signatureLoading]])])]),e.withDirectives((e.openBlock(),e.createElementBlock("div",k,[(e.openBlock(),e.createBlock(h.ssTab,{key:e.unref(l.tabKey),tabsContents:t.tabsContents,onChangeTrigger:t.changeFormTrigger,onClickTrigger:t.clickTabButton},null,8,["tabsContents","onChangeTrigger","onClickTrigger"]))])),[[i,t.loading]])])}}}),C=y._export_sfc(B,[["__scopeId","data-v-3bdf3f4b"]]);exports.default=C;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),y=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),y=require("./index-BLoH9dR_.cjs"),c=require("./index-y1mE3_ai.cjs"),l=require("./index-C5woD5Cw.cjs"),g=l.useModelComp(),{itemData:i}=c.storeToRefs(g),d=o.ref(0),m=o.ref([{label:"机构名称",value:"",name:"deptName"}]),D=e=>{console.log("handleQueryChange",e)},u=o.ref([{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"编辑"},{label:"删除"}]},{key:"header",contents:[{label:"职位名称",prop:"postName"},{label:"职位排序",formType:"Number",prop:"postOrder"},{label:"备注",formType:"TextArea",prop:"remark"},{label:"操作"}]},{key:"tableContents",contents:[]}]),f=e=>{l.submitTableAsyncByVerify(e.singleContent,e.buttonName,d.value)},h=e=>{console.log("onDoubleClick",e)},C=(e,a)=>{console.log("onButtonClick",e,a)},k=async e=>{const a=await l.handleSubmitAsync(c.getInsofDataApi,{key:{type:"data",systemKey:sessionStorage.getItem("systemKey"),pageKey:e}},"查询"),r=a==null?void 0:a.map(t=>{var n;return{id:t.id,tableData:(n=t==null?void 0:t.value)==null?void 0:n.tableData}});return r==null?void 0:r.map(t=>{var n;if(Array.isArray(t==null?void 0:t.tableData)){let s={id:t.id};return(n=t==null?void 0:t.tableData)==null||n.forEach((p,b)=>{s[`a${b}`]=p}),s}else return{...t.tableData,id:t.id}})},_={comp:"Group",name:"/系统管理/职位管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:u.value,name:""}]}]};o.watch(()=>i.value,e=>{var a;e&&(e==null?void 0:e.length)>0&&(u.value=(a=e==null?void 0:e[0])==null?void 0:a.compData)});const S=Object.freeze(Object.defineProperty({__proto__:null,getPageDataAsync:k,handleItemDataChange:f,handleQueryChange:D,onButtonClick:C,onDoubleClick:h,pageData:u,queryFormData:m,structureId:d,tempPostPageData:_},Symbol.toStringTag,{value:"Module"})),T=o.defineComponent({__name:"index",setup(e){const a=o.reactive({...S}),r=l.useMenuState(),{activeMenuPath:t}=c.storeToRefs(r);return o.onMounted(async()=>{a.structureId=await l.getActivePageStructureId(t.value)}),(n,s)=>(o.openBlock(),o.createElementBlock("div",null,[o.createVNode(y.ssTable,{itemData:a.pageData,onChange:a.handleItemDataChange},null,8,["itemData","onChange"])]))}});exports.default=T;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ref as V, computed as Z, resolveComponent as K, createElementBlock as w, openBlock as r, Fragment as ee, renderList as ae, createElementVNode as g, toDisplayString as Q, createVNode as C, watch as ue, createBlock as A, resolveDynamicComponent as X, unref as h, withCtx as D, isRef as ze, createTextVNode as te, createCommentVNode as G, normalizeStyle as Xe, withModifiers as ne, normalizeClass as Ge, nextTick as Ke } from "vue";
|
|
2
|
-
import { J as ve, g as Ye, D as je, B as Qe, C as He, b as Ze } from "./index-
|
|
2
|
+
import { J as ve, g as Ye, D as je, B as Qe, C as He, b as Ze } from "./index-DPnffFdz.js";
|
|
3
3
|
import { p as ie, s as le, c as R, E as ea } from "./index-KFoWHXov.js";
|
|
4
4
|
import { a as me, u as qe, E as aa } from "./index-Dh_LOm8w.js";
|
|
5
|
-
import { s as W, h as We, o as Je, b as ta, c as he, d as na, f as ce, g as la, i as oa, j as Pe, k as sa, l as fe, m as re, n as ca, t as ra, p as ua } from "./array-
|
|
5
|
+
import { s as W, h as We, o as Je, b as ta, c as he, d as na, f as ce, g as la, i as oa, j as Pe, k as sa, l as fe, m as re, n as ca, t as ra, p as ua } from "./array-C-MjDZXh.js";
|
|
6
6
|
import { _ as ge } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
7
|
import ia from "./index-rlStojTL.js";
|
|
8
|
-
import { b as da, c as pa } from "./index-
|
|
9
|
-
import { s as va } from "./index-
|
|
8
|
+
import { b as da, c as pa } from "./index-KO6c2_4C.js";
|
|
9
|
+
import { s as va } from "./index-Cv5oRI7Q.js";
|
|
10
10
|
const ha = { class: "type-select" }, fa = { class: "group-label" }, ma = { class: "group-items" }, ga = ["onDragstart"], _a = {
|
|
11
11
|
__name: "index",
|
|
12
12
|
props: {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ref as G, resolveComponent as Z, createBlock as W, openBlock as b, createCommentVNode as o0, createSlots as H2, withCtx as H, renderSlot as v0, defineComponent as d2, onMounted as he, createVNode as e0, createElementVNode as d0, createElementBlock as B, Fragment as y0, renderList as k0, createTextVNode as L2, toDisplayString as U0, reactive as p1, h as Ie, Transition as qr, withDirectives as gt, vShow as Xt, createApp as Yr, toRefs as A4, nextTick as C2, isRef as Kr, watch as o2, computed as n0, onBeforeUnmount as Tn, normalizeStyle as Q0, normalizeClass as Z3, resolveDynamicComponent as Qt, normalizeProps as Xr, guardReactiveProps as Qr, mergeProps as g1, withModifiers as V4, inject as Jr, watchEffect as ye, onUnmounted as m1, unref as lt, resolveDirective as Zr } from "vue";
|
|
2
2
|
import { S as mt } from "./index-BHtNKL1L.js";
|
|
3
|
-
import { aO as e8, W as B4, n as tt, c as t8, u as i8, T as bs, e as E4, aP as n8, aQ as s8, aR as o8, aS as l8, d as r8, aT as _s, aU as ys } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
3
|
+
import { aO as e8, W as B4, n as tt, c as t8, u as i8, T as bs, e as E4, aP as n8, aQ as s8, aR as o8, aS as l8, d as r8, aT as _s, aU as ys } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-T859a6kf.js";
|
|
4
4
|
import { _ as V0 } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
import { bQ as L4, bR as H4, cf as a8, cg as Ss, bG as c8, b8 as l3, V as h8, af as I4, aJ as zt, b7 as Cs, $ as R4, ch as d8, E as I3, p as rt, s as vt, c as X2, a as N4, ci as u8, aW as f8, aw as p8, cj as g8, b as m8, b2 as v8 } from "./index-KFoWHXov.js";
|
|
6
6
|
import { _ as be } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
|
|
7
7
|
import { a as zn, u as Pn } from "./index-Dh_LOm8w.js";
|
|
8
|
-
import { s as An } from "./index-
|
|
9
|
-
import { T as ks, a as w8 } from "./threeViewerHost-
|
|
10
|
-
import { s as x8 } from "./index-
|
|
8
|
+
import { s as An } from "./index-Cv5oRI7Q.js";
|
|
9
|
+
import { T as ks, a as w8 } from "./threeViewerHost-Bi6Ire9J.js";
|
|
10
|
+
import { s as x8 } from "./index-CIsLzHcf.js";
|
|
11
11
|
var b8 = "[object Date]";
|
|
12
12
|
function _8(n) {
|
|
13
13
|
return L4(n) && H4(n) == b8;
|