ss-component-new 1.1.503 → 1.1.505
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/{array-BvqbrlRv.cjs → array-B25wyWPk.cjs} +1 -1
- package/dist/{array-CgMu8KPq.js → array-HVQANKzE.js} +1 -1
- package/dist/{index-DqSQWPj6.js → index-6N0i8tHG.js} +7 -7
- package/dist/index-A4h-EzBL.js +408 -0
- package/dist/{index-CZNunq7o.cjs → index-B0MKpokT.cjs} +1 -1
- package/dist/index-B31yLXuA.js +25 -0
- package/dist/{index-BbOMQ9ER.js → index-B8pvhqbr.js} +26 -26
- package/dist/{index-BK0m3sbo.js → index-BLuw9z6p.js} +401 -401
- package/dist/index-BMgCXU_s.cjs +1 -0
- package/dist/{index-4hIK9Own.js → index-BWW-dWcO.js} +4 -5
- package/dist/{index-CZznG1gi.js → index-BYnRSH0G.js} +12 -12
- package/dist/{index-DJNHztlp.js → index-B_3QuU34.js} +7021 -7051
- package/dist/{index-9BJySwL1.js → index-B_CAnpvt.js} +1 -1
- package/dist/index-BaFCKnyt.cjs +1 -0
- package/dist/{index-D9-k6JWV.cjs → index-BbXKGiXp.cjs} +1 -1
- package/dist/index-Bfx9-BjM.js +185 -0
- package/dist/{index-aglCcJLU.cjs → index-BgwEiVgl.cjs} +1 -1
- package/dist/{index-BeIQGqFM.js → index-BoZCUWow.js} +12 -11
- package/dist/{index-CYjHCecj.js → index-C4Mp32-c.js} +37 -38
- package/dist/index-CAFN0O5_.cjs +7 -0
- package/dist/{index-kubor3WC.js → index-CF20NInv.js} +22 -22
- package/dist/{index-CjfSP-kV.cjs → index-CIY7XbHq.cjs} +1 -1
- package/dist/index-CSEuYDmf.cjs +1 -0
- package/dist/{index-DV__81c4.cjs → index-CZqNpb3-.cjs} +1 -1
- package/dist/{index-QqVt7Z_a.js → index-Ca9GVFAd.js} +2 -2
- package/dist/{index-Bw6dj-ju.js → index-CaEW7LNv.js} +965 -833
- package/dist/{index-D2SG9jp7.cjs → index-CaeMv-8j.cjs} +1 -1
- package/dist/index-Ce8X4fBq.cjs +1 -0
- package/dist/{index-DbCsPSBZ.cjs → index-Cj_FKqDC.cjs} +1 -1
- package/dist/{index-GYnmlHPv.cjs → index-CoDqCLL2.cjs} +1 -1
- package/dist/index-CqNXunKQ.cjs +1 -0
- package/dist/{index-CPAAEqJ0.js → index-D0onf966.js} +373 -365
- package/dist/{index-CN0Ge62b.js → index-D2_m0R2l.js} +7 -7
- package/dist/{index-Cb0getBh.js → index-DOX0YT9e.js} +4 -4
- package/dist/index-DUHDMrf-.cjs +74 -0
- package/dist/{index-CMckq6s1.cjs → index-DeA4WatI.cjs} +1 -1
- package/dist/{index-CPVHqUeC.cjs → index-DsRfAaso.cjs} +1 -1
- package/dist/{index-DSfttMjD.cjs → index-DuOC15Bp.cjs} +1 -1
- package/dist/{index-BYWXQF3P.cjs → index-Dv-dYGo4.cjs} +1 -1
- package/dist/{index-NVJrF7Uv.js → index-DxgNmR4J.js} +1 -1
- package/dist/{index-BHO4DOjD.cjs → index-WCPJ3dXu.cjs} +1 -1
- package/dist/index-ZKAxM9UP.cjs +1 -0
- package/dist/{index-CrgeRYlR.js → index-_HsqhTXc.js} +1 -1
- package/dist/index-c97ImmWg.js +1493 -0
- package/dist/{index-CcbnZ6BU.js → index-cTKOCv4d.js} +11 -12
- package/dist/{index-CCDb_oFL.js → index-gGMxGKBe.js} +7 -7
- package/dist/{index-DlRFGRLS.js → index-ghP2FQO6.js} +9 -10
- package/dist/index-hkGxTDQI.cjs +1 -0
- package/dist/index-l6ZQIH9_.cjs +1 -0
- package/dist/{index-BPb-qHch.js → index-nFOjgQUU.js} +7 -7
- package/dist/{index-DZMLwvUd.cjs → index-qXoh3FjE.cjs} +13 -13
- package/dist/index-uJ7gVJnC.cjs +1 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-FvrufLWx.js → index.vue_vue_type_script_setup_true_lang-D9wCXH0S.js} +90 -93
- package/dist/index.vue_vue_type_script_setup_true_lang-YMZJ4qqu.cjs +1 -0
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BZVmL4Vs.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-7uyHrx8M.cjs} +102 -102
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-C5TmEb5T.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Dlje_9At.js} +7552 -7509
- package/dist/index.vue_vue_type_style_index_0_scoped_ed9fe0f5_lang-BU_aqMGK.cjs +1 -0
- package/dist/{index.vue_vue_type_style_index_0_scoped_ed9fe0f5_lang-fvZydHXu.js → index.vue_vue_type_style_index_0_scoped_ed9fe0f5_lang-iOcoFMZu.js} +31 -32
- package/dist/index.vue_vue_type_style_index_0_scoped_f69cf49c_lang-Bl4BaO3_.cjs +56 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_f69cf49c_lang-DHUwgc4E.js +37556 -0
- package/dist/{login-DPEsKixO.cjs → login-YGxcpXMB.cjs} +1 -1
- package/dist/{login-B-zOac-v.js → login-hsL9DHeX.js} +5 -5
- package/dist/{main-ohdSKt3R.cjs → main-DaGPiOpb.cjs} +1 -1
- package/dist/{main-BGit0d7s.js → main-ffJNfuoi.js} +6 -6
- package/dist/menu-W5FOvzIs.js +13327 -0
- package/dist/menu-awjMwLrA.cjs +21 -0
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +15 -15
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +65 -10
- package/dist/ss-component3.cjs +1 -1
- package/dist/ss-component3.js +10 -3
- package/dist/threeModel-B-gROPIW.cjs +1 -0
- package/dist/{threeModel-RvGpXbNz.js → threeModel-DQngYS2D.js} +688 -624
- package/dist/{threeModel.vue_vue_type_style_index_0_scoped_e631c10f_lang-CZjSGtkM.js → threeModel.vue_vue_type_style_index_0_scoped_cbdfb9a2_lang-BOOm8T1l.js} +1017 -1054
- package/dist/{threeModel.vue_vue_type_style_index_0_scoped_e631c10f_lang-DEGm4ghm.cjs → threeModel.vue_vue_type_style_index_0_scoped_cbdfb9a2_lang-ep61RgF6.cjs} +29 -29
- package/package.json +1 -1
- package/dist/index-B6PhNqba.cjs +0 -1
- package/dist/index-BCbPEss0.cjs +0 -6
- package/dist/index-BIDTgNpM.js +0 -6164
- package/dist/index-BfKXSSba.js +0 -315
- package/dist/index-BoGFDaka.js +0 -1488
- package/dist/index-C2BED3LB.cjs +0 -1
- package/dist/index-CG2INu4a.cjs +0 -1
- package/dist/index-ChydLUZz.cjs +0 -1
- package/dist/index-Cm-Ii0Hz.cjs +0 -87
- package/dist/index-Cv1TmNqP.cjs +0 -1
- package/dist/index-Cvt6_V4H.cjs +0 -1
- package/dist/index-DjisP6GK.cjs +0 -1
- package/dist/index-DjljHkFp.js +0 -394
- package/dist/index-DkRtrlNz.cjs +0 -1
- package/dist/index-Qa_XIjSh.cjs +0 -1
- package/dist/index-eDqsXoBv.js +0 -27
- package/dist/index-scQs-vN5.cjs +0 -7
- package/dist/index.vue_vue_type_script_setup_true_lang-D-Emhsg1.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_ed9fe0f5_lang-ClqRLigT.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_f69cf49c_lang-BumNra9U.js +0 -1947
- package/dist/index.vue_vue_type_style_index_0_scoped_f69cf49c_lang-g6qTUQfs.cjs +0 -1
- package/dist/menu-D2relKA7.cjs +0 -16
- package/dist/menu-DSxwBrt9.js +0 -7055
- package/dist/threeModel-B8_rM89p.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const x=require("vue"),c=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
1
|
+
"use strict";const x=require("vue"),c=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-7uyHrx8M.cjs"),D=[{key:"FormName",value:"Form"},{key:"TableName",value:"Table"},{key:"MenuName",value:"Menu"},{key:"GroupName",value:"Group"},{key:"SystemKey",value:"System"}],b=[{key:"FormDirect",value:"formFlex"},{key:"Form",value:"formContent"},{key:"FormButton",value:"formButton"},{key:"FormFlex",value:"formWrap"},{key:"TableColumns",value:"header"},{key:"TableButton",value:"extraButton"},{key:"TableLineButton",value:"rowButton"},{key:"Table",value:"tableContents"},{key:"TableIndex",value:"tableIndex"},{key:"Menus",value:"menuContents"},{key:"GroupContents",value:"groupContents"}];x.ref(0);const I=l=>{var t,r;if(Array.isArray(Object.keys(l))&&((t=Object.keys(l))==null?void 0:t.length)>0){let e=[];return(r=Object.entries(l))==null||r.forEach(([s,n])=>{var f,$;let a=[];if(a.push(s),((f=Object.keys(n))==null?void 0:f.length)>0){let y=[];($=I(n))==null||$.forEach(_=>{y.push(_)}),y==null||y.forEach(_=>{a.push(_)})}e.push(a)}),e}},R=(l,t)=>{var e;let r=t;return Array.isArray(Object.keys(l))&&((e=Object.entries(l))==null||e.forEach(([s,n])=>{let a=[s];if(typeof n=="object"&&n!==null){let f=I(n);f==null||f.forEach($=>{a.push($)})}r.push(a)})),r},X=l=>{const t={};return l.forEach(e=>{const s=e.split("/");let n=t;s.forEach(a=>{n[a]||(n[a]={}),n=n[a]})}),R(t,[])},Y=l=>X(l);x.ref(0);x.ref(1);const q=l=>{let t;l.replaceAll(" ",`\r
|
|
2
2
|
`).includes(`\r
|
|
3
3
|
`)?t=l.replaceAll(" ",`\r
|
|
4
4
|
`).split(`\r
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { p as Dl, a as fl, j as rl, q as Il, r as Tl, v as $l, w as El, x as tl, y as Bl, z as Fl, A as Al, B as Sl } from "./index-c97ImmWg.js";
|
|
2
2
|
import { ref as B, watch as Ie, createElementBlock as H, openBlock as R, createVNode as E, resolveComponent as ye, Fragment as be, renderList as _e, createElementVNode as f, createCommentVNode as Pe, toDisplayString as oe, withCtx as K, createBlock as ke, createTextVNode as fe, defineComponent as qe, reactive as nl, resolveDynamicComponent as Xe, unref as ml, computed as ol, renderSlot as Ye, createSlots as Ll, mergeProps as Ol, normalizeStyle as Rl, withModifiers as Qe } from "vue";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { c as d, F as dl,
|
|
3
|
+
import { bA as hl, p as Ue, s as Je, E as Me, u as Vl, g as ll, c as cl } from "./menu-W5FOvzIs.js";
|
|
4
|
+
import { d as Be, c as Fe, e as yl, _ as Nl, f as Pl, h as Ul, a as Wl } from "./index-D0onf966.js";
|
|
5
|
+
import { c as d, F as dl, t as jl, u as De, v as He, w as We, x as Ge, y as al } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Dlje_9At.js";
|
|
6
6
|
import { _ as we } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
|
-
import { E as Ke } from "./index-
|
|
8
|
-
import { u as bl } from "./threeModel.
|
|
9
|
-
import { s as zl, a as Ml } from "./index-
|
|
7
|
+
import { E as Ke } from "./index-CaEW7LNv.js";
|
|
8
|
+
import { u as bl } from "./threeModel.vue_vue_type_style_index_0_scoped_cbdfb9a2_lang-BOOm8T1l.js";
|
|
9
|
+
import { s as zl, a as Ml } from "./index-DOX0YT9e.js";
|
|
10
10
|
import Kl from "./index-CZtXRS3l.js";
|
|
11
11
|
const Jl = (k) => k.match(/\((.*)\)/)[1], Gl = hl("formComp", {
|
|
12
12
|
state: () => ({
|
|
@@ -0,0 +1,408 @@
|
|
|
1
|
+
import { ref as u, computed as E, reactive as T, nextTick as R, watch as N } from "vue";
|
|
2
|
+
import { bA as $, g as x, s as A, E as k, bx as j, bv as Q, by as V, u as q, p as K } from "./menu-W5FOvzIs.js";
|
|
3
|
+
import { u as G } from "./login-hsL9DHeX.js";
|
|
4
|
+
import { c as C } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Dlje_9At.js";
|
|
5
|
+
const H = $("authorityState", {
|
|
6
|
+
state: () => ({
|
|
7
|
+
routerPageStructures: []
|
|
8
|
+
}),
|
|
9
|
+
actions: {
|
|
10
|
+
setRouterPageStructure(a) {
|
|
11
|
+
this.routerPageStructures = a;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}), J = q(K), { activeMenuPath: h } = A(J), F = G(K), { structureData: X } = A(F), Y = H(K), { routerPageStructures: Z } = A(Y), m = u([
|
|
15
|
+
{
|
|
16
|
+
label: "角色名称",
|
|
17
|
+
value: "",
|
|
18
|
+
name: "roleName"
|
|
19
|
+
}
|
|
20
|
+
]), tt = u([
|
|
21
|
+
{
|
|
22
|
+
label: "查询"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
label: "重置"
|
|
26
|
+
}
|
|
27
|
+
]), M = T({
|
|
28
|
+
isFilter: !1,
|
|
29
|
+
filterForm: {}
|
|
30
|
+
}), et = u(!1), at = (a) => {
|
|
31
|
+
console.log("handleQueryChange", a), M.isFilter = !0, M.filterForm = a;
|
|
32
|
+
}, w = u([
|
|
33
|
+
// {
|
|
34
|
+
// key: "extraButton",
|
|
35
|
+
// contents: [
|
|
36
|
+
// {
|
|
37
|
+
// label: "新增"
|
|
38
|
+
// }
|
|
39
|
+
// ]
|
|
40
|
+
// },
|
|
41
|
+
// {
|
|
42
|
+
// key: "rowButton",
|
|
43
|
+
// contents: [
|
|
44
|
+
// {
|
|
45
|
+
// label: "授权",
|
|
46
|
+
// textColor: `blue`
|
|
47
|
+
// }, {
|
|
48
|
+
// label: "编辑"
|
|
49
|
+
// },
|
|
50
|
+
// {
|
|
51
|
+
// label: "删除",
|
|
52
|
+
// textColor: 'red'
|
|
53
|
+
// }
|
|
54
|
+
// ]
|
|
55
|
+
// },
|
|
56
|
+
// // {
|
|
57
|
+
// // key: "tableIndex",
|
|
58
|
+
// // contents: []
|
|
59
|
+
// // },
|
|
60
|
+
// {
|
|
61
|
+
// key: "header",
|
|
62
|
+
// contents: [
|
|
63
|
+
// {
|
|
64
|
+
// label: "角色名称",
|
|
65
|
+
// prop: 'roleName'
|
|
66
|
+
// },
|
|
67
|
+
// {
|
|
68
|
+
// label: "角色状态",
|
|
69
|
+
// formType: 'Radio',
|
|
70
|
+
// prop: 'roleStatus',
|
|
71
|
+
// options: [
|
|
72
|
+
// {
|
|
73
|
+
// label: "启用",
|
|
74
|
+
// value: "启用"
|
|
75
|
+
// },
|
|
76
|
+
// {
|
|
77
|
+
// label: "禁用",
|
|
78
|
+
// value: "禁用"
|
|
79
|
+
// }
|
|
80
|
+
// ]
|
|
81
|
+
// },
|
|
82
|
+
// {
|
|
83
|
+
// label: "角色排序",
|
|
84
|
+
// prop: 'roleOrder',
|
|
85
|
+
// formType: 'Number',
|
|
86
|
+
// }, {
|
|
87
|
+
// label: "备注",
|
|
88
|
+
// prop: 'remark',
|
|
89
|
+
// formType: 'TextArea',
|
|
90
|
+
// }, {
|
|
91
|
+
// label: "权限",
|
|
92
|
+
// prop: 'roleAuthority',
|
|
93
|
+
// isTableColHidden: true,
|
|
94
|
+
// isFormColHidden: true,
|
|
95
|
+
// },
|
|
96
|
+
// {
|
|
97
|
+
// label: "操作"
|
|
98
|
+
// }
|
|
99
|
+
// ]
|
|
100
|
+
// },
|
|
101
|
+
// {
|
|
102
|
+
// key: "tableContents",
|
|
103
|
+
// contents: []
|
|
104
|
+
// // contents: [
|
|
105
|
+
// // [
|
|
106
|
+
// // "超级管理员",
|
|
107
|
+
// // "启动",
|
|
108
|
+
// // 1,
|
|
109
|
+
// // []
|
|
110
|
+
// // // ['元元模型/系统/查询', '元元模型/系统/新增', '元元模型/系统/编辑']
|
|
111
|
+
// // ], [
|
|
112
|
+
// // "普通管理员",
|
|
113
|
+
// // "启动",
|
|
114
|
+
// // 2,
|
|
115
|
+
// // []
|
|
116
|
+
// // // ['元元模型/系统/查询', '元元模型/系统/新增', '元元模型/系统/编辑']
|
|
117
|
+
// // ],
|
|
118
|
+
// // ]
|
|
119
|
+
// }
|
|
120
|
+
]), O = u([]), st = E(() => {
|
|
121
|
+
var t, s, e, c, l;
|
|
122
|
+
const a = (t = Z.value) == null ? void 0 : t.find((n) => {
|
|
123
|
+
var r;
|
|
124
|
+
return ((r = n == null ? void 0 : n.comp) == null ? void 0 : r.toUpperCase()) === "TABLE";
|
|
125
|
+
});
|
|
126
|
+
return a ? (O.value = (c = (e = (s = a == null ? void 0 : a.compData) == null ? void 0 : s.find((n) => (n == null ? void 0 : n.key) === "header")) == null ? void 0 : e.contents) == null ? void 0 : c.filter((n) => (n == null ? void 0 : n.label) !== "操作"), (l = a == null ? void 0 : a.compData) == null ? void 0 : l.map((n) => {
|
|
127
|
+
if ((n == null ? void 0 : n.key) === "rowButton") {
|
|
128
|
+
const r = [...n == null ? void 0 : n.contents, { label: "授权" }];
|
|
129
|
+
return {
|
|
130
|
+
...n,
|
|
131
|
+
contents: r
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
return n;
|
|
135
|
+
})) : [];
|
|
136
|
+
}), nt = (a) => {
|
|
137
|
+
I(a.singleContent, a.buttonName, b.value);
|
|
138
|
+
}, P = u({}), S = u(), p = async (a, t, s) => {
|
|
139
|
+
var e, c;
|
|
140
|
+
try {
|
|
141
|
+
const l = await a(t);
|
|
142
|
+
return ((e = l == null ? void 0 : l.data) == null ? void 0 : e.code) === 200 ? (s !== "查询" && await F.setLogRecordAsync({
|
|
143
|
+
type: s,
|
|
144
|
+
data: t
|
|
145
|
+
}, h.value), l.data.result || ((c = l == null ? void 0 : l.data) == null ? void 0 : c.code) === 200) : null;
|
|
146
|
+
} catch (l) {
|
|
147
|
+
k.error(l);
|
|
148
|
+
}
|
|
149
|
+
}, L = (a, t) => {
|
|
150
|
+
t == null || t.forEach((s) => {
|
|
151
|
+
a == null || a.forEach((e) => {
|
|
152
|
+
var c;
|
|
153
|
+
e.path == s.path && (e.checkedButtons = s.checkedButtons), e.children && ((c = e.children) == null ? void 0 : c.length) > 0 && L(e.children, t);
|
|
154
|
+
});
|
|
155
|
+
});
|
|
156
|
+
}, _ = (a) => a == null ? void 0 : a.map((t) => {
|
|
157
|
+
var e;
|
|
158
|
+
const s = {
|
|
159
|
+
...t,
|
|
160
|
+
checkedButtons: []
|
|
161
|
+
};
|
|
162
|
+
return s.children && ((e = s.children) == null ? void 0 : e.length) > 0 && (s.children = _(s.children)), s;
|
|
163
|
+
}), ct = async (a, t) => {
|
|
164
|
+
switch (P.value = C(t), a) {
|
|
165
|
+
case "授权":
|
|
166
|
+
y.title = `【${t.roleName}】授权`, y.show = !0, await R(), t.roleAuthority && Array.isArray(t.roleAuthority) && L(v.value, t.roleAuthority);
|
|
167
|
+
break;
|
|
168
|
+
}
|
|
169
|
+
}, lt = () => {
|
|
170
|
+
y.show = !1;
|
|
171
|
+
}, d = u(), rt = async (a) => {
|
|
172
|
+
const t = await p(x, {
|
|
173
|
+
key: {
|
|
174
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
175
|
+
type: "data",
|
|
176
|
+
pageKey: a
|
|
177
|
+
}
|
|
178
|
+
}, "查询"), s = t == null ? void 0 : t.map((e) => {
|
|
179
|
+
var c;
|
|
180
|
+
return {
|
|
181
|
+
id: e.id,
|
|
182
|
+
tableData: (c = e == null ? void 0 : e.value) == null ? void 0 : c.tableData
|
|
183
|
+
};
|
|
184
|
+
});
|
|
185
|
+
return s == null ? void 0 : s.map((e) => {
|
|
186
|
+
var c;
|
|
187
|
+
if (Array.isArray(e == null ? void 0 : e.tableData)) {
|
|
188
|
+
let l = { id: e.id };
|
|
189
|
+
return (c = e == null ? void 0 : e.tableData) == null || c.forEach((n, r) => {
|
|
190
|
+
l[`a${r}`] = n;
|
|
191
|
+
}), l;
|
|
192
|
+
} else
|
|
193
|
+
return {
|
|
194
|
+
...e.tableData,
|
|
195
|
+
id: e.id
|
|
196
|
+
};
|
|
197
|
+
});
|
|
198
|
+
}, ut = (a, t) => {
|
|
199
|
+
let s = {};
|
|
200
|
+
return t == null || t.forEach((e, c) => {
|
|
201
|
+
e.label && a && (s[e.label] = (a == null ? void 0 : a[`a${c}`]) ?? null);
|
|
202
|
+
}), s;
|
|
203
|
+
}, ot = (a) => {
|
|
204
|
+
let t = "";
|
|
205
|
+
for (const s in a)
|
|
206
|
+
if (a.hasOwnProperty(s)) {
|
|
207
|
+
const e = a[s];
|
|
208
|
+
Array.isArray(e) && e.forEach((c) => {
|
|
209
|
+
c.hasOwnProperty("checkedButtons") && (t = s);
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
return t;
|
|
213
|
+
}, I = (a, t, s) => {
|
|
214
|
+
var n, r, i, f;
|
|
215
|
+
const e = C(a);
|
|
216
|
+
e != null && e.id && delete e.id;
|
|
217
|
+
const c = ut(e, O.value), l = ot(e);
|
|
218
|
+
console.log(1222, e, l, b.value), t === "新增" ? p(j, {
|
|
219
|
+
key: {
|
|
220
|
+
type: "data",
|
|
221
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
222
|
+
pageKey: (n = h.value) != null && n.startsWith("/") ? (r = h.value) == null ? void 0 : r.substring(1) : h.value,
|
|
223
|
+
tableId: s
|
|
224
|
+
},
|
|
225
|
+
value: {
|
|
226
|
+
tableData: c
|
|
227
|
+
}
|
|
228
|
+
}, t).then((o) => {
|
|
229
|
+
d.value = {
|
|
230
|
+
...a,
|
|
231
|
+
newId: o
|
|
232
|
+
}, t && o && k.success(t + "成功");
|
|
233
|
+
}) : t === "编辑" ? (console.log("编辑角色", c), p(Q, {
|
|
234
|
+
id: a.id,
|
|
235
|
+
key: {
|
|
236
|
+
type: "data",
|
|
237
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
238
|
+
pageKey: (i = h.value) != null && i.startsWith("/") ? (f = h.value) == null ? void 0 : f.substring(1) : h.value,
|
|
239
|
+
tableId: s
|
|
240
|
+
},
|
|
241
|
+
value: {
|
|
242
|
+
tableData: c
|
|
243
|
+
}
|
|
244
|
+
}, t).then((o) => {
|
|
245
|
+
t && o && k.success(t + "成功"), y.show = !1;
|
|
246
|
+
})) : t === "删除" && p(V, {
|
|
247
|
+
id: a.id
|
|
248
|
+
}, t).then((o) => {
|
|
249
|
+
t && o && k.success(t + "成功");
|
|
250
|
+
});
|
|
251
|
+
}, z = (a) => {
|
|
252
|
+
let t = [];
|
|
253
|
+
return a == null || a.forEach((s) => {
|
|
254
|
+
var e;
|
|
255
|
+
if (s.checkedButtons && ((e = s.checkedButtons) == null ? void 0 : e.length) > 0) {
|
|
256
|
+
const c = {
|
|
257
|
+
path: s.path,
|
|
258
|
+
checkedButtons: s.checkedButtons
|
|
259
|
+
// isCheckedAll: node.checkedButtons?.length === node.renderButtons?.length
|
|
260
|
+
};
|
|
261
|
+
t = t.concat(c);
|
|
262
|
+
}
|
|
263
|
+
s.children && (t = t.concat(z(s.children)));
|
|
264
|
+
}), t;
|
|
265
|
+
}, ht = () => {
|
|
266
|
+
d.value = {
|
|
267
|
+
...P.value,
|
|
268
|
+
roleAuthority: z(v.value)
|
|
269
|
+
// ['a' + authorityIndex]: checkedKeys
|
|
270
|
+
}, R(() => {
|
|
271
|
+
console.log("clickSubmitAuthority", d.value, w.value), I(d.value, "编辑", b.value);
|
|
272
|
+
});
|
|
273
|
+
}, y = T({
|
|
274
|
+
show: !1,
|
|
275
|
+
title: "角色授权",
|
|
276
|
+
width: "35%",
|
|
277
|
+
draggable: !0
|
|
278
|
+
}), it = ({ isPenultimate: a }, t) => {
|
|
279
|
+
var s, e;
|
|
280
|
+
return console.log("isPenultimate", a, t), ((e = (s = t == null ? void 0 : t.data) == null ? void 0 : s.renderButtons) == null ? void 0 : e.length) > 0 ? "is-penultimate" : "";
|
|
281
|
+
}, b = u(0), gt = async () => {
|
|
282
|
+
var s, e, c, l, n, r, i;
|
|
283
|
+
let a;
|
|
284
|
+
const t = await x({
|
|
285
|
+
key: {
|
|
286
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
287
|
+
type: "structure",
|
|
288
|
+
// 路由页面路径前缀会有/,但存储数据或获取数据时是要过滤掉/
|
|
289
|
+
pageKey: (s = h.value) != null && s.startsWith("/") ? (e = h.value) == null ? void 0 : e.substring(1) : h.value
|
|
290
|
+
}
|
|
291
|
+
});
|
|
292
|
+
return ((c = t == null ? void 0 : t.data) == null ? void 0 : c.code) === 200 && (l = t == null ? void 0 : t.data) != null && l.result && ((n = t == null ? void 0 : t.data) == null ? void 0 : n.result.length) > 0 && (a = (i = (r = t == null ? void 0 : t.data.result) == null ? void 0 : r[0]) == null ? void 0 : i.id), a;
|
|
293
|
+
}, v = u([]), yt = u([
|
|
294
|
+
{
|
|
295
|
+
path: "资源管理",
|
|
296
|
+
buttons: ["查询", "新增", "编辑", "删除"]
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
path: "资源管理/人员",
|
|
300
|
+
buttons: ["查询", "新增", "编辑", "删除"]
|
|
301
|
+
}
|
|
302
|
+
]), ft = (a, t) => {
|
|
303
|
+
var s;
|
|
304
|
+
a.checkedButtons = t ? (s = a.renderButtons) == null ? void 0 : s.map((e) => e.path) : [], console.log("handleNodeCheckChange", a, t);
|
|
305
|
+
}, g = u([]), pt = (a, t) => {
|
|
306
|
+
var s, e, c;
|
|
307
|
+
t.checkedButtons = a, ((s = t.checkedButtons) == null ? void 0 : s.length) === ((e = t.renderButtons) == null ? void 0 : e.length) ? g.value.push(t.path) : (a == null ? void 0 : a.length) === 0 && (g.value = (c = g.value) == null ? void 0 : c.filter((l) => l !== t.path));
|
|
308
|
+
};
|
|
309
|
+
N(() => g.value.length, () => {
|
|
310
|
+
var t, s;
|
|
311
|
+
const a = (t = S.value) == null ? void 0 : t.getCheckedKeys();
|
|
312
|
+
console.log(112, g.value, a), (s = S.value) == null || s.setCheckedKeys([...g.value]);
|
|
313
|
+
});
|
|
314
|
+
N(() => y.show, (a) => {
|
|
315
|
+
a || (v.value = _(v.value));
|
|
316
|
+
});
|
|
317
|
+
const B = E(() => {
|
|
318
|
+
var s;
|
|
319
|
+
const a = (s = C(X.value)) == null ? void 0 : s.filter((e) => {
|
|
320
|
+
var c, l;
|
|
321
|
+
return ((l = (c = e == null ? void 0 : e.key) == null ? void 0 : c.pageKey) == null ? void 0 : l.toUpperCase()) !== "MENU";
|
|
322
|
+
});
|
|
323
|
+
return [...a == null ? void 0 : a.map((e) => {
|
|
324
|
+
var n, r, i, f;
|
|
325
|
+
const c = /button/i;
|
|
326
|
+
let l = (i = (r = (n = e == null ? void 0 : e.value) == null ? void 0 : n.pageData) == null ? void 0 : r.compData) == null ? void 0 : i.filter((o) => c.test(o == null ? void 0 : o.key));
|
|
327
|
+
return l = Array.from(
|
|
328
|
+
new Set(l == null ? void 0 : l.flatMap((o) => o.contents.map((W) => W.label)))
|
|
329
|
+
), {
|
|
330
|
+
path: (f = e == null ? void 0 : e.key) == null ? void 0 : f.pageKey,
|
|
331
|
+
buttons: l
|
|
332
|
+
};
|
|
333
|
+
}), ...U.value];
|
|
334
|
+
}), U = u([]), D = (a, t) => {
|
|
335
|
+
if (Array.isArray(a))
|
|
336
|
+
return a == null ? void 0 : a.map((s) => {
|
|
337
|
+
var c, l;
|
|
338
|
+
const e = t == null ? void 0 : t.find((n) => (n == null ? void 0 : n.path) === (s == null ? void 0 : s.path));
|
|
339
|
+
return s.childMenus && s.childMenus.length > 0 ? {
|
|
340
|
+
...s,
|
|
341
|
+
renderButtons: s.carryData ? (c = e == null ? void 0 : e.buttons) == null ? void 0 : c.map((n) => ({
|
|
342
|
+
title: n,
|
|
343
|
+
path: s.path + "/" + n
|
|
344
|
+
})) : [],
|
|
345
|
+
checkedButtons: [],
|
|
346
|
+
children: D(s.childMenus, B.value),
|
|
347
|
+
childMenus: D(s.childMenus, B.value)
|
|
348
|
+
} : {
|
|
349
|
+
...s,
|
|
350
|
+
renderButtons: s.carryData ? (l = e == null ? void 0 : e.buttons) == null ? void 0 : l.map((n) => ({
|
|
351
|
+
title: n,
|
|
352
|
+
path: s.path + "/" + n
|
|
353
|
+
})) : [],
|
|
354
|
+
checkedButtons: []
|
|
355
|
+
};
|
|
356
|
+
});
|
|
357
|
+
}, dt = {
|
|
358
|
+
comp: "Group",
|
|
359
|
+
name: "/系统管理/角色管理",
|
|
360
|
+
compData: [
|
|
361
|
+
{
|
|
362
|
+
key: "groupContents",
|
|
363
|
+
contents: [
|
|
364
|
+
{
|
|
365
|
+
comp: "Table",
|
|
366
|
+
compData: w.value,
|
|
367
|
+
name: ""
|
|
368
|
+
}
|
|
369
|
+
]
|
|
370
|
+
}
|
|
371
|
+
]
|
|
372
|
+
}, Bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
373
|
+
__proto__: null,
|
|
374
|
+
addButtonsToTree: D,
|
|
375
|
+
authorizeDialog: y,
|
|
376
|
+
buttonValue: tt,
|
|
377
|
+
changedRow: d,
|
|
378
|
+
clickRow: P,
|
|
379
|
+
clickRowButton: ct,
|
|
380
|
+
clickSubmitAuthority: ht,
|
|
381
|
+
closeAuthorizeDialog: lt,
|
|
382
|
+
customNodeClass: it,
|
|
383
|
+
getActivePageStructureId: gt,
|
|
384
|
+
getPageDataAsync: rt,
|
|
385
|
+
handleItemDataChange: nt,
|
|
386
|
+
handleNodeBtnChange: pt,
|
|
387
|
+
handleNodeCheckChange: ft,
|
|
388
|
+
handleQueryChange: at,
|
|
389
|
+
handleSubmitAsync: p,
|
|
390
|
+
isPageDataExist: et,
|
|
391
|
+
menuData: v,
|
|
392
|
+
menusButtons: yt,
|
|
393
|
+
pageData: w,
|
|
394
|
+
pageDataFiltered: st,
|
|
395
|
+
queryFormData: m,
|
|
396
|
+
structureButtons: B,
|
|
397
|
+
structureId: b,
|
|
398
|
+
submitTableAsyncByVerify: I,
|
|
399
|
+
tempRolePageData: dt,
|
|
400
|
+
tempSysMenus: U,
|
|
401
|
+
treeRef: S
|
|
402
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
403
|
+
export {
|
|
404
|
+
Bt as S,
|
|
405
|
+
y as a,
|
|
406
|
+
gt as g,
|
|
407
|
+
H as u
|
|
408
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=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 e=require("vue");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-7uyHrx8M.cjs");require("./menu-awjMwLrA.cjs");const n=require("./index-BaFCKnyt.cjs"),r=require("./index-BgwEiVgl.cjs"),a=require("./index-l6ZQIH9_.cjs"),i=e.defineComponent({__name:"index",setup(u){const t=e.reactive({...r.State});return e.onMounted(async()=>{t.structureId=await a.getActivePageStructureId()}),(c,o)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(n.ssTable,{itemData:t.pageData,onChange:t.handleItemDataChange},null,8,["itemData","onChange"])]))}});exports.default=i;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { defineComponent as a, reactive as o, onMounted as c, createElementBlock as r, openBlock as s, createVNode as i } from "vue";
|
|
2
|
+
import { B as u } from "./index-c97ImmWg.js";
|
|
3
|
+
import { S as m } from "./index-Bfx9-BjM.js";
|
|
4
|
+
import { u as l, s as d } from "./menu-W5FOvzIs.js";
|
|
5
|
+
import { u as g } from "./login-hsL9DHeX.js";
|
|
6
|
+
import { g as p } from "./index-A4h-EzBL.js";
|
|
7
|
+
const w = /* @__PURE__ */ a({
|
|
8
|
+
__name: "index",
|
|
9
|
+
setup(f) {
|
|
10
|
+
const e = l(), { activeMenuPath: h } = d(e), n = g(), t = o({ ...m });
|
|
11
|
+
return c(async () => {
|
|
12
|
+
n.getModelSecretAsync(), t.structureId = await p();
|
|
13
|
+
}), (C, S) => (s(), r("div", null, [
|
|
14
|
+
i(u, {
|
|
15
|
+
itemData: t.pageData,
|
|
16
|
+
changedContent: t.changedRow,
|
|
17
|
+
onChange: t.handleItemDataChange,
|
|
18
|
+
onOnButtonClick: t.clickRowButton
|
|
19
|
+
}, null, 8, ["itemData", "changedContent", "onChange", "onOnButtonClick"])
|
|
20
|
+
]));
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
export {
|
|
24
|
+
w as default
|
|
25
|
+
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ref as b, computed as U, reactive as de, nextTick as
|
|
2
|
-
import { s as $, g as q, u as ve, E as F, p as H,
|
|
3
|
-
import { u as Pe } from "./threeModel.
|
|
4
|
-
import { u as xe,
|
|
5
|
-
import { h as Ke } from "./index-
|
|
1
|
+
import { ref as b, computed as U, reactive as de, nextTick as N, watch as fe, defineComponent as Se, onMounted as we, resolveComponent as A, resolveDirective as Me, createElementBlock as se, openBlock as ue, createVNode as I, withCtx as w, withDirectives as Fe, createElementVNode as ce, createTextVNode as ie } from "vue";
|
|
2
|
+
import { s as $, g as q, u as ve, E as F, p as H, bx as he, bv as be, by as Be, bt as Ne } from "./menu-W5FOvzIs.js";
|
|
3
|
+
import { u as Pe } from "./threeModel.vue_vue_type_style_index_0_scoped_cbdfb9a2_lang-BOOm8T1l.js";
|
|
4
|
+
import { u as xe, B as Ee } from "./index-c97ImmWg.js";
|
|
5
|
+
import { h as Ke } from "./index-Bfx9-BjM.js";
|
|
6
6
|
import { a as Ae } from "./menuIndex-BWim3TlH.js";
|
|
7
|
-
import { c as W } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
8
|
-
import {
|
|
7
|
+
import { c as W } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Dlje_9At.js";
|
|
8
|
+
import { c as He, d as Re } from "./index-D0onf966.js";
|
|
9
9
|
import { _ as Oe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
-
const
|
|
10
|
+
const B = Pe(H), { isEdit: Ve } = $(B), ye = xe(H), C = ve(H), { menus: Ce, configMenu: V, activeMenuPath: G, cacheStructures: M } = $(C), Q = b(!1), je = U(() => {
|
|
11
11
|
var t, e;
|
|
12
12
|
return [
|
|
13
13
|
{
|
|
@@ -67,7 +67,7 @@ const N = Pe(H), { isEdit: je } = $(N), ye = xe(H), C = ve(H), { menus: Ce, conf
|
|
|
67
67
|
}))) == null ? void 0 : e.filter((l) => l.title !== "系统管理" && l.title !== "平台管理")
|
|
68
68
|
}
|
|
69
69
|
];
|
|
70
|
-
}), X = b([]),
|
|
70
|
+
}), X = b([]), j = b([
|
|
71
71
|
{
|
|
72
72
|
// label: "新增",
|
|
73
73
|
label: "新建"
|
|
@@ -75,7 +75,7 @@ const N = Pe(H), { isEdit: je } = $(N), ye = xe(H), C = ve(H), { menus: Ce, conf
|
|
|
75
75
|
]), ze = U(() => [
|
|
76
76
|
{
|
|
77
77
|
key: "extraButton",
|
|
78
|
-
contents:
|
|
78
|
+
contents: j.value
|
|
79
79
|
},
|
|
80
80
|
{
|
|
81
81
|
key: "rowButton",
|
|
@@ -327,7 +327,7 @@ const N = Pe(H), { isEdit: je } = $(N), ye = xe(H), C = ve(H), { menus: Ce, conf
|
|
|
327
327
|
Q.value = !0, y.value = {
|
|
328
328
|
...t,
|
|
329
329
|
rootNode: Ae(Ie.value, t.path)
|
|
330
|
-
}, C.setCacheStructures(null), (t == null ? void 0 : t.level) === 0 ?
|
|
330
|
+
}, C.setCacheStructures(null), (t == null ? void 0 : t.level) === 0 ? j.value.splice(0) : (j.value = [{ label: "新建" }], Z.value = (e = t == null ? void 0 : t.path) == null ? void 0 : e.split("/")), await C.setConfigMenu(null), await _e(t == null ? void 0 : t.path), await R(t);
|
|
331
331
|
}, qe = (t) => {
|
|
332
332
|
switch (t) {
|
|
333
333
|
case "新建":
|
|
@@ -340,7 +340,7 @@ const N = Pe(H), { isEdit: je } = $(N), ye = xe(H), C = ve(H), { menus: Ce, conf
|
|
|
340
340
|
}, We = async (t, e) => {
|
|
341
341
|
var l, s;
|
|
342
342
|
if (!y.value) return F.warning("请先选择菜单");
|
|
343
|
-
if (d.type = qe(t), Z.value = [],
|
|
343
|
+
if (d.type = qe(t), Z.value = [], B.setSubmitCurStructure(!1), ye.setSelectTitle([]), h.value = W(e), d.type !== "delete") {
|
|
344
344
|
switch (d.type) {
|
|
345
345
|
case "create":
|
|
346
346
|
J(null), await C.setConfigMenu(null);
|
|
@@ -349,7 +349,7 @@ const N = Pe(H), { isEdit: je } = $(N), ye = xe(H), C = ve(H), { menus: Ce, conf
|
|
|
349
349
|
J(h.value), await C.setConfigMenu(h.value), console.log("clickRowButton", h.value);
|
|
350
350
|
break;
|
|
351
351
|
}
|
|
352
|
-
await
|
|
352
|
+
await N(), d.title = `【${d.type === "create" ? (l = y.value) == null ? void 0 : l.path : (s = h.value) == null ? void 0 : s.path}】菜单配置${t}`, d.show = !0;
|
|
353
353
|
} else
|
|
354
354
|
await De(h.value, d.type);
|
|
355
355
|
}, L = b(!0), Ge = async (t) => {
|
|
@@ -361,7 +361,7 @@ const N = Pe(H), { isEdit: je } = $(N), ye = xe(H), C = ve(H), { menus: Ce, conf
|
|
|
361
361
|
};
|
|
362
362
|
fe(() => L.value, async (t) => {
|
|
363
363
|
var e;
|
|
364
|
-
await
|
|
364
|
+
await N(), Y.value = (e = z.value) == null ? void 0 : e.map((l) => l.prop === "dialogConfig" || l.prop === "contentConfig" || l.prop === "trigger" ? l.prop === "contentConfig" ? {
|
|
365
365
|
...l,
|
|
366
366
|
isFormColHidden: t
|
|
367
367
|
} : l : {
|
|
@@ -373,7 +373,7 @@ const Qe = b(null), Xe = async (t, e) => {
|
|
|
373
373
|
var r, p, c, u, f;
|
|
374
374
|
if (d.type === "create") {
|
|
375
375
|
const o = (p = (r = M.value) == null ? void 0 : r.filter((g) => (g == null ? void 0 : g.key) === e)) == null ? void 0 : p.flatMap((g) => g == null ? void 0 : g.data);
|
|
376
|
-
console.log("clickTrigger", e, M.value, o),
|
|
376
|
+
console.log("clickTrigger", e, M.value, o), B.setItemData(o), C.setCacheStructures({
|
|
377
377
|
key: e,
|
|
378
378
|
data: o
|
|
379
379
|
});
|
|
@@ -396,7 +396,7 @@ const Qe = b(null), Xe = async (t, e) => {
|
|
|
396
396
|
...(K = (a = (E = (x = g == null ? void 0 : g.data) == null ? void 0 : x.result) == null ? void 0 : E[0]) == null ? void 0 : a.value) == null ? void 0 : K.pageData
|
|
397
397
|
};
|
|
398
398
|
});
|
|
399
|
-
|
|
399
|
+
B.setItemData(o), C.setCacheStructures({
|
|
400
400
|
key: e,
|
|
401
401
|
data: o
|
|
402
402
|
});
|
|
@@ -415,7 +415,7 @@ const Qe = b(null), Xe = async (t, e) => {
|
|
|
415
415
|
d.type === "create" ? s = {
|
|
416
416
|
..._.value,
|
|
417
417
|
path: (c = y.value) == null ? void 0 : c.path
|
|
418
|
-
} : d.type === "update" && (s =
|
|
418
|
+
} : d.type === "update" && (s = V.value), await C.setConfigMenu(s), ye.setSelectTitle(l), B.setIsEdit("edit");
|
|
419
419
|
}, R = async (t) => {
|
|
420
420
|
var l, s, n, i, r, p;
|
|
421
421
|
const e = await q({
|
|
@@ -467,7 +467,7 @@ const Qe = b(null), Xe = async (t, e) => {
|
|
|
467
467
|
}
|
|
468
468
|
}, f = be) : e === "delete" && (u = {
|
|
469
469
|
id: t
|
|
470
|
-
}, f =
|
|
470
|
+
}, f = Be);
|
|
471
471
|
const o = await f(u);
|
|
472
472
|
if (((r = o == null ? void 0 : o.data) == null ? void 0 : r.code) !== 200)
|
|
473
473
|
throw F.error("保存响应失败"), new Error("保存响应失败");
|
|
@@ -511,7 +511,7 @@ const Qe = b(null), Xe = async (t, e) => {
|
|
|
511
511
|
try {
|
|
512
512
|
console.log("structures", t);
|
|
513
513
|
const u = t == null ? void 0 : t.filter((a) => (a == null ? void 0 : a.key) === "contentConfig"), f = t == null ? void 0 : t.filter((a) => (a == null ? void 0 : a.key) === "dialogConfig");
|
|
514
|
-
await
|
|
514
|
+
await N();
|
|
515
515
|
const o = (n = (s = (l = M.value) == null ? void 0 : l.filter((a) => (a == null ? void 0 : a.key) === "dialogConfig")) == null ? void 0 : s.flatMap((a) => a == null ? void 0 : a.data)) == null ? void 0 : n.map((a) => a == null ? void 0 : a.id);
|
|
516
516
|
let g = (p = (r = (i = M.value) == null ? void 0 : i.filter((a) => (a == null ? void 0 : a.key) === "contentConfig")) == null ? void 0 : r.flatMap((a) => a == null ? void 0 : a.data)) == null ? void 0 : p.map((a) => a == null ? void 0 : a.id);
|
|
517
517
|
console.log("submitMenuStructures", o, g), g = [...g, ...(c = Te.value) == null ? void 0 : c.map((a) => a == null ? void 0 : a.id)];
|
|
@@ -570,7 +570,7 @@ const Qe = b(null), Xe = async (t, e) => {
|
|
|
570
570
|
}
|
|
571
571
|
}, s = be) : e === "delete" && (l = {
|
|
572
572
|
ids: [t.id, ...(i = t == null ? void 0 : t.structureIds) == null ? void 0 : i.map((r) => r.id)]
|
|
573
|
-
}, s =
|
|
573
|
+
}, s = Ne), Ke(s, l, e).then((r) => {
|
|
574
574
|
e === "create" && X.value.push({
|
|
575
575
|
...t,
|
|
576
576
|
id: r
|
|
@@ -579,12 +579,12 @@ const Qe = b(null), Xe = async (t, e) => {
|
|
|
579
579
|
}, et = async () => {
|
|
580
580
|
var l, s, n, i, r;
|
|
581
581
|
const t = JSON.parse(W(JSON.stringify(M.value)));
|
|
582
|
-
console.log("clickSubmitForm-1", t), await
|
|
582
|
+
console.log("clickSubmitForm-1", t), await N();
|
|
583
583
|
const e = d.type === "create" ? {
|
|
584
|
-
...
|
|
584
|
+
...V.value,
|
|
585
585
|
rootNodePath: (s = (l = y.value) == null ? void 0 : l.rootNode) == null ? void 0 : s.path
|
|
586
586
|
} : {
|
|
587
|
-
...
|
|
587
|
+
...V.value,
|
|
588
588
|
rootNodePath: (i = (n = y.value) == null ? void 0 : n.rootNode) == null ? void 0 : i.path,
|
|
589
589
|
id: (r = h.value) == null ? void 0 : r.id
|
|
590
590
|
};
|
|
@@ -592,7 +592,7 @@ const Qe = b(null), Xe = async (t, e) => {
|
|
|
592
592
|
}, tt = () => {
|
|
593
593
|
d.show = !1;
|
|
594
594
|
};
|
|
595
|
-
fe(() =>
|
|
595
|
+
fe(() => Ve.value, (t) => {
|
|
596
596
|
console.log("返回时查看:", t, M.value);
|
|
597
597
|
}, { immediate: !0 });
|
|
598
598
|
const lt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -613,7 +613,7 @@ const lt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
613
613
|
inputForm: _,
|
|
614
614
|
menuPageData: ze,
|
|
615
615
|
operatingForm: Qe,
|
|
616
|
-
pageData:
|
|
616
|
+
pageData: je,
|
|
617
617
|
renderFormData: Y,
|
|
618
618
|
tableLoading: Q,
|
|
619
619
|
treeData: Ie
|
|
@@ -626,7 +626,7 @@ const lt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
626
626
|
const e = de({ ...lt }), l = b(null), s = ve(H), { configMenu: n } = $(s);
|
|
627
627
|
return we(() => {
|
|
628
628
|
var i;
|
|
629
|
-
e.formatFormData(n.value),
|
|
629
|
+
e.formatFormData(n.value), N(() => {
|
|
630
630
|
var r, p;
|
|
631
631
|
(p = l.value) == null || p.setCurrentKey((r = n.value) == null ? void 0 : r.path), s.setActiveMenuPath("/平台管理/菜单管理");
|
|
632
632
|
}), n.value && e.getInitialSubStructure((i = n.value) == null ? void 0 : i.path);
|