ss-component-new 1.1.253 → 1.1.255
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-D0ksMxBm.js +4732 -0
- package/dist/array-FnDBAqr_.cjs +7 -0
- package/dist/{cloneDeep-BDzOfpB7.cjs → cloneDeep-C-pGUQKf.cjs} +1 -1
- package/dist/{cloneDeep-B7ARrx0h.js → cloneDeep-Dyt41_L-.js} +1 -1
- package/dist/index-1L58FxXE.cjs +1 -0
- package/dist/{index-CNPDa2xp.js → index-4QOp-GFW.js} +7 -7
- package/dist/{index-nZMqLfXg.cjs → index-4zv-tITd.cjs} +1 -1
- package/dist/{index-BpfCH5My.cjs → index-AmZEXNoQ.cjs} +1 -1
- package/dist/{index-BCOnsiBC.js → index-BCY2xvgA.js} +1 -1
- package/dist/{index-CGQDlgX-.cjs → index-BHBz_g9I.cjs} +1 -1
- package/dist/{index-Ds_5NHNT.js → index-BJGqjruN.js} +1 -1
- package/dist/index-BKvrNIq2.js +4199 -0
- package/dist/index-BLMAsu2L.cjs +1 -0
- package/dist/{index-BVn9XisQ.js → index-BPhMb7pK.js} +4 -4
- package/dist/{index-DRPDOftk.js → index-BT1bqIxy.js} +4 -4
- package/dist/{index-D6mFL7s6.js → index-BZCF6V6l.js} +30 -30
- package/dist/index-Bb-62WPF.cjs +1 -0
- package/dist/{index-3ncadd-n.cjs → index-Bb_UeGKJ.cjs} +1 -1
- package/dist/index-BeYOMEs2.js +674 -0
- package/dist/index-BipikeGR.js +199 -0
- package/dist/index-BjjXJSlm.cjs +1 -0
- package/dist/index-BqgOQWUB.js +300 -0
- package/dist/{index-B6RdCQU4.js → index-Bs2mNVJb.js} +3 -3
- package/dist/{index-DcaaSs_a.js → index-Bvff3Rjc.js} +5 -5
- package/dist/{index-djVN5_Sf.cjs → index-ByA8EBvo.cjs} +1 -1
- package/dist/{index-CDbcB1Fw.js → index-C9zbvQ_u.js} +23 -24
- package/dist/{index-D3inZGZu.js → index-CJz4osvs.js} +6 -6
- package/dist/{index-BKFkrbgp.js → index-CNw33JR-.js} +32 -33
- package/dist/{index-B1lESzpk.cjs → index-CXnqXm6c.cjs} +1 -1
- package/dist/{index-yR6R78G3.js → index-CgreBJdF.js} +20 -21
- package/dist/index-ChBbyPw-.cjs +1 -0
- package/dist/{index-BNiX-tj2.cjs → index-ChC7cQXw.cjs} +1 -1
- package/dist/{index-DbZbUOub.cjs → index-ChLhaUgK.cjs} +175 -175
- package/dist/{index-DHfQsoC3.cjs → index-D2mqkg4c.cjs} +1 -1
- package/dist/{index-CXAsYcYF.cjs → index-D2pc-BzQ.cjs} +1 -1
- package/dist/{index-BoOojDw-.js → index-D5Bz4nyQ.js} +1 -1
- package/dist/index-DALSlEkV.cjs +1 -0
- package/dist/{index-Duop-clY.js → index-DFaF-8_G.js} +9 -9
- package/dist/index-DRIDbmGM.cjs +1 -0
- package/dist/{index-DjCaZ8Zl.js → index-DV6L8VsR.js} +5 -5
- package/dist/{index-DOr4o5ev.js → index-DVg2yzki.js} +1 -1
- package/dist/{index-DzBceCbY.cjs → index-DVpKjSNf.cjs} +1 -1
- package/dist/{index-3NzfXDhk.js → index-DY1Iv1Nz.js} +8 -8
- package/dist/{index-Cp-JwN0E.js → index-D_zly77U.js} +2037 -2090
- package/dist/index-DeUj3yRd.cjs +9 -0
- package/dist/{index-DqQjcgXo.js → index-DmOEedex.js} +12 -13
- package/dist/{index-C5RHQr0o.cjs → index-DokJCYVc.cjs} +1 -1
- package/dist/{index-BxkFK6dD.cjs → index-DsP7FB21.cjs} +1 -1
- package/dist/index-Dxbc5WoF.cjs +1 -0
- package/dist/index-HW8r5PRa.cjs +1 -0
- package/dist/{index-B92_MojW.cjs → index-Hiw-v6tJ.cjs} +1 -1
- package/dist/index-JN1a_LH1.cjs +1 -0
- package/dist/{index-LGlIxzMg.cjs → index-VEIBSb0L.cjs} +1 -1
- package/dist/{index-BASoYcrU.js → index-XqdyrkBW.js} +7 -8
- package/dist/{index-DCFR7U_b.js → index-ZO1MQu0A.js} +4 -4
- package/dist/{index-DqYY8LS-.js → index-exmBUjmZ.js} +5 -5
- package/dist/{index.vue_vue_type_script_setup_true_lang-Bs-qy0pK.cjs → index.vue_vue_type_script_setup_true_lang-BJKLFe1B.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-CBfDRFHN.js → index.vue_vue_type_script_setup_true_lang-DKt1jWSZ.js} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_11a5120d_lang-DIYf7qx2.cjs → index.vue_vue_type_style_index_0_scoped_11a5120d_lang-B7wukF06.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_11a5120d_lang-DRxEC4eG.js → index.vue_vue_type_style_index_0_scoped_11a5120d_lang-BJ_xZq3T.js} +6 -6
- package/dist/index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-ByetdKK8.cjs +1 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-CUy9QkFH.js +908 -0
- package/dist/login-Bps4AQ46.cjs +1 -0
- package/dist/{login-CxadfjHD.js → login-l8Wv_G2i.js} +6 -6
- package/dist/{main-BVVwVykl.js → main-AjMVz5uU.js} +6 -6
- package/dist/{main-BTJBYczL.cjs → main-WNNH9wBa.cjs} +1 -1
- package/dist/menu-BEvMDEbJ.js +6783 -0
- package/dist/menu-Cj-UKXED.cjs +16 -0
- package/dist/{modelComp-BsKtMeM7.js → modelComp-CxFffZnZ.js} +1 -1
- package/dist/{modelComp-Im8BtgFY.cjs → modelComp-CyktectM.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +16 -16
- package/dist/ss-component3.cjs +1 -1
- package/dist/ss-component3.js +1 -1
- package/package.json +1 -1
- package/dist/array-CWm2LBmk.js +0 -4774
- package/dist/array-DyMFtlR4.cjs +0 -7
- package/dist/index-B5Fm5mr1.cjs +0 -9
- package/dist/index-Bp-Vqgkz.cjs +0 -1
- package/dist/index-BsGfXgSZ.js +0 -665
- package/dist/index-BtrCLtfp.cjs +0 -1
- package/dist/index-CIthfbvr.cjs +0 -1
- package/dist/index-CTtglK3w.cjs +0 -1
- package/dist/index-Cd6eKBt6.js +0 -3761
- package/dist/index-CdCwMRa1.js +0 -2115
- package/dist/index-D1dTAKxV.cjs +0 -1
- package/dist/index-D2c04gRc.cjs +0 -1
- package/dist/index-DANHTRnF.js +0 -228
- package/dist/index-DZSlvnaa.cjs +0 -1
- package/dist/index-Dp4TFbqD.cjs +0 -1
- package/dist/index-ZTdcBfL7.cjs +0 -6
- package/dist/index-ip4VAMkK.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_0cbc0899_lang-CZVR2xnq.js +0 -896
- package/dist/index.vue_vue_type_style_index_0_scoped_0cbc0899_lang-jMr9WVDb.cjs +0 -1
- package/dist/login-D9nwQPXh.cjs +0 -1
- package/dist/menu-BqjJVKx7.js +0 -4855
- package/dist/menu-BuVFL_u8.cjs +0 -11
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as n, reactive as s, onMounted as r, createElementBlock as c, openBlock as i, createVNode as t } from "vue";
|
|
2
|
-
import { s as m } from "./index-
|
|
3
|
-
import { s as l } from "./index-
|
|
4
|
-
import { S as u } from "./index-
|
|
5
|
-
import { u as d, s as p } from "./menu-
|
|
6
|
-
import { u as f } from "./login-
|
|
7
|
-
import { g } from "./index-
|
|
2
|
+
import { s as m } from "./index-BKvrNIq2.js";
|
|
3
|
+
import { s as l } from "./index-D_zly77U.js";
|
|
4
|
+
import { S as u } from "./index-DmOEedex.js";
|
|
5
|
+
import { u as d, s as p } from "./menu-BEvMDEbJ.js";
|
|
6
|
+
import { u as f } from "./login-l8Wv_G2i.js";
|
|
7
|
+
import { g } from "./index-CNw33JR-.js";
|
|
8
8
|
import { _ as h } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
9
|
const _ = { class: "role-wrapper" }, C = /* @__PURE__ */ n({
|
|
10
10
|
__name: "index",
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { s as m, E as f,
|
|
3
|
-
import {
|
|
4
|
-
import { u as
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
const V = j(), { activeMenuPath: b } = m(V), x = Q(), { structureData: $ } = m(x), q = U(), { itemData: G } = m(q), J = r([
|
|
1
|
+
import { ref as c, computed as I, reactive as K, nextTick as T, watch as B } from "vue";
|
|
2
|
+
import { g as N, s as m, E as f, c as j, b as z, d as H, u as L } from "./menu-BEvMDEbJ.js";
|
|
3
|
+
import { u as Q } from "./login-l8Wv_G2i.js";
|
|
4
|
+
import { u as U } from "./modelComp-CxFffZnZ.js";
|
|
5
|
+
import { c as D } from "./cloneDeep-Dyt41_L-.js";
|
|
6
|
+
const V = L(), { activeMenuPath: b } = m(V), x = Q(), { structureData: $ } = m(x), q = U(), { itemData: G } = m(q), J = c([
|
|
8
7
|
{
|
|
9
8
|
label: "角色名称",
|
|
10
9
|
value: "",
|
|
11
10
|
name: "roleName"
|
|
12
11
|
}
|
|
13
|
-
]), W =
|
|
12
|
+
]), W = c([
|
|
14
13
|
{
|
|
15
14
|
label: "查询"
|
|
16
15
|
},
|
|
@@ -20,9 +19,9 @@ const V = j(), { activeMenuPath: b } = m(V), x = Q(), { structureData: $ } = m(x
|
|
|
20
19
|
]), w = K({
|
|
21
20
|
isFilter: !1,
|
|
22
21
|
filterForm: {}
|
|
23
|
-
}), X =
|
|
22
|
+
}), X = c(!1), Y = (a) => {
|
|
24
23
|
console.log("handleQueryChange", a), w.isFilter = !0, w.filterForm = a;
|
|
25
|
-
}, i =
|
|
24
|
+
}, i = c([
|
|
26
25
|
{
|
|
27
26
|
key: "extraButton",
|
|
28
27
|
contents: [
|
|
@@ -115,7 +114,7 @@ const V = j(), { activeMenuPath: b } = m(V), x = Q(), { structureData: $ } = m(x
|
|
|
115
114
|
}
|
|
116
115
|
]), Z = I(() => i.value), ee = (a) => {
|
|
117
116
|
A(a.singleContent, a.buttonName);
|
|
118
|
-
}, C =
|
|
117
|
+
}, C = c({}), k = c(), d = async (a, e, l) => {
|
|
119
118
|
var t, s;
|
|
120
119
|
try {
|
|
121
120
|
const n = await a(e);
|
|
@@ -143,12 +142,12 @@ const V = j(), { activeMenuPath: b } = m(V), x = Q(), { structureData: $ } = m(x
|
|
|
143
142
|
}), te = async (a, e) => {
|
|
144
143
|
switch (C.value = D(e), console.log("clickRowButton", a, e, i.value), a) {
|
|
145
144
|
case "授权":
|
|
146
|
-
h.title = `【${e.roleName}】授权`, h.show = !0, await T(), e.roleAuthority && Array.isArray(e.roleAuthority) && P(
|
|
145
|
+
h.title = `【${e.roleName}】授权`, h.show = !0, await T(), e.roleAuthority && Array.isArray(e.roleAuthority) && P(y.value, e.roleAuthority);
|
|
147
146
|
break;
|
|
148
147
|
}
|
|
149
148
|
}, ae = () => {
|
|
150
149
|
h.show = !1;
|
|
151
|
-
}, g =
|
|
150
|
+
}, g = c(), le = async (a) => {
|
|
152
151
|
const e = await d(N, {
|
|
153
152
|
key: {
|
|
154
153
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
@@ -166,8 +165,8 @@ const V = j(), { activeMenuPath: b } = m(V), x = Q(), { structureData: $ } = m(x
|
|
|
166
165
|
var s;
|
|
167
166
|
if (Array.isArray(t == null ? void 0 : t.tableData)) {
|
|
168
167
|
let n = { id: t.id };
|
|
169
|
-
return (s = t == null ? void 0 : t.tableData) == null || s.forEach((o,
|
|
170
|
-
n[`a${
|
|
168
|
+
return (s = t == null ? void 0 : t.tableData) == null || s.forEach((o, p) => {
|
|
169
|
+
n[`a${p}`] = o;
|
|
171
170
|
}), n;
|
|
172
171
|
} else
|
|
173
172
|
return {
|
|
@@ -177,7 +176,7 @@ const V = j(), { activeMenuPath: b } = m(V), x = Q(), { structureData: $ } = m(x
|
|
|
177
176
|
});
|
|
178
177
|
}, A = (a, e) => {
|
|
179
178
|
const l = D(a);
|
|
180
|
-
l != null && l.id && delete l.id, e === "新增" ? d(
|
|
179
|
+
l != null && l.id && delete l.id, e === "新增" ? d(j, {
|
|
181
180
|
key: {
|
|
182
181
|
type: "data",
|
|
183
182
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
@@ -192,7 +191,7 @@ const V = j(), { activeMenuPath: b } = m(V), x = Q(), { structureData: $ } = m(x
|
|
|
192
191
|
...a,
|
|
193
192
|
newId: t
|
|
194
193
|
}, e && t && f.success(e + "成功");
|
|
195
|
-
}) : e === "编辑" ? (console.log("编辑角色", l), d(
|
|
194
|
+
}) : e === "编辑" ? (console.log("编辑角色", l), d(z, {
|
|
196
195
|
id: a.id,
|
|
197
196
|
key: {
|
|
198
197
|
type: "data",
|
|
@@ -205,7 +204,7 @@ const V = j(), { activeMenuPath: b } = m(V), x = Q(), { structureData: $ } = m(x
|
|
|
205
204
|
}
|
|
206
205
|
}, e).then((t) => {
|
|
207
206
|
e && t && f.success(e + "成功"), h.show = !1;
|
|
208
|
-
})) : e === "删除" && d(
|
|
207
|
+
})) : e === "删除" && d(H, {
|
|
209
208
|
id: a.id
|
|
210
209
|
}, e).then((t) => {
|
|
211
210
|
e && t && f.success(e + "成功");
|
|
@@ -227,7 +226,7 @@ const V = j(), { activeMenuPath: b } = m(V), x = Q(), { structureData: $ } = m(x
|
|
|
227
226
|
}, se = () => {
|
|
228
227
|
g.value = {
|
|
229
228
|
...C.value,
|
|
230
|
-
roleAuthority: M(
|
|
229
|
+
roleAuthority: M(y.value)
|
|
231
230
|
// ['a' + authorityIndex]: checkedKeys
|
|
232
231
|
}, T(() => {
|
|
233
232
|
console.log("clickSubmitAuthority", g.value, i.value), A(g.value, "编辑");
|
|
@@ -240,7 +239,7 @@ const V = j(), { activeMenuPath: b } = m(V), x = Q(), { structureData: $ } = m(x
|
|
|
240
239
|
}), ne = ({ isPenultimate: a }, e) => {
|
|
241
240
|
var l, t;
|
|
242
241
|
return console.log("isPenultimate", a, e), ((t = (l = e == null ? void 0 : e.data) == null ? void 0 : l.renderButtons) == null ? void 0 : t.length) > 0 ? "is-penultimate" : "";
|
|
243
|
-
}, v =
|
|
242
|
+
}, v = c(0), oe = async () => {
|
|
244
243
|
var l, t, s, n, o;
|
|
245
244
|
let a;
|
|
246
245
|
const e = await N({
|
|
@@ -251,7 +250,7 @@ const V = j(), { activeMenuPath: b } = m(V), x = Q(), { structureData: $ } = m(x
|
|
|
251
250
|
}
|
|
252
251
|
});
|
|
253
252
|
return ((l = e == null ? void 0 : e.data) == null ? void 0 : l.code) === 200 && (t = e == null ? void 0 : e.data) != null && t.result && ((s = e == null ? void 0 : e.data) == null ? void 0 : s.result.length) > 0 && (a = (o = (n = e == null ? void 0 : e.data.result) == null ? void 0 : n[0]) == null ? void 0 : o.id), a;
|
|
254
|
-
},
|
|
253
|
+
}, y = c([]), ce = c([
|
|
255
254
|
{
|
|
256
255
|
path: "资源管理",
|
|
257
256
|
buttons: ["查询", "新增", "编辑", "删除"]
|
|
@@ -260,10 +259,10 @@ const V = j(), { activeMenuPath: b } = m(V), x = Q(), { structureData: $ } = m(x
|
|
|
260
259
|
path: "资源管理/人员",
|
|
261
260
|
buttons: ["查询", "新增", "编辑", "删除"]
|
|
262
261
|
}
|
|
263
|
-
]),
|
|
262
|
+
]), re = (a, e) => {
|
|
264
263
|
var l;
|
|
265
264
|
a.checkedButtons = e ? (l = a.renderButtons) == null ? void 0 : l.map((t) => t.path) : [], console.log("handleNodeCheckChange", a, e);
|
|
266
|
-
}, u =
|
|
265
|
+
}, u = c([]), ue = (a, e) => {
|
|
267
266
|
var l, t, s;
|
|
268
267
|
e.checkedButtons = a, ((l = e.checkedButtons) == null ? void 0 : l.length) === ((t = e.renderButtons) == null ? void 0 : t.length) ? u.value.push(e.path) : (a == null ? void 0 : a.length) === 0 && (u.value = (s = u.value) == null ? void 0 : s.filter((n) => n !== e.path));
|
|
269
268
|
};
|
|
@@ -273,7 +272,7 @@ B(() => u.value.length, () => {
|
|
|
273
272
|
console.log(112, u.value, a), (l = k.value) == null || l.setCheckedKeys([...u.value]);
|
|
274
273
|
});
|
|
275
274
|
B(() => h.show, (a) => {
|
|
276
|
-
a || (
|
|
275
|
+
a || (y.value = E(y.value));
|
|
277
276
|
});
|
|
278
277
|
const R = I(() => {
|
|
279
278
|
var l;
|
|
@@ -282,16 +281,16 @@ const R = I(() => {
|
|
|
282
281
|
return ((n = (s = t == null ? void 0 : t.key) == null ? void 0 : s.pageKey) == null ? void 0 : n.toUpperCase()) !== "MENU";
|
|
283
282
|
});
|
|
284
283
|
return [...a == null ? void 0 : a.map((t) => {
|
|
285
|
-
var n, o,
|
|
286
|
-
let s = (
|
|
284
|
+
var n, o, p, S;
|
|
285
|
+
let s = (p = (o = (n = t == null ? void 0 : t.value) == null ? void 0 : n.pageData) == null ? void 0 : o.compData) == null ? void 0 : p.filter((r) => (r == null ? void 0 : r.key) === "extraButton" || (r == null ? void 0 : r.key) === "rowButton");
|
|
287
286
|
return s = Array.from(
|
|
288
|
-
new Set(s == null ? void 0 : s.flatMap((
|
|
287
|
+
new Set(s == null ? void 0 : s.flatMap((r) => r.contents.map((_) => _.label)))
|
|
289
288
|
), {
|
|
290
289
|
path: (S = t == null ? void 0 : t.key) == null ? void 0 : S.pageKey,
|
|
291
290
|
buttons: s
|
|
292
291
|
};
|
|
293
292
|
}), ...F.value];
|
|
294
|
-
}), F =
|
|
293
|
+
}), F = c([]), O = (a, e) => {
|
|
295
294
|
if (Array.isArray(a))
|
|
296
295
|
return a == null ? void 0 : a.map((l) => {
|
|
297
296
|
var s, n;
|
|
@@ -333,7 +332,7 @@ B(() => G.value, (a) => {
|
|
|
333
332
|
var e;
|
|
334
333
|
a && (a == null ? void 0 : a.length) > 0 && (i.value = (e = a == null ? void 0 : a[0]) == null ? void 0 : e.compData);
|
|
335
334
|
});
|
|
336
|
-
const
|
|
335
|
+
const fe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
337
336
|
__proto__: null,
|
|
338
337
|
addButtonsToTree: O,
|
|
339
338
|
authorizeDialog: h,
|
|
@@ -348,12 +347,12 @@ const be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
348
347
|
getPageDataAsync: le,
|
|
349
348
|
handleItemDataChange: ee,
|
|
350
349
|
handleNodeBtnChange: ue,
|
|
351
|
-
handleNodeCheckChange:
|
|
350
|
+
handleNodeCheckChange: re,
|
|
352
351
|
handleQueryChange: Y,
|
|
353
352
|
handleSubmitAsync: d,
|
|
354
353
|
isPageDataExist: X,
|
|
355
|
-
menuData:
|
|
356
|
-
menusButtons:
|
|
354
|
+
menuData: y,
|
|
355
|
+
menusButtons: ce,
|
|
357
356
|
pageData: i,
|
|
358
357
|
pageDataFiltered: Z,
|
|
359
358
|
queryFormData: J,
|
|
@@ -365,7 +364,7 @@ const be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
365
364
|
treeRef: k
|
|
366
365
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
367
366
|
export {
|
|
368
|
-
|
|
367
|
+
fe as S,
|
|
369
368
|
h as a,
|
|
370
369
|
oe as g,
|
|
371
370
|
he as t
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-DeUj3yRd.cjs"),a=require("./index-ChLhaUgK.cjs"),r=require("./index-BjjXJSlm.cjs"),o=require("./index-JN1a_LH1.cjs"),s=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),c={class:"role-wrapper"},i=e.defineComponent({__name:"index",setup(d){const t=e.reactive({...r.State});return e.onMounted(async()=>{t.structureId=await o.getActivePageStructureId()}),(l,_)=>(e.openBlock(),e.createElementBlock("div",c,[e.createVNode(n.ssForm,{class:"role-header",rowContents:t.queryFormData,isEnableWrap:!1,isEdit:!0,onChange:t.handleQueryChange},null,8,["rowContents","onChange"]),e.createVNode(a.ssTable,{class:"role-body",itemData:t.pageData,onChange:t.handleItemDataChange},null,8,["itemData","onChange"])]))}}),u=s._export_sfc(i,[["__scopeId","data-v-c1856cfa"]]);exports.default=u;
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { ref as l, watch as b } from "vue";
|
|
2
|
-
import { g as y } from "./
|
|
3
|
-
import { s as
|
|
4
|
-
import { u as
|
|
5
|
-
|
|
6
|
-
const D = g(), { itemData: h } = f(D), c = l(0), i = l([
|
|
2
|
+
import { g as y, s as m } from "./menu-BEvMDEbJ.js";
|
|
3
|
+
import { s as d, h as g } from "./index-DmOEedex.js";
|
|
4
|
+
import { u as D } from "./modelComp-CxFffZnZ.js";
|
|
5
|
+
const f = D(), { itemData: h } = m(f), c = l(0), k = l([
|
|
7
6
|
{
|
|
8
7
|
label: "机构名称",
|
|
9
8
|
value: "",
|
|
10
9
|
name: "deptName"
|
|
11
10
|
}
|
|
12
|
-
]),
|
|
11
|
+
]), C = (e) => {
|
|
13
12
|
console.log("handleQueryChange", e);
|
|
14
|
-
},
|
|
13
|
+
}, s = l([
|
|
15
14
|
{
|
|
16
15
|
key: "extraButton",
|
|
17
16
|
contents: [
|
|
@@ -76,14 +75,14 @@ const D = g(), { itemData: h } = f(D), c = l(0), i = l([
|
|
|
76
75
|
// // ],
|
|
77
76
|
// ]
|
|
78
77
|
}
|
|
79
|
-
]),
|
|
80
|
-
|
|
78
|
+
]), i = (e) => {
|
|
79
|
+
d(e.singleContent, e.buttonName, c.value);
|
|
81
80
|
}, A = (e) => {
|
|
82
81
|
console.log("onDoubleClick", e);
|
|
83
82
|
}, S = (e, t) => {
|
|
84
83
|
console.log("onButtonClick", e, t);
|
|
85
84
|
}, T = async (e) => {
|
|
86
|
-
const t = await
|
|
85
|
+
const t = await g(y, {
|
|
87
86
|
key: {
|
|
88
87
|
type: "data",
|
|
89
88
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
@@ -99,10 +98,10 @@ const D = g(), { itemData: h } = f(D), c = l(0), i = l([
|
|
|
99
98
|
return n == null ? void 0 : n.map((a) => {
|
|
100
99
|
var o;
|
|
101
100
|
if (Array.isArray(a == null ? void 0 : a.tableData)) {
|
|
102
|
-
let
|
|
101
|
+
let r = { id: a.id };
|
|
103
102
|
return (o = a == null ? void 0 : a.tableData) == null || o.forEach((p, u) => {
|
|
104
|
-
|
|
105
|
-
}),
|
|
103
|
+
r[`a${u}`] = p;
|
|
104
|
+
}), r;
|
|
106
105
|
} else
|
|
107
106
|
return {
|
|
108
107
|
...a.tableData,
|
|
@@ -118,7 +117,7 @@ const D = g(), { itemData: h } = f(D), c = l(0), i = l([
|
|
|
118
117
|
contents: [
|
|
119
118
|
{
|
|
120
119
|
comp: "Table",
|
|
121
|
-
compData:
|
|
120
|
+
compData: s.value,
|
|
122
121
|
name: ""
|
|
123
122
|
}
|
|
124
123
|
]
|
|
@@ -127,21 +126,21 @@ const D = g(), { itemData: h } = f(D), c = l(0), i = l([
|
|
|
127
126
|
};
|
|
128
127
|
b(() => h.value, (e) => {
|
|
129
128
|
var t;
|
|
130
|
-
e && (e == null ? void 0 : e.length) > 0 && (
|
|
129
|
+
e && (e == null ? void 0 : e.length) > 0 && (s.value = (t = e == null ? void 0 : e[0]) == null ? void 0 : t.compData);
|
|
131
130
|
});
|
|
132
|
-
const
|
|
131
|
+
const _ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
133
132
|
__proto__: null,
|
|
134
133
|
getPageDataAsync: T,
|
|
135
|
-
handleItemDataChange:
|
|
136
|
-
handleQueryChange:
|
|
134
|
+
handleItemDataChange: i,
|
|
135
|
+
handleQueryChange: C,
|
|
137
136
|
onButtonClick: S,
|
|
138
137
|
onDoubleClick: A,
|
|
139
|
-
pageData:
|
|
140
|
-
queryFormData:
|
|
138
|
+
pageData: s,
|
|
139
|
+
queryFormData: k,
|
|
141
140
|
structureId: c,
|
|
142
141
|
tempPostPageData: B
|
|
143
142
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
144
143
|
export {
|
|
145
|
-
|
|
144
|
+
_ as S,
|
|
146
145
|
B as t
|
|
147
146
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),i=require("./menu-Cj-UKXED.cjs"),m=require("./modelComp-CyktectM.cjs"),f=require("./index-HW8r5PRa.cjs"),b=require("./index-ChLhaUgK.cjs"),C=require("./cloneDeep-C-pGUQKf.cjs"),h=require("./index-DeUj3yRd.cjs"),N=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),S=m.useModelComp(f.pinia),k=b.useUnit(f.pinia),p=i.useMenuState(f.pinia),{menus:V,configMenu:_}=i.storeToRefs(p);t.ref([]);const F=t.computed(()=>{var o,e;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:(e=(o=C.cloneDeep(V.value))==null?void 0:o.map(n=>({...n,menuType:"系统菜单"})))==null?void 0:e.filter(n=>n.title!=="系统管理"&&n.title!=="平台管理")}]}),y=t.ref([]),c=t.ref({}),B=t.ref([{label:"菜单图标:",prop:"menuIcon",type:"inputPopover",value:""},{label:"操作类型:",prop:"operateType",type:"select",contents:[{label:"新增",value:"create"},{label:"编辑",value:"update"},{label:"删除",value:"delete"}],value:""},{label:"操作图标:",prop:"operateIcon",type:"inputPopover",value:""},{label:"图标触发事件:",prop:"trigger",type:"select",contents:[{label:"弹出弹窗",value:"openDialog"}],value:"openDialog"},{label:"配置一:",prop:"dialogConfig",type:"button",value:"弹窗内容"},{label:"配置二:",prop:"contentConfig",type:"button",value:"模块内容"}]),D=({options:o=[],form:e={}})=>{var n;y.value=(n=B.value)==null?void 0:n.map(l=>l.prop==="menu"?{...l,value:e[l==null?void 0:l.prop]}:l.prop==="dialogConfig"||l.prop==="contentConfig"||l.prop==="trigger"?l:{...l,value:e[l==null?void 0:l.prop]})},I=t.ref([{label:"查询"},{label:"重置"}]),q=o=>{},w=o=>o.map(e=>e.childMenus&&e.childMenus.length>0?{...e,value:e==null?void 0:e.title,label:e==null?void 0:e.title,children:w(e.childMenus)}:{...e,value:e==null?void 0:e.title,label:e==null?void 0:e.title}),u=t.reactive({show:!1,title:"菜单配置",width:"40%"}),d=t.ref([]),T=t.ref({}),x=t.ref({}),M=t.ref([]),E=o=>{var e;d.value=(e=o==null?void 0:o.path)==null?void 0:e.split("/"),x.value=o,console.log(5005,o,d.value)},R=async(o,e)=>{var n;d.value=[],k.setSelectTitle([]),p.setConfigMenu(null),T.value=C.cloneDeep(e),o==="修改"&&(D({path:e.path,form:(n=_.value)==null?void 0:n.form}),M.value=await w(e==null?void 0:e.childMenus),await t.nextTick(),u.title=`【${e.title}】菜单配置`,u.show=!0)},O=o=>{c.value=o},$=o=>{var n,l,s,r,a;let e;(n=c.value)!=null&&n.subMenus&&((l=c.value)==null?void 0:l.subMenus.length)>0&&(e=(s=d.value)==null?void 0:s.map(g=>({value:g})),e.unshift({value:(r=T.value)==null?void 0:r.title})),p.setConfigMenu({form:c.value,path:(a=x.value)==null?void 0:a.path,key:o==="弹窗内容"?"dialogConfig":"contentConfig"}),p.setStructureBelong(o==="弹窗内容"?"dialogConfig":"contentConfig"),k.setSelectTitle(e),S.setIsEdit("edit")},H=()=>{console.log("clickSubmitForm",_.value),c.value={},u.show=!1},P=()=>{u.show=!1},j=Object.freeze(Object.defineProperty({__proto__:null,beforeDialogDestroy:P,buttonValue:I,changeTrigger:O,clickNode:E,clickRowButton:R,clickSubmitForm:H,clickTrigger:$,dialogInfo:u,formatFormData:D,handleItemDataChange:q,inputForm:c,pageData:F,renderFormData:y,treeData:M},Symbol.toStringTag,{value:"Module"})),z={class:"menu-module"},K={class:"module-dialog-default"},U={class:"tree-wrap"},W=t.defineComponent({__name:"index",setup(o){const e=t.reactive({...j}),n=t.ref(null),l=i.useMenuState(f.pinia),{configMenu:s}=i.storeToRefs(l);return t.onMounted(()=>{e.formatFormData(s.value),t.nextTick(()=>{var r,a;(a=n.value)==null||a.setCurrentKey((r=s.value)==null?void 0:r.path)})}),(r,a)=>{const g=t.resolveComponent("el-tree"),v=t.resolveComponent("el-button");return t.openBlock(),t.createElementBlock("div",z,[t.createVNode(b.ssTable,{class:"module-table",itemData:e.pageData,onChange:e.handleItemDataChange,onOnButtonClick:e.clickRowButton},null,8,["itemData","onChange","onOnButtonClick"]),t.createVNode(h.ssDialog,{class:"module-dialog",title:e.dialogInfo.title,visible:e.dialogInfo.show,width:e.dialogInfo.width,onBeforeDestroy:e.beforeDialogDestroy},{default:t.withCtx(()=>[t.createElementVNode("div",K,[t.createElementVNode("div",U,[t.createVNode(g,{ref_key:"treeRef",ref:n,data:e.treeData,"expand-on-click-node":!1,"node-key":"path",props:{children:"children",label:"label",path:"path"},"highlight-current":"","default-expand-all":"","check-on-click-leaf":!1,"check-strictly":"",style:{height:"500px","overflow-y":"auto"},onNodeClick:e.clickNode},null,8,["data","onNodeClick"])]),t.createElementVNode("div",null,[t.createVNode(h.ssForm,{rowContents:e.renderFormData,isEnableWrap:!1,isEdit:!0,onChange:e.changeTrigger,onClickTrigger:e.clickTrigger},null,8,["rowContents","onChange","onClickTrigger"])])])]),footer:t.withCtx(()=>[t.createElementVNode("div",null,[t.createVNode(v,{onClick:e.beforeDialogDestroy},{default:t.withCtx(()=>a[0]||(a[0]=[t.createTextVNode("取消")])),_:1,__:[0]},8,["onClick"]),t.createVNode(v,{type:"primary",onClick:e.clickSubmitForm},{default:t.withCtx(()=>a[1]||(a[1]=[t.createTextVNode(" 确认 ")])),_:1,__:[1]},8,["onClick"])])]),_:1},8,["title","visible","width","onBeforeDestroy"])])}}}),A=N._export_sfc(W,[["__scopeId","data-v-11ea4ffa"]]);exports.default=A;
|