ss-component-new 1.1.113 → 1.1.116
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-DLX9HpUG.js +1956 -0
- package/dist/array-tWsmTH5r.cjs +7 -0
- package/dist/{cloneDeep-BfzU0pBe.js → cloneDeep-B2CowBmY.js} +42 -48
- package/dist/cloneDeep-Fj9bqNcO.cjs +1 -0
- package/dist/index-2BSH90QR.cjs +6 -0
- package/dist/{index-BTt24r3U.cjs → index-B2V71oy_.cjs} +1 -1
- package/dist/{index-DxyREQkR.js → index-B5nXV29K.js} +78 -76
- package/dist/index-B6bxf0h2.js +196 -0
- package/dist/{index-COPrDtid.js → index-BEAnS4I-.js} +1 -1
- package/dist/{index-CyQkKXnK.js → index-BGhy_ENi.js} +255 -187
- package/dist/index-BNf8v3E7.cjs +1 -0
- package/dist/index-BXJIxGj9.cjs +1 -0
- package/dist/index-BYNM1Eo-.js +432 -0
- package/dist/index-B_pYEWlS.cjs +6 -0
- package/dist/index-Bo8JGvd0.cjs +1 -0
- package/dist/index-BvvxVAFa.cjs +1 -0
- package/dist/index-C1qnTNzC.cjs +1 -0
- package/dist/index-C86gx6Ye.cjs +1 -0
- package/dist/{index-B4WYIlOz.cjs → index-CbuB7VDV.cjs} +1 -1
- package/dist/{index-B3iQoZwc.js → index-CdRgYGoU.js} +631 -625
- package/dist/{index-BpJeYb4X.js → index-CeJMZbXG.js} +1 -1
- package/dist/index-D0yDjxaf.cjs +1 -0
- package/dist/index-DCRZ9Y1m.js +199 -0
- package/dist/index-DD3Jbedk.cjs +1 -0
- package/dist/index-DH5pTE-1.js +304 -0
- package/dist/index-DQ8UtE2z.js +74 -0
- package/dist/index-DTs391JS.js +208 -0
- package/dist/{index-BMLnfdpX.js → index-DYee8R31.js} +4 -3
- package/dist/{index-BH3F6_ql.js → index-DdiwlYxv.js} +1025 -1121
- package/dist/{index-ChXKNVG8.cjs → index-DjHNYg39.cjs} +1 -1
- package/dist/{index-b_11tfuG.js → index-DmA5-mTS.js} +6 -6
- package/dist/{index-DLartnmY.js → index-M_Td6T9I.js} +1 -1
- package/dist/index-MpVy5A_K.cjs +1 -0
- package/dist/index-ULdYt3Gk.js +138 -0
- package/dist/index-Uak9xh_Z.cjs +1 -0
- package/dist/index-YlTnI4EI.cjs +1 -0
- package/dist/{index-CqJa9o1o.cjs → index-kHFiVhmA.cjs} +1 -1
- package/dist/{index-DWiZqfBA.js → index-vARVx4Lc.js} +4 -4
- package/dist/index.vue_vue_type_style_index_0_scoped_77dec451_lang-BKTdfLNp.cjs +1 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_77dec451_lang-C2CUHQVo.js +7 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-DSLx4cvQ.js +235 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-DlqdNpcl.cjs +1 -0
- package/dist/login-CBjdvGjn.js +47 -0
- package/dist/login-CHZ1VF7_.cjs +1 -0
- package/dist/main-3fUagSVX.cjs +1 -0
- package/dist/{main-DAPxADXM.js → main-7GSU9TqI.js} +25 -24
- package/dist/menu-BnTNA2Lx.cjs +1 -0
- package/dist/menu-DxrO5JEn.js +34 -0
- package/dist/{modelComp-CHWFvhCq.js → modelComp-BsNooORx.js} +1 -1
- package/dist/modelComp-b_KDs0lh.cjs +1 -0
- package/dist/pinia-8zVC1cUT.cjs +11 -0
- package/dist/pinia-DB5lI5eD.js +4723 -0
- package/dist/{request-BK6KCyS9.js → request-3QszTjDN.js} +1 -1
- package/dist/{request-BrHEv9dn.cjs → request-SLgezlvU.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +6 -6
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +1 -1
- package/package.json +3 -3
- package/dist/array-BYRvPg11.cjs +0 -7
- package/dist/array-DyxKeexo.js +0 -1732
- package/dist/cloneDeep-WwDap0fL.cjs +0 -1
- package/dist/index-5dGTUAu_.cjs +0 -1
- package/dist/index-BIRKKGuW.cjs +0 -1
- package/dist/index-BUxzwz5l.cjs +0 -1
- package/dist/index-CBHJLZo4.cjs +0 -1
- package/dist/index-CVBCwf2F.cjs +0 -6
- package/dist/index-CbphQpiC.cjs +0 -1
- package/dist/index-CdEEK8I0.js +0 -408
- package/dist/index-CumtOgAw.cjs +0 -7
- package/dist/index-DVEWSdUo.cjs +0 -1
- package/dist/index-DmoecEm1.js +0 -205
- package/dist/index-DzJuDGl8.cjs +0 -1
- package/dist/index-EIbm0jBZ.js +0 -2707
- package/dist/index-EQOXj03f.cjs +0 -1
- package/dist/index-QWm4yJ7u.js +0 -135
- package/dist/index-smYHb1Ta.js +0 -456
- package/dist/index-uMboxmjq.cjs +0 -6
- package/dist/index.vue_vue_type_style_index_0_scoped_77dec451_lang-CF5e1L_i.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_77dec451_lang-DrStz9iD.js +0 -2
- package/dist/index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-CgrtbAG0.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-CqiRIG3B.js +0 -192
- package/dist/main-DS-YP1Wn.cjs +0 -1
- package/dist/menu-BIINB-0Y.js +0 -1013
- package/dist/menu-B_Az9K_F.cjs +0 -11
- package/dist/modelComp-DY1RniW6.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue");require("./array-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue");require("./array-tWsmTH5r.cjs");require("./index-BXJIxGj9.cjs");const r=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");require("./index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-DlqdNpcl.cjs");require("./index.vue_vue_type_style_index_0_scoped_77dec451_lang-BKTdfLNp.cjs");const u={__name:"index",props:{mode:{type:String,default:"view"},content:{type:String,default:""},jsonContents:{type:Array,default:()=>[]},showButton:{type:Boolean,default:!0}},setup(n){const e=n;return(i,l)=>{const o=t.resolveComponent("router-view");return t.openBlock(),t.createElementBlock("div",null,[t.createVNode(o,{mode:e==null?void 0:e.mode,content:e==null?void 0:e.content,jsonContents:e==null?void 0:e.jsonContents,showButton:e==null?void 0:e.showButton},null,8,["mode","content","jsonContents","showButton"])])}}},c=r._export_sfc(u,[["__scopeId","data-v-885fe329"]]);exports.default=c;
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { ref as k, onMounted as ae, watch as J, createElementBlock as _, openBlock as m, Fragment as Y, renderList as Z, createElementVNode as N, createCommentVNode as M, toDisplayString as G, resolveComponent as F, createVNode as B, withCtx as H, createBlock as U, unref as S, resolveDynamicComponent as oe } from "vue";
|
|
2
|
-
import { m as
|
|
3
|
-
import ce from "./index-
|
|
4
|
-
import { p as O
|
|
5
|
-
import { u as ee } from "./modelComp-
|
|
6
|
-
import {
|
|
7
|
-
import { i as
|
|
8
|
-
import "./
|
|
2
|
+
import { m as re, a as le, b as se } from "./index-DmA5-mTS.js";
|
|
3
|
+
import ce from "./index-CeJMZbXG.js";
|
|
4
|
+
import { p as O } from "./index-DCRZ9Y1m.js";
|
|
5
|
+
import { u as ee } from "./modelComp-BsNooORx.js";
|
|
6
|
+
import { s as R } from "./pinia-DB5lI5eD.js";
|
|
7
|
+
import { i as ue, e as ie, b as X, c as de, g as me, a as he } from "./array-DLX9HpUG.js";
|
|
8
|
+
import { u as te } from "./menu-DxrO5JEn.js";
|
|
9
|
+
import { u as fe, a as ve } from "./index-BYNM1Eo-.js";
|
|
10
|
+
import "./index.vue_vue_type_style_index_0_scoped_77dec451_lang-C2CUHQVo.js";
|
|
9
11
|
import { _ as K } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
-
import { c as P } from "./cloneDeep-
|
|
12
|
+
import { c as P } from "./cloneDeep-B2CowBmY.js";
|
|
11
13
|
const ye = { class: "bread-content" }, _e = ["onClick"], ge = { key: 0 }, Ce = {
|
|
12
14
|
__name: "index",
|
|
13
15
|
props: {
|
|
@@ -32,15 +34,15 @@ const ye = { class: "bread-content" }, _e = ["onClick"], ge = { key: 0 }, Ce = {
|
|
|
32
34
|
y("click", D);
|
|
33
35
|
};
|
|
34
36
|
return (D, w) => (m(), _("div", ye, [
|
|
35
|
-
(m(!0), _(Y, null, Z(p.value, (h,
|
|
36
|
-
key:
|
|
37
|
+
(m(!0), _(Y, null, Z(p.value, (h, f) => (m(), _("div", {
|
|
38
|
+
key: f,
|
|
37
39
|
class: "bread-item"
|
|
38
40
|
}, [
|
|
39
41
|
N("div", {
|
|
40
42
|
class: "bread-title",
|
|
41
43
|
onClick: ($) => g(h)
|
|
42
44
|
}, G(h.value), 9, _e),
|
|
43
|
-
|
|
45
|
+
f !== p.value.length - 1 && Array.isArray(p.value) ? (m(), _("div", ge, G("/"))) : M("", !0)
|
|
44
46
|
]))), 128))
|
|
45
47
|
]));
|
|
46
48
|
}
|
|
@@ -68,32 +70,32 @@ const Ae = { class: "system-wrap" }, we = {
|
|
|
68
70
|
emits: ["change", "contentChange"],
|
|
69
71
|
setup(A, { emit: T }) {
|
|
70
72
|
const e = A, p = T, y = ee(O);
|
|
71
|
-
|
|
72
|
-
const g = k(!0), D = te(), w = k(!0), { itemData: h } = R(y),
|
|
73
|
-
var o,
|
|
73
|
+
fe(O);
|
|
74
|
+
const g = k(!0), D = te(), w = k(!0), { itemData: h } = R(y), f = ve(O), { activeMenuPath: $, activeMenuOpenPaths: Q, menuTriggerType: ne, menus: V } = R(D), { selectIndex: j, selectTitle: d } = R(f), I = k([]), x = k([]), L = (t) => {
|
|
75
|
+
var o, r, a;
|
|
74
76
|
const n = (o = h.value) == null ? void 0 : o.find((c) => c.name === $.value);
|
|
75
|
-
|
|
77
|
+
x.value = (a = (r = n == null ? void 0 : n.compData) == null ? void 0 : r[0]) == null ? void 0 : a.contents, w.value = !0, w.value && (w.value = !1), p("change", {
|
|
76
78
|
wholeValue: I.value,
|
|
77
79
|
editValue: t
|
|
78
80
|
});
|
|
79
81
|
}, W = (t) => {
|
|
80
|
-
var
|
|
82
|
+
var l, s, v;
|
|
81
83
|
const n = P(I.value), o = n == null ? void 0 : n.map((u, i) => (i === (t == null ? void 0 : t.index) && (u.compData = t == null ? void 0 : t.contents), u));
|
|
82
|
-
let
|
|
83
|
-
(s = (
|
|
84
|
+
let r = "";
|
|
85
|
+
(s = (l = P(o)) == null ? void 0 : l.filter((u) => (u == null ? void 0 : u.comp) === "Form")) == null || s.forEach((u) => {
|
|
84
86
|
var i;
|
|
85
87
|
(i = u == null ? void 0 : u.compData) == null || i.forEach((C) => {
|
|
86
|
-
var
|
|
87
|
-
(C == null ? void 0 : C.key) === "formContent" && ((
|
|
88
|
-
E.value !== "" && (
|
|
88
|
+
var b;
|
|
89
|
+
(C == null ? void 0 : C.key) === "formContent" && ((b = C == null ? void 0 : C.contents) == null || b.forEach((E) => {
|
|
90
|
+
E.value !== "" && (r = r === "" ? E == null ? void 0 : E.value : r + "-" + (E == null ? void 0 : E.value));
|
|
89
91
|
}));
|
|
90
92
|
});
|
|
91
93
|
});
|
|
92
94
|
let a = d == null ? void 0 : d.value;
|
|
93
|
-
(a == null ? void 0 : a.length) > 0 ? a[0] = { key: "main", value:
|
|
94
|
-
const c = (
|
|
95
|
+
(a == null ? void 0 : a.length) > 0 ? a[0] = { key: "main", value: r } : (Array.isArray(a) || (a = []), a.push({ key: "main", value: r })), f.setSelectTitle(a), g.value = !1, I.value = o;
|
|
96
|
+
const c = (v = h.value) == null ? void 0 : v.map((u, i) => {
|
|
95
97
|
var C;
|
|
96
|
-
return u.name === $.value && (u.compData = (C = u.compData) == null ? void 0 : C.map((
|
|
98
|
+
return u.name === $.value && (u.compData = (C = u.compData) == null ? void 0 : C.map((b) => ((b == null ? void 0 : b.key) === "groupContents" && (b.contents = I.value), b))), u;
|
|
97
99
|
});
|
|
98
100
|
y.setItemData(c), w.value && (w.value = !1), p("contentChange", {
|
|
99
101
|
wholeContent: h.value
|
|
@@ -101,69 +103,69 @@ const Ae = { class: "system-wrap" }, we = {
|
|
|
101
103
|
}, q = (t) => {
|
|
102
104
|
var n, o;
|
|
103
105
|
if ((t == null ? void 0 : t.key) === "main" || d.value.length === 1)
|
|
104
|
-
|
|
106
|
+
f.setSelectIndex(""), f.setSelectMenu(""), f.setSelectTitle((n = d.value) == null ? void 0 : n[0]);
|
|
105
107
|
else {
|
|
106
|
-
const
|
|
108
|
+
const r = [];
|
|
107
109
|
let a = -1;
|
|
108
|
-
(o = d.value) == null || o.forEach((c,
|
|
109
|
-
(c == null ? void 0 : c.key) === (t == null ? void 0 : t.key) && (a =
|
|
110
|
-
}),
|
|
110
|
+
(o = d.value) == null || o.forEach((c, l) => {
|
|
111
|
+
(c == null ? void 0 : c.key) === (t == null ? void 0 : t.key) && (a = l), (a === -1 || a >= l) && r.push(c);
|
|
112
|
+
}), f.setSelectTitle(r), f.setSelectMenu(t == null ? void 0 : t.key);
|
|
111
113
|
}
|
|
112
114
|
};
|
|
113
115
|
J(
|
|
114
116
|
() => h.value,
|
|
115
117
|
() => {
|
|
116
|
-
var n, o,
|
|
118
|
+
var n, o, r, a, c, l, s, v;
|
|
117
119
|
if (!h.value || ((n = h.value) == null ? void 0 : n.length) === 0 || !g.value) return;
|
|
118
120
|
let t = null;
|
|
119
121
|
if (!$.value && Array.isArray(h.value))
|
|
120
|
-
t = (
|
|
122
|
+
t = (r = (o = P(h.value)) == null ? void 0 : o.filter((u) => (u == null ? void 0 : u.comp) === "Group")) == null ? void 0 : r[0], D.setActiveMenuPath(t == null ? void 0 : t.name);
|
|
121
123
|
else if (Array.isArray(h.value)) {
|
|
122
124
|
const u = (a = P(h.value)) == null ? void 0 : a.filter((i) => (i == null ? void 0 : i.comp) === "Group");
|
|
123
125
|
t = u == null ? void 0 : u.find((i) => i.name === $.value);
|
|
124
126
|
}
|
|
125
|
-
|
|
127
|
+
x.value = (l = (c = t == null ? void 0 : t.compData) == null ? void 0 : c[0]) == null ? void 0 : l.contents, I.value = (v = (s = t == null ? void 0 : t.compData) == null ? void 0 : s[0]) == null ? void 0 : v.contents;
|
|
126
128
|
},
|
|
127
129
|
{ deep: !0, immediate: !0 }
|
|
128
130
|
), J(() => $.value, (t) => {
|
|
129
|
-
var n, o,
|
|
131
|
+
var n, o, r, a, c, l;
|
|
130
132
|
if (t) {
|
|
131
|
-
const s = (n = P(h.value)) == null ? void 0 : n.find((
|
|
133
|
+
const s = (n = P(h.value)) == null ? void 0 : n.find((v) => v.name === t);
|
|
132
134
|
if (t && s) {
|
|
133
|
-
|
|
134
|
-
const
|
|
135
|
-
ke(
|
|
135
|
+
x.value = (r = (o = s == null ? void 0 : s.compData) == null ? void 0 : o[0]) == null ? void 0 : r.contents, I.value = (c = (a = s == null ? void 0 : s.compData) == null ? void 0 : a[0]) == null ? void 0 : c.contents;
|
|
136
|
+
const v = (l = x.value) == null ? void 0 : l.filter((u) => u.comp === "Form");
|
|
137
|
+
ke(v);
|
|
136
138
|
} else
|
|
137
|
-
|
|
138
|
-
|
|
139
|
+
x.value = [], I.value = [];
|
|
140
|
+
f.setSelectTitle([]), f.setSelectIndex(""), f.setSelectMenu("");
|
|
139
141
|
}
|
|
140
142
|
}, {
|
|
141
143
|
immediate: !0
|
|
142
144
|
}), J(
|
|
143
145
|
() => [e == null ? void 0 : e.content, e == null ? void 0 : e.jsonContents],
|
|
144
146
|
() => {
|
|
145
|
-
var
|
|
146
|
-
if (((
|
|
147
|
+
var r, a, c, l;
|
|
148
|
+
if (((r = e == null ? void 0 : e.jsonContents) == null ? void 0 : r.length) > 0) {
|
|
147
149
|
y.setOriginalData(e == null ? void 0 : e.jsonContents), y.setItemData(e == null ? void 0 : e.jsonContents);
|
|
148
150
|
return;
|
|
149
151
|
}
|
|
150
152
|
if (!(e != null && e.content) || ((a = e == null ? void 0 : e.content) == null ? void 0 : a.length) === 0) return;
|
|
151
153
|
g.value = !0;
|
|
152
154
|
let t = [], n = [];
|
|
153
|
-
|
|
154
|
-
|
|
155
|
+
f.setSelectTitle([]), f.setSelectIndex(""), f.setSelectMenu(""), (l = (c = e == null ? void 0 : e.content) == null ? void 0 : c.filter((s) => s !== "")) == null || l.forEach((s) => {
|
|
156
|
+
ue(s) ? n.push(ie(s)) : X(s) ? n.push(X(s)) : n.push(de(s));
|
|
155
157
|
}), t = n == null ? void 0 : n[0];
|
|
156
158
|
const o = Array.isArray(t) && (t == null ? void 0 : t.find((s) => {
|
|
157
|
-
var
|
|
158
|
-
return ((
|
|
159
|
+
var v;
|
|
160
|
+
return ((v = s.comp) == null ? void 0 : v.toUpperCase()) === "MENU";
|
|
159
161
|
}));
|
|
160
162
|
D.setRawMenu(o ?? {}), y.setOriginalData(t), y.setItemData(t);
|
|
161
163
|
},
|
|
162
164
|
{ deep: !0, immediate: !0 }
|
|
163
165
|
);
|
|
164
|
-
const z = (t) =>
|
|
166
|
+
const z = (t) => me(t);
|
|
165
167
|
return (t, n) => {
|
|
166
|
-
const o = F("el-aside"),
|
|
168
|
+
const o = F("el-aside"), r = F("router-view"), a = F("el-main"), c = F("el-container");
|
|
167
169
|
return m(), _("div", Ae, [
|
|
168
170
|
B(c, null, {
|
|
169
171
|
default: H(() => [
|
|
@@ -175,10 +177,10 @@ const Ae = { class: "system-wrap" }, we = {
|
|
|
175
177
|
}),
|
|
176
178
|
B(a, null, {
|
|
177
179
|
default: H(() => {
|
|
178
|
-
var
|
|
180
|
+
var l, s, v, u;
|
|
179
181
|
return [
|
|
180
|
-
t.$route.path === "/" && ((
|
|
181
|
-
Array.isArray(S(d)) && ((s = S(d)) == null ? void 0 : s.length) > 1 || Array.isArray(S(d)) && !((
|
|
182
|
+
t.$route.path === "/" && ((l = x.value) == null ? void 0 : l.length) > 0 ? (m(), _("div", we, [
|
|
183
|
+
Array.isArray(S(d)) && ((s = S(d)) == null ? void 0 : s.length) > 1 || Array.isArray(S(d)) && !((v = S(d)) != null && v.find((i) => (i == null ? void 0 : i.key) === "main")) && ((u = S(d)) == null ? void 0 : u.length) === 1 || !Array.isArray(S(d)) && S(d).key !== "main" ? (m(), _("div", Se, [
|
|
182
184
|
(m(), U(pe, {
|
|
183
185
|
key: S(d),
|
|
184
186
|
breadArray: S(d),
|
|
@@ -186,7 +188,7 @@ const Ae = { class: "system-wrap" }, we = {
|
|
|
186
188
|
}, null, 8, ["breadArray"]))
|
|
187
189
|
])) : M("", !0),
|
|
188
190
|
N("div", null, [
|
|
189
|
-
(m(!0), _(Y, null, Z(
|
|
191
|
+
(m(!0), _(Y, null, Z(x.value, (i, C) => (m(), _("div", {
|
|
190
192
|
class: "item-content",
|
|
191
193
|
key: C
|
|
192
194
|
}, [
|
|
@@ -201,7 +203,7 @@ const Ae = { class: "system-wrap" }, we = {
|
|
|
201
203
|
}, null, 40, ["itemData", "childItemData", "index"])) : M("", !0)
|
|
202
204
|
]))), 128))
|
|
203
205
|
])
|
|
204
|
-
])) : (m(), U(
|
|
206
|
+
])) : (m(), U(r, { key: 1 }))
|
|
205
207
|
];
|
|
206
208
|
}),
|
|
207
209
|
_: 1
|
|
@@ -212,7 +214,7 @@ const Ae = { class: "system-wrap" }, we = {
|
|
|
212
214
|
]);
|
|
213
215
|
};
|
|
214
216
|
}
|
|
215
|
-
},
|
|
217
|
+
}, xe = /* @__PURE__ */ K(Ie, [["__scopeId", "data-v-497d8814"]]), be = { class: "add-model-content" }, Me = {
|
|
216
218
|
key: 0,
|
|
217
219
|
class: "model-import-data"
|
|
218
220
|
}, Te = { class: "import-button" }, $e = { key: 0 }, je = {
|
|
@@ -243,13 +245,13 @@ const Ae = { class: "system-wrap" }, we = {
|
|
|
243
245
|
},
|
|
244
246
|
emits: ["change", "contentChange"],
|
|
245
247
|
setup(A, { emit: T }) {
|
|
246
|
-
const e = A, p = T, y = k([]), g = k([]), D = k([]), w = k(0), h = ee(O),
|
|
248
|
+
const e = A, p = T, y = k([]), g = k([]), D = k([]), w = k(0), h = ee(O), f = te(O), { itemData: $, originalData: Q } = R(h), { activeMenuPath: ne } = R(f), V = k(null), j = k(0), d = k([]), I = k(""), x = k(0), L = (n) => {
|
|
247
249
|
p("contentChange", n);
|
|
248
250
|
}, W = (n) => {
|
|
249
|
-
var
|
|
250
|
-
const o = (
|
|
251
|
+
var r;
|
|
252
|
+
const o = (r = P(n == null ? void 0 : n.wholeValue)) == null ? void 0 : r.map((a) => {
|
|
251
253
|
var c;
|
|
252
|
-
return (a == null ? void 0 : a.comp) === "Form" && (a.compData = (c = a.compData) == null ? void 0 : c.map((
|
|
254
|
+
return (a == null ? void 0 : a.comp) === "Form" && (a.compData = (c = a.compData) == null ? void 0 : c.map((l) => ((l == null ? void 0 : l.key) === "formContent" && (l.contents = he(l == null ? void 0 : l.contents)), l))), a;
|
|
253
255
|
});
|
|
254
256
|
p("change", {
|
|
255
257
|
originalContents: Q.value,
|
|
@@ -261,7 +263,7 @@ const Ae = { class: "system-wrap" }, we = {
|
|
|
261
263
|
J(
|
|
262
264
|
() => g.value,
|
|
263
265
|
() => {
|
|
264
|
-
|
|
266
|
+
x.value === g.value.length && g.value.length !== 0 && (y.value = g.value);
|
|
265
267
|
},
|
|
266
268
|
{ deep: !0, immediate: !0 }
|
|
267
269
|
);
|
|
@@ -270,19 +272,19 @@ const Ae = { class: "system-wrap" }, we = {
|
|
|
270
272
|
}, z = async (n) => {
|
|
271
273
|
const o = n.target.files;
|
|
272
274
|
if (!o) return;
|
|
273
|
-
new FileReader(), y.value = [], g.value = [],
|
|
274
|
-
const
|
|
275
|
-
const
|
|
276
|
-
|
|
275
|
+
new FileReader(), y.value = [], g.value = [], x.value = o.length;
|
|
276
|
+
const r = Array.from(o).map(async (a) => await new Promise((c) => {
|
|
277
|
+
const l = new FileReader();
|
|
278
|
+
l.onload = (s) => {
|
|
277
279
|
try {
|
|
278
280
|
g.value.push(s.target.result), d.value = t(s.target.result), j.value++;
|
|
279
|
-
} catch (
|
|
280
|
-
console.error("解析失败:",
|
|
281
|
+
} catch (v) {
|
|
282
|
+
console.error("解析失败:", v);
|
|
281
283
|
return;
|
|
282
284
|
}
|
|
283
|
-
},
|
|
285
|
+
}, l.onerror = () => c(`读取 ${a.name} 失败`), l.readAsText(a);
|
|
284
286
|
}));
|
|
285
|
-
await Promise.all(
|
|
287
|
+
await Promise.all(r);
|
|
286
288
|
};
|
|
287
289
|
J(
|
|
288
290
|
() => [e == null ? void 0 : e.content, e == null ? void 0 : e.jsonContents],
|
|
@@ -303,21 +305,21 @@ const Ae = { class: "system-wrap" }, we = {
|
|
|
303
305
|
o = o.replace(/(\w+)\s*:/g, "$1:"), o = o.replace(/\r\n/g, "").replace(/\n/g, "").replace(/\t/g, "").replace(/\s+/g, " ").trim(), o = o.replace(/,\s*([}\]])/g, "$1"), o = o.replace(/:(\s*)([^"{}\[\],\s]+)(\s*)([,}])/g, ": $2$4");
|
|
304
306
|
try {
|
|
305
307
|
return JSON.parse(o);
|
|
306
|
-
} catch (
|
|
308
|
+
} catch (r) {
|
|
307
309
|
try {
|
|
308
310
|
const c = new Function(`return ${o}`)();
|
|
309
311
|
if (Array.isArray(c) || typeof c == "object")
|
|
310
312
|
return c;
|
|
311
|
-
throw new Error(`解析结果不是有效的数组或对象: ${
|
|
313
|
+
throw new Error(`解析结果不是有效的数组或对象: ${r}`);
|
|
312
314
|
} catch (a) {
|
|
313
315
|
throw new Error(`无法解析JSON: ${a.message}`);
|
|
314
316
|
}
|
|
315
317
|
}
|
|
316
318
|
};
|
|
317
319
|
return (n, o) => {
|
|
318
|
-
var
|
|
319
|
-
return m(), _("div",
|
|
320
|
-
((
|
|
320
|
+
var r;
|
|
321
|
+
return m(), _("div", be, [
|
|
322
|
+
((r = e == null ? void 0 : e.jsonContents) == null ? void 0 : r.length) === 0 && (e != null && e.showButton) ? (m(), _("div", Me, [
|
|
321
323
|
N("div", Te, [
|
|
322
324
|
N("input", {
|
|
323
325
|
type: "file",
|
|
@@ -337,20 +339,20 @@ const Ae = { class: "system-wrap" }, we = {
|
|
|
337
339
|
])) : M("", !0),
|
|
338
340
|
(e == null ? void 0 : e.mode) === "edit" ? (m(), _("div", je, [
|
|
339
341
|
N("div", Ee, [
|
|
340
|
-
B(
|
|
342
|
+
B(re)
|
|
341
343
|
]),
|
|
342
344
|
(m(), _("div", {
|
|
343
345
|
class: "model-show",
|
|
344
346
|
key: w.value
|
|
345
347
|
}, [
|
|
346
|
-
B(
|
|
348
|
+
B(le)
|
|
347
349
|
])),
|
|
348
350
|
N("div", Ne, [
|
|
349
351
|
B(se)
|
|
350
352
|
])
|
|
351
353
|
])) : M("", !0),
|
|
352
354
|
(e == null ? void 0 : e.mode) === "view" ? (m(), _("div", Be, [
|
|
353
|
-
(m(), U(
|
|
355
|
+
(m(), U(xe, {
|
|
354
356
|
content: y.value,
|
|
355
357
|
onChange: W,
|
|
356
358
|
jsonContents: D.value,
|
|
@@ -361,7 +363,7 @@ const Ae = { class: "system-wrap" }, we = {
|
|
|
361
363
|
]);
|
|
362
364
|
};
|
|
363
365
|
}
|
|
364
|
-
},
|
|
366
|
+
}, Ke = /* @__PURE__ */ K(Je, [["__scopeId", "data-v-77dec451"]]);
|
|
365
367
|
export {
|
|
366
|
-
|
|
368
|
+
Ke as default
|
|
367
369
|
};
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import { ref as y, defineComponent as f, reactive as D, onMounted as h, createElementBlock as C, openBlock as v, createVNode as g } from "vue";
|
|
2
|
+
import { s as _ } from "./index-CdRgYGoU.js";
|
|
3
|
+
import { s as k } from "./index-BYNM1Eo-.js";
|
|
4
|
+
import { g as w } from "./index-BEAnS4I-.js";
|
|
5
|
+
import { s as S, h as I } from "./index-DTs391JS.js";
|
|
6
|
+
import { useRoute as x } from "vue-router";
|
|
7
|
+
import { u as A } from "./modelComp-BsNooORx.js";
|
|
8
|
+
import { s as b } from "./pinia-DB5lI5eD.js";
|
|
9
|
+
import { u as B } from "./menu-DxrO5JEn.js";
|
|
10
|
+
import { c as T } from "./cloneDeep-B2CowBmY.js";
|
|
11
|
+
import { _ as M } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
+
const P = y([
|
|
13
|
+
{
|
|
14
|
+
label: "机构名称",
|
|
15
|
+
value: "",
|
|
16
|
+
name: "deptName"
|
|
17
|
+
}
|
|
18
|
+
]), E = (t) => {
|
|
19
|
+
console.log("handleQueryChange", t);
|
|
20
|
+
}, c = y([
|
|
21
|
+
{
|
|
22
|
+
key: "extraButton",
|
|
23
|
+
contents: [
|
|
24
|
+
{
|
|
25
|
+
label: "新增"
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
key: "rowButton",
|
|
31
|
+
contents: [
|
|
32
|
+
{
|
|
33
|
+
label: "编辑"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
label: "删除"
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
key: "tableIndex",
|
|
42
|
+
contents: []
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
key: "header",
|
|
46
|
+
contents: [
|
|
47
|
+
{
|
|
48
|
+
label: "机构名称",
|
|
49
|
+
prop: "deptName"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
label: "机构类型",
|
|
53
|
+
prop: "deptType",
|
|
54
|
+
formType: "Select",
|
|
55
|
+
options: [
|
|
56
|
+
{
|
|
57
|
+
label: "集团",
|
|
58
|
+
value: "集团"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
label: "公司",
|
|
62
|
+
value: "公司"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
label: "部门",
|
|
66
|
+
value: "部门"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
label: "区域",
|
|
70
|
+
value: "区域"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
label: "组",
|
|
74
|
+
value: "组"
|
|
75
|
+
}
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
label: "机构状态",
|
|
80
|
+
formType: "Radio",
|
|
81
|
+
prop: "deptStatus",
|
|
82
|
+
options: [
|
|
83
|
+
{
|
|
84
|
+
label: "启用",
|
|
85
|
+
value: "启用"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
label: "禁用",
|
|
89
|
+
value: "禁用"
|
|
90
|
+
}
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
label: "操作"
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
key: "tableContents",
|
|
100
|
+
contents: [
|
|
101
|
+
// [
|
|
102
|
+
// "数设科技",
|
|
103
|
+
// "集团",
|
|
104
|
+
// '启动'
|
|
105
|
+
// ], [
|
|
106
|
+
// "开发部",
|
|
107
|
+
// "部门",
|
|
108
|
+
// '启动'
|
|
109
|
+
// ], [
|
|
110
|
+
// "国核",
|
|
111
|
+
// "组",
|
|
112
|
+
// '启动'
|
|
113
|
+
// ],
|
|
114
|
+
]
|
|
115
|
+
}
|
|
116
|
+
]), N = (t) => {
|
|
117
|
+
var e;
|
|
118
|
+
c.value = (e = c.value) == null ? void 0 : e.map((o) => o.key === "tableContents" ? {
|
|
119
|
+
...o,
|
|
120
|
+
contents: t.content
|
|
121
|
+
} : o), console.log("handleItemDataChange", t), S(t.singleContent, t.buttonName);
|
|
122
|
+
}, j = (t) => {
|
|
123
|
+
console.log("onDoubleClick", t);
|
|
124
|
+
}, F = (t, e) => {
|
|
125
|
+
console.log("onButtonClick", t, e);
|
|
126
|
+
}, O = async (t) => {
|
|
127
|
+
const e = await I(w, {
|
|
128
|
+
key: {
|
|
129
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
130
|
+
pageKey: t
|
|
131
|
+
}
|
|
132
|
+
}), o = e == null ? void 0 : e.map((a) => {
|
|
133
|
+
var n;
|
|
134
|
+
return {
|
|
135
|
+
id: a.id,
|
|
136
|
+
rowData: (n = a == null ? void 0 : a.value) == null ? void 0 : n.rowData
|
|
137
|
+
};
|
|
138
|
+
});
|
|
139
|
+
return console.log("tempRes", o), o == null ? void 0 : o.map((a) => {
|
|
140
|
+
var n;
|
|
141
|
+
if (Array.isArray(a == null ? void 0 : a.rowData)) {
|
|
142
|
+
let l = { id: a.id };
|
|
143
|
+
return (n = a == null ? void 0 : a.rowData) == null || n.forEach((u, s) => {
|
|
144
|
+
l[`a${s}`] = u;
|
|
145
|
+
}), l;
|
|
146
|
+
} else
|
|
147
|
+
return {
|
|
148
|
+
...a.rowData,
|
|
149
|
+
id: a.id
|
|
150
|
+
};
|
|
151
|
+
});
|
|
152
|
+
}, Q = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
153
|
+
__proto__: null,
|
|
154
|
+
getPageDataAsync: O,
|
|
155
|
+
handleItemDataChange: N,
|
|
156
|
+
handleQueryChange: E,
|
|
157
|
+
onButtonClick: F,
|
|
158
|
+
onDoubleClick: j,
|
|
159
|
+
pageData: c,
|
|
160
|
+
queryFormData: P
|
|
161
|
+
}, Symbol.toStringTag, { value: "Module" })), R = { class: "role-wrapper" }, q = /* @__PURE__ */ f({
|
|
162
|
+
__name: "index",
|
|
163
|
+
setup(t) {
|
|
164
|
+
const e = D({ ...Q }), o = x(), a = A(), { itemData: n } = b(a), l = B(), { menus: u, activeMenuPath: s } = b(l);
|
|
165
|
+
return h(() => {
|
|
166
|
+
const p = T(n.value), m = {
|
|
167
|
+
comp: "Group",
|
|
168
|
+
name: o.path,
|
|
169
|
+
pageData: e.pageData
|
|
170
|
+
};
|
|
171
|
+
a.setItemData([...p, m]), s.value && e.getPageDataAsync(s.value).then((i) => {
|
|
172
|
+
var d;
|
|
173
|
+
e.pageData = (d = e.pageData) == null ? void 0 : d.map((r) => r.key === "tableContents" ? {
|
|
174
|
+
...r,
|
|
175
|
+
contents: i
|
|
176
|
+
} : r), console.log(111, e.pageData);
|
|
177
|
+
});
|
|
178
|
+
}), (p, m) => (v(), C("div", R, [
|
|
179
|
+
g(_, {
|
|
180
|
+
class: "role-header",
|
|
181
|
+
rowContents: e.queryFormData,
|
|
182
|
+
isEnableWrap: !1,
|
|
183
|
+
isEdit: !0,
|
|
184
|
+
onChange: e.handleQueryChange
|
|
185
|
+
}, null, 8, ["rowContents", "onChange"]),
|
|
186
|
+
g(k, {
|
|
187
|
+
class: "role-body",
|
|
188
|
+
itemData: e.pageData,
|
|
189
|
+
onChange: e.handleItemDataChange
|
|
190
|
+
}, null, 8, ["itemData", "onChange"])
|
|
191
|
+
]));
|
|
192
|
+
}
|
|
193
|
+
}), Y = /* @__PURE__ */ M(q, [["__scopeId", "data-v-14a14a71"]]);
|
|
194
|
+
export {
|
|
195
|
+
Y as default
|
|
196
|
+
};
|