ss-component-new 1.1.264 → 1.1.265
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-De6v-7c8.js → array-BDeF0W9f.js} +2 -2
- package/dist/{array-D3xioWc3.cjs → array-C4J0REBC.cjs} +1 -1
- package/dist/{cloneDeep-fJrTDzM4.cjs → cloneDeep-BBm-q9zg.cjs} +1 -1
- package/dist/{cloneDeep-B2ByQP-n.js → cloneDeep-DkmyPpbh.js} +1 -1
- package/dist/{index-BCLA1nYG.cjs → index-3nmV5exu.cjs} +1 -1
- package/dist/{index-CCxjdgET.js → index-6vvw6VlW.js} +9 -9
- package/dist/{index-0TcXp8mH.cjs → index-9WpI_7dE.cjs} +1 -1
- package/dist/{index-BLC8ydIr.js → index-AwoY3kNB.js} +6 -6
- package/dist/{index-Dn9ZzQw9.js → index-B-9mTnND.js} +3 -3
- package/dist/{index-BjJJGDlr.cjs → index-B-9v-OGS.cjs} +1 -1
- package/dist/{index-SYAZCe_x.js → index-B3U--N-N.js} +10 -10
- package/dist/{index-hRwcFNhM.cjs → index-B3zMRbQE.cjs} +1 -1
- package/dist/{index-_rARCgTs.cjs → index-B5yp0MJ0.cjs} +1 -1
- package/dist/{index-CiPPPWoz.js → index-B89EQikK.js} +147 -134
- package/dist/{index-GG9AAJSa.js → index-BFiwTK0r.js} +4 -4
- package/dist/{index-CmiwbsGe.js → index-BUy_hb9R.js} +1 -1
- package/dist/{index-BRkvuCrS.cjs → index-BWcD-AvF.cjs} +1 -1
- package/dist/index-BWsxt1qe.cjs +1 -0
- package/dist/{index-Ca-dN5Cs.cjs → index-BXAN_9-v.cjs} +1 -1
- package/dist/index-BYxgGA_C.cjs +1 -0
- package/dist/{index-DSxBLvAT.cjs → index-Ba3v5Pnx.cjs} +1 -1
- package/dist/{index-EmmO21uK.js → index-Ba9vckoo.js} +4 -4
- package/dist/{index-ERfBi-RP.cjs → index-BaSmybMX.cjs} +1 -1
- package/dist/{index-CMMc21DE.js → index-Bexirrje.js} +7 -7
- package/dist/{index-CAMfVOTJ.js → index-BfMZs6GX.js} +3 -3
- package/dist/{index-Ctjc6Jcq.cjs → index-BihDAtWi.cjs} +1 -1
- package/dist/{index-ByD0b4gQ.js → index-BiiTIWm9.js} +1 -1
- package/dist/{index-GtWRkXjP.js → index-BjBbQixi.js} +4 -4
- package/dist/{index-CvvmJuAB.cjs → index-BjFQDrdw.cjs} +1 -1
- package/dist/{index-CACJUJNK.js → index-BsLnsDdu.js} +3 -3
- package/dist/{index-C7u1PeVA.cjs → index-BvRyV8Vl.cjs} +1 -1
- package/dist/{index-DymcJtj4.cjs → index-C2rdVtQX.cjs} +1 -1
- package/dist/{index-BRdg4IiT.js → index-C7nCSuLr.js} +7 -7
- package/dist/{index-Dcpfhw1L.cjs → index-CE_c0ycI.cjs} +1 -1
- package/dist/{index-DDPAMlSG.cjs → index-CMH3PNYp.cjs} +1 -1
- package/dist/{index-CophBMbH.cjs → index-CcG-LN0V.cjs} +1 -1
- package/dist/{index-BRkdObg7.cjs → index-Cfn3u5HC.cjs} +1 -1
- package/dist/{index-CKwpRhPM.js → index-CiUEPvSb.js} +3 -3
- package/dist/index-CjK23p7z.cjs +1 -0
- package/dist/{index-CGmFed4r.cjs → index-D1RRSpG-.cjs} +1 -1
- package/dist/{index-CINFGcYo.cjs → index-D5QHaKXY.cjs} +1 -1
- package/dist/{index-CUmxELcB.js → index-DAV1YiOv.js} +1 -1
- package/dist/{index-BzfDFTVJ.cjs → index-DIx9Mkjr.cjs} +1 -1
- package/dist/{index-CZ2mVLUS.js → index-DPPFsHho.js} +4 -4
- package/dist/{index-DEv2DOlH.cjs → index-DPTRfubW.cjs} +1 -1
- package/dist/{index-ClFJDxkW.js → index-DSitYT7k.js} +145 -141
- package/dist/{index-DfKXP07X.js → index-DV-_jtbC.js} +9 -9
- package/dist/{index-u6rAowW4.cjs → index-DbEBmWwO.cjs} +1 -1
- package/dist/{index-BwYoB3zY.js → index-Dbc4BP6w.js} +1 -1
- package/dist/{index-DCGzAKWd.js → index-DkUKAxT5.js} +4 -4
- package/dist/{index-DXd7EQps.js → index-DmicKsqe.js} +5 -5
- package/dist/{index-BDIP3GvE.js → index-DnhMKtPL.js} +5 -5
- package/dist/{index-B4jC_LC5.cjs → index-DqotuDvT.cjs} +1 -1
- package/dist/{index-B6yeLC4B.cjs → index-DqxwBkoC.cjs} +1 -1
- package/dist/{index-qofx0IRr.js → index-Dtt3rH52.js} +9 -9
- package/dist/{index-Pzfiy_pl.js → index-Nm1gBK8p.js} +1 -1
- package/dist/{index-CwB7I565.js → index-W0a8zgHe.js} +1 -1
- package/dist/{index-sVlKvvQZ.cjs → index-WTHHFOGK.cjs} +1 -1
- package/dist/{index-DMCUh24w.js → index-YQ-VX6hF.js} +5 -5
- package/dist/{index-C4k05bGp.js → index-_d23aLDP.js} +8 -8
- package/dist/{index--0pthhoG.js → index-e4nur009.js} +6 -6
- package/dist/{index-08aCULjy.cjs → index-i3SfTzb-.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-HIAfOHHq.cjs → index.vue_vue_type_script_setup_true_lang-CGNnqRgg.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-CwRRfUhq.js → index.vue_vue_type_script_setup_true_lang-WT1bk-Ac.js} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_11a5120d_lang-dyax8Dv5.js → index.vue_vue_type_style_index_0_scoped_11a5120d_lang-CW0J8V9s.js} +6 -6
- package/dist/{index.vue_vue_type_style_index_0_scoped_11a5120d_lang-Be6r7R3U.cjs → index.vue_vue_type_style_index_0_scoped_11a5120d_lang-DMNBfALW.cjs} +1 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-BSyTEUOh.js +662 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-BtkSTHBG.cjs +1 -0
- package/dist/login-DQOJjuKW.js +101 -0
- package/dist/login-HZtElTta.cjs +1 -0
- package/dist/{main-rSkhpXGR.cjs → main-DUx-SCAV.cjs} +1 -1
- package/dist/{main-DWoD0Vdp.js → main-oajXOTpn.js} +7 -7
- package/dist/{menu-cQfDaGL1.cjs → menu-B2CHVN4m.cjs} +2 -2
- package/dist/{menu-CFLAcuA-.js → menu-DEplmGob.js} +3 -3
- package/dist/{modelComp-B7C56fRv.js → modelComp-BY5JHRXA.js} +1 -1
- package/dist/{modelComp-4oAkv2ok.cjs → modelComp-DMKA6wLp.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +7 -7
- package/dist/ss-component3.cjs +1 -1
- package/dist/ss-component3.js +1 -1
- package/package.json +1 -1
- package/dist/index-BYUhFGra.cjs +0 -1
- package/dist/index-cj-WHGF0.cjs +0 -1
- package/dist/index-sFDoFhGY.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-DUY9SJBE.js +0 -662
- package/dist/index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-DYSNP688.cjs +0 -1
- package/dist/login-Wrj9nSOa.cjs +0 -1
- package/dist/login-o8x8Nxaf.js +0 -89
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import { s as
|
|
3
|
-
import { u as
|
|
4
|
-
import { p as
|
|
5
|
-
import { a as
|
|
6
|
-
import "./index-
|
|
7
|
-
import { h as
|
|
1
|
+
import { computed as w, ref as n, reactive as x, nextTick as K, defineComponent as W, onMounted as $, resolveComponent as F, createElementBlock as q, openBlock as G, createElementVNode as b, createVNode as d, withCtx as h, createTextVNode as B } from "vue";
|
|
2
|
+
import { s as N, E as R, u as P, g as J, c as L, b as Q, d as X } from "./menu-DEplmGob.js";
|
|
3
|
+
import { u as Y } from "./modelComp-BY5JHRXA.js";
|
|
4
|
+
import { p as m } from "./index-BUy_hb9R.js";
|
|
5
|
+
import { a as Z, s as ee } from "./index-C7nCSuLr.js";
|
|
6
|
+
import "./index-6vvw6VlW.js";
|
|
7
|
+
import { h as te } from "./index-e4nur009.js";
|
|
8
8
|
import "./crypto-BRyGpjGR.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
|
|
9
|
+
import { f as ae } from "./login-DQOJjuKW.js";
|
|
10
|
+
import { c as I } from "./cloneDeep-DkmyPpbh.js";
|
|
11
|
+
import { s as le, a as oe } from "./index-DnhMKtPL.js";
|
|
12
|
+
import { _ as ne } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
const E = Y(m), O = Z(m), v = P(m), { menus: A, configMenu: D, activeMenuPath: T, cacheStructures: se } = N(v), re = w(() => {
|
|
13
14
|
var t, e;
|
|
14
15
|
return [
|
|
15
16
|
{
|
|
@@ -63,28 +64,28 @@ const N = Q(h), R = X(h), d = K(h), { menus: E, configMenu: le, activeMenuPath:
|
|
|
63
64
|
},
|
|
64
65
|
{
|
|
65
66
|
key: "tableContents",
|
|
66
|
-
contents: (e = (t =
|
|
67
|
-
...
|
|
67
|
+
contents: (e = (t = I(A.value)) == null ? void 0 : t.map((a) => ({
|
|
68
|
+
...a,
|
|
68
69
|
menuType: "系统菜单"
|
|
69
|
-
}))) == null ? void 0 : e.filter((
|
|
70
|
+
}))) == null ? void 0 : e.filter((a) => a.title !== "系统管理" && a.title !== "平台管理")
|
|
70
71
|
}
|
|
71
72
|
];
|
|
72
|
-
}),
|
|
73
|
+
}), y = n([]), _ = n([
|
|
74
|
+
{
|
|
75
|
+
// label: "新增",
|
|
76
|
+
label: "新建"
|
|
77
|
+
}
|
|
78
|
+
]), ue = w(() => [
|
|
73
79
|
{
|
|
74
80
|
key: "extraButton",
|
|
75
|
-
contents:
|
|
76
|
-
{
|
|
77
|
-
label: "新增"
|
|
78
|
-
// label: "新建",
|
|
79
|
-
}
|
|
80
|
-
]
|
|
81
|
+
contents: _.value
|
|
81
82
|
},
|
|
82
83
|
{
|
|
83
84
|
key: "rowButton",
|
|
84
85
|
contents: [
|
|
85
86
|
{
|
|
86
|
-
label: "编辑"
|
|
87
|
-
|
|
87
|
+
// label: "编辑",
|
|
88
|
+
label: "修改"
|
|
88
89
|
},
|
|
89
90
|
{
|
|
90
91
|
label: "删除"
|
|
@@ -153,9 +154,9 @@ const N = Q(h), R = X(h), d = K(h), { menus: E, configMenu: le, activeMenuPath:
|
|
|
153
154
|
},
|
|
154
155
|
{
|
|
155
156
|
key: "tableContents",
|
|
156
|
-
contents:
|
|
157
|
+
contents: y.value
|
|
157
158
|
}
|
|
158
|
-
]),
|
|
159
|
+
]), H = n([]), g = n({}), ce = n({}), ie = n([
|
|
159
160
|
// {
|
|
160
161
|
// label: "配置菜单:",
|
|
161
162
|
// prop: 'menu',
|
|
@@ -229,160 +230,172 @@ const N = Q(h), R = X(h), d = K(h), { menus: E, configMenu: le, activeMenuPath:
|
|
|
229
230
|
type: "button",
|
|
230
231
|
value: "生成模块结构"
|
|
231
232
|
}
|
|
232
|
-
]),
|
|
233
|
+
]), V = (t) => {
|
|
233
234
|
var e;
|
|
234
|
-
|
|
235
|
-
...
|
|
235
|
+
H.value = (e = ie.value) == null ? void 0 : e.map((a) => a.prop === "menu" ? {
|
|
236
|
+
...a,
|
|
236
237
|
// contents: options,
|
|
237
|
-
value: t == null ? void 0 : t[
|
|
238
|
-
} :
|
|
239
|
-
...
|
|
240
|
-
value: t == null ? void 0 : t[
|
|
238
|
+
value: t == null ? void 0 : t[a == null ? void 0 : a.prop]
|
|
239
|
+
} : a.prop === "dialogConfig" || a.prop === "contentConfig" || a.prop === "trigger" ? a : {
|
|
240
|
+
...a,
|
|
241
|
+
value: t == null ? void 0 : t[a == null ? void 0 : a.prop]
|
|
241
242
|
});
|
|
242
|
-
},
|
|
243
|
+
}, pe = n([
|
|
243
244
|
{
|
|
244
245
|
label: "查询"
|
|
245
246
|
},
|
|
246
247
|
{
|
|
247
248
|
label: "重置"
|
|
248
249
|
}
|
|
249
|
-
]),
|
|
250
|
-
|
|
251
|
-
},
|
|
250
|
+
]), ge = async (t) => {
|
|
251
|
+
console.log(12356, t);
|
|
252
|
+
}, j = (t) => t.map((e) => e.childMenus && e.childMenus.length > 0 ? {
|
|
252
253
|
...e,
|
|
253
254
|
value: e == null ? void 0 : e.title,
|
|
254
255
|
label: e == null ? void 0 : e.title,
|
|
255
|
-
children:
|
|
256
|
+
children: j(e.childMenus)
|
|
256
257
|
} : {
|
|
257
258
|
...e,
|
|
258
259
|
value: e == null ? void 0 : e.title,
|
|
259
260
|
label: e == null ? void 0 : e.title
|
|
260
|
-
}),
|
|
261
|
+
}), f = x({
|
|
261
262
|
show: !1,
|
|
262
263
|
title: "菜单配置",
|
|
263
264
|
width: "30%"
|
|
264
|
-
}),
|
|
265
|
+
}), M = n([]), p = n({}), c = n(null), z = w(() => {
|
|
265
266
|
var t;
|
|
266
|
-
return (t = A
|
|
267
|
-
}),
|
|
267
|
+
return (t = j(A.value)) == null ? void 0 : t.filter((e) => e.title !== "系统管理" && e.title !== "平台管理");
|
|
268
|
+
}), ve = (t) => {
|
|
268
269
|
var e;
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
}, de = (t) => {
|
|
270
|
+
c.value = {
|
|
271
|
+
...t,
|
|
272
|
+
rootNode: ae(z.value, t.path)
|
|
273
|
+
}, (t == null ? void 0 : t.level) === 0 ? _.value.splice(0) : (_.value = [{ label: "新建" }], M.value = (e = t == null ? void 0 : t.path) == null ? void 0 : e.split("/")), console.log(345, c.value), k(t);
|
|
274
|
+
}, C = n(""), de = async (t, e) => {
|
|
275
|
+
var a, o;
|
|
276
|
+
if (!c.value) return R.warning("请先选择菜单");
|
|
277
|
+
switch (C.value = t, M.value = [], E.setSubmitCurStructure(!1), p.value = I(e), t) {
|
|
278
|
+
case "新建":
|
|
279
|
+
O.setSelectTitle([]), await v.setConfigMenu(null);
|
|
280
|
+
break;
|
|
281
|
+
case "修改":
|
|
282
|
+
console.log("修改", t, p.value), await v.setConfigMenu(p.value), V(p.value);
|
|
283
|
+
break;
|
|
284
|
+
case "删除":
|
|
285
|
+
await U(p.value, t);
|
|
286
|
+
break;
|
|
287
|
+
}
|
|
288
|
+
await K(), f.title = `【${t === "新建" ? (a = c.value) == null ? void 0 : a.path : (o = p.value) == null ? void 0 : o.path}】菜单配置`, f.show = !0;
|
|
289
|
+
}, fe = async (t) => {
|
|
274
290
|
var e;
|
|
275
|
-
|
|
276
|
-
...
|
|
277
|
-
path: (e =
|
|
291
|
+
g.value = t, await v.setConfigMenu({
|
|
292
|
+
...g.value,
|
|
293
|
+
path: (e = c.value) == null ? void 0 : e.path
|
|
278
294
|
});
|
|
279
|
-
},
|
|
280
|
-
var
|
|
281
|
-
|
|
295
|
+
}, be = n(null), he = async (t) => {
|
|
296
|
+
var o, s, r, l, i;
|
|
297
|
+
v.setButtonTriggerType(t === "弹窗结构" ? "dialogConfig" : "contentConfig");
|
|
282
298
|
let e;
|
|
283
|
-
(
|
|
299
|
+
(o = g.value) != null && o.subMenus && ((s = g.value) == null ? void 0 : s.subMenus.length) > 0 && (e = (r = M.value) == null ? void 0 : r.map((u) => ({
|
|
284
300
|
value: u
|
|
285
301
|
})), e.unshift({
|
|
286
|
-
value: (
|
|
302
|
+
value: (l = p.value) == null ? void 0 : l.title
|
|
287
303
|
}));
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
}, w = async (t) => {
|
|
297
|
-
var l, a, r, n, o, c;
|
|
298
|
-
const e = await q({
|
|
304
|
+
let a;
|
|
305
|
+
C.value === "新建" ? a = {
|
|
306
|
+
...g.value,
|
|
307
|
+
path: (i = c.value) == null ? void 0 : i.path
|
|
308
|
+
} : C.value === "修改" && (a = D.value), await v.setConfigMenu(a), O.setSelectTitle(e), E.setIsEdit("edit");
|
|
309
|
+
}, k = async (t) => {
|
|
310
|
+
var a, o, s, r, l, i;
|
|
311
|
+
const e = await J({
|
|
299
312
|
key: {
|
|
300
313
|
type: "menuConfigData",
|
|
301
314
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
302
|
-
pageKey:
|
|
315
|
+
pageKey: T.value + "/" + (t == null ? void 0 : t.path),
|
|
303
316
|
tableId: ""
|
|
304
317
|
}
|
|
305
318
|
});
|
|
306
|
-
((
|
|
307
|
-
var
|
|
319
|
+
((a = e == null ? void 0 : e.data) == null ? void 0 : a.code) === 200 && (o = e.data) != null && o.result && (y.value = ((r = (s = e.data) == null ? void 0 : s.result) == null ? void 0 : r.length) > 0 ? (i = (l = e.data) == null ? void 0 : l.result) == null ? void 0 : i.map((u) => {
|
|
320
|
+
var S;
|
|
308
321
|
return {
|
|
309
322
|
id: u == null ? void 0 : u.id,
|
|
310
|
-
...(
|
|
323
|
+
...(S = u == null ? void 0 : u.value) == null ? void 0 : S.tableData
|
|
311
324
|
};
|
|
312
|
-
}) : [], console.log(123,
|
|
313
|
-
},
|
|
314
|
-
var
|
|
315
|
-
let
|
|
316
|
-
e === "新增" ? (
|
|
325
|
+
}) : [], console.log(123, y.value));
|
|
326
|
+
}, U = async (t, e) => {
|
|
327
|
+
var s, r;
|
|
328
|
+
let a, o;
|
|
329
|
+
e === "新增" || e === "新建" ? (a = {
|
|
317
330
|
key: {
|
|
318
331
|
type: "menuConfigData",
|
|
319
332
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
320
|
-
pageKey:
|
|
333
|
+
pageKey: T.value + "/" + ((s = c.value) == null ? void 0 : s.path),
|
|
321
334
|
tableId: ""
|
|
322
335
|
},
|
|
323
336
|
value: {
|
|
324
337
|
tableData: t
|
|
325
338
|
}
|
|
326
|
-
},
|
|
339
|
+
}, o = L) : e === "编辑" || e === "修改" ? (console.log(890, t), a = {
|
|
327
340
|
id: t == null ? void 0 : t.id,
|
|
328
341
|
key: {
|
|
329
342
|
type: "menuConfigData",
|
|
330
343
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
331
|
-
pageKey:
|
|
344
|
+
pageKey: T.value + "/" + ((r = c.value) == null ? void 0 : r.path),
|
|
332
345
|
tableId: ""
|
|
333
346
|
},
|
|
334
347
|
value: {
|
|
335
348
|
tableData: t
|
|
336
349
|
}
|
|
337
|
-
},
|
|
350
|
+
}, o = Q) : e === "删除" && (a = {
|
|
338
351
|
id: t.id
|
|
339
|
-
},
|
|
340
|
-
|
|
352
|
+
}, o = X), te(o, a, e).then((l) => {
|
|
353
|
+
(e === "新增" || e === "新建") && y.value.push({
|
|
341
354
|
...t,
|
|
342
|
-
|
|
343
|
-
}
|
|
355
|
+
id: l
|
|
356
|
+
}), e && l && R.success(e + "成功"), k(c.value);
|
|
344
357
|
});
|
|
345
|
-
},
|
|
346
|
-
const t =
|
|
347
|
-
console.log("clickSubmitForm",
|
|
348
|
-
},
|
|
349
|
-
|
|
350
|
-
},
|
|
358
|
+
}, ye = async () => {
|
|
359
|
+
const t = I(se.value);
|
|
360
|
+
console.log("clickSubmitForm", D.value, t), await U(D.value, C.value), g.value = {}, f.show = !1, v.setCacheStructures([]), await k(c.value);
|
|
361
|
+
}, Ce = () => {
|
|
362
|
+
f.show = !1;
|
|
363
|
+
}, me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
351
364
|
__proto__: null,
|
|
352
|
-
beforeDialogDestroy:
|
|
353
|
-
buttonValue:
|
|
354
|
-
changeTrigger:
|
|
355
|
-
changedRow:
|
|
356
|
-
clickNode:
|
|
357
|
-
clickRowButton:
|
|
358
|
-
clickSubmitForm:
|
|
359
|
-
clickTrigger:
|
|
360
|
-
dialogInfo:
|
|
361
|
-
formatFormData:
|
|
362
|
-
getTableDataAsync:
|
|
363
|
-
handleItemDataChange:
|
|
364
|
-
inputForm:
|
|
365
|
-
menuPageData:
|
|
366
|
-
operatingForm:
|
|
367
|
-
pageData:
|
|
368
|
-
renderFormData:
|
|
369
|
-
treeData:
|
|
370
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
365
|
+
beforeDialogDestroy: Ce,
|
|
366
|
+
buttonValue: pe,
|
|
367
|
+
changeTrigger: fe,
|
|
368
|
+
changedRow: ce,
|
|
369
|
+
clickNode: ve,
|
|
370
|
+
clickRowButton: de,
|
|
371
|
+
clickSubmitForm: ye,
|
|
372
|
+
clickTrigger: he,
|
|
373
|
+
dialogInfo: f,
|
|
374
|
+
formatFormData: V,
|
|
375
|
+
getTableDataAsync: k,
|
|
376
|
+
handleItemDataChange: ge,
|
|
377
|
+
inputForm: g,
|
|
378
|
+
menuPageData: ue,
|
|
379
|
+
operatingForm: be,
|
|
380
|
+
pageData: re,
|
|
381
|
+
renderFormData: H,
|
|
382
|
+
treeData: z
|
|
383
|
+
}, Symbol.toStringTag, { value: "Module" })), ke = { class: "menu-module" }, De = { class: "tree-wrap" }, Te = { class: "table-wrap" }, _e = { class: "module-dialog-default" }, we = /* @__PURE__ */ W({
|
|
371
384
|
__name: "index",
|
|
372
385
|
setup(t) {
|
|
373
|
-
const e =
|
|
374
|
-
return
|
|
375
|
-
e.formatFormData(
|
|
376
|
-
var
|
|
377
|
-
(
|
|
386
|
+
const e = x({ ...me }), a = n(null), o = P(m), { configMenu: s } = N(o);
|
|
387
|
+
return $(() => {
|
|
388
|
+
e.formatFormData(s.value), console.log(9099, s.value), K(() => {
|
|
389
|
+
var r, l;
|
|
390
|
+
(l = a.value) == null || l.setCurrentKey((r = s.value) == null ? void 0 : r.path);
|
|
378
391
|
});
|
|
379
|
-
}), (
|
|
380
|
-
const
|
|
381
|
-
return
|
|
382
|
-
|
|
383
|
-
|
|
392
|
+
}), (r, l) => {
|
|
393
|
+
const i = F("el-tree"), u = F("el-button");
|
|
394
|
+
return G(), q("div", ke, [
|
|
395
|
+
b("div", De, [
|
|
396
|
+
d(i, {
|
|
384
397
|
ref_key: "treeRef",
|
|
385
|
-
ref:
|
|
398
|
+
ref: a,
|
|
386
399
|
data: e.treeData,
|
|
387
400
|
"expand-on-click-node": !1,
|
|
388
401
|
"node-key": "path",
|
|
@@ -394,8 +407,8 @@ const N = Q(h), R = X(h), d = K(h), { menus: E, configMenu: le, activeMenuPath:
|
|
|
394
407
|
onNodeClick: e.clickNode
|
|
395
408
|
}, null, 8, ["data", "onNodeClick"])
|
|
396
409
|
]),
|
|
397
|
-
|
|
398
|
-
|
|
410
|
+
b("div", Te, [
|
|
411
|
+
d(ee, {
|
|
399
412
|
itemData: e.menuPageData,
|
|
400
413
|
changedContent: e.changedRow,
|
|
401
414
|
operatingForm: e.operatingForm,
|
|
@@ -405,16 +418,16 @@ const N = Q(h), R = X(h), d = K(h), { menus: E, configMenu: le, activeMenuPath:
|
|
|
405
418
|
onOnButtonClick: e.clickRowButton
|
|
406
419
|
}, null, 8, ["itemData", "changedContent", "operatingForm", "onOnFormChange", "onChange", "onClickTrigger", "onOnButtonClick"])
|
|
407
420
|
]),
|
|
408
|
-
|
|
421
|
+
d(le, {
|
|
409
422
|
class: "module-dialog",
|
|
410
423
|
title: e.dialogInfo.title,
|
|
411
424
|
visible: e.dialogInfo.show,
|
|
412
425
|
width: e.dialogInfo.width,
|
|
413
426
|
onBeforeDestroy: e.beforeDialogDestroy
|
|
414
427
|
}, {
|
|
415
|
-
default:
|
|
416
|
-
|
|
417
|
-
|
|
428
|
+
default: h(() => [
|
|
429
|
+
b("div", _e, [
|
|
430
|
+
d(oe, {
|
|
418
431
|
rowContents: e.renderFormData,
|
|
419
432
|
isEnableWrap: !1,
|
|
420
433
|
isEdit: !0,
|
|
@@ -423,23 +436,23 @@ const N = Q(h), R = X(h), d = K(h), { menus: E, configMenu: le, activeMenuPath:
|
|
|
423
436
|
}, null, 8, ["rowContents", "onChange", "onClickTrigger"])
|
|
424
437
|
])
|
|
425
438
|
]),
|
|
426
|
-
footer:
|
|
427
|
-
|
|
428
|
-
|
|
439
|
+
footer: h(() => [
|
|
440
|
+
b("div", null, [
|
|
441
|
+
d(u, {
|
|
429
442
|
onClick: e.beforeDialogDestroy
|
|
430
443
|
}, {
|
|
431
|
-
default:
|
|
432
|
-
|
|
444
|
+
default: h(() => l[0] || (l[0] = [
|
|
445
|
+
B("取消")
|
|
433
446
|
])),
|
|
434
447
|
_: 1,
|
|
435
448
|
__: [0]
|
|
436
449
|
}, 8, ["onClick"]),
|
|
437
|
-
|
|
450
|
+
d(u, {
|
|
438
451
|
type: "primary",
|
|
439
452
|
onClick: e.clickSubmitForm
|
|
440
453
|
}, {
|
|
441
|
-
default:
|
|
442
|
-
|
|
454
|
+
default: h(() => l[1] || (l[1] = [
|
|
455
|
+
B(" 确认 ")
|
|
443
456
|
])),
|
|
444
457
|
_: 1,
|
|
445
458
|
__: [1]
|
|
@@ -451,7 +464,7 @@ const N = Q(h), R = X(h), d = K(h), { menus: E, configMenu: le, activeMenuPath:
|
|
|
451
464
|
]);
|
|
452
465
|
};
|
|
453
466
|
}
|
|
454
|
-
}),
|
|
467
|
+
}), Ae = /* @__PURE__ */ ne(we, [["__scopeId", "data-v-712949e2"]]);
|
|
455
468
|
export {
|
|
456
|
-
|
|
469
|
+
Ae as default
|
|
457
470
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as $, computed as F, ref as y, watch as P, createElementBlock as E, openBlock as b, createVNode as v, createElementVNode as j, withCtx as c, createTextVNode as T, toDisplayString as B, resolveComponent as k, createBlock as U, Fragment as V, renderList as z, normalizeStyle as R } from "vue";
|
|
2
|
-
import { _ as q } from "./index.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { d as H, u as L } from "./index-
|
|
4
|
-
import { E as N } from "./menu-
|
|
2
|
+
import { _ as q } from "./index.vue_vue_type_script_setup_true_lang-WT1bk-Ac.js";
|
|
3
|
+
import { d as H, u as L } from "./index-DAV1YiOv.js";
|
|
4
|
+
import { E as N } from "./menu-DEplmGob.js";
|
|
5
5
|
import { _ as O } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
-
import { S as M } from "./index-
|
|
6
|
+
import { S as M } from "./index-DnhMKtPL.js";
|
|
7
7
|
import { S as x } from "./index-BHtNKL1L.js";
|
|
8
8
|
const W = { class: "avatar-model-wrap" }, D = /* @__PURE__ */ $({
|
|
9
9
|
__name: "index",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as A } from "./menu-
|
|
1
|
+
import { h as A } from "./menu-DEplmGob.js";
|
|
2
2
|
const w = /"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/, O = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/, $ = /^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;
|
|
3
3
|
function h(r, t) {
|
|
4
4
|
if (r === "__proto__" || r === "constructor" && t && typeof t == "object" && "prototype" in t) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),f=require("./menu-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),f=require("./menu-B2CHVN4m.cjs"),x=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),S=e.defineComponent({__name:"menuItem",props:{menuList:{type:Array,default:()=>[]}},emits:["clickMenu","openMenu","closeMenu"],setup(c,{emit:u}){const l=u,s=n=>{l("clickMenu",n)},a=n=>{l("openMenu",n)},r=n=>{l("closeMenu",n)};return e.onMounted(()=>{}),(n,k)=>{const p=e.resolveComponent("MenuItem",!0),d=e.resolveComponent("el-sub-menu"),m=e.resolveComponent("el-menu-item");return e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.menuList,t=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.show&&t.children&&t.children.length>0?(e.openBlock(),e.createBlock(d,{index:t.path,key:t.path},{title:e.withCtx(()=>[e.renderSlot(n.$slots,"title",{menu:t})]),default:e.withCtx(()=>[e.createVNode(p,{menuList:t.children,onClickMenu:s,onOpenMenu:a,onCloseMenu:r},e.createSlots({_:2},[e.renderList(n.$slots,(h,i)=>({name:i,fn:e.withCtx(_=>[e.renderSlot(n.$slots,i,e.mergeProps({ref_for:!0},_))])}))]),1032,["menuList"])]),_:2},1032,["index"])):t.show?(e.openBlock(),e.createBlock(m,{index:t.path,key:t.path,onClick:h=>s(t)},{title:e.withCtx(()=>[e.renderSlot(n.$slots,"title",{menu:t})]),_:2},1032,["index","onClick"])):e.createCommentVNode("",!0)],64))),256)}}}),w=e.defineComponent({__name:"index",props:{menuList:{type:Array,default:()=>[]},mode:{type:String,default:"vertical"}},emits:["clickMenu","openMenu","closeMenu"],setup(c,{emit:u}){const l=f.useMenuState(),{activeMenuPath:s,activeMenuOpenPaths:a}=f.storeToRefs(l),r=u,n=t=>{r("clickMenu",t)},k=t=>{r("openMenu",t)},p=t=>{r("closeMenu",t)},d=e.computed(()=>s.value),m=e.computed(()=>a.value);return(t,h)=>{const i=e.resolveComponent("el-sub-menu"),_=e.resolveComponent("el-menu-item"),C=e.resolveComponent("el-menu");return e.openBlock(),e.createBlock(C,{class:"menu-wrap",mode:c.mode,"default-active":d.value,"default-openeds":m.value,"unique-opened":!0,"collapse-transition":!1,"popper-offset":12,onOpen:k,onClose:p},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.menuList,o=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[o.show&&o.children&&o.children.length>0?(e.openBlock(),e.createBlock(i,{index:o.path,key:o.path},{title:e.withCtx(()=>[e.renderSlot(t.$slots,"title",{menu:o},void 0,!0)]),default:e.withCtx(()=>[e.createVNode(S,{menuList:o.children,onClickMenu:n},e.createSlots({_:2},[e.renderList(t.$slots,(v,M)=>({name:M,fn:e.withCtx(B=>[e.renderSlot(t.$slots,M,e.mergeProps({ref_for:!0},B),void 0,!0)])}))]),1032,["menuList"])]),_:2},1032,["index"])):o.show?(e.openBlock(),e.createBlock(_,{index:o.path,key:o.path,onClick:v=>n(o)},{title:e.withCtx(()=>[e.renderSlot(t.$slots,"title",{menu:o},void 0,!0)]),_:2},1032,["index","onClick"])):e.createCommentVNode("",!0)],64))),256))]),_:3},8,["mode","default-active","default-openeds"])}}}),g=x._export_sfc(w,[["__scopeId","data-v-04f811b6"]]);exports.default=g;
|