ss-component-new 1.2.18 → 1.2.20
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/{animationData-DTnmVl43.cjs → animationData-B2z83pxg.cjs} +1 -1
- package/dist/{animationData-CYVo4cF3.js → animationData-BtrsHGyM.js} +4 -4
- package/dist/{array-kfBiN1QA.cjs → array-CX7F7hCX.cjs} +1 -1
- package/dist/{array-D5WfaBtT.js → array-Ch6p_ukC.js} +2 -2
- package/dist/{index-fTU6D0EV.cjs → index-0K6Cl-Ms.cjs} +1 -1
- package/dist/{index-BGnIpBtJ.js → index-2iSHsVLl.js} +127 -127
- package/dist/{index-pDGtp9Y4.js → index-73T2Lgv2.js} +2 -2
- package/dist/{index-Upb8vZrJ.cjs → index-9oTbqGzg.cjs} +1 -1
- package/dist/{index-CYp77kPp.js → index-B42dCx1W.js} +35 -35
- package/dist/index-BEW3m7PE.cjs +1 -0
- package/dist/{index-BsEOhglN.js → index-BG1_KhZK.js} +6 -6
- package/dist/{index-JqoJqpvd.js → index-BKu0xz-O.js} +6 -6
- package/dist/{index-CgEp32Ha.js → index-BMMFvZxl.js} +4 -4
- package/dist/{index-C461j30b.js → index-Bgje9P6C.js} +1 -1
- package/dist/{index-BHHFDjsi.js → index-BlKNwTOs.js} +12 -12
- package/dist/{index-CTd5yE7g.cjs → index-BlyDBfzx.cjs} +1 -1
- package/dist/{index-RSZafNJV.js → index-BpjFWVqg.js} +45 -45
- package/dist/{index-oKm_bMcI.cjs → index-BsDe8kH3.cjs} +1 -1
- package/dist/{index-L_8m2Edi.cjs → index-BtxtAu06.cjs} +1 -1
- package/dist/{index-CGGQf1Fy.cjs → index-BwZEc7Tf.cjs} +1 -1
- package/dist/{index-PYM4eM9f.js → index-By7Jdce4.js} +2 -2
- package/dist/{index-Cl1eN72c.cjs → index-C86qvKuB.cjs} +1 -1
- package/dist/{index-BwjuTBrR.js → index-CFrBvay9.js} +1 -1
- package/dist/{index-BiNsOjcC.cjs → index-CFvq-6Md.cjs} +1 -1
- package/dist/{index-C8gXNO36.js → index-CGT4GOaV.js} +3 -3
- package/dist/{index-uzUGa1I0.js → index-CHqWj9bq.js} +8 -8
- package/dist/{index-loXBOUd5.cjs → index-CP1n4T5X.cjs} +1 -1
- package/dist/{index-aTTU_ja_.cjs → index-CUunD6AI.cjs} +1 -1
- package/dist/{index-BgJ164SD.js → index-CZOZhNzY.js} +2 -2
- package/dist/{index-D7Y91W7M.cjs → index-CbvsAbDX.cjs} +1 -1
- package/dist/{index-BoD05_J0.js → index-CdatGkoi.js} +1 -1
- package/dist/{index-Cz9V1kg-.js → index-CgRNnsAu.js} +6 -6
- package/dist/{index-CQBynyM7.js → index-CmRTH7_x.js} +4 -4
- package/dist/{index-D51ekpXx.cjs → index-CvGDAOfZ.cjs} +1 -1
- package/dist/{index-brsfUqkV.cjs → index-Cvk1PayK.cjs} +1 -1
- package/dist/{index-DFH8aI2Y.js → index-Cyg0Lzay.js} +1 -1
- package/dist/{index-Bjp7vtmT.cjs → index-D4L8awAF.cjs} +1 -1
- package/dist/{index-D9D2Wuf4.cjs → index-DF9BuOL8.cjs} +1 -1
- package/dist/{index-DuE6CA_5.cjs → index-DFYOu4oD.cjs} +1 -1
- package/dist/{index-fcgKi8rF.js → index-DGX0smEy.js} +11 -11
- package/dist/{index-CoQXoOC5.cjs → index-DIcMmdC0.cjs} +1 -1
- package/dist/{index-8U0_G_0R.js → index-DKKn4eRy.js} +19 -19
- package/dist/{index-9RCVRjgc.js → index-DM34sP7N.js} +2 -2
- package/dist/{index-BpyDAfgJ.cjs → index-DQI1sU2I.cjs} +1 -1
- package/dist/{index-DviC5Mes.cjs → index-DU41qklc.cjs} +1 -1
- package/dist/{index-DxERe_o8.cjs → index-DZMb09ji.cjs} +1 -1
- package/dist/{index-CEsRU7PI.cjs → index-DZwxX08c.cjs} +1 -1
- package/dist/{index-DKo5-PGs.cjs → index-DfFuzmAD.cjs} +1 -1
- package/dist/{index-WkhOFQKy.js → index-DhgVjH8N.js} +1 -1
- package/dist/{index-CgXgl7xg.cjs → index-DkTI4y8-.cjs} +1 -1
- package/dist/{index-t-iLIRPH.js → index-DtgOLoua.js} +6 -6
- package/dist/{index-C0M4a5a7.js → index-DzUxU95k.js} +2 -2
- package/dist/{index-D9BKoQ6f.js → index-JvFLPwtl.js} +12 -12
- package/dist/{index-DLRyzLvk.js → index-TRG-Xajw.js} +6 -6
- package/dist/{index-BrdP9HC4.js → index-WI-Enogn.js} +3 -3
- package/dist/{index-DYT7O5SY.js → index-dp7B89l2.js} +2 -2
- package/dist/{index-DWCqPPU9.cjs → index-kUx8M5fQ.cjs} +1 -1
- package/dist/{index-DuX7JuNX.cjs → index-veO6aNlT.cjs} +1 -1
- package/dist/{index-Bj3QBLNZ.js → index-ywttg0aN.js} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DyCjVGK4.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BQDvbb5M.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DkvEh0kU.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-C5iAwGPT.js} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-CgRoTnM4.cjs → index.vue_vue_type_style_index_0_scoped_92477073_lang-BuLgHqsW.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-DDuO2RJ1.js → index.vue_vue_type_style_index_0_scoped_92477073_lang-C6O7eqGt.js} +13 -13
- package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-BR6JjiA7.cjs +56 -0
- package/dist/{index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-Cc_BYWMl.js → index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-YoXSuhvY.js} +11641 -11513
- package/dist/{index.vue_vue_type_style_index_1_lang-CnzkLjVf.js → index.vue_vue_type_style_index_1_lang-B5e9AaID.js} +3 -3
- package/dist/{index.vue_vue_type_style_index_1_lang-vU1VQMfs.js → index.vue_vue_type_style_index_1_lang-BYqy49bR.js} +2516 -2455
- package/dist/{index.vue_vue_type_style_index_1_lang-B-382mSr.cjs → index.vue_vue_type_style_index_1_lang-CdUqUglE.cjs} +1 -1
- package/dist/index.vue_vue_type_style_index_1_lang-KvVUqiGG.cjs +32 -0
- package/dist/{isString-BNK38WbE.js → isString-BrYdkZh8.js} +1 -1
- package/dist/{main-Dk1H52zm.js → main-C16cfwlk.js} +5 -5
- package/dist/{main-hA5knk3Y.cjs → main-Dh4RBLeI.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +11 -11
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +12 -12
- package/dist/{threeLatheView-Bp0kjo_V.js → threeLatheView-DuqX5kKf.js} +2 -2
- package/dist/{threeModel-7FtoCWUL.js → threeModel-BIw5R64U.js} +3 -3
- package/dist/{threeModel-B8ayOk4L.cjs → threeModel-BzqnR4Z_.cjs} +1 -1
- package/dist/{threePreview-DFFjm93P.js → threePreview-B7C8gY5w.js} +1 -1
- package/dist/{threeSceneView-DpIfHcs5.cjs → threeSceneView-CB27ZSDh.cjs} +1 -1
- package/dist/{threeSceneView-kfQrdRjz.js → threeSceneView-TMLpCSG3.js} +8 -8
- package/dist/{threeSceneViewForCPMPIP-Cz1ay3aa.js → threeSceneViewForCPMPIP-CzDiAua_.js} +25 -25
- package/dist/{threeSceneViewForCPMPIP-BTLpKMe4.cjs → threeSceneViewForCPMPIP-Duj6EFe5.cjs} +1 -1
- package/dist/{threeViewerHost-Da6cfLt7.cjs → threeViewerHost-CYAKN7z5.cjs} +1 -1
- package/dist/{threeViewerHost-CXQi7gV5.js → threeViewerHost-CsLCgnJb.js} +10 -10
- package/dist/{useRayCaster-x0qmWO-B.cjs → useRayCaster-A4T4JTfj.cjs} +1 -1
- package/dist/{useRayCaster-Ca7t2A9k.js → useRayCaster-BwybQXi8.js} +1 -1
- package/package.json +1 -1
- package/dist/index-Djrsmf4o.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-BimjDwOI.cjs +0 -56
- package/dist/index.vue_vue_type_style_index_1_lang-YnBuuwY6.cjs +0 -32
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ref as i, computed as j, reactive as ie, nextTick as
|
|
2
|
-
import { u as be, a as he,
|
|
3
|
-
import { c as
|
|
4
|
-
import { u as Se } from "./index-
|
|
5
|
-
const F = he(
|
|
1
|
+
import { ref as i, computed as j, reactive as ie, nextTick as A, watch as ye } from "vue";
|
|
2
|
+
import { u as be, a as he, ay as Ce } from "./index.vue_vue_type_style_index_1_lang-BYqy49bR.js";
|
|
3
|
+
import { c as J, s as Ie, g as U, bA as ke, E as S, p as $, e as ae, f as oe, bw as Te, d as Me } from "./index-B42dCx1W.js";
|
|
4
|
+
import { u as Se } from "./index-2iSHsVLl.js";
|
|
5
|
+
const F = he($), ne = Se($), C = be($), { menus: ue, configMenu: R, activeMenuPath: q, cacheStructures: K } = Ie(C), z = i(!1), se = j(() => {
|
|
6
6
|
var e, t;
|
|
7
7
|
return [
|
|
8
8
|
{
|
|
@@ -56,13 +56,13 @@ const F = he(U), ne = Se(U), C = be(U), { menus: ue, configMenu: R, activeMenuPa
|
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
58
|
key: "tableContents",
|
|
59
|
-
contents: (t = (e =
|
|
59
|
+
contents: (t = (e = J(ue.value)) == null ? void 0 : e.map((l) => ({
|
|
60
60
|
...l,
|
|
61
61
|
menuType: "系统菜单"
|
|
62
62
|
}))) == null ? void 0 : t.filter((l) => l.title !== "系统管理" && l.title !== "平台管理")
|
|
63
63
|
}
|
|
64
64
|
];
|
|
65
|
-
}), G = i([]),
|
|
65
|
+
}), G = i([]), O = i([
|
|
66
66
|
{
|
|
67
67
|
// label: "新增",
|
|
68
68
|
label: "新建"
|
|
@@ -70,7 +70,7 @@ const F = he(U), ne = Se(U), C = be(U), { menus: ue, configMenu: R, activeMenuPa
|
|
|
70
70
|
]), we = j(() => [
|
|
71
71
|
{
|
|
72
72
|
key: "extraButton",
|
|
73
|
-
contents:
|
|
73
|
+
contents: O.value
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
76
|
key: "rowButton",
|
|
@@ -165,7 +165,7 @@ const F = he(U), ne = Se(U), C = be(U), { menus: ue, configMenu: R, activeMenuPa
|
|
|
165
165
|
key: "tableContents",
|
|
166
166
|
contents: G.value
|
|
167
167
|
}
|
|
168
|
-
]), L = i([]), I = i({}), De = i({}),
|
|
168
|
+
]), L = i([]), I = i({}), De = i({}), x = i([
|
|
169
169
|
// {
|
|
170
170
|
// label: "配置菜单:",
|
|
171
171
|
// prop: 'menu',
|
|
@@ -265,10 +265,10 @@ const F = he(U), ne = Se(U), C = be(U), { menus: ue, configMenu: R, activeMenuPa
|
|
|
265
265
|
}
|
|
266
266
|
]), _ = (e) => {
|
|
267
267
|
var t;
|
|
268
|
-
L.value = e ? (t =
|
|
268
|
+
L.value = e ? (t = x.value) == null ? void 0 : t.map((l) => l.prop === "dialogConfig" || l.prop === "contentConfig" || l.prop === "trigger" ? l : {
|
|
269
269
|
...l,
|
|
270
270
|
value: e ? e[l == null ? void 0 : l.prop] : ""
|
|
271
|
-
}) :
|
|
271
|
+
}) : x.value;
|
|
272
272
|
}, Ne = i([
|
|
273
273
|
{
|
|
274
274
|
label: "查询"
|
|
@@ -296,7 +296,7 @@ const F = he(U), ne = Se(U), C = be(U), { menus: ue, configMenu: R, activeMenuPa
|
|
|
296
296
|
return (e = re(ue.value)) == null ? void 0 : e.filter((t) => t.title !== "系统管理" && t.title !== "平台管理");
|
|
297
297
|
}), fe = async (e) => {
|
|
298
298
|
var l, u, n, c;
|
|
299
|
-
const t = await
|
|
299
|
+
const t = await U({
|
|
300
300
|
key: {
|
|
301
301
|
type: "subStructure",
|
|
302
302
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
@@ -319,10 +319,10 @@ const F = he(U), ne = Se(U), C = be(U), { menus: ue, configMenu: R, activeMenuPa
|
|
|
319
319
|
}
|
|
320
320
|
}, Fe = async (e) => {
|
|
321
321
|
var t;
|
|
322
|
-
|
|
322
|
+
z.value = !0, b.value = {
|
|
323
323
|
...e,
|
|
324
324
|
rootNode: ke(pe.value, e.path)
|
|
325
|
-
}, C.setCacheStructures(null), (e == null ? void 0 : e.level) === 0 ?
|
|
325
|
+
}, C.setCacheStructures(null), (e == null ? void 0 : e.level) === 0 ? O.value.splice(0) : (O.value = [{ label: "新建" }], V.value = (t = e == null ? void 0 : e.path) == null ? void 0 : t.split("/")), await C.setConfigMenu(null), await fe(e == null ? void 0 : e.path), await B(e);
|
|
326
326
|
}, Ke = (e) => {
|
|
327
327
|
switch (e) {
|
|
328
328
|
case "新建":
|
|
@@ -332,10 +332,10 @@ const F = he(U), ne = Se(U), C = be(U), { menus: ue, configMenu: R, activeMenuPa
|
|
|
332
332
|
case "删除":
|
|
333
333
|
return "delete";
|
|
334
334
|
}
|
|
335
|
-
},
|
|
335
|
+
}, Ae = async (e, t) => {
|
|
336
336
|
var l, u;
|
|
337
337
|
if (!b.value) return S.warning("请先选择菜单");
|
|
338
|
-
if (g.type = Ke(e), V.value = [], F.setSubmitCurStructure(!1), ne.setSelectTitle([]), h.value =
|
|
338
|
+
if (g.type = Ke(e), V.value = [], F.setSubmitCurStructure(!1), ne.setSelectTitle([]), h.value = J(t), g.type !== "delete") {
|
|
339
339
|
switch (g.type) {
|
|
340
340
|
case "create":
|
|
341
341
|
_(null), await C.setConfigMenu(null);
|
|
@@ -344,10 +344,10 @@ const F = he(U), ne = Se(U), C = be(U), { menus: ue, configMenu: R, activeMenuPa
|
|
|
344
344
|
_(h.value), await C.setConfigMenu(h.value), console.log("clickRowButton", h.value);
|
|
345
345
|
break;
|
|
346
346
|
}
|
|
347
|
-
await
|
|
347
|
+
await A(), g.title = `【${g.type === "create" ? (l = b.value) == null ? void 0 : l.path : (u = h.value) == null ? void 0 : u.path}】菜单配置${e}`, g.show = !0;
|
|
348
348
|
} else
|
|
349
349
|
await ge(h.value, g.type);
|
|
350
|
-
}, de = i(!0),
|
|
350
|
+
}, de = i(!0), Be = async (e) => {
|
|
351
351
|
var t;
|
|
352
352
|
I.value = e, await C.setConfigMenu({
|
|
353
353
|
...I.value,
|
|
@@ -356,7 +356,7 @@ const F = he(U), ne = Se(U), C = be(U), { menus: ue, configMenu: R, activeMenuPa
|
|
|
356
356
|
};
|
|
357
357
|
ye(() => de.value, async (e) => {
|
|
358
358
|
var t;
|
|
359
|
-
await
|
|
359
|
+
await A(), L.value = (t = x.value) == null ? void 0 : t.map((l) => l.prop === "dialogConfig" || l.prop === "contentConfig" || l.prop === "trigger" ? l.prop === "contentConfig" ? {
|
|
360
360
|
...l,
|
|
361
361
|
isFormColHidden: e
|
|
362
362
|
} : l : {
|
|
@@ -364,7 +364,7 @@ ye(() => de.value, async (e) => {
|
|
|
364
364
|
value: I.value ? I.value[l == null ? void 0 : l.prop] : ""
|
|
365
365
|
});
|
|
366
366
|
}, { immediate: !0, deep: !0 });
|
|
367
|
-
const
|
|
367
|
+
const He = i(null), Ee = async (e, t) => {
|
|
368
368
|
var s, p, f, r, y;
|
|
369
369
|
if (g.type === "create") {
|
|
370
370
|
const a = (p = (s = K.value) == null ? void 0 : s.filter((d) => (d == null ? void 0 : d.key) === t)) == null ? void 0 : p.flatMap((d) => d == null ? void 0 : d.data);
|
|
@@ -377,7 +377,7 @@ const Ae = i(null), Ee = async (e, t) => {
|
|
|
377
377
|
const l = (y = (r = e == null ? void 0 : e.structureIds) == null ? void 0 : r.filter((a) => (a == null ? void 0 : a.key) === t)) == null ? void 0 : y.map((a) => a == null ? void 0 : a.id);
|
|
378
378
|
let u = l == null ? void 0 : l.map((a) => {
|
|
379
379
|
if (a)
|
|
380
|
-
return
|
|
380
|
+
return U({ id: a });
|
|
381
381
|
});
|
|
382
382
|
const n = await Promise.all(u), c = n == null ? void 0 : n.every((a) => {
|
|
383
383
|
var d;
|
|
@@ -385,10 +385,10 @@ const Ae = i(null), Ee = async (e, t) => {
|
|
|
385
385
|
});
|
|
386
386
|
if (console.log("getTriggerStructures2", e == null ? void 0 : e.structureIds, t, n), c && (n == null ? void 0 : n.length) > 0) {
|
|
387
387
|
const a = n == null ? void 0 : n.map((d) => {
|
|
388
|
-
var k, T, D, N, P, o,
|
|
388
|
+
var k, T, D, N, P, o, H;
|
|
389
389
|
return {
|
|
390
390
|
id: (D = (T = (k = d == null ? void 0 : d.data) == null ? void 0 : k.result) == null ? void 0 : T[0]) == null ? void 0 : D.id,
|
|
391
|
-
...(
|
|
391
|
+
...(H = (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 : H.pageData
|
|
392
392
|
};
|
|
393
393
|
});
|
|
394
394
|
F.setItemData(a), C.setCacheStructures({
|
|
@@ -411,13 +411,13 @@ const Ae = i(null), Ee = async (e, t) => {
|
|
|
411
411
|
...I.value,
|
|
412
412
|
path: (f = b.value) == null ? void 0 : f.path
|
|
413
413
|
} : g.type === "update" && (u = R.value), await C.setConfigMenu(u), ne.setSelectTitle(l), F.setIsEdit("edit");
|
|
414
|
-
},
|
|
414
|
+
}, B = async (e) => {
|
|
415
415
|
var l, u, n, c, s, p;
|
|
416
|
-
const t = await
|
|
416
|
+
const t = await U({
|
|
417
417
|
key: {
|
|
418
418
|
type: "menuConfigData",
|
|
419
419
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
420
|
-
pageKey:
|
|
420
|
+
pageKey: q.value + "/" + (e == null ? void 0 : e.path),
|
|
421
421
|
tableId: ""
|
|
422
422
|
}
|
|
423
423
|
});
|
|
@@ -427,7 +427,7 @@ const Ae = i(null), Ee = async (e, t) => {
|
|
|
427
427
|
id: f == null ? void 0 : f.id,
|
|
428
428
|
...(r = f == null ? void 0 : f.value) == null ? void 0 : r.tableData
|
|
429
429
|
};
|
|
430
|
-
}) : []),
|
|
430
|
+
}) : []), z.value = !1;
|
|
431
431
|
}, E = async (e, t, l = "contentConfig") => {
|
|
432
432
|
var u, n, c, s, p, f;
|
|
433
433
|
try {
|
|
@@ -435,7 +435,7 @@ const Ae = i(null), Ee = async (e, t) => {
|
|
|
435
435
|
t === "create" ? (r = {
|
|
436
436
|
key: {
|
|
437
437
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
438
|
-
pageKey:
|
|
438
|
+
pageKey: q.value + "/" + ((u = b.value) == null ? void 0 : u.path),
|
|
439
439
|
type: "structure",
|
|
440
440
|
rootNodePath: (c = (n = b.value) == null ? void 0 : n.rootNode) == null ? void 0 : c.path,
|
|
441
441
|
structureBelong: l,
|
|
@@ -495,16 +495,16 @@ const Ae = i(null), Ee = async (e, t) => {
|
|
|
495
495
|
})), ((p = t == null ? void 0 : t.updateComps) == null ? void 0 : p.length) > 0 && ((f = t == null ? void 0 : t.updateComps) == null || f.forEach((r) => {
|
|
496
496
|
r != null && r.id && l.push(E(r, "update", e));
|
|
497
497
|
})), l;
|
|
498
|
-
},
|
|
498
|
+
}, Oe = (e) => {
|
|
499
499
|
const t = /* @__PURE__ */ new Map();
|
|
500
500
|
return e.forEach((l) => {
|
|
501
501
|
t.set(l.id, l);
|
|
502
502
|
}), Array.from(t.values());
|
|
503
|
-
},
|
|
503
|
+
}, xe = async (e, t) => {
|
|
504
504
|
var l, u, n, c, s, p, f;
|
|
505
505
|
try {
|
|
506
506
|
const r = e == null ? void 0 : e.filter((o) => (o == null ? void 0 : o.key) === "contentConfig"), y = e == null ? void 0 : e.filter((o) => (o == null ? void 0 : o.key) === "dialogConfig");
|
|
507
|
-
await
|
|
507
|
+
await A();
|
|
508
508
|
const a = (n = (u = (l = K.value) == null ? void 0 : l.filter((o) => (o == null ? void 0 : o.key) === "dialogConfig")) == null ? void 0 : u.flatMap((o) => o == null ? void 0 : o.data)) == null ? void 0 : n.map((o) => o == null ? void 0 : o.id);
|
|
509
509
|
let d = (p = (s = (c = K.value) == null ? void 0 : c.filter((o) => (o == null ? void 0 : o.key) === "contentConfig")) == null ? void 0 : s.flatMap((o) => o == null ? void 0 : o.data)) == null ? void 0 : p.map((o) => o == null ? void 0 : o.id);
|
|
510
510
|
d = [...d, ...(f = ce.value) == null ? void 0 : f.map((o) => o == null ? void 0 : o.id)];
|
|
@@ -521,7 +521,7 @@ const Ae = i(null), Ee = async (e, t) => {
|
|
|
521
521
|
const v = (ee = (m = h.value) == null ? void 0 : m.structureIds) == null ? void 0 : ee.filter((M) => (M == null ? void 0 : M.key) === "contentConfig");
|
|
522
522
|
w = [...w, ...v];
|
|
523
523
|
}
|
|
524
|
-
const ve =
|
|
524
|
+
const ve = Oe(w);
|
|
525
525
|
ge({
|
|
526
526
|
...t,
|
|
527
527
|
isNotInitial: !0,
|
|
@@ -540,7 +540,7 @@ const Ae = i(null), Ee = async (e, t) => {
|
|
|
540
540
|
key: {
|
|
541
541
|
type: "menuConfigData",
|
|
542
542
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
543
|
-
pageKey:
|
|
543
|
+
pageKey: q.value + "/" + ((n = b.value) == null ? void 0 : n.path),
|
|
544
544
|
tableId: "",
|
|
545
545
|
rootNodePath: e == null ? void 0 : e.rootNodePath
|
|
546
546
|
},
|
|
@@ -564,12 +564,12 @@ const Ae = i(null), Ee = async (e, t) => {
|
|
|
564
564
|
t === "create" && G.value.push({
|
|
565
565
|
...e,
|
|
566
566
|
id: s
|
|
567
|
-
}), t && s && S.success("响应成功"),
|
|
567
|
+
}), t && s && S.success("响应成功"), B(b.value);
|
|
568
568
|
});
|
|
569
569
|
}, _e = async () => {
|
|
570
570
|
var l, u, n, c, s;
|
|
571
|
-
const e = JSON.parse(
|
|
572
|
-
await
|
|
571
|
+
const e = JSON.parse(J(JSON.stringify(K.value)));
|
|
572
|
+
await A();
|
|
573
573
|
const t = g.type === "create" ? {
|
|
574
574
|
...R.value,
|
|
575
575
|
rootNodePath: (u = (l = b.value) == null ? void 0 : l.rootNode) == null ? void 0 : u.path
|
|
@@ -578,10 +578,10 @@ const Ae = i(null), Ee = async (e, t) => {
|
|
|
578
578
|
rootNodePath: (c = (n = b.value) == null ? void 0 : n.rootNode) == null ? void 0 : c.path,
|
|
579
579
|
id: (s = h.value) == null ? void 0 : s.id
|
|
580
580
|
};
|
|
581
|
-
await
|
|
581
|
+
await xe(e, t), I.value = {}, g.show = !1, await B(b.value);
|
|
582
582
|
}, je = () => {
|
|
583
583
|
g.show = !1;
|
|
584
|
-
},
|
|
584
|
+
}, Je = {
|
|
585
585
|
comp: "Group",
|
|
586
586
|
name: "/平台管理/菜单管理",
|
|
587
587
|
compData: [
|
|
@@ -600,27 +600,27 @@ const Ae = i(null), Ee = async (e, t) => {
|
|
|
600
600
|
__proto__: null,
|
|
601
601
|
beforeDialogDestroy: je,
|
|
602
602
|
buttonValue: Ne,
|
|
603
|
-
changeTrigger:
|
|
603
|
+
changeTrigger: Be,
|
|
604
604
|
changedRow: De,
|
|
605
605
|
clickNodeTrigger: Fe,
|
|
606
|
-
clickRowButton:
|
|
606
|
+
clickRowButton: Ae,
|
|
607
607
|
clickSubmitForm: _e,
|
|
608
608
|
clickTrigger: Re,
|
|
609
609
|
dialogInfo: g,
|
|
610
610
|
formatFormData: _,
|
|
611
611
|
getInitialSubStructure: fe,
|
|
612
|
-
getTableDataAsync:
|
|
612
|
+
getTableDataAsync: B,
|
|
613
613
|
handleItemDataChange: Pe,
|
|
614
614
|
inputForm: I,
|
|
615
615
|
menuPageData: we,
|
|
616
|
-
operatingForm:
|
|
616
|
+
operatingForm: He,
|
|
617
617
|
pageData: se,
|
|
618
618
|
renderFormData: L,
|
|
619
|
-
tableLoading:
|
|
620
|
-
tempMenuPageData:
|
|
619
|
+
tableLoading: z,
|
|
620
|
+
tempMenuPageData: Je,
|
|
621
621
|
treeData: pe
|
|
622
622
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
623
623
|
export {
|
|
624
624
|
Ge as S,
|
|
625
|
-
|
|
625
|
+
Je as t
|
|
626
626
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),V=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),V=require("./index-BEW3m7PE.cjs"),h=require("./index.vue_vue_type_style_index_1_lang-KvVUqiGG.cjs"),_=require("./index-1z9RrjZc.cjs"),B=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),w={class:"routerPage-wrapper"},N={class:"role-dialog-header"},b=["title"],D={title:"更多"},y={class:"dialog-footer"},S=e.defineComponent({__name:"index",setup(T){const g=h.useMenuState(),{menus:C,activeMenuPath:k}=_.storeToRefs(g),o=e.reactive({...h.State$1}),{treeRef:x}=h.State$1;e.onMounted(async()=>{await o.getActivePageStructureId(k.value)});const u=i=>i==null?void 0:i.map(t=>{var c,s,d;return t!=null&&t.childMenus&&((c=t==null?void 0:t.childMenus)==null?void 0:c.length)>0?{...t,childMenus:[],children:u(t==null?void 0:t.childMenus)}:{...t,childMenus:[],path:(s=t==null?void 0:t.path)!=null&&s.startsWith("/")?(d=t==null?void 0:t.path)==null?void 0:d.substring(1):t.path}});return e.watch(()=>C.value,i=>{e.nextTick(()=>{const t=_.cloneDeep(i),c=u(t);o.tempSysMenus=o.handleAddSysMenusButtons(c,"系统维护",["查看"]),o.menuData=o.addButtonsToTree(c,o.structureButtons)})},{immediate:!0,deep:!0}),(i,t)=>{const c=e.resolveComponent("el-checkbox"),s=e.resolveComponent("el-checkbox-group"),d=e.resolveComponent("svg-icon"),v=e.resolveComponent("el-popover"),f=e.resolveComponent("el-tree"),p=e.resolveComponent("el-button"),m=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock("div",w,[e.createVNode(V.ssTable,{index:o.structureId,compName:o.compName,itemData:o.pageDataFiltered,changedContent:o.changedRow,onChange:o.handleItemDataChange,onOnButtonClick:o.clickRowButton},null,8,["index","compName","itemData","changedContent","onChange","onOnButtonClick"]),e.createVNode(m,{modelValue:o.authorizeDialog.show,"onUpdate:modelValue":t[0]||(t[0]=a=>o.authorizeDialog.show=a),width:o.authorizeDialog.width,draggable:o.authorizeDialog.draggable,"before-close":o.closeAuthorizeDialog,class:"role-dialog"},{header:e.withCtx(()=>[e.createElementVNode("div",N,e.toDisplayString(o.authorizeDialog.title),1)]),footer:e.withCtx(()=>[e.createElementVNode("div",y,[e.createVNode(p,{id:"themeBorderButton",onClick:o.closeAuthorizeDialog},{default:e.withCtx(()=>t[1]||(t[1]=[e.createTextVNode("取消")])),_:1,__:[1]},8,["onClick"]),e.createVNode(p,{id:"themeButton",onClick:o.clickSubmitAuthority},{default:e.withCtx(()=>t[2]||(t[2]=[e.createTextVNode(" 确认 ")])),_:1,__:[2]},8,["onClick"])])]),default:e.withCtx(()=>[e.createVNode(f,{class:"role-tree",ref_key:"treeRef",ref:x,data:o.menuData,"expand-on-click-node":!1,"node-key":"path",props:{children:"children",label:"title",path:"path"},"highlight-current":"","default-expand-all":"","check-on-click-leaf":!1,"show-checkbox":"",onCheckChange:o.handleNodeCheckChange,style:{height:"500px","overflow-y":"auto"}},{default:e.withCtx(({node:a,data:n})=>[e.createElementVNode("span",{class:"node-text",title:a==null?void 0:a.label},e.toDisplayString(a==null?void 0:a.label),9,b),e.createVNode(s,{modelValue:n.checkedButtons,"onUpdate:modelValue":l=>n.checkedButtons=l,onChange:l=>o.handleNodeBtnChange(l,n),class:"node-buttons"},{default:e.withCtx(()=>{var l;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((l=n.renderButtons)==null?void 0:l.slice(0,2),r=>(e.openBlock(),e.createBlock(c,{key:r.title,label:r.title,value:r.path},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.title),1)]),_:2},1032,["label","value"]))),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange"]),e.createVNode(v,{title:a==null?void 0:a.label,placement:"right-start"},{reference:e.withCtx(()=>{var l;return[e.createElementVNode("span",D,[e.withDirectives(e.createVNode(d,{name:"treeMore",class:"node-trigger"},null,512),[[e.vShow,((l=n.renderButtons)==null?void 0:l.length)>0]])])]}),default:e.withCtx(()=>[e.createVNode(s,{modelValue:n.checkedButtons,"onUpdate:modelValue":l=>n.checkedButtons=l,onChange:l=>o.handleNodeBtnChange(l,n),class:"node-buttons"},{default:e.withCtx(()=>{var l;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((l=n.renderButtons)==null?void 0:l.slice(2),r=>(e.openBlock(),e.createBlock(c,{key:r.title,label:r.title,value:r.path},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.title),1)]),_:2},1032,["label","value"]))),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])]),_:2},1032,["title"])]),_:1},8,["data","onCheckChange"])]),_:1},8,["modelValue","width","draggable","before-close"])])}}}),M=B._export_sfc(S,[["__scopeId","data-v-78a46dd8"]]);exports.default=M;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const M=require("vue"),n=require("./index-1z9RrjZc.cjs"),T=require("./index.vue_vue_type_style_index_1_lang-
|
|
1
|
+
"use strict";const M=require("vue"),n=require("./index-1z9RrjZc.cjs"),T=require("./index.vue_vue_type_style_index_1_lang-KvVUqiGG.cjs"),k=M.ref([]),q=M.computed(()=>[{key:"extraButton",contents:[{label:"清空",background:"#f56c6c",color:"#ffffff"}]},{key:"rowButton",contents:[]},{key:"header",contents:[{label:"账号",prop:"account",filterable:!0},{label:"姓名",prop:"userName",filterable:!0},{label:"时间",prop:"timeStamp",sortable:!0}]},{key:"tableContents",contents:k.value}]),A=(l,s,o)=>{l==="清空"&&T.ElMessageBox.confirm("是否确认清空所有日志","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(async()=>{var r,e;try{const a=await n.batchDeleteInsofDataApi({ids:s});((r=a==null?void 0:a.data)==null?void 0:r.code)===200?(n.ElMessage.success("清空日志成功"),o(!0)):(n.ElMessage.error(((e=a==null?void 0:a.data)==null?void 0:e.message)??"清空请求响应失败"),o(!1))}catch{n.ElMessage.error("清空操作处理失败"),o(!1)}}).catch(()=>{o(!1)})},K=async(l="login")=>{var s,o,r;try{const e=await n.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"/log",type:"system",logType:l}});if(((s=e==null?void 0:e.data)==null?void 0:s.code)===200)return(r=(o=e==null?void 0:e.data)==null?void 0:o.result)==null?void 0:r.map(a=>{var t,u,c,d,y,p,g,f,v,b,_,S,h,x,B,D,w,E;return l==="login"?{...(u=(t=a==null?void 0:a.value)==null?void 0:t.detail)==null?void 0:u.data,timeStamp:(c=a==null?void 0:a.value)==null?void 0:c.timeStamp,id:a==null?void 0:a.id,type:(y=(d=a==null?void 0:a.value)==null?void 0:d.detail)==null?void 0:y.type}:{timeStamp:(p=a==null?void 0:a.value)==null?void 0:p.timeStamp,account:(g=a==null?void 0:a.value)==null?void 0:g.account,userName:(f=a==null?void 0:a.value)==null?void 0:f.userName,module:typeof((v=a==null?void 0:a.value)==null?void 0:v.module)=="string"?(_=(b=a==null?void 0:a.value)==null?void 0:b.module)!=null&&_.startsWith("/")?(h=(S=a==null?void 0:a.value)==null?void 0:S.module)==null?void 0:h.substring(1):(x=a==null?void 0:a.value)==null?void 0:x.module:(D=(B=a==null?void 0:a.value)==null?void 0:B.module)==null?void 0:D.pageKey,id:a==null?void 0:a.id,type:(E=(w=a==null?void 0:a.value)==null?void 0:w.detail)==null?void 0:E.type}});n.ElMessage.error("获取数据响应失败")}catch(e){throw new Error("获取数据失败"+e)}},I=Object.freeze(Object.defineProperty({__proto__:null,clickButton:A,getLogTableDataAsync:K,pageData:q,tableData:k},Symbol.toStringTag,{value:"Module"}));exports.State=I;exports.clickButton=A;exports.getLogTableDataAsync=K;
|