ss-component-new 1.1.821 → 1.1.823
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/{OrbitControls-D6pgin7s.js → OrbitControls-Cm4Xs_Bq.js} +1 -1
- package/dist/{OrbitControls-Ff5ikkUQ.cjs → OrbitControls-D-XDZGf-.cjs} +1 -1
- package/dist/{STLLoader-BNh7D2zV.cjs → STLLoader-BxpEhvEg.cjs} +161 -161
- package/dist/{STLLoader-LGKv5i3H.js → STLLoader-DofhZbOw.js} +522 -593
- package/dist/{array-D1hKYLwI.cjs → array-Bfmx0w6P.cjs} +2 -2
- package/dist/{array-C60T9pDZ.js → array-DbAuNWGt.js} +1 -1
- package/dist/{iconfont-v9CcCMwF.js → iconfont-DQodgJo8.js} +73 -75
- package/dist/iconfont-Di4uXnX1.cjs +1 -0
- package/dist/icons/svg/editTable.svg +1 -1
- package/dist/icons/svg/export.svg +1 -0
- package/dist/icons/svg/model.svg +1 -0
- package/dist/icons/svg/three.svg +1 -0
- package/dist/index-1i-XlS2m.js +101 -0
- package/dist/{index-BdsJiFeW.cjs → index-6jSC3unU.cjs} +1 -1
- package/dist/{index-2kzGjuzu.js → index-6zbHinQ6.js} +10 -9
- package/dist/index-B-oe2x1V.cjs +109 -0
- package/dist/index-B-qent3l.cjs +1 -0
- package/dist/{index-CukZ8eDZ.js → index-BBo52W9F.js} +4 -4
- package/dist/index-BOev8isw.cjs +21 -0
- package/dist/index-BQgnYD51.js +6492 -0
- package/dist/{index-owcnOlVq.js → index-BYW-ix_Q.js} +5 -5
- package/dist/{index-4_M1SpeV.js → index-Bi1gr72d.js} +14 -14
- package/dist/{index-DnVaHi8q.js → index-BmHmnXS9.js} +7 -7
- package/dist/index-BoS30LXH.cjs +1 -0
- package/dist/index-BuBMi9JA.cjs +1 -0
- package/dist/{index-Zi9xLtwj.js → index-BvE05H-i.js} +2 -2
- package/dist/index-BwpOMKef.cjs +1 -0
- package/dist/index-C18ZPRC7.cjs +1 -0
- package/dist/{index-HVJSfh2g.js → index-CJx2DcDb.js} +21 -19
- package/dist/{index-B3cUSGXB.js → index-CL59qQ_W.js} +9 -8
- package/dist/{index-DDsJpzfR.js → index-CLdN0W98.js} +47 -47
- package/dist/index-CPP7L10q.cjs +1 -0
- package/dist/index-CSWIBSmo.cjs +1 -0
- package/dist/{index-DEobyz7r.js → index-CTgZZ96L.js} +6 -5
- package/dist/{index-WXpPDsev.js → index-CZ1ui4mT.js} +1 -1
- package/dist/index-CfQvGqaX.cjs +1 -0
- package/dist/index-CgJYAzeA.cjs +1 -0
- package/dist/{index-Cuj-fGNO.cjs → index-ChZHGw_N.cjs} +1 -1
- package/dist/index-ChtmIuBu.js +29771 -0
- package/dist/index-CjFcaJcL.cjs +1 -0
- package/dist/index-CjTmkzBO.js +24 -0
- package/dist/{index-Dtw4WkUo.cjs → index-CngO0AUc.cjs} +1 -1
- package/dist/index-CqCPdyGu.js +1248 -0
- package/dist/index-Cr6pWv0l.cjs +1 -0
- package/dist/{index-Cw95lvvp.js → index-D8Msszln.js} +223 -223
- package/dist/index-DDvUG6fk.js +22 -0
- package/dist/{index-CdMrhxHS.js → index-DMlIMlyC.js} +10 -10
- package/dist/{index-3Cdyqd1B.cjs → index-DOBeGYzT.cjs} +1 -1
- package/dist/index-DP0k43fj.cjs +1 -0
- package/dist/index-DTxccgVM.cjs +1 -0
- package/dist/{index-JAJeIBYE.cjs → index-DVAGljX0.cjs} +1 -1
- package/dist/{index-B5Vi6RBj.cjs → index-DVCrYVKw.cjs} +1 -1
- package/dist/{index-CY2iphpd.cjs → index-DbniLh9G.cjs} +1 -1
- package/dist/index-Dj_ofPeK.cjs +1 -0
- package/dist/{index-DtogzZej.js → index-DocnYz5P.js} +1 -1
- package/dist/index-DrL7vroa.js +319 -0
- package/dist/index-Dt2McMki.js +13668 -0
- package/dist/{index-Cphx1eY1.js → index-Gba1Qfcc.js} +7 -8
- package/dist/{index-DMb9Vu-7.js → index-IUkCD4R_.js} +1 -1
- package/dist/{index-DAyzDsjs.js → index-K6BRW_Bw.js} +1 -1
- package/dist/{index-DzM8zZqe.js → index-OH9t-y2p.js} +4 -4
- package/dist/index-PNDdZKYG.cjs +1 -0
- package/dist/{index-Dn04IPFM.js → index-QETLKFyV.js} +10 -10
- package/dist/{index-BWHtpT9o.cjs → index-RgTvyK54.cjs} +1 -1
- package/dist/{index-CF_0RdqV.cjs → index-dukFqRog.cjs} +1 -1
- package/dist/{index-C9Boo2Cw.cjs → index-dyoOdMKX.cjs} +1 -1
- package/dist/index-f9bwREQl.cjs +1 -0
- package/dist/{index-Dxoxm0Cc.js → index-mmWAqzR5.js} +25 -25
- package/dist/index-rPc9VS0S.cjs +1 -0
- package/dist/index-tPamnhR2.js +236 -0
- package/dist/{index-H3kf9EQv.js → index-tX2Hs05F.js} +11 -10
- package/dist/{index-DEU-pXeW.js → index-uvns6W6E.js} +1838 -1812
- package/dist/index-weauvEnW.cjs +4 -0
- package/dist/{index-B8xEed7C.cjs → index-wlnPb2aB.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-iyZtrhDf.js → index.vue_vue_type_script_setup_true_lang-C4G6mB7R.js} +28 -28
- package/dist/{index.vue_vue_type_script_setup_true_lang-CaYQQb8M.cjs → index.vue_vue_type_script_setup_true_lang-CWi4UVPF.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-qefZ9E5G.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CtN9Ij0Y.js} +53 -23
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CTcahF4Z.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-mQIxU0SD.cjs} +90 -90
- package/dist/{index.vue_vue_type_style_index_0_scoped_6bfd62db_lang-Cxjh1E1z.js → index.vue_vue_type_style_index_0_scoped_1966237d_lang-D3xcEtDT.js} +6488 -6474
- package/dist/{index.vue_vue_type_style_index_0_scoped_6bfd62db_lang-0eNHRdYw.cjs → index.vue_vue_type_style_index_0_scoped_1966237d_lang-DwIFJsxs.cjs} +14 -14
- package/dist/{index.vue_vue_type_style_index_0_scoped_86d2b6b8_lang-kymzIBO8.js → index.vue_vue_type_style_index_0_scoped_86d2b6b8_lang-D5CTJUDi.js} +17 -17
- package/dist/{index.vue_vue_type_style_index_0_scoped_86d2b6b8_lang-GlR2V0TC.cjs → index.vue_vue_type_style_index_0_scoped_86d2b6b8_lang-VPQBXOPW.cjs} +1 -1
- package/dist/index.vue_vue_type_style_index_1_lang-DraQDAAw.cjs +32 -0
- package/dist/index.vue_vue_type_style_index_1_lang-hffXwR3x.js +7028 -0
- package/dist/isUndefined-4Qg9wncf.js +84 -0
- package/dist/isUndefined-BEt4O79g.cjs +1 -0
- package/dist/{main-C6I42yaU.js → main-CBCk94h5.js} +30 -29
- package/dist/main-DO_PN7jt.cjs +1 -0
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +11 -11
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +12 -12
- package/dist/threeModel-GKSAzHfe.cjs +1 -0
- package/dist/{threeModel-BEt5OVCP.js → threeModel-RJwJMtfW.js} +91 -92
- package/dist/{threePreview-BUZRvBRx.js → threePreview-BSqdALPK.js} +3 -3
- package/dist/{threePreview-Dyzqu5s7.cjs → threePreview-CKvbwCiX.cjs} +1 -1
- package/dist/threeSceneView-BVbVe_Et.js +1277 -0
- package/dist/threeSceneView-KvCERteS.cjs +5 -0
- package/dist/{threeViewerHost-IhSFkCeD.js → threeViewerHost-AuhfL2Cn.js} +55 -57
- package/dist/threeViewerHost-D0pu5wk5.cjs +1 -0
- package/package.json +1 -1
- package/public/icons/svg/editTable.svg +1 -1
- package/public/icons/svg/export.svg +1 -0
- package/public/icons/svg/model.svg +1 -0
- package/public/icons/svg/three.svg +1 -0
- package/dist/animationData-B2T3Oamw.js +0 -108
- package/dist/animationData-Db_9HBoM.cjs +0 -1
- package/dist/iconfont-CZj6ltAs.cjs +0 -1
- package/dist/index-2KKrCkl8.cjs +0 -1
- package/dist/index-2OWkrGDh.js +0 -24
- package/dist/index-B1iXzkUF.cjs +0 -1
- package/dist/index-BBB4VObc.cjs +0 -11
- package/dist/index-BIVWMqJQ.cjs +0 -1
- package/dist/index-BWpZSzL1.cjs +0 -1
- package/dist/index-BllULnvx.cjs +0 -1
- package/dist/index-BvO1uTn0.js +0 -21
- package/dist/index-C2bI4adc.js +0 -8628
- package/dist/index-C9pN8_un.js +0 -548
- package/dist/index-CPdKWCSo.cjs +0 -1
- package/dist/index-CQfFbeTJ.cjs +0 -1
- package/dist/index-CZJOPfp5.js +0 -1152
- package/dist/index-Cb0q1Y5b.cjs +0 -1
- package/dist/index-Cfomm0G1.cjs +0 -109
- package/dist/index-CvvFU_QA.cjs +0 -1
- package/dist/index-DYMLmifU.cjs +0 -1
- package/dist/index-DfPyuGyq.js +0 -101
- package/dist/index-Dm2qfeUm.cjs +0 -1
- package/dist/index-DtX1F0sz.cjs +0 -4
- package/dist/index-Du3VUDcF.cjs +0 -1
- package/dist/index-VWNqRYy9.js +0 -36270
- package/dist/index-kmj8K3JX.cjs +0 -1
- package/dist/index-ndZw4AQJ.cjs +0 -1
- package/dist/index-y5FEcncv.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_1_lang-Bmwy3cgo.cjs +0 -42
- package/dist/index.vue_vue_type_style_index_1_lang-Rs1M3B8e.js +0 -11984
- package/dist/main-2gDZp_zL.cjs +0 -1
- package/dist/threeModel-DgOcIXVI.cjs +0 -1
- package/dist/threeSceneView-BZx98QgN.js +0 -1450
- package/dist/threeSceneView-DSkGJN5d.cjs +0 -5
- package/dist/threeViewerHost-T_51aUg5.cjs +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref as n, watch as b } from "vue";
|
|
2
|
-
import { g as y } from "./index-
|
|
3
|
-
import {
|
|
4
|
-
const f =
|
|
2
|
+
import { g as y, s as d } from "./index-Dt2McMki.js";
|
|
3
|
+
import { az as g, ax as D, a as m } from "./index.vue_vue_type_style_index_1_lang-hffXwR3x.js";
|
|
4
|
+
const f = m(), { itemData: i } = d(f), c = n(0), h = n([
|
|
5
5
|
{
|
|
6
6
|
label: "机构名称",
|
|
7
7
|
value: "",
|
|
@@ -92,13 +92,13 @@ const f = D(), { itemData: i } = m(f), c = n(0), h = n([
|
|
|
92
92
|
contents: []
|
|
93
93
|
}
|
|
94
94
|
]), k = (e) => {
|
|
95
|
-
|
|
95
|
+
g(e.singleContent, e.buttonName, c.value);
|
|
96
96
|
}, S = (e) => {
|
|
97
97
|
console.log("onDoubleClick", e);
|
|
98
98
|
}, T = (e, t) => {
|
|
99
99
|
console.log("onButtonClick", e, t);
|
|
100
100
|
}, A = async (e) => {
|
|
101
|
-
const t = await
|
|
101
|
+
const t = await D(y, {
|
|
102
102
|
key: {
|
|
103
103
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
104
104
|
type: "data",
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { resolveComponent as J, createElementBlock as k, openBlock as h, Fragment as K, renderList as Q, unref as te, createElementVNode as m, createVNode as w, toDisplayString as x, ref as I, watch as W, withCtx as H, createBlock as X, resolveDynamicComponent as Y, createCommentVNode as S, normalizeStyle as ne, withModifiers as E } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import "./
|
|
2
|
+
import { m as oe, g as Z } from "./index-BQgnYD51.js";
|
|
3
|
+
import { p as O, s as R, c as d, E as se } from "./index-Dt2McMki.js";
|
|
4
|
+
import { a as U, E as ae } from "./index.vue_vue_type_style_index_1_lang-hffXwR3x.js";
|
|
5
|
+
import "./array-DbAuNWGt.js";
|
|
5
6
|
import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
-
import
|
|
7
|
-
import { b as
|
|
8
|
-
import { E as ie } from "./index-C2bI4adc.js";
|
|
7
|
+
import le from "./index-DiRBJiMW.js";
|
|
8
|
+
import { b as ce, c as ie } from "./index-uvns6W6E.js";
|
|
9
9
|
const re = { class: "type-select" }, ue = ["onClick"], pe = { class: "list-icon" }, de = {
|
|
10
10
|
__name: "index",
|
|
11
11
|
setup(F) {
|
|
12
|
-
const r = O
|
|
12
|
+
const r = U(O), { itemData: c, activeItemIndex: y } = R(r), g = (u) => {
|
|
13
13
|
var D;
|
|
14
14
|
let l = null;
|
|
15
15
|
const f = d(c.value);
|
|
@@ -60,7 +60,7 @@ const re = { class: "type-select" }, ue = ["onClick"], pe = { class: "list-icon"
|
|
|
60
60
|
}, De = ["onClick"], ye = ["onClick"], we = { class: "parent-main" }, Ie = { style: { display: "flex", "justify-content": "space-between" } }, $e = {
|
|
61
61
|
__name: "index",
|
|
62
62
|
setup(F) {
|
|
63
|
-
const r = O
|
|
63
|
+
const r = U(O), { itemData: c, originalData: y } = R(r), g = I([]);
|
|
64
64
|
I([]);
|
|
65
65
|
const u = I([]), l = I([]), f = I([]), i = (o) => {
|
|
66
66
|
var a;
|
|
@@ -115,14 +115,14 @@ const re = { class: "type-select" }, ue = ["onClick"], pe = { class: "list-icon"
|
|
|
115
115
|
}
|
|
116
116
|
r.setActiveItemIndex(-1);
|
|
117
117
|
}, ee = (o) => {
|
|
118
|
-
|
|
118
|
+
ae.confirm("是否确认要删除", "", {
|
|
119
119
|
confirmButtonText: "确认",
|
|
120
120
|
cancelButtonText: "取消",
|
|
121
121
|
type: "warning"
|
|
122
122
|
}).then(
|
|
123
123
|
() => {
|
|
124
124
|
const n = d(c.value), a = n == null ? void 0 : n.filter((t, e) => e !== o);
|
|
125
|
-
r.setOriginalData(a), r.setItemData(a), r.setActiveItemIndex(-1),
|
|
125
|
+
r.setOriginalData(a), r.setItemData(a), r.setActiveItemIndex(-1), se({
|
|
126
126
|
type: "success",
|
|
127
127
|
message: "删除成功"
|
|
128
128
|
});
|
|
@@ -135,7 +135,7 @@ const re = { class: "type-select" }, ue = ["onClick"], pe = { class: "list-icon"
|
|
|
135
135
|
return h(), k("div", me, [
|
|
136
136
|
n[3] || (n[3] = m("div", { class: "fill-operate" }, x("操作栏"), -1)),
|
|
137
137
|
m("div", ve, [
|
|
138
|
-
w(
|
|
138
|
+
w(le, {
|
|
139
139
|
class: "collapse-content",
|
|
140
140
|
collapseContents: g.value,
|
|
141
141
|
ref_key: "ssCollapseRef",
|
|
@@ -155,7 +155,7 @@ const re = { class: "type-select" }, ue = ["onClick"], pe = { class: "list-icon"
|
|
|
155
155
|
style: ne({ marginRight: t.name && t.name !== "" ? "8px" : "0px" })
|
|
156
156
|
}, x(t.name), 5)),
|
|
157
157
|
(B = (C = l.value) == null ? void 0 : C.find((p) => p.id === e)) != null && B.content ? (h(), k("div", fe, [
|
|
158
|
-
w(
|
|
158
|
+
w(ie, {
|
|
159
159
|
modelValue: t.name,
|
|
160
160
|
"onUpdate:modelValue": (p) => t.name = p,
|
|
161
161
|
onClick: n[0] || (n[0] = E(() => {
|
|
@@ -222,7 +222,7 @@ const re = { class: "type-select" }, ue = ["onClick"], pe = { class: "list-icon"
|
|
|
222
222
|
], -1)),
|
|
223
223
|
m("div", Ie, [
|
|
224
224
|
n[1] || (n[1] = m("div", { class: "operate-center-content" }, x("是否显示"), -1)),
|
|
225
|
-
w(
|
|
225
|
+
w(ce, {
|
|
226
226
|
value: f.value.find((s) => s.id === e).isShow,
|
|
227
227
|
"onUpdate:value": (s) => f.value.find((C) => C.id === e).isShow = s,
|
|
228
228
|
onClick: (s) => N(t)
|
|
@@ -243,7 +243,7 @@ const re = { class: "type-select" }, ue = ["onClick"], pe = { class: "list-icon"
|
|
|
243
243
|
}, xe = { style: { display: "flex" } }, Ee = {
|
|
244
244
|
__name: "index",
|
|
245
245
|
setup(F) {
|
|
246
|
-
const r = O
|
|
246
|
+
const r = U(O), { itemData: c } = R(r), y = I([]);
|
|
247
247
|
W(
|
|
248
248
|
() => c.value,
|
|
249
249
|
() => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref as l, watch as b } from "vue";
|
|
2
|
-
import { g as y } from "./index-
|
|
3
|
-
import {
|
|
4
|
-
const f =
|
|
2
|
+
import { g as y, s as d } from "./index-Dt2McMki.js";
|
|
3
|
+
import { az as g, ax as m, a as D } from "./index.vue_vue_type_style_index_1_lang-hffXwR3x.js";
|
|
4
|
+
const f = D(), { itemData: h } = d(f), c = l(0), k = l([
|
|
5
5
|
{
|
|
6
6
|
label: "机构名称",
|
|
7
7
|
value: "",
|
|
@@ -75,13 +75,13 @@ const f = m(), { itemData: h } = D(f), c = l(0), k = l([
|
|
|
75
75
|
// ]
|
|
76
76
|
}
|
|
77
77
|
]), i = (a) => {
|
|
78
|
-
|
|
78
|
+
g(a.singleContent, a.buttonName, c.value);
|
|
79
79
|
}, A = (a) => {
|
|
80
80
|
console.log("onDoubleClick", a);
|
|
81
81
|
}, S = (a, t) => {
|
|
82
82
|
console.log("onButtonClick", a, t);
|
|
83
83
|
}, T = async (a) => {
|
|
84
|
-
const t = await
|
|
84
|
+
const t = await m(y, {
|
|
85
85
|
key: {
|
|
86
86
|
type: "data",
|
|
87
87
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
@@ -127,7 +127,7 @@ b(() => h.value, (a) => {
|
|
|
127
127
|
var t;
|
|
128
128
|
a && (a == null ? void 0 : a.length) > 0 && (s.value = (t = a == null ? void 0 : a[0]) == null ? void 0 : t.compData);
|
|
129
129
|
});
|
|
130
|
-
const
|
|
130
|
+
const O = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
131
131
|
__proto__: null,
|
|
132
132
|
getPageDataAsync: T,
|
|
133
133
|
handleItemDataChange: i,
|
|
@@ -140,5 +140,5 @@ const P = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
140
140
|
tempPostPageData: B
|
|
141
141
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
142
142
|
export {
|
|
143
|
-
|
|
143
|
+
O as S
|
|
144
144
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue");require("./index-CSWIBSmo.cjs");const h=require("./index-BOev8isw.cjs");require("./array-Bfmx0w6P.cjs");const C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");require("./index.vue_vue_type_style_index_0_scoped_86d2b6b8_lang-VPQBXOPW.cjs");require("./index.vue_vue_type_style_index_0_scoped_1966237d_lang-DwIFJsxs.cjs");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-mQIxU0SD.cjs");require("./STLLoader-BxpEhvEg.cjs");require("./index.vue_vue_type_style_index_1_lang-DraQDAAw.cjs");require("./index-B-oe2x1V.cjs");require("./index-PNDdZKYG.cjs");require("vue-router");require("./index-DP0k43fj.cjs");require("./index-CgJYAzeA.cjs");const S={__name:"index",props:{windowConfig:{type:Object,default:()=>{}},systemInfo:{type:Object,default:()=>{}},systemKey:{type:String,default:""},pathContent:{type:String,default:""},mode:{type:String,default:"view"},content:{type:String,default:""},jsonContents:{type:Array,default:()=>[]},showButton:{type:Boolean,default:!0},nodeDev:{type:String,default:""},pageKey:{type:String,default:""}},emits:["buildContent","openThreeBuild","threeData"],setup(o,{emit:c}){const e=o,i=c,d=h.useLoginState();n.watch(()=>e==null?void 0:e.systemKey,t=>{d.setSystemKey(t),t!==""&&sessionStorage.setItem("systemKey",t)},{immediate:!0}),n.watch(()=>e==null?void 0:e.systemInfo,t=>{d.setSystemInfo(t)},{immediate:!0});const l=()=>{i("buildContent")},y=()=>{i("setLoginInfo")},m=t=>{i("openThreeBuild",t)},f=t=>{i("threeData",t)},s=()=>{var a;const t=e!=null&&e.windowConfig?(a=e==null?void 0:e.windowConfig)==null?void 0:a.width:window.innerWidth,r=1920,u=16,w=t/r,g=u*w;document.documentElement.style.fontSize=`${g}px`};return n.onMounted(()=>{s(),window.addEventListener("resize",s)}),(t,r)=>{const u=n.resolveComponent("router-view");return n.openBlock(),n.createElementBlock("div",null,[n.createVNode(u,{mode:e==null?void 0:e.mode,content:e==null?void 0:e.content,jsonContents:e==null?void 0:e.jsonContents,pathContent:e==null?void 0:e.pathContent,showButton:e==null?void 0:e.showButton,nodeDev:e==null?void 0:e.nodeDev,windowConfig:o.windowConfig,systemInfo:o.systemInfo,"old-systemKey":o.systemKey,onBuildContent:l,onOpenThreeBuild:m,pageKey:o.pageKey,onThreeData:f,onSetLoginInfo:y},null,8,["mode","content","jsonContents","pathContent","showButton","nodeDev","windowConfig","systemInfo","old-systemKey","pageKey"])])}}},q=C._export_sfc(S,[["__scopeId","data-v-86cc249b"]]);exports.default=q;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),p=require("./index-DbniLh9G.cjs"),m=require("./index-B-oe2x1V.cjs"),d=require("./index-weauvEnW.cjs"),h=require("./index.vue_vue_type_style_index_1_lang-DraQDAAw.cjs"),u=require("./index-BOev8isw.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),f={class:"menu-module"},k={class:"table-wrap","element-loading-text":"加载中..."},v={class:"module-dialog-default"},x=e.defineComponent({__name:"index",setup(b){const t=e.reactive({...p.State}),r=e.ref(null),a=h.useMenuState(u.pinia),{configMenu:n}=u.storeToRefs(a);return e.onMounted(()=>{var l;t.formatFormData(n.value),e.nextTick(()=>{var o,i;(i=r.value)==null||i.setCurrentKey((o=n.value)==null?void 0:o.path),a.setActiveMenuPath("/平台管理/菜单管理")}),n.value&&t.getInitialSubStructure((l=n.value)==null?void 0:l.path)}),(l,o)=>{const i=e.resolveComponent("el-tree"),c=e.resolveComponent("el-splitter-panel"),g=e.resolveComponent("el-splitter"),s=e.resolveComponent("el-button"),_=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",f,[e.createVNode(g,null,{default:e.withCtx(()=>[e.createVNode(c,{size:208,class:"tree-wrap",min:200},{default:e.withCtx(()=>[e.createVNode(i,{ref_key:"treeRef",ref:r,data:t.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":"",onNodeClick:t.clickNodeTrigger},null,8,["data","onNodeClick"])]),_:1}),e.createVNode(c,{min:500},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",k,[e.createVNode(m.ssTable,{itemData:t.menuPageData,changedContent:t.changedRow,operatingForm:t.operatingForm,onOnFormChange:t.changeTrigger,onChange:t.handleItemDataChange,onClickTrigger:t.clickTrigger,onOnButtonClick:t.clickRowButton},null,8,["itemData","changedContent","operatingForm","onOnFormChange","onChange","onClickTrigger","onOnButtonClick"])])),[[_,t.tableLoading]])]),_:1})]),_:1}),e.createVNode(d.ssDialog,{class:"module-dialog",title:t.dialogInfo.title,visible:t.dialogInfo.show,width:t.dialogInfo.width,onBeforeDestroy:t.beforeDialogDestroy},{default:e.withCtx(()=>[e.createElementVNode("div",v,[e.createVNode(d.ssForm,{rowContents:t.renderFormData,isEnableWrap:!1,isEdit:!0,onChange:t.changeTrigger,onClickTrigger:t.clickTrigger},null,8,["rowContents","onChange","onClickTrigger"])])]),footer:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(s,{onClick:t.beforeDialogDestroy,id:"themeBorderButton"},{default:e.withCtx(()=>o[0]||(o[0]=[e.createTextVNode("取消")])),_:1,__:[0]},8,["onClick"]),e.createVNode(s,{id:"themeButton",onClick:t.clickSubmitForm},{default:e.withCtx(()=>o[1]||(o[1]=[e.createTextVNode(" 确认 ")])),_:1,__:[1]},8,["onClick"])])]),_:1},8,["title","visible","width","onBeforeDestroy"])])}}}),w=C._export_sfc(x,[["__scopeId","data-v-74868a06"]]);exports.default=w;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as x, onMounted as _, createElementBlock as g, openBlock as y, createVNode as C } from "vue";
|
|
2
|
-
import { s as b } from "./index-
|
|
3
|
-
import { c as s } from "./index
|
|
2
|
+
import { s as b } from "./index-QETLKFyV.js";
|
|
3
|
+
import { c as s } from "./index-Dt2McMki.js";
|
|
4
4
|
import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const A = (t, n, a) => {
|
|
6
6
|
var r, d, p, m;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-B-oe2x1V.cjs"),o=require("./index-dyoOdMKX.cjs"),n=require("./index.vue_vue_type_style_index_1_lang-DraQDAAw.cjs"),c=require("./index-BOev8isw.cjs"),i=e.defineComponent({__name:"index",setup(s){const t=e.reactive({...o.State}),a=n.useMenuState(),{activeMenuPath:r}=c.storeToRefs(a);return e.onMounted(async()=>{t.structureId=await n.getActivePageStructureId(r.value)}),(d,l)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(u.ssTable,{itemData:t.pageData,onChange:t.handleItemDataChange},null,8,["itemData","onChange"])]))}});exports.default=i;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),N=require("./index-CSWIBSmo.cjs"),s=require("./index-BOev8isw.cjs"),B=require("./index.vue_vue_type_style_index_1_lang-DraQDAAw.cjs");require("./array-Bfmx0w6P.cjs");const I=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),A=require("./index-DEEZPcpU.cjs"),O=require("./index-weauvEnW.cjs"),L={class:"type-select"},j=["onClick"],z={class:"list-icon"},H={__name:"index",setup(S){const p=B.useModelComp(s.pinia),{itemData:r,activeItemIndex:D}=s.storeToRefs(p),C=u=>{var k;let i=null;const h=s.cloneDeep(r.value);if(D.value>=0&&(i=h==null?void 0:h[D.value]),i&&i.comp==="Layout"){const{compData:g=[]}=i;((k=g==null?void 0:g.find(E=>{const{key:w}=E;return w==="children"}))==null?void 0:k.contents).push({comp:u.comp,name:u.name,compData:[]}),p.setItemData(h);return}const d=s.cloneDeep(r.value);d.push({comp:u.comp,name:u.name,compData:[]}),p.setItemData(d)};return(u,i)=>{const h=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",L,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(N.slotContent),(d,k)=>(e.openBlock(),e.createElementBlock("div",{class:"type-list",key:k},[e.createElementVNode("div",{class:"list-content",onClick:g=>C(d)},[e.createElementVNode("div",z,[e.createVNode(h,{name:d.icon},null,8,["name"])]),e.createElementVNode("div",null,e.toDisplayString(d.name),1)],8,j)]))),128))])}}},G=I._export_sfc(H,[["__scopeId","data-v-2cd8410b"]]),J={class:"fill-content"},K={class:"operate-content"},Q=["onClick"],W={class:"collapse-title-item"},X={key:1},Y=["onClick"],Z={class:"icon-content"},P={key:0,class:"edit-content"},ee=["onClick"],te=["onClick"],ne={class:"parent-main"},oe={style:{display:"flex","justify-content":"space-between"}},le={__name:"index",setup(S){const p=B.useModelComp(s.pinia),{itemData:r,originalData:D}=s.storeToRefs(p),C=e.ref([]);e.ref([]);const u=e.ref([]),i=e.ref([]),h=e.ref([]),d=l=>{var a;let o=(a=s.cloneDeep(i.value))==null?void 0:a.map((n,t)=>(l===t&&(n.content=!0),n));i.value=o},k=l=>{var a;let o=(a=s.cloneDeep(i.value))==null?void 0:a.map((n,t)=>(l===t&&(n.content=!1),n));i.value=o,C.value=s.cloneDeep(r.value)},g=(l,o)=>{var v;let a=(v=s.cloneDeep(i.value))==null?void 0:v.map((_,c)=>(l===c&&(_.content=!1),_));i.value=a;const n=s.cloneDeep(r.value),t=n==null?void 0:n.filter((_,c)=>(c===l&&(_.name=o),_));p.setOriginalData(t),p.setItemData(t)},x=l=>{const o=s.cloneDeep(r.value),a=o==null?void 0:o.map((n,t)=>((n==null?void 0:n.name)===(l==null?void 0:l.name)?n.isShow=!(l!=null&&l.isShow):n.isShow=n.isShow,n));r.value=a};e.watch(()=>r.value,()=>{var l,o,a,n;!r.value||((l=r.value)==null?void 0:l.length)===0?C.value=[]:C.value=(o=s.cloneDeep(r.value))==null?void 0:o.filter(t=>(t==null?void 0:t.comp)!=="methodButton"),u.value=C.value,i.value=(a=s.cloneDeep(u.value))==null?void 0:a.map((t,v)=>({id:v,content:!1})),h.value=(n=s.cloneDeep(u.value))==null?void 0:n.map((t,v)=>({id:v,isShow:t==null?void 0:t.isShow}))},{deep:!0,immediate:!0});const E=l=>N.getComponent(l),w=(l,o,a,n)=>{var v,_;if(!l)return;let t=s.cloneDeep(r.value);t=(v=t==null?void 0:t.map((c,f)=>{if(n&&f===a){const{compData:y,itemChildData:V}=l;return c.compData=y,c.itemChildData=V,c}return f===a&&(c.compData=l),c}))==null?void 0:v.filter(c=>(c==null?void 0:c.comp)!=="methodButton"),i.value=(_=s.cloneDeep(t))==null?void 0:_.map((c,f)=>({id:f,content:!1})),p.setOriginalData(t),p.setItemData(t)},U=e.ref(null),$=(l,o)=>{if(!o){p.setActiveItemIndex(l);return}p.setActiveItemIndex(-1)},b=l=>{B.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{const o=s.cloneDeep(r.value),a=o==null?void 0:o.filter((n,t)=>t!==l);p.setOriginalData(a),p.setItemData(a),p.setActiveItemIndex(-1),s.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(l,o)=>{const a=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",J,[o[3]||(o[3]=e.createElementVNode("div",{class:"fill-operate"},e.toDisplayString("操作栏"),-1)),e.createElementVNode("div",K,[e.createVNode(A.default,{class:"collapse-content",collapseContents:C.value,ref_key:"ssCollapseRef",ref:U},{title:e.withCtx(({item:n,index:t,isActive:v})=>{var _,c,f,y,V,M,q,R,F,T;return[e.createElementVNode("div",{class:"collapse-title-content",onClick:m=>$(t,v)},[e.createElementVNode("div",W,[(c=(_=i.value)==null?void 0:_.find(m=>m.id===t))!=null&&c.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"collapse-title",style:e.normalizeStyle({marginRight:n.name&&n.name!==""?"8px":"0px"})},e.toDisplayString(n.name),5)),(y=(f=i.value)==null?void 0:f.find(m=>m.id===t))!=null&&y.content?(e.openBlock(),e.createElementBlock("div",X,[e.createVNode(O._sfc_main$3,{modelValue:n.name,"onUpdate:modelValue":m=>n.name=m,onClick:o[0]||(o[0]=e.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"])])):e.createCommentVNode("",!0),(M=(V=i.value)==null?void 0:V.find(m=>m.id===t))!=null&&M.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:2,onClick:e.withModifiers(m=>d(t),["stop"]),class:"icon-content"},[e.createVNode(a,{name:"Edit",style:{width:"16px",height:"16px"}})],8,Y))]),e.createElementVNode("div",Z,[(R=(q=i.value)==null?void 0:q.find(m=>m.id===t))!=null&&R.content?(e.openBlock(),e.createElementBlock("div",P,[e.createVNode(a,{name:"Cancel",style:{width:"16px",height:"16px"},class:"icon-content",onClick:e.withModifiers(m=>k(t),["stop"])},null,8,["onClick"]),e.createVNode(a,{name:"Save",onClick:e.withModifiers(m=>g(t,n.name),["stop"]),style:{width:"16px",height:"16px",fill:"var(--ssComponent-primary-color)"},class:"icon-content"},null,8,["onClick"])])):e.createCommentVNode("",!0),(T=(F=i.value)==null?void 0:F.find(m=>m.id===t))!=null&&T.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,onClick:e.withModifiers(m=>b(t),["stop"]),class:"icon-content"},[e.createVNode(a,{name:"Delete",style:{width:"16px",height:"16px"}})],8,ee))])],8,Q)]}),content:e.withCtx(({item:n,index:t})=>{var v,_;return[e.createElementVNode("div",{class:"comp-child",onClick:c=>$(t)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(E(n.comp+"Operate")),{itemContents:n==null?void 0:n.compData,originalItemContents:(_=(v=u.value)==null?void 0:v.find((c,f)=>f===t))==null?void 0:_.compData,itemChildData:n==null?void 0:n.itemChildData,onChange:(c,f)=>w(c,n,t,f)},null,40,["itemContents","originalItemContents","itemChildData","onChange"]))],8,te),e.createElementVNode("div",ne,[o[2]||(o[2]=e.createElementVNode("div",{class:"operate-title"},[e.createElementVNode("div",null,e.toDisplayString("显隐控制"))],-1)),e.createElementVNode("div",oe,[o[1]||(o[1]=e.createElementVNode("div",{class:"operate-center-content"},e.toDisplayString("是否显示"),-1)),e.createVNode(O._sfc_main$2,{value:h.value.find(c=>c.id===t).isShow,"onUpdate:value":c=>h.value.find(f=>f.id===t).isShow=c,onClick:c=>x(n)},null,8,["value","onUpdate:value","onClick"])])])]}),_:1},8,["collapseContents"])])])}}},ce=I._export_sfc(le,[["__scopeId","data-v-1f5fca05"]]),ae={key:0,class:"show-content"},se={style:{display:"flex"}},ie={__name:"index",setup(S){const p=B.useModelComp(s.pinia),{itemData:r}=s.storeToRefs(p),D=e.ref([]);e.watch(()=>r.value,()=>{var u;!r.value||((u=r.value)==null?void 0:u.length)===0?D.value=[]:D.value=s.cloneDeep(r.value)},{deep:!0,immediate:!0});const C=u=>N.getComponent(u);return(u,i)=>{var h;return((h=D.value)==null?void 0:h.length)>0?(e.openBlock(),e.createElementBlock("div",ae,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(D.value,(d,k)=>(e.openBlock(),e.createElementBlock("div",{class:"item-content",key:k},[e.createElementVNode("div",se,e.toDisplayString(d.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(C(d.comp)),{itemData:d==null?void 0:d.compData,childItemData:d==null?void 0:d.itemChildData,key:k},null,8,["itemData","childItemData"]))]))),128))])):e.createCommentVNode("",!0)}}},re=I._export_sfc(ie,[["__scopeId","data-v-bfa22d29"]]);exports.modelFill=ce;exports.modelSelect=G;exports.modelShow=re;
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import { watch as u, onMounted as g, resolveComponent as C, createElementBlock as S, openBlock as B, createVNode as v } from "vue";
|
|
2
|
-
import "./index-
|
|
3
|
-
import {
|
|
4
|
-
import "./array-
|
|
2
|
+
import "./index-BQgnYD51.js";
|
|
3
|
+
import { u as I } from "./index-Dt2McMki.js";
|
|
4
|
+
import "./array-DbAuNWGt.js";
|
|
5
5
|
import { _ as K } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
-
import "./index.vue_vue_type_style_index_0_scoped_86d2b6b8_lang-
|
|
7
|
-
import "./index.
|
|
6
|
+
import "./index.vue_vue_type_style_index_0_scoped_86d2b6b8_lang-D5CTJUDi.js";
|
|
7
|
+
import "./index.vue_vue_type_style_index_0_scoped_1966237d_lang-D3xcEtDT.js";
|
|
8
8
|
import "./index-BHtNKL1L.js";
|
|
9
|
-
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
10
|
-
import "./
|
|
11
|
-
import "./
|
|
12
|
-
import "./index-
|
|
9
|
+
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CtN9Ij0Y.js";
|
|
10
|
+
import "./STLLoader-DofhZbOw.js";
|
|
11
|
+
import "./index.vue_vue_type_style_index_1_lang-hffXwR3x.js";
|
|
12
|
+
import "./index-ChtmIuBu.js";
|
|
13
|
+
import "./index-DrL7vroa.js";
|
|
13
14
|
import "vue-router";
|
|
14
|
-
import "./index-
|
|
15
|
+
import "./index-tPamnhR2.js";
|
|
16
|
+
import "./index-OH9t-y2p.js";
|
|
15
17
|
const D = {
|
|
16
18
|
__name: "index",
|
|
17
19
|
props: {
|
|
@@ -70,18 +72,18 @@ const D = {
|
|
|
70
72
|
o("buildContent");
|
|
71
73
|
}, f = () => {
|
|
72
74
|
o("setLoginInfo");
|
|
73
|
-
}, y = (e) => {
|
|
74
|
-
o("openThreeBuild", e);
|
|
75
75
|
}, r = (e) => {
|
|
76
|
+
o("openThreeBuild", e);
|
|
77
|
+
}, y = (e) => {
|
|
76
78
|
o("threeData", e);
|
|
77
79
|
}, s = () => {
|
|
78
|
-
var
|
|
79
|
-
const e = t != null && t.windowConfig ? (
|
|
80
|
+
var a;
|
|
81
|
+
const e = t != null && t.windowConfig ? (a = t == null ? void 0 : t.windowConfig) == null ? void 0 : a.width : window.innerWidth, m = 1920, i = 16, w = e / m, h = i * w;
|
|
80
82
|
document.documentElement.style.fontSize = `${h}px`;
|
|
81
83
|
};
|
|
82
84
|
return g(() => {
|
|
83
85
|
s(), window.addEventListener("resize", s);
|
|
84
|
-
}), (e,
|
|
86
|
+
}), (e, m) => {
|
|
85
87
|
const i = C("router-view");
|
|
86
88
|
return B(), S("div", null, [
|
|
87
89
|
v(i, {
|
|
@@ -95,15 +97,15 @@ const D = {
|
|
|
95
97
|
systemInfo: n.systemInfo,
|
|
96
98
|
"old-systemKey": n.systemKey,
|
|
97
99
|
onBuildContent: l,
|
|
98
|
-
onOpenThreeBuild:
|
|
100
|
+
onOpenThreeBuild: r,
|
|
99
101
|
pageKey: n.pageKey,
|
|
100
|
-
onThreeData:
|
|
102
|
+
onThreeData: y,
|
|
101
103
|
onSetLoginInfo: f
|
|
102
104
|
}, null, 8, ["mode", "content", "jsonContents", "pathContent", "showButton", "nodeDev", "windowConfig", "systemInfo", "old-systemKey", "pageKey"])
|
|
103
105
|
]);
|
|
104
106
|
};
|
|
105
107
|
}
|
|
106
|
-
},
|
|
108
|
+
}, R = /* @__PURE__ */ K(D, [["__scopeId", "data-v-86cc249b"]]);
|
|
107
109
|
export {
|
|
108
|
-
|
|
110
|
+
R as default
|
|
109
111
|
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { defineComponent as o, reactive as c, onMounted as s, createElementBlock as r, openBlock as u, createVNode as i } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { u as d,
|
|
4
|
-
|
|
2
|
+
import { s as m } from "./index-ChtmIuBu.js";
|
|
3
|
+
import { u as d, aA as p, ay as l } from "./index.vue_vue_type_style_index_1_lang-hffXwR3x.js";
|
|
4
|
+
import { s as g, u as h } from "./index-Dt2McMki.js";
|
|
5
|
+
const _ = { class: "routerPage-wrapper" }, w = /* @__PURE__ */ o({
|
|
5
6
|
__name: "index",
|
|
6
|
-
setup(
|
|
7
|
-
const t = d(), { activeMenuPath: a } =
|
|
7
|
+
setup(f) {
|
|
8
|
+
const t = d(), { activeMenuPath: a } = g(t), n = h(), e = c({ ...p });
|
|
8
9
|
return s(async () => {
|
|
9
|
-
n.getModelSecretAsync(), e.structureId = await
|
|
10
|
-
}), (
|
|
10
|
+
n.getModelSecretAsync(), e.structureId = await l(a.value);
|
|
11
|
+
}), (C, S) => (u(), r("div", _, [
|
|
11
12
|
i(m, {
|
|
12
13
|
index: e.structureId,
|
|
13
14
|
compName: e.compName,
|
|
@@ -20,5 +21,5 @@ const _ = { class: "routerPage-wrapper" }, x = /* @__PURE__ */ o({
|
|
|
20
21
|
}
|
|
21
22
|
});
|
|
22
23
|
export {
|
|
23
|
-
|
|
24
|
+
w as default
|
|
24
25
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ref as i, computed as j, reactive as ie, nextTick as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
const
|
|
1
|
+
import { ref as i, computed as j, reactive as ie, nextTick as B, watch as ye } from "vue";
|
|
2
|
+
import { u as be, a as he, ax as Ce } from "./index.vue_vue_type_style_index_1_lang-hffXwR3x.js";
|
|
3
|
+
import { c as J, s as Ie, g as U, by as ke, E as S, p as $, e as ae, f as oe, br as Te, d as Me } from "./index-Dt2McMki.js";
|
|
4
|
+
import { u as Se } from "./index-ChtmIuBu.js";
|
|
5
|
+
const F = he($), ne = Se($), C = be($), { menus: ue, configMenu: R, activeMenuPath: q, cacheStructures: K } = Ie(C), z = i(!1), se = j(() => {
|
|
6
6
|
var e, t;
|
|
7
7
|
return [
|
|
8
8
|
{
|
|
@@ -62,7 +62,7 @@ const B = Ie(U), ne = Te(U), C = he(U), { menus: ue, configMenu: R, activeMenuPa
|
|
|
62
62
|
}))) == null ? void 0 : t.filter((l) => l.title !== "系统管理" && l.title !== "平台管理")
|
|
63
63
|
}
|
|
64
64
|
];
|
|
65
|
-
}), G = i([]),
|
|
65
|
+
}), G = i([]), x = i([
|
|
66
66
|
{
|
|
67
67
|
// label: "新增",
|
|
68
68
|
label: "新建"
|
|
@@ -70,7 +70,7 @@ const B = Ie(U), ne = Te(U), C = he(U), { menus: ue, configMenu: R, activeMenuPa
|
|
|
70
70
|
]), we = j(() => [
|
|
71
71
|
{
|
|
72
72
|
key: "extraButton",
|
|
73
|
-
contents:
|
|
73
|
+
contents: x.value
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
76
|
key: "rowButton",
|
|
@@ -165,7 +165,7 @@ const B = Ie(U), ne = Te(U), C = he(U), { menus: ue, configMenu: R, activeMenuPa
|
|
|
165
165
|
key: "tableContents",
|
|
166
166
|
contents: G.value
|
|
167
167
|
}
|
|
168
|
-
]), L = i([]), I = i({}), De = i({}),
|
|
168
|
+
]), L = i([]), I = i({}), De = i({}), O = i([
|
|
169
169
|
// {
|
|
170
170
|
// label: "配置菜单:",
|
|
171
171
|
// prop: 'menu',
|
|
@@ -265,10 +265,10 @@ const B = Ie(U), ne = Te(U), C = he(U), { menus: ue, configMenu: R, activeMenuPa
|
|
|
265
265
|
}
|
|
266
266
|
]), _ = (e) => {
|
|
267
267
|
var t;
|
|
268
|
-
L.value = e ? (t =
|
|
268
|
+
L.value = e ? (t = O.value) == null ? void 0 : t.map((l) => l.prop === "dialogConfig" || l.prop === "contentConfig" || l.prop === "trigger" ? l : {
|
|
269
269
|
...l,
|
|
270
270
|
value: e ? e[l == null ? void 0 : l.prop] : ""
|
|
271
|
-
}) :
|
|
271
|
+
}) : O.value;
|
|
272
272
|
}, Ne = i([
|
|
273
273
|
{
|
|
274
274
|
label: "查询"
|
|
@@ -296,7 +296,7 @@ const B = Ie(U), ne = Te(U), C = he(U), { menus: ue, configMenu: R, activeMenuPa
|
|
|
296
296
|
return (e = re(ue.value)) == null ? void 0 : e.filter((t) => t.title !== "系统管理" && t.title !== "平台管理");
|
|
297
297
|
}), fe = async (e) => {
|
|
298
298
|
var l, u, n, c;
|
|
299
|
-
const t = await
|
|
299
|
+
const t = await U({
|
|
300
300
|
key: {
|
|
301
301
|
type: "subStructure",
|
|
302
302
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
@@ -317,13 +317,13 @@ const B = Ie(U), ne = Te(U), C = he(U), { menus: ue, configMenu: R, activeMenuPa
|
|
|
317
317
|
data: s
|
|
318
318
|
});
|
|
319
319
|
}
|
|
320
|
-
},
|
|
320
|
+
}, Fe = async (e) => {
|
|
321
321
|
var t;
|
|
322
322
|
z.value = !0, b.value = {
|
|
323
323
|
...e,
|
|
324
|
-
rootNode:
|
|
325
|
-
}, C.setCacheStructures(null), (e == null ? void 0 : e.level) === 0 ?
|
|
326
|
-
},
|
|
324
|
+
rootNode: ke(pe.value, e.path)
|
|
325
|
+
}, C.setCacheStructures(null), (e == null ? void 0 : e.level) === 0 ? x.value.splice(0) : (x.value = [{ label: "新建" }], V.value = (t = e == null ? void 0 : e.path) == null ? void 0 : t.split("/")), await C.setConfigMenu(null), await fe(e == null ? void 0 : e.path), await H(e);
|
|
326
|
+
}, Ke = (e) => {
|
|
327
327
|
switch (e) {
|
|
328
328
|
case "新建":
|
|
329
329
|
return "create";
|
|
@@ -332,10 +332,10 @@ const B = Ie(U), ne = Te(U), C = he(U), { menus: ue, configMenu: R, activeMenuPa
|
|
|
332
332
|
case "删除":
|
|
333
333
|
return "delete";
|
|
334
334
|
}
|
|
335
|
-
},
|
|
335
|
+
}, Be = async (e, t) => {
|
|
336
336
|
var l, u;
|
|
337
337
|
if (!b.value) return S.warning("请先选择菜单");
|
|
338
|
-
if (g.type =
|
|
338
|
+
if (g.type = Ke(e), V.value = [], F.setSubmitCurStructure(!1), ne.setSelectTitle([]), h.value = J(t), g.type !== "delete") {
|
|
339
339
|
switch (g.type) {
|
|
340
340
|
case "create":
|
|
341
341
|
_(null), await C.setConfigMenu(null);
|
|
@@ -344,10 +344,10 @@ const B = Ie(U), ne = Te(U), C = he(U), { menus: ue, configMenu: R, activeMenuPa
|
|
|
344
344
|
_(h.value), await C.setConfigMenu(h.value), console.log("clickRowButton", h.value);
|
|
345
345
|
break;
|
|
346
346
|
}
|
|
347
|
-
await
|
|
347
|
+
await B(), g.title = `【${g.type === "create" ? (l = b.value) == null ? void 0 : l.path : (u = h.value) == null ? void 0 : u.path}】菜单配置${e}`, g.show = !0;
|
|
348
348
|
} else
|
|
349
349
|
await ge(h.value, g.type);
|
|
350
|
-
}, de = i(!0),
|
|
350
|
+
}, de = i(!0), He = async (e) => {
|
|
351
351
|
var t;
|
|
352
352
|
I.value = e, await C.setConfigMenu({
|
|
353
353
|
...I.value,
|
|
@@ -356,7 +356,7 @@ const B = Ie(U), ne = Te(U), C = he(U), { menus: ue, configMenu: R, activeMenuPa
|
|
|
356
356
|
};
|
|
357
357
|
ye(() => de.value, async (e) => {
|
|
358
358
|
var t;
|
|
359
|
-
await
|
|
359
|
+
await B(), L.value = (t = O.value) == null ? void 0 : t.map((l) => l.prop === "dialogConfig" || l.prop === "contentConfig" || l.prop === "trigger" ? l.prop === "contentConfig" ? {
|
|
360
360
|
...l,
|
|
361
361
|
isFormColHidden: e
|
|
362
362
|
} : l : {
|
|
@@ -364,11 +364,11 @@ ye(() => de.value, async (e) => {
|
|
|
364
364
|
value: I.value ? I.value[l == null ? void 0 : l.prop] : ""
|
|
365
365
|
});
|
|
366
366
|
}, { immediate: !0, deep: !0 });
|
|
367
|
-
const
|
|
367
|
+
const Ae = i(null), Ee = async (e, t) => {
|
|
368
368
|
var s, p, f, r, y;
|
|
369
369
|
if (g.type === "create") {
|
|
370
|
-
const a = (p = (s =
|
|
371
|
-
|
|
370
|
+
const a = (p = (s = K.value) == null ? void 0 : s.filter((d) => (d == null ? void 0 : d.key) === t)) == null ? void 0 : p.flatMap((d) => d == null ? void 0 : d.data);
|
|
371
|
+
F.setItemData(a), C.setCacheStructures({
|
|
372
372
|
key: t,
|
|
373
373
|
data: a
|
|
374
374
|
});
|
|
@@ -377,7 +377,7 @@ const He = i(null), Ee = async (e, t) => {
|
|
|
377
377
|
const l = (y = (r = e == null ? void 0 : e.structureIds) == null ? void 0 : r.filter((a) => (a == null ? void 0 : a.key) === t)) == null ? void 0 : y.map((a) => a == null ? void 0 : a.id);
|
|
378
378
|
let u = l == null ? void 0 : l.map((a) => {
|
|
379
379
|
if (a)
|
|
380
|
-
return
|
|
380
|
+
return U({ id: a });
|
|
381
381
|
});
|
|
382
382
|
const n = await Promise.all(u), c = n == null ? void 0 : n.every((a) => {
|
|
383
383
|
var d;
|
|
@@ -385,13 +385,13 @@ const He = i(null), Ee = async (e, t) => {
|
|
|
385
385
|
});
|
|
386
386
|
if (console.log("getTriggerStructures2", e == null ? void 0 : e.structureIds, t, n), c && (n == null ? void 0 : n.length) > 0) {
|
|
387
387
|
const a = n == null ? void 0 : n.map((d) => {
|
|
388
|
-
var k, T, D, N, P, o,
|
|
388
|
+
var k, T, D, N, P, o, A;
|
|
389
389
|
return {
|
|
390
390
|
id: (D = (T = (k = d == null ? void 0 : d.data) == null ? void 0 : k.result) == null ? void 0 : T[0]) == null ? void 0 : D.id,
|
|
391
|
-
...(
|
|
391
|
+
...(A = (o = (P = (N = d == null ? void 0 : d.data) == null ? void 0 : N.result) == null ? void 0 : P[0]) == null ? void 0 : o.value) == null ? void 0 : A.pageData
|
|
392
392
|
};
|
|
393
393
|
});
|
|
394
|
-
|
|
394
|
+
F.setItemData(a), C.setCacheStructures({
|
|
395
395
|
key: t,
|
|
396
396
|
data: a
|
|
397
397
|
});
|
|
@@ -410,10 +410,10 @@ const He = i(null), Ee = async (e, t) => {
|
|
|
410
410
|
g.type === "create" ? u = {
|
|
411
411
|
...I.value,
|
|
412
412
|
path: (f = b.value) == null ? void 0 : f.path
|
|
413
|
-
} : g.type === "update" && (u = R.value), await C.setConfigMenu(u), ne.setSelectTitle(l),
|
|
414
|
-
},
|
|
413
|
+
} : g.type === "update" && (u = R.value), await C.setConfigMenu(u), ne.setSelectTitle(l), F.setIsEdit("edit");
|
|
414
|
+
}, H = async (e) => {
|
|
415
415
|
var l, u, n, c, s, p;
|
|
416
|
-
const t = await
|
|
416
|
+
const t = await U({
|
|
417
417
|
key: {
|
|
418
418
|
type: "menuConfigData",
|
|
419
419
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
@@ -461,7 +461,7 @@ const He = i(null), Ee = async (e, t) => {
|
|
|
461
461
|
}
|
|
462
462
|
}, y = oe) : t === "delete" && (r = {
|
|
463
463
|
id: e
|
|
464
|
-
}, y =
|
|
464
|
+
}, y = Te);
|
|
465
465
|
const a = await y(r);
|
|
466
466
|
if (((s = a == null ? void 0 : a.data) == null ? void 0 : s.code) !== 200)
|
|
467
467
|
throw S.error("保存响应失败"), new Error("保存响应失败");
|
|
@@ -495,18 +495,18 @@ const He = i(null), Ee = async (e, t) => {
|
|
|
495
495
|
})), ((p = t == null ? void 0 : t.updateComps) == null ? void 0 : p.length) > 0 && ((f = t == null ? void 0 : t.updateComps) == null || f.forEach((r) => {
|
|
496
496
|
r != null && r.id && l.push(E(r, "update", e));
|
|
497
497
|
})), l;
|
|
498
|
-
},
|
|
498
|
+
}, xe = (e) => {
|
|
499
499
|
const t = /* @__PURE__ */ new Map();
|
|
500
500
|
return e.forEach((l) => {
|
|
501
501
|
t.set(l.id, l);
|
|
502
502
|
}), Array.from(t.values());
|
|
503
|
-
},
|
|
503
|
+
}, Oe = async (e, t) => {
|
|
504
504
|
var l, u, n, c, s, p, f;
|
|
505
505
|
try {
|
|
506
506
|
const r = e == null ? void 0 : e.filter((o) => (o == null ? void 0 : o.key) === "contentConfig"), y = e == null ? void 0 : e.filter((o) => (o == null ? void 0 : o.key) === "dialogConfig");
|
|
507
|
-
await
|
|
508
|
-
const a = (n = (u = (l =
|
|
509
|
-
let d = (p = (s = (c =
|
|
507
|
+
await B();
|
|
508
|
+
const a = (n = (u = (l = K.value) == null ? void 0 : l.filter((o) => (o == null ? void 0 : o.key) === "dialogConfig")) == null ? void 0 : u.flatMap((o) => o == null ? void 0 : o.data)) == null ? void 0 : n.map((o) => o == null ? void 0 : o.id);
|
|
509
|
+
let d = (p = (s = (c = K.value) == null ? void 0 : c.filter((o) => (o == null ? void 0 : o.key) === "contentConfig")) == null ? void 0 : s.flatMap((o) => o == null ? void 0 : o.data)) == null ? void 0 : p.map((o) => o == null ? void 0 : o.id);
|
|
510
510
|
d = [...d, ...(f = ce.value) == null ? void 0 : f.map((o) => o == null ? void 0 : o.id)];
|
|
511
511
|
const k = te(y, a), T = te(r, d), D = le("dialogConfig", k), N = le("contentConfig", T), P = [...D, ...N];
|
|
512
512
|
await Promise.all(P).then((o) => {
|
|
@@ -521,7 +521,7 @@ const He = i(null), Ee = async (e, t) => {
|
|
|
521
521
|
const v = (ee = (m = h.value) == null ? void 0 : m.structureIds) == null ? void 0 : ee.filter((M) => (M == null ? void 0 : M.key) === "contentConfig");
|
|
522
522
|
w = [...w, ...v];
|
|
523
523
|
}
|
|
524
|
-
const ve =
|
|
524
|
+
const ve = xe(w);
|
|
525
525
|
ge({
|
|
526
526
|
...t,
|
|
527
527
|
isNotInitial: !0,
|
|
@@ -560,16 +560,16 @@ const He = i(null), Ee = async (e, t) => {
|
|
|
560
560
|
}
|
|
561
561
|
}, u = oe) : t === "delete" && (l = {
|
|
562
562
|
ids: [e.id, ...(c = e == null ? void 0 : e.structureIds) == null ? void 0 : c.map((s) => s.id)]
|
|
563
|
-
}, u =
|
|
563
|
+
}, u = Me), Ce(u, l, t).then((s) => {
|
|
564
564
|
t === "create" && G.value.push({
|
|
565
565
|
...e,
|
|
566
566
|
id: s
|
|
567
|
-
}), t && s && S.success("响应成功"),
|
|
567
|
+
}), t && s && S.success("响应成功"), H(b.value);
|
|
568
568
|
});
|
|
569
569
|
}, _e = async () => {
|
|
570
570
|
var l, u, n, c, s;
|
|
571
|
-
const e = JSON.parse(J(JSON.stringify(
|
|
572
|
-
await
|
|
571
|
+
const e = JSON.parse(J(JSON.stringify(K.value)));
|
|
572
|
+
await B();
|
|
573
573
|
const t = g.type === "create" ? {
|
|
574
574
|
...R.value,
|
|
575
575
|
rootNodePath: (u = (l = b.value) == null ? void 0 : l.rootNode) == null ? void 0 : u.path
|
|
@@ -578,7 +578,7 @@ const He = i(null), Ee = async (e, t) => {
|
|
|
578
578
|
rootNodePath: (c = (n = b.value) == null ? void 0 : n.rootNode) == null ? void 0 : c.path,
|
|
579
579
|
id: (s = h.value) == null ? void 0 : s.id
|
|
580
580
|
};
|
|
581
|
-
await
|
|
581
|
+
await Oe(e, t), I.value = {}, g.show = !1, await H(b.value);
|
|
582
582
|
}, je = () => {
|
|
583
583
|
g.show = !1;
|
|
584
584
|
}, Je = {
|
|
@@ -600,20 +600,20 @@ const He = i(null), Ee = async (e, t) => {
|
|
|
600
600
|
__proto__: null,
|
|
601
601
|
beforeDialogDestroy: je,
|
|
602
602
|
buttonValue: Ne,
|
|
603
|
-
changeTrigger:
|
|
603
|
+
changeTrigger: He,
|
|
604
604
|
changedRow: De,
|
|
605
|
-
clickNodeTrigger:
|
|
606
|
-
clickRowButton:
|
|
605
|
+
clickNodeTrigger: Fe,
|
|
606
|
+
clickRowButton: Be,
|
|
607
607
|
clickSubmitForm: _e,
|
|
608
608
|
clickTrigger: Re,
|
|
609
609
|
dialogInfo: g,
|
|
610
610
|
formatFormData: _,
|
|
611
611
|
getInitialSubStructure: fe,
|
|
612
|
-
getTableDataAsync:
|
|
612
|
+
getTableDataAsync: H,
|
|
613
613
|
handleItemDataChange: Pe,
|
|
614
614
|
inputForm: I,
|
|
615
615
|
menuPageData: we,
|
|
616
|
-
operatingForm:
|
|
616
|
+
operatingForm: Ae,
|
|
617
617
|
pageData: se,
|
|
618
618
|
renderFormData: L,
|
|
619
619
|
tableLoading: z,
|
|
@@ -0,0 +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-mQIxU0SD.cjs");const o=require("./index-BOev8isw.cjs"),n=require("./index.vue_vue_type_style_index_1_lang-DraQDAAw.cjs"),u=require("./index-B-oe2x1V.cjs"),c=require("./index-6jSC3unU.cjs"),s={class:"role-wrapper"},i=e.defineComponent({__name:"index",setup(d){const t=e.reactive({...c.State}),a=n.useMenuState(),{activeMenuPath:r}=o.storeToRefs(a);return e.onMounted(async()=>{t.structureId=await n.getActivePageStructureId(r.value)}),(_,l)=>(e.openBlock(),e.createElementBlock("div",s,[e.createVNode(u.ssTable,{itemData:t.pageData,onChange:t.handleItemDataChange},null,8,["itemData","onChange"])]))}});exports.default=i;
|