ss-component-new 1.3.623 → 1.3.625
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/JSEncrypt-B36c1iN5.js +1983 -0
- package/dist/{MTLLoader-DMhnklB_.js → MTLLoader-DuV8_PYP.js} +2 -2
- package/dist/{URDFLoader-BAD5outO.js → URDFLoader-DfNVA8GD.js} +584 -589
- package/dist/{animationData-BivNXwi8.js → animationData-DjGdx41B.js} +3 -3
- package/dist/{array-DVFpR3i6.js → array-C-L4O-q0.js} +42 -41
- package/dist/{clone-MyfSNInd.js → clone-CbeCG3Ov.js} +1 -1
- package/dist/{eleIcon-BoKZ_PzU.js → eleIcon-Dtsx377t.js} +2 -2
- package/dist/{iconfont-CtG24-bX.js → iconfont-BRu9GzMR.js} +91 -91
- package/dist/icons/svg/functionList.svg +1 -0
- package/dist/{index-DJrzqi4-.js → index-11kpzK0A.js} +17 -17
- package/dist/{index-eHRjbFnR.js → index-BBeQD0s0.js} +202 -193
- package/dist/{index-DErPB-d8.js → index-BDgaEPWa.js} +40 -36
- package/dist/{index-dD-mKgue.js → index-BHtNKL1L.js} +2 -2
- package/dist/{index-DCY5J8nu.js → index-BI3gwdBk.js} +1 -1
- package/dist/{index-6qXeMn6b.js → index-BK7QfhLA.js} +3 -3
- package/dist/{index-BybrpYzx.js → index-BR4lT5aP.js} +5 -5
- package/dist/{index-B2LYEScO.js → index-B_k0K6PO.js} +4 -4
- package/dist/{index-D2Nbhdyp.js → index-BcOObFLF.js} +22 -20
- package/dist/{index-C7U5HDoF.js → index-CA61YqCo.js} +8 -8
- package/dist/{index-CvZcm-Tt.js → index-CDpLX430.js} +8 -7
- package/dist/{index-nKrk42el.js → index-CGVo5md_.js} +4 -4
- package/dist/{index-1I7eukQf.js → index-CRs6-4Q2.js} +8981 -9420
- package/dist/index-CXav_oAV.js +572 -0
- package/dist/{index-DIVct0z6.js → index-CaXC8Jyl.js} +5 -5
- package/dist/{index-yipj2id1.js → index-CmAAjlm7.js} +3 -3
- package/dist/{index-COpc0s4t.js → index-Cq7_ROtd.js} +62 -60
- package/dist/{index-B8NQAdR4.js → index-CtvxzFRf.js} +1298 -1292
- package/dist/{index-CFniuDkF.js → index-CwToCssN.js} +19 -19
- package/dist/{index-BkkvdZXm.js → index-CyDayZei.js} +44 -41
- package/dist/{index-BU9xRmBn.js → index-CyTQWpix.js} +5 -5
- package/dist/{index-CM6aWexA.js → index-DB7oGP7_.js} +2 -2
- package/dist/{index-dmrMsEJn.js → index-DLix-dLB.js} +75 -69
- package/dist/{index-BJmov708.js → index-DUj44DQp.js} +3 -3
- package/dist/{index-D_PRj4Vs.js → index-DY8GPA6b.js} +437 -437
- package/dist/{index-BjEiOqAI.js → index-DYm6i2sH.js} +4 -4
- package/dist/{index-DmILGKv9.js → index-DePuqaJT.js} +61 -57
- package/dist/{index-BfM_hH1v.js → index-Dl1CBHxf.js} +50 -50
- package/dist/index-DleBYnVS.js +11010 -0
- package/dist/{index-CkO7j_i1.js → index-DvpRXl9O.js} +8 -8
- package/dist/{index-CT1LWsrT.js → index-TGai9FYc.js} +5 -5
- package/dist/{index-CjRltPMx.js → index-dpMccf4n.js} +20658 -20635
- package/dist/{index-Dr6UVDuO.js → index-pH8W1sFm.js} +11 -11
- package/dist/{index-BFqUz4pN.js → index-rlStojTL.js} +1 -1
- package/dist/{index-B4NcYIuS.js → index-tLd2cEHX.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-DwbHXtUp.js → index.vue_vue_type_script_setup_true_lang-DRzriV-s.js} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_39e1db95_lang-DrICHBhu.js → index.vue_vue_type_style_index_0_scoped_39e1db95_lang-C3u-edEE.js} +27735 -27760
- package/dist/isString-CXX7MUiv.js +8 -0
- package/dist/{localIcon-CoJHw5ss.js → localIcon-D5UoFBU5.js} +1 -1
- package/dist/{main-DK4IZx7n.js → main-DYI_gzHb.js} +9 -9
- package/dist/{menuIndex-BiUB7t5q.js → menuIndex-BsSEf1du.js} +1 -1
- package/dist/obj/model.mtl +42 -0
- package/dist/obj/model.obj +26110 -0
- package/dist/{request-BfrhYBTM.js → request-D-LN5bvn.js} +3075 -3493
- package/dist/ss-component.css +3 -3
- package/dist/ss-component.js +14 -14
- package/dist/ss-component2.js +13 -13
- package/dist/ss-component3.js +1 -1
- package/dist/{threeModel-DyfwUZBe.js → threeModel-ecaJ0DIL.js} +174 -174
- package/dist/{threePreview-VgYHwBPZ.js → threePreview-BhUCpcNm.js} +12 -12
- package/dist/{threeSceneView-B741OdNa.js → threeSceneView-CF0B8Eqh.js} +24 -23
- package/dist/{threeSceneViewForCPMPIP-UjEFfPgg.js → threeSceneViewForCPMPIP-Cl0y_dru.js} +17 -16
- package/dist/{threeTrackPathView-B_uPNM5T.js → threeTrackPathView-0PmSjWTX.js} +7 -7
- package/dist/{threeViewerHost-BEGDV6UB.js → threeViewerHost-BDWUjTdj.js} +11 -11
- package/dist/{urdfTree-DFTtpJ1T.js → urdfTree-Cxg9PfRQ.js} +9 -9
- package/dist/{workpieceTreePanel-D5BfZ6Fw.js → workpieceTreePanel-BLvwYtnY.js} +60 -56
- package/package.json +1 -1
- package/public/icons/svg/functionList.svg +1 -0
- package/public/obj/model.mtl +42 -0
- package/public/obj/model.obj +26110 -0
- package/dist/index-BRSmS6mX.js +0 -10771
- package/dist/index-DwXNsgEY.js +0 -2623
- package/dist/isString-Dxm3W5iX.js +0 -8
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ref as x, onMounted as _,
|
|
2
|
-
import { s as b } from "./index-
|
|
3
|
-
import { c as s } from "./index-
|
|
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-DUj44DQp.js";
|
|
3
|
+
import { c as s } from "./index-CtvxzFRf.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;
|
|
@@ -74,7 +74,7 @@ const A = (t, n, a) => {
|
|
|
74
74
|
var o;
|
|
75
75
|
const e = n == null ? void 0 : n.eChartContents;
|
|
76
76
|
a.value = A(s(e == null ? void 0 : e.compData), (o = c == null ? void 0 : c.find((r) => (r == null ? void 0 : r.key) === (e == null ? void 0 : e.name))) == null ? void 0 : o.value, e == null ? void 0 : e.extraContent);
|
|
77
|
-
}), (e, o) => (
|
|
77
|
+
}), (e, o) => (y(), g("div", v, [
|
|
78
78
|
C(b, { optionContents: a.value }, null, 8, ["optionContents"])
|
|
79
79
|
]));
|
|
80
80
|
}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createElementBlock as F, openBlock as L, createElementVNode as s, renderSlot as E, defineComponent as W, ref as _, resolveComponent as b, createVNode as t, withCtx as a, unref as P, reactive as le, computed as G, onMounted as me, createBlock as J, resolveDirective as ye, createCommentVNode as ae, withDirectives as he, normalizeClass as ie, toDisplayString as S, Transition as Ce, watch as ee, Fragment as we, createTextVNode as O, onBeforeUnmount as Te } from "vue";
|
|
2
2
|
import { _ as H } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
-
import { b as ne, p as Q, s as se, u as ke, a as Ue, l as Ve, e as Le, v as $e } from "./index-
|
|
4
|
-
import { _ as Y } from "./index.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { c as qe, a as Ae, f as Ie, b as re, E as ce } from "./request-
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
3
|
+
import { b as ne, p as Q, s as se, u as ke, a as Ue, l as Ve, e as Le, v as $e } from "./index-CtvxzFRf.js";
|
|
4
|
+
import { _ as Y } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
|
|
5
|
+
import { c as qe, a as Ae, f as Ie, b as re, E as ce } from "./request-D-LN5bvn.js";
|
|
6
|
+
import "./JSEncrypt-B36c1iN5.js";
|
|
7
|
+
import { u as De } from "./index-TGai9FYc.js";
|
|
8
|
+
import { useRouter as Fe } from "vue-router";
|
|
9
|
+
import { l as xe } from "./index-B_k0K6PO.js";
|
|
9
10
|
const Re = {}, Ne = { class: "left-wrap" }, Se = { class: "left-bg" };
|
|
10
11
|
function Ee(y, T) {
|
|
11
|
-
return L(),
|
|
12
|
+
return L(), F("div", Ne, [
|
|
12
13
|
s("div", Se, [
|
|
13
14
|
E(y.$slots, "img", {}, void 0, !0)
|
|
14
15
|
])
|
|
@@ -38,7 +39,7 @@ const Me = /* @__PURE__ */ H(Re, [["render", Ee], ["__scopeId", "data-v-9b7ee6c9
|
|
|
38
39
|
};
|
|
39
40
|
return (v, k) => {
|
|
40
41
|
const f = b("el-button"), U = b("el-tab-pane"), V = b("el-tabs");
|
|
41
|
-
return L(),
|
|
42
|
+
return L(), F("div", Be, [
|
|
42
43
|
t(V, {
|
|
43
44
|
modelValue: m.value,
|
|
44
45
|
"onUpdate:modelValue": k[0] || (k[0] = (w) => m.value = w),
|
|
@@ -152,7 +153,7 @@ const Xe = () => ({ initUrlInfo: () => ({
|
|
|
152
153
|
openDialog: n,
|
|
153
154
|
handleClose: u
|
|
154
155
|
}), (h, d) => {
|
|
155
|
-
const
|
|
156
|
+
const x = b("el-input"), R = b("el-form-item"), M = b("el-col"), c = b("el-row"), $ = b("el-form"), N = b("el-dialog");
|
|
156
157
|
return L(), J(N, {
|
|
157
158
|
class: "api-form-dialog",
|
|
158
159
|
modelValue: o.value,
|
|
@@ -161,7 +162,7 @@ const Xe = () => ({ initUrlInfo: () => ({
|
|
|
161
162
|
"destroy-on-close": "",
|
|
162
163
|
"show-close": !1
|
|
163
164
|
}, {
|
|
164
|
-
header: a(() =>
|
|
165
|
+
header: a(() => d[3] || (d[3] = [])),
|
|
165
166
|
default: a(() => [
|
|
166
167
|
s("div", Ge, [
|
|
167
168
|
s("div", Je, [
|
|
@@ -183,7 +184,7 @@ const Xe = () => ({ initUrlInfo: () => ({
|
|
|
183
184
|
"label-position": "top"
|
|
184
185
|
}, {
|
|
185
186
|
default: a(() => [
|
|
186
|
-
t(
|
|
187
|
+
t(x, {
|
|
187
188
|
modelValue: f.value.host,
|
|
188
189
|
"onUpdate:modelValue": d[0] || (d[0] = (I) => f.value.host = I),
|
|
189
190
|
"aria-label": "主机名",
|
|
@@ -203,7 +204,7 @@ const Xe = () => ({ initUrlInfo: () => ({
|
|
|
203
204
|
"label-position": "top"
|
|
204
205
|
}, {
|
|
205
206
|
default: a(() => [
|
|
206
|
-
t(
|
|
207
|
+
t(x, {
|
|
207
208
|
modelValue: f.value.port,
|
|
208
209
|
"onUpdate:modelValue": d[1] || (d[1] = (I) => f.value.port = I),
|
|
209
210
|
"aria-label": "端口",
|
|
@@ -280,10 +281,10 @@ const Xe = () => ({ initUrlInfo: () => ({
|
|
|
280
281
|
let r = null;
|
|
281
282
|
const u = G(() => o.value === "success" ? "重启成功!" : o.value === "timeout" ? "连接超时" : "正在应用配置并等待服务重新启动中..."), A = G(() => o.value === "success" ? "服务已恢复,配置已生效" : o.value === "timeout" ? "超过最大等待时间,请手动检查服务状态" : "请稍后" + ".".repeat(n.value));
|
|
282
283
|
let h = null, d = null;
|
|
283
|
-
const
|
|
284
|
+
const x = () => {
|
|
284
285
|
r && (clearInterval(r), r = null);
|
|
285
286
|
}, R = () => {
|
|
286
|
-
h && (clearInterval(h), h = null), d && (clearInterval(d), d = null),
|
|
287
|
+
h && (clearInterval(h), h = null), d && (clearInterval(d), d = null), x();
|
|
287
288
|
}, M = () => {
|
|
288
289
|
i.value = 0;
|
|
289
290
|
let g = 0;
|
|
@@ -297,7 +298,7 @@ const Xe = () => ({ initUrlInfo: () => ({
|
|
|
297
298
|
n.value = n.value >= 3 ? 1 : n.value + 1;
|
|
298
299
|
}, 500);
|
|
299
300
|
}, $ = () => {
|
|
300
|
-
|
|
301
|
+
x();
|
|
301
302
|
const g = setInterval(() => {
|
|
302
303
|
i.value = Math.min(i.value + 3, 100), i.value >= 100 && (clearInterval(g), o.value = "success");
|
|
303
304
|
}, 30);
|
|
@@ -337,17 +338,17 @@ const Xe = () => ({ initUrlInfo: () => ({
|
|
|
337
338
|
await ((g = k.value) == null ? void 0 : g.validate());
|
|
338
339
|
try {
|
|
339
340
|
V.value = !0;
|
|
340
|
-
const
|
|
341
|
-
e.databaseType === "sqlite" ?
|
|
342
|
-
} catch (
|
|
343
|
-
const B = ((K = (l =
|
|
341
|
+
const D = { databaseType: e.databaseType };
|
|
342
|
+
e.databaseType === "sqlite" ? D.sqliteDir = e.sqliteDir.trim() : (D.user = e.user.trim(), D.host = e.host.trim(), D.database = e.database.trim(), D.password = e.password, D.port = Number(e.port)), await re.post(C.value + "/platform/config/db", D), w.value = !0, o.value = "running", M(), c(), setTimeout(N, 1e3);
|
|
343
|
+
} catch (D) {
|
|
344
|
+
const B = ((K = (l = D == null ? void 0 : D.response) == null ? void 0 : l.data) == null ? void 0 : K.message) || "保存失败,请重试";
|
|
344
345
|
ce.error(B);
|
|
345
346
|
} finally {
|
|
346
347
|
V.value = !1;
|
|
347
348
|
}
|
|
348
349
|
};
|
|
349
350
|
return T({ openDialog: te, handleClose: j }), (g, l) => {
|
|
350
|
-
const K = b("el-icon"),
|
|
351
|
+
const K = b("el-icon"), D = b("el-progress"), B = b("el-input"), z = b("el-form-item"), oe = b("el-col"), de = b("el-row"), ge = b("el-form"), _e = b("el-dialog"), be = ye("loading");
|
|
351
352
|
return L(), J(_e, {
|
|
352
353
|
class: "db-config-dialog",
|
|
353
354
|
modelValue: f.value,
|
|
@@ -366,8 +367,8 @@ const Xe = () => ({ initUrlInfo: () => ({
|
|
|
366
367
|
])
|
|
367
368
|
]),
|
|
368
369
|
default: a(() => [
|
|
369
|
-
w.value ? (L(),
|
|
370
|
-
o.value !== "running" ? (L(),
|
|
370
|
+
w.value ? (L(), F("div", lt, [
|
|
371
|
+
o.value !== "running" ? (L(), F("div", {
|
|
371
372
|
key: 0,
|
|
372
373
|
class: ie(["restart-icon-wrap", { success: o.value === "success", error: o.value === "timeout" }])
|
|
373
374
|
}, [
|
|
@@ -391,7 +392,7 @@ const Xe = () => ({ initUrlInfo: () => ({
|
|
|
391
392
|
], 2)) : ae("", !0),
|
|
392
393
|
s("div", st, S(u.value), 1),
|
|
393
394
|
s("div", nt, S(A.value), 1),
|
|
394
|
-
t(
|
|
395
|
+
t(D, {
|
|
395
396
|
class: "restart-progress",
|
|
396
397
|
percentage: Math.round(i.value),
|
|
397
398
|
status: o.value === "success" ? "success" : o.value === "timeout" ? "exception" : "",
|
|
@@ -405,22 +406,22 @@ const Xe = () => ({ initUrlInfo: () => ({
|
|
|
405
406
|
modelValue: o.value === "success" ? "确定" : "关闭",
|
|
406
407
|
buttonType: o.value === "success" ? "primary" : "info"
|
|
407
408
|
}, null, 8, ["modelValue", "buttonType"])) : ae("", !0)
|
|
408
|
-
])) : he((L(),
|
|
409
|
+
])) : he((L(), F("div", it, [
|
|
409
410
|
s("div", rt, [
|
|
410
411
|
s("div", {
|
|
411
412
|
class: ie(["db-type-card", { active: e.databaseType === "sqlite" }]),
|
|
412
413
|
onClick: l[0] || (l[0] = (q) => e.databaseType = "sqlite")
|
|
413
|
-
},
|
|
414
|
+
}, l[10] || (l[10] = [
|
|
414
415
|
s("span", { class: "db-label" }, "SQLite", -1),
|
|
415
416
|
s("span", { class: "db-desc" }, "本地文件数据库", -1)
|
|
416
|
-
])
|
|
417
|
+
]), 2),
|
|
417
418
|
s("div", {
|
|
418
419
|
class: ie(["db-type-card", { active: e.databaseType === "pgsql" }]),
|
|
419
420
|
onClick: l[1] || (l[1] = (q) => e.databaseType = "pgsql")
|
|
420
|
-
},
|
|
421
|
+
}, l[11] || (l[11] = [
|
|
421
422
|
s("span", { class: "db-label" }, "PostgreSQL", -1),
|
|
422
423
|
s("span", { class: "db-desc" }, "远程关系型数据库", -1)
|
|
423
|
-
])
|
|
424
|
+
]), 2)
|
|
424
425
|
]),
|
|
425
426
|
t(ge, {
|
|
426
427
|
ref_key: "formRef",
|
|
@@ -436,7 +437,7 @@ const Xe = () => ({ initUrlInfo: () => ({
|
|
|
436
437
|
mode: "out-in"
|
|
437
438
|
}, {
|
|
438
439
|
default: a(() => [
|
|
439
|
-
e.databaseType === "sqlite" ? (L(),
|
|
440
|
+
e.databaseType === "sqlite" ? (L(), F("div", ct, [
|
|
440
441
|
t(z, {
|
|
441
442
|
label: "数据库目录",
|
|
442
443
|
prop: "sqliteDir"
|
|
@@ -460,9 +461,10 @@ const Xe = () => ({ initUrlInfo: () => ({
|
|
|
460
461
|
}, 8, ["modelValue"]),
|
|
461
462
|
l[12] || (l[12] = s("div", { class: "field-hint" }, "相对于后端 exe 所在目录的路径", -1))
|
|
462
463
|
]),
|
|
463
|
-
_: 1
|
|
464
|
+
_: 1,
|
|
465
|
+
__: [12]
|
|
464
466
|
})
|
|
465
|
-
])) : (L(),
|
|
467
|
+
])) : (L(), F("div", ut, [
|
|
466
468
|
t(de, { gutter: 16 }, {
|
|
467
469
|
default: a(() => [
|
|
468
470
|
t(oe, { span: 16 }, {
|
|
@@ -576,7 +578,7 @@ const Xe = () => ({ initUrlInfo: () => ({
|
|
|
576
578
|
])
|
|
577
579
|
]),
|
|
578
580
|
footer: a(() => [
|
|
579
|
-
w.value ? ae("", !0) : (L(),
|
|
581
|
+
w.value ? ae("", !0) : (L(), F("div", dt, [
|
|
580
582
|
t(Y, {
|
|
581
583
|
emptyColor: !0,
|
|
582
584
|
onClickTrigger: j,
|
|
@@ -646,7 +648,7 @@ const Xe = () => ({ initUrlInfo: () => ({
|
|
|
646
648
|
};
|
|
647
649
|
return (i, o) => {
|
|
648
650
|
const n = b("svg-icon"), r = b("el-input"), u = b("el-form-item"), A = b("el-form"), h = b("el-link");
|
|
649
|
-
return L(),
|
|
651
|
+
return L(), F(we, null, [
|
|
650
652
|
s("div", vt, [
|
|
651
653
|
t(A, {
|
|
652
654
|
model: p,
|
|
@@ -712,20 +714,22 @@ const Xe = () => ({ initUrlInfo: () => ({
|
|
|
712
714
|
type: "primary",
|
|
713
715
|
onClick: f
|
|
714
716
|
}, {
|
|
715
|
-
default: a(() =>
|
|
716
|
-
O("接口地址"
|
|
717
|
-
])
|
|
718
|
-
_: 1
|
|
717
|
+
default: a(() => o[2] || (o[2] = [
|
|
718
|
+
O("接口地址")
|
|
719
|
+
])),
|
|
720
|
+
_: 1,
|
|
721
|
+
__: [2]
|
|
719
722
|
}),
|
|
720
723
|
t(h, {
|
|
721
724
|
class: "db-button",
|
|
722
725
|
type: "primary",
|
|
723
726
|
onClick: w
|
|
724
727
|
}, {
|
|
725
|
-
default: a(() =>
|
|
726
|
-
O("数据库配置"
|
|
727
|
-
])
|
|
728
|
-
_: 1
|
|
728
|
+
default: a(() => o[3] || (o[3] = [
|
|
729
|
+
O("数据库配置")
|
|
730
|
+
])),
|
|
731
|
+
_: 1,
|
|
732
|
+
__: [3]
|
|
729
733
|
})
|
|
730
734
|
])
|
|
731
735
|
]),
|
|
@@ -752,7 +756,7 @@ const Xe = () => ({ initUrlInfo: () => ({
|
|
|
752
756
|
setup(y, { emit: T }) {
|
|
753
757
|
const m = y, p = T;
|
|
754
758
|
ne(Q);
|
|
755
|
-
const { initVerify: C } =
|
|
759
|
+
const { initVerify: C } = De(), e = _(null), v = _(null);
|
|
756
760
|
let k = !1, f = null;
|
|
757
761
|
const U = async (n) => {
|
|
758
762
|
if (!n)
|
|
@@ -771,8 +775,8 @@ const Xe = () => ({ initUrlInfo: () => ({
|
|
|
771
775
|
return;
|
|
772
776
|
const n = v.value, r = n.getContext("2d"), u = e.value;
|
|
773
777
|
n.width = 200, n.height = 200;
|
|
774
|
-
const A = u.videoWidth || 640, h = u.videoHeight || 480, d = Math.min(200 / A, 200 / h),
|
|
775
|
-
r == null || r.drawImage(u, 0, 0, A, h, M, c,
|
|
778
|
+
const A = u.videoWidth || 640, h = u.videoHeight || 480, d = Math.min(200 / A, 200 / h), x = A * d, R = h * d, M = (200 - x) / 2, c = (200 - R) / 2;
|
|
779
|
+
r == null || r.drawImage(u, 0, 0, A, h, M, c, x, R), n.toBlob(($) => {
|
|
776
780
|
if ($) {
|
|
777
781
|
const N = new File([$], "face.png", { type: "image/png" });
|
|
778
782
|
U(N);
|
|
@@ -815,7 +819,7 @@ const Xe = () => ({ initUrlInfo: () => ({
|
|
|
815
819
|
}
|
|
816
820
|
}), Te(() => {
|
|
817
821
|
o();
|
|
818
|
-
}), (n, r) => (L(),
|
|
822
|
+
}), (n, r) => (L(), F("div", yt, [
|
|
819
823
|
s("div", ht, [
|
|
820
824
|
s("video", {
|
|
821
825
|
class: "face-video",
|
|
@@ -842,7 +846,7 @@ const Xe = () => ({ initUrlInfo: () => ({
|
|
|
842
846
|
}), wt = /* @__PURE__ */ H(Ct, [["__scopeId", "data-v-b64bc91c"]]), Tt = { class: "login-wrap" }, kt = { class: "login-body" }, Ut = { class: "login-body-item left" }, Vt = { class: "title" }, Lt = { class: "first-level" }, $t = {
|
|
843
847
|
key: 0,
|
|
844
848
|
class: "logo"
|
|
845
|
-
}, qt = ["src"], At = { class: "english-name" }, It = { class: "login-body-item right" },
|
|
849
|
+
}, qt = ["src"], At = { class: "english-name" }, It = { class: "login-body-item right" }, Dt = /* @__PURE__ */ W({
|
|
846
850
|
__name: "index",
|
|
847
851
|
props: {
|
|
848
852
|
oldSystemKey: {},
|
|
@@ -850,7 +854,7 @@ const Xe = () => ({ initUrlInfo: () => ({
|
|
|
850
854
|
},
|
|
851
855
|
emits: ["change", "projectLogin", "updateApiUrl", "systemContent"],
|
|
852
856
|
setup(y, { emit: T }) {
|
|
853
|
-
const m = y, p =
|
|
857
|
+
const m = y, p = Fe(), C = T, e = ke(Q), v = Ue(Q), { refreshLogin: k } = se(v), f = ne(Q), { systemInfo: U, loginUserInfo: V } = se(f), w = async (c) => {
|
|
854
858
|
const $ = await Le({
|
|
855
859
|
url: c
|
|
856
860
|
});
|
|
@@ -888,14 +892,14 @@ const Xe = () => ({ initUrlInfo: () => ({
|
|
|
888
892
|
}), n = _("account"), r = _(!1), u = _(!1), A = () => {
|
|
889
893
|
r.value = !0;
|
|
890
894
|
}, h = (c, $) => {
|
|
891
|
-
r.value = !1, c &&
|
|
895
|
+
r.value = !1, c && x($);
|
|
892
896
|
}, d = async () => (sessionStorage.setItem("loginToken", "111"), !0);
|
|
893
897
|
me(async () => {
|
|
894
898
|
await d();
|
|
895
899
|
});
|
|
896
|
-
const
|
|
900
|
+
const x = async (c) => {
|
|
897
901
|
var N, I, te, X;
|
|
898
|
-
if (u.value = !0, await
|
|
902
|
+
if (u.value = !0, await xe(c)) {
|
|
899
903
|
C("projectLogin", c);
|
|
900
904
|
let j = await $e();
|
|
901
905
|
C("systemContent", j == null ? void 0 : j.allMenuContents), p.push("/"), f.setLogRecordAsync({
|
|
@@ -913,7 +917,7 @@ const Xe = () => ({ initUrlInfo: () => ({
|
|
|
913
917
|
() => m == null ? void 0 : m.loginContent,
|
|
914
918
|
() => {
|
|
915
919
|
let c = m == null ? void 0 : m.loginContent;
|
|
916
|
-
c != null && c.account && (c != null && c.password) && !k.value &&
|
|
920
|
+
c != null && c.account && (c != null && c.password) && !k.value && x(c);
|
|
917
921
|
},
|
|
918
922
|
{ deep: !0, immediate: !0 }
|
|
919
923
|
);
|
|
@@ -922,7 +926,7 @@ const Xe = () => ({ initUrlInfo: () => ({
|
|
|
922
926
|
}, M = (c) => {
|
|
923
927
|
C("updateApiUrl", c);
|
|
924
928
|
};
|
|
925
|
-
return (c, $) => (L(),
|
|
929
|
+
return (c, $) => (L(), F("div", Tt, [
|
|
926
930
|
s("div", kt, [
|
|
927
931
|
s("div", Ut, [
|
|
928
932
|
t(Me, { class: "login-left-bg" }, {
|
|
@@ -931,7 +935,7 @@ const Xe = () => ({ initUrlInfo: () => ({
|
|
|
931
935
|
return [
|
|
932
936
|
s("div", Vt, [
|
|
933
937
|
s("div", Lt, [
|
|
934
|
-
i.value ? (L(),
|
|
938
|
+
i.value ? (L(), F("div", $t, [
|
|
935
939
|
s("img", {
|
|
936
940
|
src: i.value,
|
|
937
941
|
alt: ""
|
|
@@ -975,7 +979,7 @@ const Xe = () => ({ initUrlInfo: () => ({
|
|
|
975
979
|
]),
|
|
976
980
|
tabContent2: a(() => [
|
|
977
981
|
t(wt, {
|
|
978
|
-
systemKey:
|
|
982
|
+
systemKey: c.oldSystemKey,
|
|
979
983
|
activeTabName: n.value,
|
|
980
984
|
isClickLogin: r.value,
|
|
981
985
|
onHandleLoginFormChange: h
|
|
@@ -990,7 +994,7 @@ const Xe = () => ({ initUrlInfo: () => ({
|
|
|
990
994
|
])
|
|
991
995
|
]));
|
|
992
996
|
}
|
|
993
|
-
}),
|
|
997
|
+
}), Pt = /* @__PURE__ */ H(Dt, [["__scopeId", "data-v-43bcd58d"]]);
|
|
994
998
|
export {
|
|
995
|
-
|
|
999
|
+
Pt as default
|
|
996
1000
|
};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { watch as
|
|
2
|
-
import { p as E, k as
|
|
3
|
-
import { s as Te, b as V, p as C, u as Re,
|
|
4
|
-
import { s as z } from "./request-
|
|
1
|
+
import { watch as Ie, ref as w, computed as we } from "vue";
|
|
2
|
+
import { p as E, k as A, w as Le } from "./index-DY8GPA6b.js";
|
|
3
|
+
import { s as Te, b as V, p as C, u as Re, A as De, c as B, J as N, E as Ee, q as Ae, aZ as Be, a_ as Pe, a$ as Ue, b0 as xe, b1 as Se, b2 as ke } from "./index-CtvxzFRf.js";
|
|
4
|
+
import { s as z } from "./request-D-LN5bvn.js";
|
|
5
5
|
const qe = V(C), { systemUrl: f } = Te(qe);
|
|
6
6
|
let P = f.value === "" || !f.value ? "http://222.92.178.198:63002" : f.value;
|
|
7
|
-
|
|
7
|
+
Ie(
|
|
8
8
|
() => f.value,
|
|
9
9
|
() => {
|
|
10
10
|
P = f.value === "" || !f.value ? "http://222.92.178.198:63002" : f.value;
|
|
11
11
|
},
|
|
12
12
|
{ deep: !0, immediate: !0 }
|
|
13
13
|
);
|
|
14
|
-
function
|
|
14
|
+
function Ne(s) {
|
|
15
15
|
return z({
|
|
16
16
|
url: `${P}/platform/import_data`,
|
|
17
17
|
method: "post",
|
|
18
18
|
data: s
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function Fe(s) {
|
|
22
22
|
return z({
|
|
23
23
|
url: `${P}/platform/export_data`,
|
|
24
24
|
method: "post",
|
|
@@ -34,10 +34,10 @@ function Ve(s = "") {
|
|
|
34
34
|
return i ? i[1] : "download.xlsx";
|
|
35
35
|
}
|
|
36
36
|
const Ce = (s) => {
|
|
37
|
-
var
|
|
38
|
-
const r = ((
|
|
37
|
+
var b, g;
|
|
38
|
+
const r = ((b = s == null ? void 0 : s.headers) == null ? void 0 : b["content-type"]) || "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", i = new Blob([s.data], { type: r }), L = (g = s == null ? void 0 : s.headers) == null ? void 0 : g["content-disposition"], h = Ve(L) || "数据.xlsx", c = window.URL.createObjectURL(i), u = document.createElement("a");
|
|
39
39
|
u.href = c, u.setAttribute("download", h), document.body.appendChild(u), u.click(), document.body.removeChild(u), window.URL.revokeObjectURL(c);
|
|
40
|
-
},
|
|
40
|
+
}, Je = [
|
|
41
41
|
{
|
|
42
42
|
label: "编辑",
|
|
43
43
|
value: "edit"
|
|
@@ -46,7 +46,7 @@ const Ce = (s) => {
|
|
|
46
46
|
label: "删除",
|
|
47
47
|
value: "delete"
|
|
48
48
|
}
|
|
49
|
-
],
|
|
49
|
+
], F = "role", m = {
|
|
50
50
|
ENABLE: {
|
|
51
51
|
value: "enable",
|
|
52
52
|
label: "启用",
|
|
@@ -73,15 +73,15 @@ const Ce = (s) => {
|
|
|
73
73
|
value: "Table"
|
|
74
74
|
}
|
|
75
75
|
}, Oe = ["查看", "查看三维模型", "导出paraform", "导出", "导出全部", "导出选中"], Ke = () => {
|
|
76
|
-
const s = V(), r = Re(C), { isSuperAdmin: i, userId: L, userName: h, platId: c } = De(), u = w([]),
|
|
76
|
+
const s = V(), r = Re(C), { isSuperAdmin: i, userId: L, userName: h, platId: c } = De(), u = w([]), b = (t) => {
|
|
77
77
|
const { propertyType: e } = t || {};
|
|
78
78
|
return e === ze.TABLE.value;
|
|
79
79
|
}, g = w({}), O = we(() => {
|
|
80
80
|
var e;
|
|
81
81
|
return i.value ? !0 : ((e = g.value) == null ? void 0 : e.status) === d.EDITABLE.value;
|
|
82
|
-
}),
|
|
82
|
+
}), $ = (t) => {
|
|
83
83
|
var o, l;
|
|
84
|
-
const e =
|
|
84
|
+
const e = N(Date.now()), { id: a = 0 } = s.loginUserInfo || {}, n = B(t);
|
|
85
85
|
return n.update_user_id = a, n.update_user_name = h.value, n.update_time = e, n.checked_ids = ((l = (o = n == null ? void 0 : n.main_ids) == null ? void 0 : o.map) == null ? void 0 : l.call(o, (p) => {
|
|
86
86
|
const { id: _ } = p;
|
|
87
87
|
return _;
|
|
@@ -91,7 +91,7 @@ const Ce = (s) => {
|
|
|
91
91
|
return t.forEach((a) => {
|
|
92
92
|
var n;
|
|
93
93
|
if (a.isPropertyLeaf) {
|
|
94
|
-
const o =
|
|
94
|
+
const o = B(a);
|
|
95
95
|
e.push(o);
|
|
96
96
|
}
|
|
97
97
|
a.children && ((n = a.children) == null ? void 0 : n.length) > 0 && (e = e.concat(U(a.children)));
|
|
@@ -103,7 +103,7 @@ const Ce = (s) => {
|
|
|
103
103
|
delete n.children, e.push(n), o && o.length > 0 && (e = e.concat(x(o)));
|
|
104
104
|
}
|
|
105
105
|
return e;
|
|
106
|
-
},
|
|
106
|
+
}, G = (t) => {
|
|
107
107
|
let e = [];
|
|
108
108
|
return t.forEach((a) => {
|
|
109
109
|
if (a.isPropertyLeaf) {
|
|
@@ -112,7 +112,7 @@ const Ce = (s) => {
|
|
|
112
112
|
}
|
|
113
113
|
}), e;
|
|
114
114
|
}, S = (t, e) => {
|
|
115
|
-
const a = s.loginUserInfo, { id: n = 0 } = a || {}, o =
|
|
115
|
+
const a = s.loginUserInfo, { id: n = 0 } = a || {}, o = N(Date.now());
|
|
116
116
|
let l = {
|
|
117
117
|
name: "",
|
|
118
118
|
code: "",
|
|
@@ -133,14 +133,14 @@ const Ce = (s) => {
|
|
|
133
133
|
};
|
|
134
134
|
const { checkAll: p, tree: _ } = e || {};
|
|
135
135
|
if (p && _) {
|
|
136
|
-
const v = U(_),
|
|
136
|
+
const v = U(_), be = v.map((D) => ({
|
|
137
137
|
...D,
|
|
138
138
|
department_scope: "unlimited"
|
|
139
139
|
}));
|
|
140
|
-
l.main_ids =
|
|
140
|
+
l.main_ids = be, l.checked_ids = v.map((D) => D.id), l.params = G(v);
|
|
141
141
|
}
|
|
142
142
|
if (t) {
|
|
143
|
-
const v =
|
|
143
|
+
const v = $(t);
|
|
144
144
|
l = {
|
|
145
145
|
...l,
|
|
146
146
|
...v
|
|
@@ -153,19 +153,19 @@ const Ce = (s) => {
|
|
|
153
153
|
platId: c.value,
|
|
154
154
|
changeRoleData: e
|
|
155
155
|
};
|
|
156
|
-
},
|
|
156
|
+
}, M = async (t) => await Se({
|
|
157
157
|
platId: t
|
|
158
158
|
}), j = async () => {
|
|
159
159
|
var e;
|
|
160
160
|
r.setImportLoading(!0);
|
|
161
|
-
const t = await
|
|
161
|
+
const t = await M(c.value).finally(() => {
|
|
162
162
|
r.setImportLoading(!1);
|
|
163
163
|
});
|
|
164
164
|
return (e = t == null ? void 0 : t.data) == null ? void 0 : e.result;
|
|
165
165
|
}, k = () => ({
|
|
166
166
|
name: ""
|
|
167
|
-
}),
|
|
168
|
-
|
|
167
|
+
}), I = w(k()), H = () => {
|
|
168
|
+
I.value = k();
|
|
169
169
|
}, y = w({
|
|
170
170
|
pageNum: 1,
|
|
171
171
|
pageSize: 10,
|
|
@@ -173,28 +173,28 @@ const Ce = (s) => {
|
|
|
173
173
|
pageSizes: [5, 10, 20, 50, 100]
|
|
174
174
|
}), Q = (t) => {
|
|
175
175
|
y.value.pageNum = t;
|
|
176
|
-
},
|
|
176
|
+
}, J = (t) => {
|
|
177
177
|
y.value.pageSize = t;
|
|
178
178
|
}, K = () => ({
|
|
179
179
|
platId: c.value,
|
|
180
180
|
pageNum: y.value.pageNum,
|
|
181
181
|
pageSize: y.value.pageSize,
|
|
182
182
|
filter: {
|
|
183
|
-
...
|
|
183
|
+
...I.value
|
|
184
184
|
}
|
|
185
|
-
}),
|
|
185
|
+
}), W = async (t) => {
|
|
186
186
|
var a;
|
|
187
187
|
const e = await ke(t);
|
|
188
188
|
return (a = e == null ? void 0 : e.data) == null ? void 0 : a.result;
|
|
189
|
-
},
|
|
190
|
-
const t = K(), e = await
|
|
189
|
+
}, Z = async () => {
|
|
190
|
+
const t = K(), e = await W(t), { total: a } = e || {};
|
|
191
191
|
return y.value.total = a, e || {};
|
|
192
|
-
},
|
|
192
|
+
}, X = async (t) => {
|
|
193
193
|
delete t.role_id;
|
|
194
194
|
const e = T(t);
|
|
195
195
|
await xe(e);
|
|
196
|
-
},
|
|
197
|
-
r.setImportLoading(!0), await
|
|
196
|
+
}, Y = async (t) => {
|
|
197
|
+
r.setImportLoading(!0), await X(t).finally(() => {
|
|
198
198
|
r.setImportLoading(!1);
|
|
199
199
|
});
|
|
200
200
|
}, ee = async (t) => {
|
|
@@ -229,7 +229,7 @@ const Ce = (s) => {
|
|
|
229
229
|
return (a == null ? void 0 : a.tag) || "info";
|
|
230
230
|
}, re = async (t) => {
|
|
231
231
|
var a;
|
|
232
|
-
const e = await
|
|
232
|
+
const e = await Be(t);
|
|
233
233
|
return ((a = e == null ? void 0 : e.data) == null ? void 0 : a.result) || [];
|
|
234
234
|
}, le = async (t) => {
|
|
235
235
|
const e = {
|
|
@@ -270,13 +270,13 @@ const Ce = (s) => {
|
|
|
270
270
|
pageName: "系统管理/角色管理",
|
|
271
271
|
platId: c.value,
|
|
272
272
|
userId: L.value
|
|
273
|
-
}, a = await
|
|
273
|
+
}, a = await Ae(e);
|
|
274
274
|
return (o = (n = a == null ? void 0 : a.data) == null ? void 0 : n.result) == null ? void 0 : o[0];
|
|
275
275
|
}, fe = async () => {
|
|
276
276
|
if (!i.value)
|
|
277
277
|
return g.value = await me(), g;
|
|
278
278
|
}, q = (t) => {
|
|
279
|
-
const e =
|
|
279
|
+
const e = B(t);
|
|
280
280
|
for (let a = 0; a < e.length; a++) {
|
|
281
281
|
const n = e == null ? void 0 : e[a], { id: o, prop: l, children: p } = n || {};
|
|
282
282
|
n.uniqueKey = `${o}_${l}`, p && (n.children = q(p));
|
|
@@ -284,30 +284,30 @@ const Ce = (s) => {
|
|
|
284
284
|
return e;
|
|
285
285
|
}, ge = async (t) => {
|
|
286
286
|
var a;
|
|
287
|
-
const e = await
|
|
287
|
+
const e = await Ne(t);
|
|
288
288
|
return (a = e == null ? void 0 : e.data) == null ? void 0 : a.result;
|
|
289
289
|
}, ye = async (t) => {
|
|
290
290
|
const e = new FormData(), a = S(), { create_user_id: n, update_user_id: o, create_user_name: l, update_user_name: p } = a;
|
|
291
|
-
return e.set("platId", c.value), e.set("file", t), e.set("tableType",
|
|
292
|
-
}, he = async (t) => await
|
|
291
|
+
return e.set("platId", c.value), e.set("file", t), e.set("tableType", F), e.set("create_user_id", n), e.set("update_user_id", o), e.set("create_user_name", l), e.set("update_user_name", p), await ge(e);
|
|
292
|
+
}, he = async (t) => await Fe(t), _e = async () => {
|
|
293
293
|
const t = {
|
|
294
294
|
platId: c.value,
|
|
295
|
-
tableType:
|
|
296
|
-
filter:
|
|
295
|
+
tableType: F,
|
|
296
|
+
filter: I.value
|
|
297
297
|
}, e = await he(t);
|
|
298
298
|
return Ce(e), e;
|
|
299
299
|
}, ve = [["名称", "编码", "备注", "状态"]];
|
|
300
300
|
return {
|
|
301
301
|
compType: E,
|
|
302
|
-
isTableFeature:
|
|
303
|
-
queryInfo:
|
|
302
|
+
isTableFeature: b,
|
|
303
|
+
queryInfo: I,
|
|
304
304
|
resetQuery: H,
|
|
305
305
|
pageInfo: y,
|
|
306
306
|
setPageNum: Q,
|
|
307
|
-
setPageSize:
|
|
308
|
-
initGetByPage:
|
|
307
|
+
setPageSize: J,
|
|
308
|
+
initGetByPage: Z,
|
|
309
309
|
initRoleList: j,
|
|
310
|
-
initCreate:
|
|
310
|
+
initCreate: Y,
|
|
311
311
|
initUpdate: te,
|
|
312
312
|
initDelete: ne,
|
|
313
313
|
initRoleRequestData: T,
|
|
@@ -326,17 +326,17 @@ const Ce = (s) => {
|
|
|
326
326
|
initImport: ye,
|
|
327
327
|
initExport: _e,
|
|
328
328
|
exportTemplate: async () => {
|
|
329
|
-
const t =
|
|
330
|
-
|
|
329
|
+
const t = A.aoa_to_sheet(ve), e = A.book_new();
|
|
330
|
+
A.book_append_sheet(e, t, "角色"), Le(e, "角色模板.xlsx");
|
|
331
331
|
}
|
|
332
332
|
};
|
|
333
333
|
};
|
|
334
334
|
export {
|
|
335
|
-
|
|
336
|
-
|
|
335
|
+
Ne as a,
|
|
336
|
+
Fe as e,
|
|
337
337
|
d as f,
|
|
338
338
|
Ce as i,
|
|
339
|
-
|
|
339
|
+
Je as o,
|
|
340
340
|
m as s,
|
|
341
341
|
Ke as u
|
|
342
342
|
};
|