ss-component-new 1.3.2 → 1.3.4
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-xrJPpi4c.cjs → MTLLoader-BDa0EA-y.cjs} +1 -1
- package/dist/{MTLLoader-Dv2EVTWB.js → MTLLoader-DU2_d5qP.js} +37 -37
- package/dist/{OrbitControls-B_seM-IP.js → OrbitControls-B2Ue7hdS.js} +1 -1
- package/dist/{OrbitControls-DeFoKJp9.cjs → OrbitControls-DfhmSOVW.cjs} +1 -1
- package/dist/{URDFLoader-B6g0hxRm.cjs → URDFLoader-BRTNakjO.cjs} +1 -1
- package/dist/{URDFLoader-BT60rQtD.js → URDFLoader-BSHChj3i.js} +189 -189
- package/dist/{animationData-Beth8tFS.js → animationData-Bfm5Jk8y.js} +26 -26
- package/dist/{animationData-CXbG057x.cjs → animationData-CNIRMzHL.cjs} +1 -1
- package/dist/{array-C6jYq2-o.js → array-BqZSVRH0.js} +46 -46
- package/dist/{array-QkdkoOAY.cjs → array-MgT_0IYR.cjs} +1 -1
- package/dist/{iconfont-h3lSsHxO.js → iconfont-D4sBppfS.js} +29 -29
- package/dist/{iconfont-UNojnhH2.cjs → iconfont-kWEJenGZ.cjs} +1 -1
- package/dist/{index-Cjqg29ul.cjs → index-0sI9GpjG.cjs} +1 -1
- package/dist/index-7WRVFebE.cjs +1 -0
- package/dist/{index-7tMW9vmz.js → index-7bddXiMZ.js} +723 -723
- package/dist/{index-CgR9iYFA.cjs → index-B-wqJb1R.cjs} +1 -1
- package/dist/{index-B3jquljw.js → index-BCQ-ZrNS.js} +7 -7
- package/dist/{index-BJPBBWWH.cjs → index-BLxE_tkf.cjs} +1 -1
- package/dist/{index-CaXg2zO6.cjs → index-BPKCXbP6.cjs} +1 -1
- package/dist/index-BR7I_Z6b.cjs +1 -0
- package/dist/{index-Ddoq7kRQ.js → index-BT6DSXQW.js} +9 -9
- package/dist/{index-BYdJgNnt.js → index-BTfRODup.js} +3 -3
- package/dist/{index-DRybfiC9.js → index-BUrYjzWs.js} +2 -2
- package/dist/{index-TxlM0xFu.cjs → index-BWqkJ8tT.cjs} +1 -1
- package/dist/{index-CCn_Pa7c.cjs → index-BY0bG8F_.cjs} +1 -1
- package/dist/{index-CDYSTy2C.cjs → index-Bb7_N8kj.cjs} +1 -1
- package/dist/index-BdP1gtPp.cjs +13 -0
- package/dist/{index-BqqRuoo3.js → index-Bt9rt1NQ.js} +3 -3
- package/dist/index-BtuZ5Zx4.js +103 -0
- package/dist/{index-BBo5mPL3.js → index-C38KGQKj.js} +2 -2
- package/dist/{index-CPk9g8p3.js → index-C3RoPY39.js} +2 -2
- package/dist/{index-Bv-gTP_t.cjs → index-C3suNMi3.cjs} +1 -1
- package/dist/{index-hnHfOKW9.cjs → index-C6_1MyLM.cjs} +1 -1
- package/dist/{index-DRTxe12U.cjs → index-C8fMwErX.cjs} +13 -13
- package/dist/{index-r5JlBAZk.cjs → index-CDhojfAp.cjs} +1 -1
- package/dist/{index-nr6V1FzX.js → index-CEoo5NuF.js} +7 -7
- package/dist/{index-CXiOVgoz.js → index-CEzEaG0d.js} +1 -1
- package/dist/{index-NAekmm6C.js → index-CM_8lsuy.js} +2 -2
- package/dist/{index-CuKYtSif.js → index-CN5eTGfF.js} +1 -1
- package/dist/{index-BR5J0fXr.cjs → index-COvNwtxL.cjs} +13 -13
- package/dist/{index-BF9Y0y6z.js → index-CaDwU086.js} +3 -3
- package/dist/{index-DU9e5EhS.cjs → index-Cw4Pm2PQ.cjs} +1 -1
- package/dist/{index-Va8AOLWi.js → index-DGRL8SEt.js} +1 -1
- package/dist/index-DIqYHU20.cjs +11 -0
- package/dist/{index-DzadQQ41.js → index-DUygJhjf.js} +1703 -1712
- package/dist/{index-VcjIgkLE.cjs → index-DV3KiKv5.cjs} +1 -1
- package/dist/{index-DRLogw4i.js → index-DVHBs_Vv.js} +1952 -1948
- package/dist/{index-B7RJnzyb.js → index-DgYpyTf-.js} +2 -2
- package/dist/index-DgyyXNFj.js +12535 -0
- package/dist/{index-4FJEY4G5.js → index-DlchhCKc.js} +8 -8
- package/dist/{index-BJaAtaqN.js → index-Dm4qKk5S.js} +7 -7
- package/dist/{index-Da5iE_ab.js → index-Dsh4fjDh.js} +2 -2
- package/dist/{index-CVGCFimV.js → index-G9jqtOFo.js} +5 -5
- package/dist/{index-DzAoltDQ.cjs → index-MEN9vDHo.cjs} +1 -1
- package/dist/{index-wpbqbw-8.cjs → index-R-S0AH15.cjs} +1 -1
- package/dist/{index-De3Zh_5B.cjs → index-dD_cGWLc.cjs} +1 -1
- package/dist/{index-B1deFmCB.js → index-f_aTA7O9.js} +1 -1
- package/dist/{index-DtkLwSCK.cjs → index-iv5M7d4h.cjs} +1 -1
- package/dist/{index-BbdTn4Wu.js → index-jbNDRLVg.js} +5 -5
- package/dist/{index-DkzIAhpA.cjs → index-kZhbnU3-.cjs} +1 -1
- package/dist/{index-DAeGe9R9.cjs → index-mpoMK_dv.cjs} +1 -1
- package/dist/{index-COQpDVsv.js → index-sMsCzNtW.js} +1535 -1570
- package/dist/{index-BWCv7zxy.cjs → index-vCTVD7cV.cjs} +1 -1
- package/dist/{index-DPNECOKG.cjs → index-zR73jr4m.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BYHbVlRN.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D4mQcDEW.cjs} +398 -408
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DuyXGUSZ.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DLfKrpq4.js} +32428 -32989
- package/dist/{index.vue_vue_type_style_index_1_lang-JNXKF-5g.cjs → index.vue_vue_type_style_index_1_lang-BybP-dlR.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-CPOQHkRi.js → index.vue_vue_type_style_index_1_lang-C6hiPOvT.js} +78 -78
- package/dist/{main-II23mGYX.cjs → main-DODePLfq.cjs} +1 -1
- package/dist/{main-ClpfURp9.js → main-nyWYROsL.js} +4 -4
- package/dist/{menuIndex-D52EAwtb.cjs → menuIndex-8RF_0N_y.cjs} +1 -1
- package/dist/{menuIndex-DYaogp2R.js → menuIndex-BwWrdu20.js} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +10 -10
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +11 -11
- package/dist/{threeModel-Bdx25CW5.cjs → threeModel-BwQqxP7B.cjs} +1 -1
- package/dist/{threeModel-1StgfJTN.js → threeModel-Dw1HYePN.js} +45 -45
- package/dist/{threePreview-BNAELyED.cjs → threePreview-BlCmiK0A.cjs} +1 -1
- package/dist/{threePreview-Bf5gN_fI.js → threePreview-PdofIeZV.js} +103 -103
- package/dist/{threeSceneView-u0zqKHWX.cjs → threeSceneView-QkRW8pnJ.cjs} +1 -1
- package/dist/{threeSceneView-Boc1QaDR.js → threeSceneView-aDZwf58h.js} +38 -38
- package/dist/{threeSceneViewForCPMPIP-CYkIXtPP.cjs → threeSceneViewForCPMPIP-Ds4WSe56.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-gnFSbkip.js → threeSceneViewForCPMPIP-JDLX5nri.js} +8 -8
- package/dist/{threeTrackPathView-CBsHliC3.cjs → threeTrackPathView-BlAgLn32.cjs} +1 -1
- package/dist/{threeTrackPathView-B1OFwlLh.js → threeTrackPathView-DOy180Fe.js} +66 -66
- package/dist/{threeViewerHost-BSxl-4d-.cjs → threeViewerHost-Bk7K37-4.cjs} +1 -1
- package/dist/{threeViewerHost-B9z6zHUh.js → threeViewerHost-DNY3nOwS.js} +20 -20
- package/dist/{urdfTree-CGZUqrH4.js → urdfTree-CeP5yUoC.js} +10 -10
- package/dist/{urdfTree-C1KFI7et.cjs → urdfTree-nxh-CAg8.cjs} +1 -1
- package/dist/{workpieceTreePanel-Bb9foDnf.js → workpieceTreePanel-CTC2K239.js} +56 -56
- package/dist/{workpieceTreePanel-BFsf-BrP.cjs → workpieceTreePanel-CZQFw5fE.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index-C8qPBadE.cjs +0 -13
- package/dist/index-CUtrk2F2.cjs +0 -1
- package/dist/index-CpbBe_mV.cjs +0 -1
- package/dist/index-DIWralYr.js +0 -67
- package/dist/index-DJFQljsX.cjs +0 -1
- package/dist/index-SvdMxP5R.js +0 -11899
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref as f, computed as S, reactive as P } from "vue";
|
|
2
|
-
import { ax as $, ay as B, au as H, g as
|
|
3
|
-
import { s as
|
|
4
|
-
const A = x(
|
|
2
|
+
import { ax as $, ay as B, au as H, g as L, u as j, E as T } from "./index-B8HqIYd5.js";
|
|
3
|
+
import { s as M, b as x, L as J, u as z, p as R, c as G, d as Q, M as X } from "./index-sMsCzNtW.js";
|
|
4
|
+
const A = x(R), { loginUserInfo: o, cryptoInfo: c } = M(A), Y = z(R), { activeMenuPath: g } = M(Y), Z = f(0), _ = S(() => {
|
|
5
5
|
var s, a, t, r, l, n, e, u, p, d, v;
|
|
6
6
|
return [
|
|
7
7
|
{
|
|
@@ -93,7 +93,7 @@ const A = x(L), { loginUserInfo: o, cryptoInfo: c } = _(A), Y = z(L), { activeMe
|
|
|
93
93
|
m.dialogShow = !1;
|
|
94
94
|
}, F = async (s) => {
|
|
95
95
|
var t, r, l, n, e, u, p, d, v;
|
|
96
|
-
const a = await
|
|
96
|
+
const a = await L({
|
|
97
97
|
id: s
|
|
98
98
|
// key: {
|
|
99
99
|
// systemKey: sessionStorage.getItem("systemKey"),
|
|
@@ -112,7 +112,7 @@ const A = x(L), { loginUserInfo: o, cryptoInfo: c } = _(A), Y = z(L), { activeMe
|
|
|
112
112
|
}
|
|
113
113
|
}, V = async (s, a) => {
|
|
114
114
|
var r, l, n;
|
|
115
|
-
const t =
|
|
115
|
+
const t = G(s);
|
|
116
116
|
t == null || delete t.id;
|
|
117
117
|
try {
|
|
118
118
|
const e = await j({
|
|
@@ -147,7 +147,7 @@ const A = x(L), { loginUserInfo: o, cryptoInfo: c } = _(A), Y = z(L), { activeMe
|
|
|
147
147
|
var n, e, u, p, d, v;
|
|
148
148
|
let r;
|
|
149
149
|
const l = a;
|
|
150
|
-
((e = (n = o.value) == null ? void 0 : n.layer) == null ? void 0 : e.toUpperCase()) !== "SUPERADMIN" ? r = (u = o.value) != null && u.password ?
|
|
150
|
+
((e = (n = o.value) == null ? void 0 : n.layer) == null ? void 0 : e.toUpperCase()) !== "SUPERADMIN" ? r = (u = o.value) != null && u.password ? Q((p = o.value) == null ? void 0 : p.password, (d = c == null ? void 0 : c.value) == null ? void 0 : d.privateKey) : X : r = (v = o.value) == null ? void 0 : v.password, r === l ? t() : t(new Error("输入的密码与原密码不匹配,请重新输入"));
|
|
151
151
|
}, le = (s, a, t) => {
|
|
152
152
|
a ? t() : t(new Error("请输入密码"));
|
|
153
153
|
}, ne = (s, a, t) => {
|
|
@@ -155,7 +155,7 @@ const A = x(L), { loginUserInfo: o, cryptoInfo: c } = _(A), Y = z(L), { activeMe
|
|
|
155
155
|
a !== ((r = q.value) == null ? void 0 : r.newtPass) ? t(new Error("两次输入的密码不一致")) : t();
|
|
156
156
|
}, oe = async () => {
|
|
157
157
|
var a, t, r, l, n, e, u, p, d, v;
|
|
158
|
-
const s = await
|
|
158
|
+
const s = await L({
|
|
159
159
|
key: {
|
|
160
160
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
161
161
|
type: "structure",
|
|
@@ -164,7 +164,7 @@ const A = x(L), { loginUserInfo: o, cryptoInfo: c } = _(A), Y = z(L), { activeMe
|
|
|
164
164
|
}
|
|
165
165
|
});
|
|
166
166
|
if (((a = s == null ? void 0 : s.data) == null ? void 0 : a.code) === 200 && s.data.result && ((t = s.data.result) == null ? void 0 : t.length) > 0) {
|
|
167
|
-
const y = (u = (e = (n = (l = (r = s.data.result) == null ? void 0 : r[0]) == null ? void 0 : l.value) == null ? void 0 : n.pageData) == null ? void 0 : e.compData) == null ? void 0 : u.find((i) => (i == null ? void 0 : i.key) === "header"), w = (p =
|
|
167
|
+
const y = (u = (e = (n = (l = (r = s.data.result) == null ? void 0 : r[0]) == null ? void 0 : l.value) == null ? void 0 : n.pageData) == null ? void 0 : e.compData) == null ? void 0 : u.find((i) => (i == null ? void 0 : i.key) === "header"), w = (p = _.value) == null ? void 0 : p.map((i) => i == null ? void 0 : i.prop);
|
|
168
168
|
b.baseCols = y && ((d = y.contents) == null ? void 0 : d.map((i) => ({
|
|
169
169
|
...i,
|
|
170
170
|
isFormColHidden: (w == null ? void 0 : w.includes(i == null ? void 0 : i.prop)) || (i == null ? void 0 : i.label) === "操作"
|
|
@@ -310,7 +310,7 @@ const A = x(L), { loginUserInfo: o, cryptoInfo: c } = _(A), Y = z(L), { activeMe
|
|
|
310
310
|
itemData: ae,
|
|
311
311
|
loading: D,
|
|
312
312
|
refreshLoginUserInfoAsync: F,
|
|
313
|
-
rowContents:
|
|
313
|
+
rowContents: _,
|
|
314
314
|
signPadInfo: m,
|
|
315
315
|
signTypes: k,
|
|
316
316
|
signatureLoading: I,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ref as i, computed as j, reactive as ie, nextTick as B, watch as ye } from "vue";
|
|
2
|
-
import { c as J, s as be, u as he, a as Ce, p as U,
|
|
3
|
-
import { u as ke } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
2
|
+
import { c as J, s as be, u as he, a as Ce, p as U, h as Ie } from "./index-sMsCzNtW.js";
|
|
3
|
+
import { u as ke } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DLfKrpq4.js";
|
|
4
4
|
import { g as $, E as S, f as ae, u as oe, n as Te, d as Me } from "./index-B8HqIYd5.js";
|
|
5
|
-
import { a as Se } from "./menuIndex-
|
|
5
|
+
import { a as Se } from "./menuIndex-BwWrdu20.js";
|
|
6
6
|
const F = Ce(U), ne = ke(U), C = he(U), { menus: ue, configMenu: R, activeMenuPath: q, cacheStructures: K } = be(C), z = i(!1), se = j(() => {
|
|
7
7
|
var e, t;
|
|
8
8
|
return [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as o, reactive as c, onMounted as s, createElementBlock as r, openBlock as u, createVNode as i } from "vue";
|
|
2
|
-
import { s as m } from "./index-
|
|
3
|
-
import { u as d, s as l, b as p, S as g,
|
|
2
|
+
import { s as m } from "./index-DVHBs_Vv.js";
|
|
3
|
+
import { u as d, s as l, b as p, S as g, i as h } from "./index-sMsCzNtW.js";
|
|
4
4
|
const _ = { class: "routerPage-wrapper" }, B = /* @__PURE__ */ o({
|
|
5
5
|
__name: "index",
|
|
6
6
|
setup(C) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const i=require("vue"),k=require("./index-DRTxe12U.cjs"),ce=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BYHbVlRN.cjs"),y=require("./index-C5pQXH0_.cjs"),pe=require("./menuIndex-D52EAwtb.cjs"),E=k.useModelComp(k.pinia),m=ce.useUnit(k.pinia),I=k.useMenuState(k.pinia),{menus:ee,configMenu:B,activeMenuPath:O,cacheStructures:_}=k.storeToRefs(I),j=i.ref(!1),te=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=k.cloneDeep(ee.value))==null?void 0:e.map(l=>({...l,menuType:"系统菜单"})))==null?void 0:t.filter(l=>l.title!=="系统管理"&&l.title!=="平台管理")}]}),$=i.ref([]),H=i.ref([{label:"新建"}]),fe=i.computed(()=>[{key:"extraButton",contents:H.value},{key:"rowButton",contents:[{label:"修改"},{label:"删除"}]},{key:"header",contents:[{label:"操作类型",prop:"operateType",formType:"select",options:[{label:"新增",value:"新增"},{label:"编辑",value:"编辑"},{label:"删除",value:"删除"}],value:""},{label:"操作图标",prop:"operateIcon",formType:"inputPopover",value:""},{label:"操作触发事件",prop:"trigger",formType:"select",options:[{label:"弹出弹窗",value:"openDialog"}],value:"openDialog"},{label:"配置一:",prop:"dialogConfig",formType:"button",value:"弹窗内容",isTableColHidden:!0},{label:"配置二:",prop:"contentConfig",formType:"button",value:"模块内容",isTableColHidden:!0},{label:"继承配置:",prop:"allowInherit",formType:"radio",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!1,isTableColHidden:!0},{label:"操作"}]},{key:"tableContents",contents:$.value}]),J=i.ref([]),T=i.ref({}),de=i.ref({}),R=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}]),q=e=>{var t;J.value=e?(t=R.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]:""}):R.value},ie=i.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}),g=i.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),U=i.ref([]),C=i.ref({}),h=i.ref(null),ae=i.ref([]),oe=i.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 y.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:pe.findRootNodeByPath(oe.value,e.path)},I.setCacheStructures(null),(e==null?void 0:e.level)===0?H.value.splice(0):(H.value=[{label:"新建"}],U.value=(t=e==null?void 0:e.path)==null?void 0:t.split("/")),await I.setConfigMenu(null),await ne(e==null?void 0:e.path),await x(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 y.ElMessage.warning("请先选择菜单");if(g.type=ye(e),U.value=[],E.setSubmitCurStructure(!1),m.setSelectTitle([]),C.value=k.cloneDeep(t),g.type!=="delete"){switch(g.type){case"create":q(null),await I.setConfigMenu(null);break;case"update":q(C.value),await I.setConfigMenu(C.value),console.log("clickRowButton",C.value);break}await i.nextTick(),g.title=`【${g.type==="create"?(l=h.value)==null?void 0:l.path:(u=C.value)==null?void 0:u.path}】菜单配置${e}`,g.show=!0}else await re(C.value,g.type)},ue=i.ref(!0),he=async e=>{var t;T.value=e,await I.setConfigMenu({...T.value,path:(t=h.value)==null?void 0:t.path}),ue.value=(e==null?void 0:e.operateType)!=="新增"};i.watch(()=>ue.value,async e=>{var t;await i.nextTick(),J.value=(t=R.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 Ce=i.ref(null),Ie=async(e,t)=>{var r,p,f,s,b;if(g.type==="create"){const a=(p=(r=_.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);E.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 y.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,N,A,P,o,F;return{id:(N=(D=(M=d==null?void 0:d.data)==null?void 0:M.result)==null?void 0:D[0])==null?void 0:N.id,...(F=(o=(P=(A=d==null?void 0:d.data)==null?void 0:A.result)==null?void 0:P[0])==null?void 0:o.value)==null?void 0:F.pageData}});E.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=T.value)!=null&&n.subMenus&&((c=T.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;g.type==="create"?u={...T.value,path:(f=h.value)==null?void 0:f.path}:g.type==="update"&&(u=B.value),await I.setConfigMenu(u),m.setSelectTitle(l),E.setIsEdit("edit")},x=async e=>{var l,u,n,c,r,p;const t=await y.getInsofDataApi({key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:O.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:O.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=y.createInsofDataApi):t==="update"?(s={id:e==null?void 0:e.id,value:{pageData:e}},b=y.updateInsofDataApi):t==="delete"&&(s={id:e},b=y.deleteInsofDataApi);const a=await b(s);if(((r=a==null?void 0:a.data)==null?void 0:r.code)!==200)throw y.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{y.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 i.nextTick();const a=(n=(u=(l=_.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=_.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 M=Y(b,a),D=Y(s,d),N=Z("dialogConfig",M),A=Z("contentConfig",D),P=[...N,...A];await Promise.all(P).then(o=>{var z,G,L,V,Q,W,X;if(!(o==null?void 0:o.every(v=>v.status)))return;let w=(z=o==null?void 0:o.flatMap(v=>v==null?void 0:v.data))==null?void 0:z.filter(v=>(v==null?void 0:v.id)!==null&&(v==null?void 0:v.id)!==void 0);if(((G=M==null?void 0:M.updateComps)==null?void 0:G.length)===0&&g.type==="update"){const v=(V=(L=C.value)==null?void 0:L.structureIds)==null?void 0:V.filter(S=>(S==null?void 0:S.key)==="dialogConfig");w=[...w,...v]}if(((Q=D==null?void 0:D.updateComps)==null?void 0:Q.length)===0&&g.type==="update"){const v=(X=(W=C.value)==null?void 0:W.structureIds)==null?void 0:X.filter(S=>(S==null?void 0:S.key)==="contentConfig");w=[...w,...v]}const se=Te(w);re({...t,isNotInitial:!0,structureIds:se},g.type)}).catch(o=>{y.ElMessage.error(o)})}catch(s){throw y.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:O.value+"/"+((n=h.value)==null?void 0:n.path),tableId:"",rootNodePath:e==null?void 0:e.rootNodePath},value:{tableData:e}},u=y.createInsofDataApi):t==="update"?(l={id:e==null?void 0:e.id,value:{tableData:e}},u=y.updateInsofDataApi):t==="delete"&&(l={ids:[e.id,...(c=e==null?void 0:e.structureIds)==null?void 0:c.map(r=>r.id)]},u=y.batchDeleteInsofDataApi),k.handleSubmitAsync(u,l,t).then(r=>{t==="create"&&$.value.push({...e,id:r}),t&&r&&y.ElMessage.success("响应成功"),x(h.value)})},De=async()=>{var l,u,n,c,r;const e=JSON.parse(k.cloneDeep(JSON.stringify(_.value)));await i.nextTick();const t=g.type==="create"?{...B.value,rootNodePath:(u=(l=h.value)==null?void 0:l.rootNode)==null?void 0:u.path}:{...B.value,rootNodePath:(c=(n=h.value)==null?void 0:n.rootNode)==null?void 0:c.path,id:(r=C.value)==null?void 0:r.id};await Me(e,t),T.value={},g.show=!1,await x(h.value)},Se=()=>{g.show=!1},we={comp:"Group",name:"/平台管理/菜单管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:te.value,name:""}]}]},Ne=Object.freeze(Object.defineProperty({__proto__:null,beforeDialogDestroy:Se,buttonValue:ie,changeTrigger:he,changedRow:de,clickNodeTrigger:ve,clickRowButton:be,clickSubmitForm:De,clickTrigger:ke,dialogInfo:g,formatFormData:q,getInitialSubStructure:ne,getTableDataAsync:x,handleItemDataChange:ge,inputForm:T,menuPageData:fe,operatingForm:Ce,pageData:te,renderFormData:J,tableLoading:j,tempMenuPageData:we,treeData:oe},Symbol.toStringTag,{value:"Module"}));exports.State=Ne;
|
|
1
|
+
"use strict";const i=require("vue"),k=require("./index-C8fMwErX.cjs"),ce=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D4mQcDEW.cjs"),y=require("./index-C5pQXH0_.cjs"),pe=require("./menuIndex-8RF_0N_y.cjs"),E=k.useModelComp(k.pinia),m=ce.useUnit(k.pinia),I=k.useMenuState(k.pinia),{menus:ee,configMenu:B,activeMenuPath:O,cacheStructures:_}=k.storeToRefs(I),j=i.ref(!1),te=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=k.cloneDeep(ee.value))==null?void 0:e.map(l=>({...l,menuType:"系统菜单"})))==null?void 0:t.filter(l=>l.title!=="系统管理"&&l.title!=="平台管理")}]}),$=i.ref([]),H=i.ref([{label:"新建"}]),fe=i.computed(()=>[{key:"extraButton",contents:H.value},{key:"rowButton",contents:[{label:"修改"},{label:"删除"}]},{key:"header",contents:[{label:"操作类型",prop:"operateType",formType:"select",options:[{label:"新增",value:"新增"},{label:"编辑",value:"编辑"},{label:"删除",value:"删除"}],value:""},{label:"操作图标",prop:"operateIcon",formType:"inputPopover",value:""},{label:"操作触发事件",prop:"trigger",formType:"select",options:[{label:"弹出弹窗",value:"openDialog"}],value:"openDialog"},{label:"配置一:",prop:"dialogConfig",formType:"button",value:"弹窗内容",isTableColHidden:!0},{label:"配置二:",prop:"contentConfig",formType:"button",value:"模块内容",isTableColHidden:!0},{label:"继承配置:",prop:"allowInherit",formType:"radio",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!1,isTableColHidden:!0},{label:"操作"}]},{key:"tableContents",contents:$.value}]),J=i.ref([]),T=i.ref({}),de=i.ref({}),R=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}]),q=e=>{var t;J.value=e?(t=R.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]:""}):R.value},ie=i.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}),g=i.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),U=i.ref([]),C=i.ref({}),h=i.ref(null),ae=i.ref([]),oe=i.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 y.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:pe.findRootNodeByPath(oe.value,e.path)},I.setCacheStructures(null),(e==null?void 0:e.level)===0?H.value.splice(0):(H.value=[{label:"新建"}],U.value=(t=e==null?void 0:e.path)==null?void 0:t.split("/")),await I.setConfigMenu(null),await ne(e==null?void 0:e.path),await x(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 y.ElMessage.warning("请先选择菜单");if(g.type=ye(e),U.value=[],E.setSubmitCurStructure(!1),m.setSelectTitle([]),C.value=k.cloneDeep(t),g.type!=="delete"){switch(g.type){case"create":q(null),await I.setConfigMenu(null);break;case"update":q(C.value),await I.setConfigMenu(C.value),console.log("clickRowButton",C.value);break}await i.nextTick(),g.title=`【${g.type==="create"?(l=h.value)==null?void 0:l.path:(u=C.value)==null?void 0:u.path}】菜单配置${e}`,g.show=!0}else await re(C.value,g.type)},ue=i.ref(!0),he=async e=>{var t;T.value=e,await I.setConfigMenu({...T.value,path:(t=h.value)==null?void 0:t.path}),ue.value=(e==null?void 0:e.operateType)!=="新增"};i.watch(()=>ue.value,async e=>{var t;await i.nextTick(),J.value=(t=R.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 Ce=i.ref(null),Ie=async(e,t)=>{var r,p,f,s,b;if(g.type==="create"){const a=(p=(r=_.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);E.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 y.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,N,A,P,o,F;return{id:(N=(D=(M=d==null?void 0:d.data)==null?void 0:M.result)==null?void 0:D[0])==null?void 0:N.id,...(F=(o=(P=(A=d==null?void 0:d.data)==null?void 0:A.result)==null?void 0:P[0])==null?void 0:o.value)==null?void 0:F.pageData}});E.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=T.value)!=null&&n.subMenus&&((c=T.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;g.type==="create"?u={...T.value,path:(f=h.value)==null?void 0:f.path}:g.type==="update"&&(u=B.value),await I.setConfigMenu(u),m.setSelectTitle(l),E.setIsEdit("edit")},x=async e=>{var l,u,n,c,r,p;const t=await y.getInsofDataApi({key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:O.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:O.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=y.createInsofDataApi):t==="update"?(s={id:e==null?void 0:e.id,value:{pageData:e}},b=y.updateInsofDataApi):t==="delete"&&(s={id:e},b=y.deleteInsofDataApi);const a=await b(s);if(((r=a==null?void 0:a.data)==null?void 0:r.code)!==200)throw y.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{y.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 i.nextTick();const a=(n=(u=(l=_.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=_.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 M=Y(b,a),D=Y(s,d),N=Z("dialogConfig",M),A=Z("contentConfig",D),P=[...N,...A];await Promise.all(P).then(o=>{var z,G,L,V,Q,W,X;if(!(o==null?void 0:o.every(v=>v.status)))return;let w=(z=o==null?void 0:o.flatMap(v=>v==null?void 0:v.data))==null?void 0:z.filter(v=>(v==null?void 0:v.id)!==null&&(v==null?void 0:v.id)!==void 0);if(((G=M==null?void 0:M.updateComps)==null?void 0:G.length)===0&&g.type==="update"){const v=(V=(L=C.value)==null?void 0:L.structureIds)==null?void 0:V.filter(S=>(S==null?void 0:S.key)==="dialogConfig");w=[...w,...v]}if(((Q=D==null?void 0:D.updateComps)==null?void 0:Q.length)===0&&g.type==="update"){const v=(X=(W=C.value)==null?void 0:W.structureIds)==null?void 0:X.filter(S=>(S==null?void 0:S.key)==="contentConfig");w=[...w,...v]}const se=Te(w);re({...t,isNotInitial:!0,structureIds:se},g.type)}).catch(o=>{y.ElMessage.error(o)})}catch(s){throw y.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:O.value+"/"+((n=h.value)==null?void 0:n.path),tableId:"",rootNodePath:e==null?void 0:e.rootNodePath},value:{tableData:e}},u=y.createInsofDataApi):t==="update"?(l={id:e==null?void 0:e.id,value:{tableData:e}},u=y.updateInsofDataApi):t==="delete"&&(l={ids:[e.id,...(c=e==null?void 0:e.structureIds)==null?void 0:c.map(r=>r.id)]},u=y.batchDeleteInsofDataApi),k.handleSubmitAsync(u,l,t).then(r=>{t==="create"&&$.value.push({...e,id:r}),t&&r&&y.ElMessage.success("响应成功"),x(h.value)})},De=async()=>{var l,u,n,c,r;const e=JSON.parse(k.cloneDeep(JSON.stringify(_.value)));await i.nextTick();const t=g.type==="create"?{...B.value,rootNodePath:(u=(l=h.value)==null?void 0:l.rootNode)==null?void 0:u.path}:{...B.value,rootNodePath:(c=(n=h.value)==null?void 0:n.rootNode)==null?void 0:c.path,id:(r=C.value)==null?void 0:r.id};await Me(e,t),T.value={},g.show=!1,await x(h.value)},Se=()=>{g.show=!1},we={comp:"Group",name:"/平台管理/菜单管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:te.value,name:""}]}]},Ne=Object.freeze(Object.defineProperty({__proto__:null,beforeDialogDestroy:Se,buttonValue:ie,changeTrigger:he,changedRow:de,clickNodeTrigger:ve,clickRowButton:be,clickSubmitForm:De,clickTrigger:ke,dialogInfo:g,formatFormData:q,getInitialSubStructure:ne,getTableDataAsync:x,handleItemDataChange:ge,inputForm:T,menuPageData:fe,operatingForm:Ce,pageData:te,renderFormData:J,tableLoading:j,tempMenuPageData:we,treeData:oe},Symbol.toStringTag,{value:"Module"}));exports.State=Ne;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),r=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),r=require("./index-BdP1gtPp.cjs"),n=require("./index-C8fMwErX.cjs"),u={class:"routerPage-wrapper"},s=t.defineComponent({__name:"index",setup(i){const a=n.useMenuState(),{activeMenuPath:o}=n.storeToRefs(a),c=n.useLoginState(),e=t.reactive({...n.State});return t.onMounted(async()=>{c.getModelSecretAsync(),e.structureId=await n.getActivePageStructureId(o.value)}),(d,l)=>(t.openBlock(),t.createElementBlock("div",u,[t.createVNode(r.ssTable,{index:e.structureId,compName:e.compName,itemData:e.pageData,changedContent:e.changedRow,onChange:e.handleItemDataChange,onOnButtonClick:e.clickRowButton},null,8,["index","compName","itemData","changedContent","onChange","onOnButtonClick"])]))}});exports.default=s;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D4mQcDEW.cjs");const n=require("./index-C8fMwErX.cjs"),b=require("./index-C5pQXH0_.cjs"),i=require("./index-BdP1gtPp.cjs"),y=n.useModelComp(),{itemData:g}=n.storeToRefs(y),u=o.ref(0),D=o.ref([{label:"机构名称",value:"",name:"deptName"}]),f=e=>{console.log("handleQueryChange",e)},c=o.ref([{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"编辑"},{label:"删除"}]},{key:"header",contents:[{label:"机构名称",prop:"deptName"},{label:"机构类型",prop:"deptType",formType:"Select",options:[{label:"集团",value:"集团"},{label:"公司",value:"公司"},{label:"部门",value:"部门"},{label:"区域",value:"区域"},{label:"组",value:"组"}]},{label:"机构状态",formType:"Radio",prop:"deptStatus",options:[{label:"启用",value:"启用"},{label:"禁用",value:"禁用"}]},{label:"操作"}]},{key:"tableContents",contents:[]}]),m=e=>{n.submitTableAsyncByVerify(e.singleContent,e.buttonName,u.value)},h=e=>{console.log("onDoubleClick",e)},C=(e,a)=>{console.log("onButtonClick",e,a)},_=async e=>{const a=await n.handleSubmitAsync(b.getInsofDataApi,{key:{systemKey:sessionStorage.getItem("systemKey"),type:"data",pageKey:e}},"查询"),r=a==null?void 0:a.map(t=>{var l;return{id:t.id,tableData:(l=t==null?void 0:t.value)==null?void 0:l.tableData}});return r==null?void 0:r.map(t=>{var l;if(Array.isArray(t==null?void 0:t.tableData)){let s={id:t.id};return(l=t==null?void 0:t.tableData)==null||l.forEach((p,d)=>{s[`a${d}`]=p}),s}else return{...t.tableData,id:t.id}})},S={comp:"Group",name:"/系统管理/部门管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:c.value,name:""}]}]};o.watch(()=>g.value,e=>{var a;e&&(e==null?void 0:e.length)>0&&(c.value=(a=e==null?void 0:e[0])==null?void 0:a.compData)});const k=Object.freeze(Object.defineProperty({__proto__:null,getPageDataAsync:_,handleItemDataChange:m,handleQueryChange:f,onButtonClick:C,onDoubleClick:h,pageData:c,queryFormData:D,structureId:u,tempDeptPageData:S},Symbol.toStringTag,{value:"Module"})),v={class:"role-wrapper"},T=o.defineComponent({__name:"index",setup(e){const a=o.reactive({...k}),r=n.useMenuState(),{activeMenuPath:t}=n.storeToRefs(r);return o.onMounted(async()=>{a.structureId=await n.getActivePageStructureId(t.value)}),(l,s)=>(o.openBlock(),o.createElementBlock("div",v,[o.createVNode(i.ssTable,{itemData:a.pageData,onChange:a.handleItemDataChange},null,8,["itemData","onChange"])]))}});exports.default=T;
|