ss-component-new 1.3.660 → 1.3.661
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/ss-component.js +42 -42
- package/package.json +1 -1
package/dist/ss-component.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { l as
|
|
4
|
-
import { useRouter as
|
|
1
|
+
import { defineComponent as N, ref as V, computed as $, watch as r, nextTick as G, onMounted as E, onUnmounted as q, resolveComponent as J, createElementBlock as L, openBlock as S, createBlock as Q } from "vue";
|
|
2
|
+
import { u as X, p as _, s as A, a as Y, b as T, g as Z, v as p, _ as ee } from "./_plugin-vue_export-helper-BZ_eTSzz.js";
|
|
3
|
+
import { l as te } from "./index-p2dYw5GI.js";
|
|
4
|
+
import { useRouter as ne } from "vue-router";
|
|
5
5
|
import D from "./ss-component2.js";
|
|
6
|
-
import { t as
|
|
6
|
+
import { t as oe, c as ae, b as ie } from "./index-BofWylNB.js";
|
|
7
7
|
import { S as ke } from "./index-BofWylNB.js";
|
|
8
|
-
const
|
|
8
|
+
const se = { key: 0 }, ce = /* @__PURE__ */ N({
|
|
9
9
|
__name: "index",
|
|
10
10
|
props: {
|
|
11
11
|
windowConfig: {
|
|
@@ -75,14 +75,14 @@ const ie = { key: 0 }, se = /* @__PURE__ */ z({
|
|
|
75
75
|
},
|
|
76
76
|
emits: ["buildContent", "openThreeBuild", "threeData", "setLoginInfo", "projectLogin", "updateApiUrl", "clearFileContent", "systemContent", "getMenuPathValue", "executeWorkspace", "updateVersion"],
|
|
77
77
|
setup(o, { emit: c }) {
|
|
78
|
-
const f =
|
|
78
|
+
const f = ne(), l = X(_), { loginUserInfo: m } = A(l), { initSystemInfo: P } = Y(), u = T(_), w = V(!0), { activeMenuPath: v } = A(u), e = o, a = c, j = $(() => {
|
|
79
79
|
var t, n;
|
|
80
80
|
return (e == null ? void 0 : e.showButton) || ((n = (t = m.value) == null ? void 0 : t.accounttype) == null ? void 0 : n.toUpperCase()) === "SUPERADMIN";
|
|
81
|
-
}),
|
|
81
|
+
}), B = (t) => {
|
|
82
82
|
a("systemContent", t);
|
|
83
|
-
}, B = () => {
|
|
84
|
-
a("updateVersion");
|
|
85
83
|
}, b = () => {
|
|
84
|
+
a("updateVersion");
|
|
85
|
+
}, M = () => {
|
|
86
86
|
a("clearFileContent");
|
|
87
87
|
};
|
|
88
88
|
r(
|
|
@@ -96,7 +96,7 @@ const ie = { key: 0 }, se = /* @__PURE__ */ z({
|
|
|
96
96
|
() => v.value,
|
|
97
97
|
async () => {
|
|
98
98
|
var n, s;
|
|
99
|
-
let t = await
|
|
99
|
+
let t = await Z({
|
|
100
100
|
platId: parseInt((n = m == null ? void 0 : m.value) == null ? void 0 : n.plat_id)
|
|
101
101
|
});
|
|
102
102
|
t = (s = t == null ? void 0 : t.data) == null ? void 0 : s.result, u.setDataFiles(t), a("getMenuPathValue", v.value);
|
|
@@ -107,17 +107,17 @@ const ie = { key: 0 }, se = /* @__PURE__ */ z({
|
|
|
107
107
|
async () => {
|
|
108
108
|
w.value = !0;
|
|
109
109
|
let t = e == null ? void 0 : e.loginContent;
|
|
110
|
-
if (t != null && t.account && (t != null && t.password) && (await
|
|
111
|
-
let n = await
|
|
110
|
+
if (t != null && t.account && (t != null && t.password) && (await te(t), status)) {
|
|
111
|
+
let n = await p();
|
|
112
112
|
a("systemContent", n == null ? void 0 : n.allMenuContents), f.push("/"), u.setHasClickEditComp(!1);
|
|
113
113
|
}
|
|
114
|
-
w.value = !1, await
|
|
114
|
+
w.value = !1, await G();
|
|
115
115
|
},
|
|
116
116
|
{ deep: !0, immediate: !0 }
|
|
117
117
|
);
|
|
118
|
-
const
|
|
118
|
+
const x = (t) => {
|
|
119
119
|
a("projectLogin", t);
|
|
120
|
-
},
|
|
120
|
+
}, K = () => {
|
|
121
121
|
a("projectLogin", "");
|
|
122
122
|
};
|
|
123
123
|
r(() => [e == null ? void 0 : e.systemKey, e == null ? void 0 : e.systemInfo], async ([t, n]) => {
|
|
@@ -132,19 +132,19 @@ const ie = { key: 0 }, se = /* @__PURE__ */ z({
|
|
|
132
132
|
},
|
|
133
133
|
{ immediate: !0, deep: !0 }
|
|
134
134
|
), E(async () => {
|
|
135
|
-
e.systemInfo ? l.setSystemInfo(e.systemInfo) : await
|
|
135
|
+
e.systemInfo ? l.setSystemInfo(e.systemInfo) : await P();
|
|
136
136
|
});
|
|
137
|
-
const
|
|
137
|
+
const U = () => {
|
|
138
138
|
a("buildContent");
|
|
139
|
-
},
|
|
139
|
+
}, H = () => {
|
|
140
140
|
a("setLoginInfo");
|
|
141
|
-
}, H = (t) => {
|
|
142
|
-
a("openThreeBuild", t);
|
|
143
141
|
}, O = (t) => {
|
|
144
|
-
a("
|
|
142
|
+
a("openThreeBuild", t);
|
|
145
143
|
}, R = (t) => {
|
|
146
|
-
a("
|
|
144
|
+
a("threeData", t);
|
|
147
145
|
}, W = (t) => {
|
|
146
|
+
a("updateApiUrl", t);
|
|
147
|
+
}, z = (t) => {
|
|
148
148
|
a("executeWorkspace", t);
|
|
149
149
|
}, h = () => {
|
|
150
150
|
var d, i, k;
|
|
@@ -155,53 +155,53 @@ const ie = { key: 0 }, se = /* @__PURE__ */ z({
|
|
|
155
155
|
};
|
|
156
156
|
return E(() => {
|
|
157
157
|
h(), window.addEventListener("resize", h);
|
|
158
|
-
}),
|
|
158
|
+
}), q(() => {
|
|
159
159
|
window.removeEventListener("resize", h);
|
|
160
160
|
}), (t, n) => {
|
|
161
|
-
const s =
|
|
161
|
+
const s = J("router-view");
|
|
162
162
|
return S(), L("div", null, [
|
|
163
|
-
w.value ? (S(), L("div",
|
|
163
|
+
w.value ? (S(), L("div", se)) : (S(), Q(s, {
|
|
164
164
|
key: 1,
|
|
165
165
|
mode: e == null ? void 0 : e.mode,
|
|
166
166
|
content: e == null ? void 0 : e.content,
|
|
167
167
|
jsonContents: e == null ? void 0 : e.jsonContents,
|
|
168
168
|
pathContent: e == null ? void 0 : e.pathContent,
|
|
169
|
-
showButton:
|
|
169
|
+
showButton: j.value,
|
|
170
170
|
nodeDev: e == null ? void 0 : e.nodeDev,
|
|
171
171
|
windowConfig: o.windowConfig,
|
|
172
172
|
systemInfo: o.systemInfo,
|
|
173
173
|
"old-systemKey": o.systemKey,
|
|
174
|
-
onBuildContent:
|
|
175
|
-
onProjectLogin:
|
|
176
|
-
onClearLogin:
|
|
177
|
-
onUpdateApiUrl:
|
|
178
|
-
onOpenThreeBuild:
|
|
174
|
+
onBuildContent: U,
|
|
175
|
+
onProjectLogin: x,
|
|
176
|
+
onClearLogin: K,
|
|
177
|
+
onUpdateApiUrl: W,
|
|
178
|
+
onOpenThreeBuild: O,
|
|
179
179
|
pageKey: o.pageKey,
|
|
180
|
-
onThreeData:
|
|
181
|
-
onSetLoginInfo:
|
|
180
|
+
onThreeData: R,
|
|
181
|
+
onSetLoginInfo: H,
|
|
182
182
|
loginContent: e == null ? void 0 : e.loginContent,
|
|
183
|
-
onUpdateVersion:
|
|
184
|
-
onClearFileContent:
|
|
185
|
-
onSystemContent:
|
|
186
|
-
onExecuteWorkspace:
|
|
183
|
+
onUpdateVersion: b,
|
|
184
|
+
onClearFileContent: M,
|
|
185
|
+
onSystemContent: B,
|
|
186
|
+
onExecuteWorkspace: z,
|
|
187
187
|
workspaceHistoryData: e == null ? void 0 : e.workspaceHistoryData,
|
|
188
188
|
workspaceInfo: e == null ? void 0 : e.workspaceInfo
|
|
189
189
|
}, null, 8, ["mode", "content", "jsonContents", "pathContent", "showButton", "nodeDev", "windowConfig", "systemInfo", "old-systemKey", "pageKey", "loginContent", "workspaceHistoryData", "workspaceInfo"]))
|
|
190
190
|
]);
|
|
191
191
|
};
|
|
192
192
|
}
|
|
193
|
-
}),
|
|
193
|
+
}), F = /* @__PURE__ */ ee(ce, [["__scopeId", "data-v-d3a775f0"]]), I = T(), le = [F, F], he = (o) => {
|
|
194
194
|
le.forEach((c) => {
|
|
195
195
|
o.use(c);
|
|
196
196
|
}), o.use(D), o.config.globalProperties.$router = D;
|
|
197
197
|
}, ue = (o) => {
|
|
198
198
|
switch (o) {
|
|
199
199
|
case "browser":
|
|
200
|
-
return
|
|
200
|
+
return ie;
|
|
201
201
|
case "client":
|
|
202
|
-
return
|
|
202
|
+
return ae;
|
|
203
203
|
case "three":
|
|
204
|
-
return
|
|
204
|
+
return oe;
|
|
205
205
|
}
|
|
206
206
|
}, de = (o) => {
|
|
207
207
|
const c = document.documentElement;
|