ss-component-new 1.2.26 → 1.2.28
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/{MTLLoader-j7rSXeZy.js → MTLLoader-BreJsr54.js} +1 -1
- package/dist/{MTLLoader-CSavblQS.cjs → MTLLoader-Cqv49Ps8.cjs} +1 -1
- package/dist/{OrbitControls-BYxGl2XB.js → OrbitControls-BCu-cP7k.js} +1 -1
- package/dist/{OrbitControls-dRON011u.cjs → OrbitControls-C956u7BP.cjs} +1 -1
- package/dist/{animationData-rmZ0EGb8.cjs → animationData-C3-BiUgV.cjs} +1 -1
- package/dist/{animationData-Br4BCkiq.js → animationData-CMjNjOqc.js} +4 -4
- package/dist/{array-CeASBMWY.cjs → array-0u9Sf3UC.cjs} +1 -1
- package/dist/{array-Cx8FbegO.js → array-BGIM4b6g.js} +2 -2
- package/dist/{dataUtil-RzgUhlgJ.cjs → dataUtil-BFjWNDM1.cjs} +1 -1
- package/dist/{dataUtil-CJxHUail.js → dataUtil-D9l7-XhR.js} +2 -2
- package/dist/{fileUtil-BM6WhafY.cjs → fileUtil-BFtJHTM0.cjs} +1 -1
- package/dist/{fileUtil-BVzW5lTY.js → fileUtil-D7XVXEhb.js} +1 -1
- package/dist/{iconfont-J7S-v_zE.js → iconfont-B9Cj3DQM.js} +2 -2
- package/dist/{iconfont-Dsx_JtWY.cjs → iconfont-BDfcbq2v.cjs} +1 -1
- package/dist/icons/svg//344/272/272/345/203/217.svg +1 -0
- package/dist/{index-ClzEamlP.js → index-3QB55tXZ.js} +7 -7
- package/dist/{index-BGm3sgAn.cjs → index-B33wtiif.cjs} +1 -1
- package/dist/{index-D7wMQSEM.js → index-B8bpiPXB.js} +1 -1
- package/dist/{index-BvgHldVC.cjs → index-B9TlIok8.cjs} +12 -12
- package/dist/{index-DbHiWNBM.cjs → index-BWxbWhC9.cjs} +1 -1
- package/dist/{index-BoTEVRWS.js → index-BZwQB2HO.js} +5 -5
- package/dist/{index-DRSU72SE.js → index-BaE0DPgC.js} +66 -59
- package/dist/{index-DN8avrWv.cjs → index-BccOOMaP.cjs} +1 -1
- package/dist/index-BgHY8wmn.cjs +1 -0
- package/dist/{index-DpxXt1oz.js → index-Boazv8yC.js} +2 -2
- package/dist/{index-D5YeHxKp.js → index-BqRVuEsE.js} +6 -6
- package/dist/{index-CyNvD7fs.js → index-BwLaQntz.js} +1 -1
- package/dist/{index-Dr7mB3zJ.js → index-C-8LROmP.js} +2 -2
- package/dist/{index-DcT0aYIX.js → index-C1lZkQG-.js} +423 -423
- package/dist/{index-DWBL8V_4.js → index-C5UpEVah.js} +2 -2
- package/dist/index-C5fTUrKx.js +573 -0
- package/dist/{index-BH-cEIyF.cjs → index-C9_Cxm8G.cjs} +1 -1
- package/dist/{index-D5fqqSXr.cjs → index-CBFF2bsB.cjs} +1 -1
- package/dist/{index-YhB_cMji.cjs → index-CC9RkSBT.cjs} +1 -1
- package/dist/{index-BJkToJcC.cjs → index-CK5VdzmO.cjs} +1 -1
- package/dist/{index-CeWLT1YO.js → index-CKY0sj_X.js} +3 -3
- package/dist/{index-Cm99VII_.js → index-CMwwUi6o.js} +6 -6
- package/dist/{index-DjMSxB8D.cjs → index-CP7b7BrB.cjs} +1 -1
- package/dist/{index-BU5WJczo.js → index-CZu3TggJ.js} +1 -1
- package/dist/{index-Bp0GMpLC.cjs → index-C_cWjavY.cjs} +1 -1
- package/dist/{index-DVv2nM9_.cjs → index-Cd9j5j41.cjs} +1 -1
- package/dist/{index-B7l9bX5c.cjs → index-Cwh5m4lg.cjs} +1 -1
- package/dist/index-D0XPyuy4.cjs +1 -0
- package/dist/{index-lw6M4N-Q.cjs → index-D3TgRd-7.cjs} +1 -1
- package/dist/{index-Ie0BUTFu.js → index-D5Dtcn-_.js} +6 -6
- package/dist/{index-Bp5zOMHT.cjs → index-DE-uHAMH.cjs} +1 -1
- package/dist/{index-T2VihBuZ.js → index-DHOcRi3S.js} +6 -6
- package/dist/{index-CMIII30g.cjs → index-DMyPjpxO.cjs} +1 -1
- package/dist/{index-BvB9p0W4.js → index-DR7aNxVH.js} +4 -4
- package/dist/{index-0dw7iEtO.cjs → index-DVqfroe6.cjs} +1 -1
- package/dist/{index-ggXXcZCO.js → index-DiTYB-a4.js} +63 -58
- package/dist/index-DnFxL5wb.cjs +1 -0
- package/dist/{index-CaGluCnk.js → index-DqR3IwgZ.js} +12 -12
- package/dist/{index-zAZNzNG-.js → index-DsCD1neC.js} +2 -2
- package/dist/{index-CNxiv6y5.js → index-Dx2X9pR1.js} +43 -43
- package/dist/{index-C2B83Ywj.cjs → index-GGokR_Lx.cjs} +1 -1
- package/dist/{index-7pDDKkwc.js → index-HduGypr9.js} +34 -34
- package/dist/index-LcnC2GQ4.cjs +1 -0
- package/dist/{index-DoWGbQss.js → index-OTxJnh9Z.js} +153 -153
- package/dist/{index-DodooTli.js → index-Rr9ZBYig.js} +2 -2
- package/dist/{index-BEfXSiWp.js → index-Sa2hQZ0h.js} +2 -2
- package/dist/{index-BkcjJQlg.cjs → index-TKouySTA.cjs} +1 -1
- package/dist/{index-veEr0Ju4.js → index-gPnrvvE9.js} +1324 -1321
- package/dist/{index-BPxe8bKe.js → index-gXbhagnF.js} +3 -3
- package/dist/{index-CAPstY_B.cjs → index-mpoVA-DC.cjs} +1 -1
- package/dist/{index-C9GfFRyr.cjs → index-uIVtG4RY.cjs} +1 -1
- package/dist/index-wQJN1jpI.js +2466 -0
- package/dist/index-zLkhy4JK.cjs +1 -0
- package/dist/{index-DFbvbOsE.js → index-zZ9bfGNx.js} +1 -1
- package/dist/{index-DMHh2MZZ.cjs → index-znR89ub7.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DGl2lQmW.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CuWDdCiy.js} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BWh0GUiI.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-TDoJ17os.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-BjBzi9R7.js → index.vue_vue_type_style_index_0_scoped_92477073_lang-BQiH2RRX.js} +11 -11
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-BwjCaKYV.cjs → index.vue_vue_type_style_index_0_scoped_92477073_lang-Dqpyi0E8.cjs} +1 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-D21h7jT_.cjs +37 -0
- package/dist/{index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-DZGhek9_.js → index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-PE_6dfIO.js} +12719 -12591
- package/dist/{index.vue_vue_type_style_index_1_lang-BHt4rvMd.js → index.vue_vue_type_style_index_1_lang-9ANlnWKt.js} +5 -5
- package/dist/index.vue_vue_type_style_index_1_lang-CrmWclPR.cjs +32 -0
- package/dist/{index.vue_vue_type_style_index_1_lang-C2PJ2fvM.cjs → index.vue_vue_type_style_index_1_lang-D4RvHwPS.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-WD8HOZyf.js → index.vue_vue_type_style_index_1_lang-DwvuVXW6.js} +2580 -2471
- package/dist/{isString-BbPmUYHG.js → isString-BuBBWjRr.js} +1 -1
- package/dist/{main-DWa3MZxf.js → main-DpLQlLK2.js} +5 -5
- package/dist/{main-DlDkQh0n.cjs → main-Mx9r7ydp.cjs} +1 -1
- 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-CBsLcTcX.js → threeModel-CZ-qFwwk.js} +5 -5
- package/dist/{threeModel-Dt9Ounip.cjs → threeModel-DTwQnnAO.cjs} +1 -1
- package/dist/{threePreview-DSMFTIuC.cjs → threePreview-CUGoEzKf.cjs} +1 -1
- package/dist/{threePreview-D99A_IHZ.js → threePreview-DutKTPWH.js} +4 -4
- package/dist/{threeSceneView-BD22yXw4.js → threeSceneView-CzgWYHBw.js} +11 -11
- package/dist/{threeSceneView-Dv2uGsTN.cjs → threeSceneView-f1V-z4jr.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-CpBphI9E.js → threeSceneViewForCPMPIP-2sXIw3I1.js} +61 -61
- package/dist/{threeSceneViewForCPMPIP-DfaTaroP.cjs → threeSceneViewForCPMPIP-CojHDVHC.cjs} +1 -1
- package/dist/{threeTrackPathView-BGePzJh4.cjs → threeTrackPathView-BGHiOyJo.cjs} +1 -1
- package/dist/{threeTrackPathView-bFuXaesk.js → threeTrackPathView-DA4_8jas.js} +6 -6
- package/dist/{threeViewerHost-gGHqJpTR.js → threeViewerHost-BNObp9oA.js} +17 -17
- package/dist/{threeViewerHost-bQqnJLh9.cjs → threeViewerHost-D3WDKrIQ.cjs} +1 -1
- package/dist/{urdfTree-nXEMcLFV.cjs → urdfTree-CWStzmk2.cjs} +1 -1
- package/dist/{urdfTree-B2Zs54qS.js → urdfTree-CnkPddyT.js} +1 -1
- package/dist/{workpieceTreePanel-CXD_XizT.js → workpieceTreePanel-BvhFt3Xw.js} +5 -5
- package/dist/{workpieceTreePanel-Brforhya.cjs → workpieceTreePanel-DXyb_Wnw.cjs} +1 -1
- package/package.json +1 -1
- package/public/icons/svg//344/272/272/345/203/217.svg +1 -0
- package/dist/index-B3l8CoGZ.js +0 -2384
- package/dist/index-BRAUJGR3.cjs +0 -1
- package/dist/index-BjRAas3a.cjs +0 -1
- package/dist/index-Cf9NTS7v.cjs +0 -1
- package/dist/index-D3x3jleA.js +0 -654
- package/dist/index-DWTsFx-2.cjs +0 -1
- package/dist/index-Dc8TgzRR.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-BKfBwnMQ.cjs +0 -37
- package/dist/index.vue_vue_type_style_index_1_lang-f2wxl9Ai.cjs +0 -32
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as l, reactive as c, onMounted as s, createElementBlock as r, openBlock as i, createVNode as p } from "vue";
|
|
2
|
-
import { S as m } from "./index-
|
|
3
|
-
import { s as _ } from "./index-
|
|
2
|
+
import { S as m } from "./index-Boazv8yC.js";
|
|
3
|
+
import { s as _ } from "./index-OTxJnh9Z.js";
|
|
4
4
|
import { _ as d } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const f = { class: "log-wrap" }, u = /* @__PURE__ */ l({
|
|
6
6
|
__name: "index",
|
|
@@ -0,0 +1,573 @@
|
|
|
1
|
+
import { createElementBlock as J, openBlock as W, createElementVNode as h, renderSlot as $, defineComponent as Y, ref as E, resolveComponent as B, createVNode as k, withCtx as y, reactive as se, watch as ae, onMounted as fe, toDisplayString as V, unref as X, createTextVNode as j } from "vue";
|
|
2
|
+
import { _ as z } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
+
import { a as ne, u as oe, p as ce, E as K, s as ye, b as pe, g as q } from "./index-HduGypr9.js";
|
|
4
|
+
import { d as re, r as ge, g as me, c as ve, b as he, e as be, f as _e, h as we } from "./index.vue_vue_type_style_index_1_lang-DwvuVXW6.js";
|
|
5
|
+
import { useRouter as Ae } from "vue-router";
|
|
6
|
+
import { v as Ce } from "./index-Rr9ZBYig.js";
|
|
7
|
+
const ke = {}, Se = { class: "left-wrap" }, Ie = { class: "left-bg" };
|
|
8
|
+
function Te(T, M) {
|
|
9
|
+
return W(), J("div", Se, [
|
|
10
|
+
h("div", Ie, [
|
|
11
|
+
$(T.$slots, "img", {}, void 0, !0)
|
|
12
|
+
])
|
|
13
|
+
]);
|
|
14
|
+
}
|
|
15
|
+
const Ke = /* @__PURE__ */ z(ke, [["render", Te], ["__scopeId", "data-v-9b7ee6c9"]]), Ne = { class: "right-wrap" }, Le = { class: "tab-content" }, $e = { class: "tab-tips" }, Ee = { class: "tab-content" }, Me = { class: "tab-tips" }, Ue = /* @__PURE__ */ Y({
|
|
16
|
+
__name: "index",
|
|
17
|
+
props: {
|
|
18
|
+
tabList: {
|
|
19
|
+
type: Array,
|
|
20
|
+
default: []
|
|
21
|
+
},
|
|
22
|
+
loading: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: !1
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
emits: ["clickLogin", "handleTabChange"],
|
|
28
|
+
setup(T, { emit: M }) {
|
|
29
|
+
const b = E("account"), d = M, S = () => {
|
|
30
|
+
d("clickLogin", b.value);
|
|
31
|
+
}, _ = (u) => {
|
|
32
|
+
d("handleTabChange", u);
|
|
33
|
+
};
|
|
34
|
+
return (u, g) => {
|
|
35
|
+
const p = B("el-button"), w = B("el-tab-pane"), m = B("el-tabs");
|
|
36
|
+
return W(), J("div", Ne, [
|
|
37
|
+
k(m, {
|
|
38
|
+
modelValue: b.value,
|
|
39
|
+
"onUpdate:modelValue": g[0] || (g[0] = (r) => b.value = r),
|
|
40
|
+
class: "right-tabs",
|
|
41
|
+
onTabChange: _
|
|
42
|
+
}, {
|
|
43
|
+
default: y(() => [
|
|
44
|
+
k(w, { name: "account" }, {
|
|
45
|
+
label: y(() => [
|
|
46
|
+
$(u.$slots, "tabLabel1", {}, void 0, !0)
|
|
47
|
+
]),
|
|
48
|
+
default: y(() => [
|
|
49
|
+
h("div", Le, [
|
|
50
|
+
$(u.$slots, "tabContent1", {}, void 0, !0)
|
|
51
|
+
]),
|
|
52
|
+
h("div", {
|
|
53
|
+
class: "tab-button special",
|
|
54
|
+
onClick: S
|
|
55
|
+
}, [
|
|
56
|
+
k(p, { loading: T.loading }, {
|
|
57
|
+
default: y(() => [
|
|
58
|
+
$(u.$slots, "tabButton1", {}, void 0, !0)
|
|
59
|
+
]),
|
|
60
|
+
_: 3
|
|
61
|
+
}, 8, ["loading"])
|
|
62
|
+
]),
|
|
63
|
+
h("div", $e, [
|
|
64
|
+
$(u.$slots, "tabTips1", {}, void 0, !0)
|
|
65
|
+
])
|
|
66
|
+
]),
|
|
67
|
+
_: 3
|
|
68
|
+
}),
|
|
69
|
+
k(w, { name: "face" }, {
|
|
70
|
+
label: y(() => [
|
|
71
|
+
$(u.$slots, "tabLabel2", {}, void 0, !0)
|
|
72
|
+
]),
|
|
73
|
+
default: y(() => [
|
|
74
|
+
h("div", Ee, [
|
|
75
|
+
$(u.$slots, "tabContent2", {}, void 0, !0)
|
|
76
|
+
]),
|
|
77
|
+
h("div", Me, [
|
|
78
|
+
$(u.$slots, "tabTips2", {}, void 0, !0)
|
|
79
|
+
])
|
|
80
|
+
]),
|
|
81
|
+
_: 3
|
|
82
|
+
})
|
|
83
|
+
]),
|
|
84
|
+
_: 3
|
|
85
|
+
}, 8, ["modelValue"])
|
|
86
|
+
]);
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
}), Pe = /* @__PURE__ */ z(Ue, [["__scopeId", "data-v-516c8b4a"]]), Ve = { class: "account-wrap" }, Be = /* @__PURE__ */ Y({
|
|
90
|
+
__name: "index",
|
|
91
|
+
props: {
|
|
92
|
+
activeTabName: {
|
|
93
|
+
type: String,
|
|
94
|
+
default: ""
|
|
95
|
+
},
|
|
96
|
+
isClickLogin: {
|
|
97
|
+
type: Boolean,
|
|
98
|
+
default: !1
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
emits: ["handleLoginFormChange"],
|
|
102
|
+
setup(T, { emit: M }) {
|
|
103
|
+
const b = T, d = se({
|
|
104
|
+
account: "",
|
|
105
|
+
password: ""
|
|
106
|
+
}), S = se({
|
|
107
|
+
account: [
|
|
108
|
+
{ required: !0, message: "请输入账号", trigger: "blur" }
|
|
109
|
+
],
|
|
110
|
+
password: [
|
|
111
|
+
{ required: !0, message: "请输入密码", trigger: "blur" }
|
|
112
|
+
]
|
|
113
|
+
}), _ = E(null), u = M;
|
|
114
|
+
return ae(() => b.isClickLogin, (g) => {
|
|
115
|
+
var p;
|
|
116
|
+
g && (b == null ? void 0 : b.activeTabName) === "account" && ((p = _.value) == null || p.validate((w) => {
|
|
117
|
+
var m;
|
|
118
|
+
for (let r in d)
|
|
119
|
+
d.hasOwnProperty(r) && (d[r] = (m = d[r]) == null ? void 0 : m.trim());
|
|
120
|
+
u("handleLoginFormChange", w, w ? d : null);
|
|
121
|
+
}));
|
|
122
|
+
}, {
|
|
123
|
+
immediate: !0
|
|
124
|
+
}), ae(() => b.activeTabName, (g) => {
|
|
125
|
+
var p;
|
|
126
|
+
g === "account" && ((p = _.value) == null || p.resetFields());
|
|
127
|
+
}), (g, p) => {
|
|
128
|
+
const w = B("svg-icon"), m = B("el-input"), r = B("el-form-item"), v = B("el-form");
|
|
129
|
+
return W(), J("div", Ve, [
|
|
130
|
+
k(v, {
|
|
131
|
+
model: d,
|
|
132
|
+
rules: S,
|
|
133
|
+
ref_key: "formRef",
|
|
134
|
+
ref: _
|
|
135
|
+
}, {
|
|
136
|
+
default: y(() => [
|
|
137
|
+
k(r, {
|
|
138
|
+
label: "",
|
|
139
|
+
prop: "account"
|
|
140
|
+
}, {
|
|
141
|
+
default: y(() => [
|
|
142
|
+
k(m, {
|
|
143
|
+
class: "account-input",
|
|
144
|
+
modelValue: d.account,
|
|
145
|
+
"onUpdate:modelValue": p[0] || (p[0] = (A) => d.account = A),
|
|
146
|
+
placeholder: "请输入账号",
|
|
147
|
+
clearable: ""
|
|
148
|
+
}, {
|
|
149
|
+
prefix: y(() => [
|
|
150
|
+
k(w, {
|
|
151
|
+
name: "account",
|
|
152
|
+
style: { width: "15px", height: "15px" }
|
|
153
|
+
})
|
|
154
|
+
]),
|
|
155
|
+
_: 1
|
|
156
|
+
}, 8, ["modelValue"])
|
|
157
|
+
]),
|
|
158
|
+
_: 1
|
|
159
|
+
}),
|
|
160
|
+
k(r, {
|
|
161
|
+
label: "",
|
|
162
|
+
prop: "password"
|
|
163
|
+
}, {
|
|
164
|
+
default: y(() => [
|
|
165
|
+
k(m, {
|
|
166
|
+
class: "account-input",
|
|
167
|
+
modelValue: d.password,
|
|
168
|
+
"onUpdate:modelValue": p[1] || (p[1] = (A) => d.password = A),
|
|
169
|
+
type: "password",
|
|
170
|
+
placeholder: "请输入密码",
|
|
171
|
+
"show-password": "",
|
|
172
|
+
clearable: ""
|
|
173
|
+
}, {
|
|
174
|
+
prefix: y(() => [
|
|
175
|
+
k(w, {
|
|
176
|
+
name: "password",
|
|
177
|
+
style: { width: "15px", height: "15px" }
|
|
178
|
+
})
|
|
179
|
+
]),
|
|
180
|
+
_: 1
|
|
181
|
+
}, 8, ["modelValue"])
|
|
182
|
+
]),
|
|
183
|
+
_: 1
|
|
184
|
+
})
|
|
185
|
+
]),
|
|
186
|
+
_: 1
|
|
187
|
+
}, 8, ["model", "rules"])
|
|
188
|
+
]);
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
}), xe = /* @__PURE__ */ z(Be, [["__scopeId", "data-v-48037c0f"]]);
|
|
192
|
+
function De(T) {
|
|
193
|
+
return ne({
|
|
194
|
+
url: "http://192.168.124.108:20013/api/face/face-verify",
|
|
195
|
+
method: "post",
|
|
196
|
+
data: T
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
const Re = { class: "account-wrap" }, Oe = { class: "video-wrap" }, Fe = /* @__PURE__ */ Y({
|
|
200
|
+
__name: "index",
|
|
201
|
+
props: {
|
|
202
|
+
systemKey: { default: "" },
|
|
203
|
+
activeTabName: { default: "" },
|
|
204
|
+
isClickLogin: { type: Boolean, default: !1 }
|
|
205
|
+
},
|
|
206
|
+
emits: ["handleLoginFormChange"],
|
|
207
|
+
setup(T, { emit: M }) {
|
|
208
|
+
const b = T, d = M, S = oe(ce), _ = E(null), u = E(null);
|
|
209
|
+
let g = !1;
|
|
210
|
+
const p = async (r) => {
|
|
211
|
+
if (!r)
|
|
212
|
+
return;
|
|
213
|
+
const v = new FormData();
|
|
214
|
+
v.set("file", r), b.systemKey && v.set("systemKey", b.systemKey), console.log("Face Recognition", b.systemKey);
|
|
215
|
+
const A = await De(v), { data: I } = A || {}, { account: L, password: U, layer: x } = (I == null ? void 0 : I.data) || {}, D = I == null ? void 0 : I.msg;
|
|
216
|
+
if (!L) {
|
|
217
|
+
K.error(D || "识别失败,请重新识别!");
|
|
218
|
+
return;
|
|
219
|
+
}
|
|
220
|
+
const { privateKey: O } = await S.getModelSecretAsync();
|
|
221
|
+
let R = U;
|
|
222
|
+
x !== "superAdmin" && (R = re(U, O)), d("handleLoginFormChange", !0, {
|
|
223
|
+
account: L,
|
|
224
|
+
password: R
|
|
225
|
+
});
|
|
226
|
+
}, w = () => {
|
|
227
|
+
if (!u.value || !_.value)
|
|
228
|
+
return;
|
|
229
|
+
const r = u.value, v = r.getContext("2d"), A = _.value;
|
|
230
|
+
r.width = 200, r.height = 200;
|
|
231
|
+
const I = A.videoWidth || 640, L = A.videoHeight || 480, U = Math.min(200 / I, 200 / L), x = I * U, D = L * U, O = (200 - x) / 2, R = (200 - D) / 2;
|
|
232
|
+
v == null || v.drawImage(A, 0, 0, I, L, O, R, x, D), r.toBlob((G) => {
|
|
233
|
+
if (G) {
|
|
234
|
+
const Z = new File([G], "face.png", { type: "image/png" });
|
|
235
|
+
p(Z);
|
|
236
|
+
}
|
|
237
|
+
}, "image/png");
|
|
238
|
+
}, m = async () => {
|
|
239
|
+
if (!_.value || g)
|
|
240
|
+
return;
|
|
241
|
+
const r = _.value;
|
|
242
|
+
try {
|
|
243
|
+
const v = await navigator.mediaDevices.getUserMedia({
|
|
244
|
+
video: { facingMode: "user" },
|
|
245
|
+
// 前置;后置用 'environment'
|
|
246
|
+
audio: !1
|
|
247
|
+
});
|
|
248
|
+
if (r) {
|
|
249
|
+
const A = r;
|
|
250
|
+
A.srcObject = v, g = !0;
|
|
251
|
+
}
|
|
252
|
+
} catch (v) {
|
|
253
|
+
K.warning("摄像头失败: " + v.message);
|
|
254
|
+
}
|
|
255
|
+
};
|
|
256
|
+
return ae(() => b.activeTabName, (r) => {
|
|
257
|
+
r === "face" && !g && m();
|
|
258
|
+
}), fe(() => {
|
|
259
|
+
m();
|
|
260
|
+
}), (r, v) => (W(), J("div", Re, [
|
|
261
|
+
h("div", Oe, [
|
|
262
|
+
h("video", {
|
|
263
|
+
class: "face-video",
|
|
264
|
+
ref_key: "videoRef",
|
|
265
|
+
ref: _,
|
|
266
|
+
id: "v",
|
|
267
|
+
autoplay: "",
|
|
268
|
+
playsinline: ""
|
|
269
|
+
}, null, 512)
|
|
270
|
+
]),
|
|
271
|
+
h("button", {
|
|
272
|
+
class: "face-screenshot",
|
|
273
|
+
onClick: w
|
|
274
|
+
}, "人脸识别"),
|
|
275
|
+
h("canvas", {
|
|
276
|
+
ref_key: "canvasRef",
|
|
277
|
+
ref: u,
|
|
278
|
+
id: "canvas"
|
|
279
|
+
}, null, 512)
|
|
280
|
+
]));
|
|
281
|
+
}
|
|
282
|
+
}), He = /* @__PURE__ */ z(Fe, [["__scopeId", "data-v-c3d74988"]]);
|
|
283
|
+
function je() {
|
|
284
|
+
return ne({
|
|
285
|
+
url: "/api/sysAuth/login",
|
|
286
|
+
method: "post",
|
|
287
|
+
data: {
|
|
288
|
+
account: "superadmin",
|
|
289
|
+
password: "1c8e7623312244c1feb677732278fb8b2af6af1a5335fdaebbdb2720137b372b7871292d11165b83b2967b9c39fa37027d63d37a2f36d764257b566dcfa99f334faa8995301601aec549adf39aef8d89c8788da03a9164937a5f73af20a15ea60d47c7cf01cf",
|
|
290
|
+
tenantId: -1,
|
|
291
|
+
code: "",
|
|
292
|
+
codeId: 0
|
|
293
|
+
}
|
|
294
|
+
});
|
|
295
|
+
}
|
|
296
|
+
const qe = { class: "login-wrap" }, Je = { class: "login-body" }, We = { class: "login-body-item left" }, ze = { class: "title" }, Ge = { class: "login-body-item right" }, Qe = /* @__PURE__ */ Y({
|
|
297
|
+
__name: "index",
|
|
298
|
+
props: {
|
|
299
|
+
oldSystemKey: {}
|
|
300
|
+
},
|
|
301
|
+
emits: ["change"],
|
|
302
|
+
setup(T, { emit: M }) {
|
|
303
|
+
const b = Ae(), d = oe(ce), { systemKey: S, systemInfo: _, loginUserInfo: u } = ye(d), g = E({
|
|
304
|
+
// sysCTitle: 'INSOFWORKS',
|
|
305
|
+
sysCTitle: "",
|
|
306
|
+
sysETitle: "",
|
|
307
|
+
// sysETitle: 'Dynamic Test Information System',
|
|
308
|
+
loginTitle: "账户密码登录",
|
|
309
|
+
tabs: [
|
|
310
|
+
{
|
|
311
|
+
name: "密码登录",
|
|
312
|
+
btnLabel: "登录",
|
|
313
|
+
tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
name: "人脸识别",
|
|
317
|
+
btnLabel: "人脸识别",
|
|
318
|
+
tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
name: "刷卡登录",
|
|
322
|
+
btnLabel: "登录",
|
|
323
|
+
tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
|
|
324
|
+
}
|
|
325
|
+
]
|
|
326
|
+
}), p = E("account"), w = E(!1), m = E(!1), r = () => {
|
|
327
|
+
w.value = !0;
|
|
328
|
+
}, v = (a, t) => {
|
|
329
|
+
w.value = !1, a && Z(t);
|
|
330
|
+
}, A = (a) => me(a), I = (a) => {
|
|
331
|
+
let t;
|
|
332
|
+
const s = ve(a), n = he(s), l = be(n), f = _e(l, "parentPath");
|
|
333
|
+
return t = we(f), t;
|
|
334
|
+
}, L = (a, t) => {
|
|
335
|
+
var n, l, f;
|
|
336
|
+
const s = (t == null ? void 0 : t.userRoles) ?? (t == null ? void 0 : t.角色名称);
|
|
337
|
+
try {
|
|
338
|
+
if (t.layer && ((n = t == null ? void 0 : t.layer) == null ? void 0 : n.toUpperCase()) === "SUPERADMIN")
|
|
339
|
+
return "superAdmin";
|
|
340
|
+
if (Array.isArray(s)) {
|
|
341
|
+
if ((s == null ? void 0 : s.length) === 1) {
|
|
342
|
+
const o = a == null ? void 0 : a.find((e) => (e == null ? void 0 : e.roleName) === (s == null ? void 0 : s[0]) || e.角色名称 === (s == null ? void 0 : s[0])), C = A(o), c = I(o == null ? void 0 : o[C]);
|
|
343
|
+
return o && c && Array.isArray(c) ? o ? c == null ? void 0 : c.flatMap((e) => e.checkedButtons) : [] : [];
|
|
344
|
+
}
|
|
345
|
+
if ((s == null ? void 0 : s.length) > 1) {
|
|
346
|
+
let o = a == null ? void 0 : a.filter((e) => s == null ? void 0 : s.includes(e.roleName || (e == null ? void 0 : e.角色名称)));
|
|
347
|
+
const C = A(o == null ? void 0 : o[0]), c = (f = (l = o == null ? void 0 : o.map((e) => Array.isArray(e == null ? void 0 : e[C]) ? e == null ? void 0 : e[C] : [])) == null ? void 0 : l.flat()) == null ? void 0 : f.flatMap((e) => e.checkedButtons);
|
|
348
|
+
return (c == null ? void 0 : c.length) === 0 ? K.error("该用户没有权限,请联系管理员") : new Set(c);
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
if (typeof s == "string") {
|
|
352
|
+
const o = a == null ? void 0 : a.find((e) => (e == null ? void 0 : e.roleName) === s || (e == null ? void 0 : e.角色名称) === s), C = A(o), c = I(o == null ? void 0 : o[C]);
|
|
353
|
+
return o && c && Array.isArray(c) ? o ? c == null ? void 0 : c.flatMap((e) => e.checkedButtons) : [] : [];
|
|
354
|
+
}
|
|
355
|
+
} catch (o) {
|
|
356
|
+
throw new Error(o);
|
|
357
|
+
}
|
|
358
|
+
}, U = async (a) => {
|
|
359
|
+
var t, s;
|
|
360
|
+
try {
|
|
361
|
+
let n = [];
|
|
362
|
+
const l = await q({
|
|
363
|
+
key: {
|
|
364
|
+
// systemKey: user?.systemKey,
|
|
365
|
+
systemKey: S.value ? S.value : a == null ? void 0 : a.systemKey,
|
|
366
|
+
// pageKey: '/系统管理/角色管理',
|
|
367
|
+
pageKey: "系统管理/角色管理",
|
|
368
|
+
type: "data"
|
|
369
|
+
}
|
|
370
|
+
});
|
|
371
|
+
if (l.data.code === 200) {
|
|
372
|
+
const f = (s = (t = l.data) == null ? void 0 : t.result) == null ? void 0 : s.map((o) => o.value.tableData);
|
|
373
|
+
n = L(f, a);
|
|
374
|
+
}
|
|
375
|
+
if (n)
|
|
376
|
+
return Array.isArray(n) ? Array.from(n) : n;
|
|
377
|
+
throw K.error("获取用户权限失败,请联系管理员"), new Error("获取用户权限失败,请联系管理员");
|
|
378
|
+
} catch (n) {
|
|
379
|
+
throw K.error("获取用户权限失败,请联系管理员"), new Error(n);
|
|
380
|
+
}
|
|
381
|
+
}, x = async (a) => {
|
|
382
|
+
var t, s, n, l, f, o, C;
|
|
383
|
+
try {
|
|
384
|
+
let c = [], e, P, F;
|
|
385
|
+
S.value ? F = {
|
|
386
|
+
// pageKey: '/系统管理/用户管理',
|
|
387
|
+
pageKey: "系统管理/用户管理",
|
|
388
|
+
type: "data",
|
|
389
|
+
// 通过electron传递的值获取模型key,解决多账号导入同一模型,账号名重复权限失败问题
|
|
390
|
+
systemKey: S.value
|
|
391
|
+
} : F = {
|
|
392
|
+
// pageKey: '/系统管理/用户管理',
|
|
393
|
+
pageKey: "系统管理/用户管理",
|
|
394
|
+
type: "data"
|
|
395
|
+
};
|
|
396
|
+
const te = await q({
|
|
397
|
+
key: F
|
|
398
|
+
});
|
|
399
|
+
let Q;
|
|
400
|
+
if (!sessionStorage.getItem("systemKey") || sessionStorage.getItem("systemKey") === "" ? Q = await q({
|
|
401
|
+
key: {
|
|
402
|
+
layer: "superAdmin"
|
|
403
|
+
// systemKey:sessionStorage.getItem('tenantKey')
|
|
404
|
+
}
|
|
405
|
+
}) : Q = await q({
|
|
406
|
+
key: {
|
|
407
|
+
layer: "superAdmin",
|
|
408
|
+
systemKey: sessionStorage.getItem("systemKey")
|
|
409
|
+
}
|
|
410
|
+
}), te.data.code === 200 && Q.data.code === 200) {
|
|
411
|
+
const de = (s = (t = Q.data) == null ? void 0 : t.result) == null ? void 0 : s.map((i) => {
|
|
412
|
+
var N, H;
|
|
413
|
+
return {
|
|
414
|
+
...i.value.tableData,
|
|
415
|
+
layer: (N = i.key) == null ? void 0 : N.layer,
|
|
416
|
+
systemKey: (H = i == null ? void 0 : i.key) == null ? void 0 : H.systemKey,
|
|
417
|
+
id: i.id
|
|
418
|
+
};
|
|
419
|
+
}), ue = (l = (n = te.data) == null ? void 0 : n.result) == null ? void 0 : l.map((i) => {
|
|
420
|
+
var N, H;
|
|
421
|
+
return {
|
|
422
|
+
...i.value.tableData,
|
|
423
|
+
layer: (N = i.key) == null ? void 0 : N.layer,
|
|
424
|
+
systemKey: (H = i == null ? void 0 : i.key) == null ? void 0 : H.systemKey,
|
|
425
|
+
id: i.id
|
|
426
|
+
};
|
|
427
|
+
}), ee = [...de, ...ue];
|
|
428
|
+
if (e = ee == null ? void 0 : ee.find((i) => (i == null ? void 0 : i.account) === (a == null ? void 0 : a.account) || (i == null ? void 0 : i.账号) === (a == null ? void 0 : a.account)), e) {
|
|
429
|
+
if (((f = e.layer) == null ? void 0 : f.toUpperCase()) !== "SUPERADMIN" && (!(e != null && e.状态) || (e == null ? void 0 : e.状态) === "禁用" || (e == null ? void 0 : e.status) === "禁用")) {
|
|
430
|
+
K.error("该用户已被禁用,请联系管理员"), m.value = !1;
|
|
431
|
+
return;
|
|
432
|
+
}
|
|
433
|
+
c = await U(e);
|
|
434
|
+
const { privateKey: i } = await d.getModelSecretAsync(e);
|
|
435
|
+
let N;
|
|
436
|
+
if (e.password ? N = ((o = e.layer) == null ? void 0 : o.toUpperCase()) === "SUPERADMIN" ? e.password : re(e.password, i) : N = ((C = e.layer) == null ? void 0 : C.toUpperCase()) === "SUPERADMIN" ? e.password : ge, (a == null ? void 0 : a.password) === N)
|
|
437
|
+
P = e;
|
|
438
|
+
else
|
|
439
|
+
throw P = null, K.error("输入的密码错误,请重新输入"), m.value = !1, new Error("输入的密码错误,请重新输入");
|
|
440
|
+
} else
|
|
441
|
+
return K.error("该用户不存在,请重新输入");
|
|
442
|
+
}
|
|
443
|
+
return P && c ? {
|
|
444
|
+
matchedUser: P,
|
|
445
|
+
userAuthority: c
|
|
446
|
+
} : void 0;
|
|
447
|
+
} catch (c) {
|
|
448
|
+
throw new Error(c);
|
|
449
|
+
}
|
|
450
|
+
}, D = async (a) => {
|
|
451
|
+
var s, n, l;
|
|
452
|
+
const t = await x(a);
|
|
453
|
+
if (t != null && t.matchedUser) {
|
|
454
|
+
d.setLoginUserInfo(t.matchedUser), sessionStorage.setItem("authority", JSON.stringify(t.userAuthority));
|
|
455
|
+
const f = ((n = (s = t.matchedUser) == null ? void 0 : s.layer) == null ? void 0 : n.toUpperCase()) === "SUPERADMIN";
|
|
456
|
+
return sessionStorage.setItem("isSuperAdmin", JSON.stringify(f)), sessionStorage.setItem("systemKey", S.value ? S.value : (l = t.matchedUser) == null ? void 0 : l.systemKey), await O(t.matchedUser), !0;
|
|
457
|
+
} else
|
|
458
|
+
throw m.value = !1, new Error("该用户数据处理失败,请联系管理员");
|
|
459
|
+
}, O = async (a) => {
|
|
460
|
+
var s, n, l, f, o, C, c, e, P;
|
|
461
|
+
const t = await q({
|
|
462
|
+
key: {
|
|
463
|
+
// pageKey: '/user',
|
|
464
|
+
layer: "superAdmin",
|
|
465
|
+
systemKey: S.value ? S.value : a == null ? void 0 : a.systemKey
|
|
466
|
+
// systemKey: user?.systemKey
|
|
467
|
+
}
|
|
468
|
+
});
|
|
469
|
+
if (t.data.code === 200 && (s = t.data) != null && s.result && Array.isArray((n = t.data) == null ? void 0 : n.result) && ((f = (l = t.data) == null ? void 0 : l.result) == null ? void 0 : f.length) > 0) {
|
|
470
|
+
const F = (P = (e = (c = (C = (o = t.data) == null ? void 0 : o.result) == null ? void 0 : C[0]) == null ? void 0 : c.value) == null ? void 0 : e.tableData) == null ? void 0 : P.account;
|
|
471
|
+
d.setSuperAdminInfo({
|
|
472
|
+
account: F
|
|
473
|
+
});
|
|
474
|
+
}
|
|
475
|
+
}, R = async () => {
|
|
476
|
+
var a, t, s;
|
|
477
|
+
try {
|
|
478
|
+
const n = await je();
|
|
479
|
+
return ((a = n == null ? void 0 : n.data) == null ? void 0 : a.code) === 200 ? (sessionStorage.setItem("loginToken", (s = (t = n.data) == null ? void 0 : t.result) == null ? void 0 : s.accessToken), !0) : !1;
|
|
480
|
+
} catch (n) {
|
|
481
|
+
K.error(n);
|
|
482
|
+
}
|
|
483
|
+
}, G = async () => {
|
|
484
|
+
var a, t, s;
|
|
485
|
+
try {
|
|
486
|
+
const n = await pe.post("http://139.196.154.85:20024/api/sysAuth/login", {
|
|
487
|
+
account: "superadmin",
|
|
488
|
+
password: "9bf00809059adc7f57bd290bf73ddf4d16f4c83b5937e2d68144ab0bd60d045d22d70afeed8f2fa071cda536e1fac0daf12b8e63dd870c3ca8b308f23be6e693bb32ebd3d013116dc8338d6854b1332701a522a7c43706a6db4162fbe991c8c08aa842fbbc34",
|
|
489
|
+
codeId: 0,
|
|
490
|
+
code: ""
|
|
491
|
+
});
|
|
492
|
+
return ((a = n == null ? void 0 : n.data) == null ? void 0 : a.code) === 200 ? (sessionStorage.setItem("magicToken", (s = (t = n.data) == null ? void 0 : t.result) == null ? void 0 : s.accessToken), !0) : !1;
|
|
493
|
+
} catch (n) {
|
|
494
|
+
K.error(n);
|
|
495
|
+
}
|
|
496
|
+
}, Z = async (a) => {
|
|
497
|
+
var l, f, o, C;
|
|
498
|
+
m.value = !0;
|
|
499
|
+
let t = [D(a), R(), G()];
|
|
500
|
+
const s = await Promise.all(t);
|
|
501
|
+
(s == null ? void 0 : s.every((c) => c)) && (await Ce(), b.push("/"), d.setLogRecordAsync({
|
|
502
|
+
type: "登录",
|
|
503
|
+
data: {
|
|
504
|
+
account: ((l = u.value) == null ? void 0 : l.account) ?? ((f = u.value) == null ? void 0 : f.账号),
|
|
505
|
+
userName: ((o = u.value) == null ? void 0 : o.姓名) || ((C = u.value) == null ? void 0 : C.userName) || "未知"
|
|
506
|
+
}
|
|
507
|
+
}, "/login", "login"));
|
|
508
|
+
}, le = (a) => {
|
|
509
|
+
p.value = a, w.value = !1, m.value = !1;
|
|
510
|
+
}, ie = (a) => /^[\u4e00-\u9fa5\s,。!?《》“”【】]+$/.test(a);
|
|
511
|
+
return (a, t) => (W(), J("div", qe, [
|
|
512
|
+
h("div", Je, [
|
|
513
|
+
h("div", We, [
|
|
514
|
+
k(Ke, { class: "login-left-bg" }, {
|
|
515
|
+
img: y(() => {
|
|
516
|
+
var s, n, l, f;
|
|
517
|
+
return [
|
|
518
|
+
h("div", ze, [
|
|
519
|
+
h("div", null, V(((s = X(_)) == null ? void 0 : s.EnglishName) || "INSOFWORKS"), 1),
|
|
520
|
+
h("div", null, V((n = X(_)) != null && n.chineseName && ie((l = X(_)) == null ? void 0 : l.chineseName) ? (f = X(_)) == null ? void 0 : f.chineseName : "工业软件集成开发平台"), 1)
|
|
521
|
+
]),
|
|
522
|
+
t[0] || (t[0] = h("div", { class: "divide-line" }, null, -1))
|
|
523
|
+
];
|
|
524
|
+
}),
|
|
525
|
+
_: 1
|
|
526
|
+
})
|
|
527
|
+
]),
|
|
528
|
+
h("div", Ge, [
|
|
529
|
+
k(Pe, {
|
|
530
|
+
loading: m.value,
|
|
531
|
+
onClickLogin: r,
|
|
532
|
+
onHandleTabChange: le
|
|
533
|
+
}, {
|
|
534
|
+
title: y(() => [
|
|
535
|
+
j(V(g.value.loginTitle), 1)
|
|
536
|
+
]),
|
|
537
|
+
tabLabel1: y(() => [
|
|
538
|
+
j(V(g.value.tabs[0].name), 1)
|
|
539
|
+
]),
|
|
540
|
+
tabContent1: y(() => [
|
|
541
|
+
k(xe, {
|
|
542
|
+
activeTabName: p.value,
|
|
543
|
+
isClickLogin: w.value,
|
|
544
|
+
onHandleLoginFormChange: v
|
|
545
|
+
}, null, 8, ["activeTabName", "isClickLogin"])
|
|
546
|
+
]),
|
|
547
|
+
tabButton1: y(() => [
|
|
548
|
+
j(V(g.value.tabs[0].btnLabel), 1)
|
|
549
|
+
]),
|
|
550
|
+
tabLabel2: y(() => [
|
|
551
|
+
j(V(g.value.tabs[1].name), 1)
|
|
552
|
+
]),
|
|
553
|
+
tabContent2: y(() => [
|
|
554
|
+
k(He, {
|
|
555
|
+
systemKey: a.oldSystemKey,
|
|
556
|
+
activeTabName: p.value,
|
|
557
|
+
isClickLogin: w.value,
|
|
558
|
+
onHandleLoginFormChange: v
|
|
559
|
+
}, null, 8, ["systemKey", "activeTabName", "isClickLogin"])
|
|
560
|
+
]),
|
|
561
|
+
tabButton2: y(() => [
|
|
562
|
+
j(V(g.value.tabs[1].btnLabel), 1)
|
|
563
|
+
]),
|
|
564
|
+
_: 1
|
|
565
|
+
}, 8, ["loading"])
|
|
566
|
+
])
|
|
567
|
+
])
|
|
568
|
+
]));
|
|
569
|
+
}
|
|
570
|
+
}), sa = /* @__PURE__ */ z(Qe, [["__scopeId", "data-v-cc09996c"]]);
|
|
571
|
+
export {
|
|
572
|
+
sa as default
|
|
573
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),d=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
1
|
+
"use strict";const e=require("vue"),d=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-TDoJ17os.cjs"),p=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),_={__name:"index",props:{optionContents:{type:Object,default:()=>{}}},setup(a){const s=a;let t=null,n=null;const r=e.ref({}),o=e.ref(null),u=()=>{o.value&&(n=new ResizeObserver(()=>{i()}),n.observe(o.value))};e.onMounted(()=>{r.value=s.optionContents,c(),window.addEventListener("resize",i),u()}),e.watch(()=>s.optionContents,()=>{r.value=s.optionContents,c()}),e.onUnmounted(()=>{n&&n.disconnect(),window.removeEventListener("resize",i)});const i=()=>{t.resize()},c=()=>{t&&t.dispose(),t=d.init(o.value);const l=r.value;t.setOption(l),t.resize()};return(l,f)=>(e.openBlock(),e.createElementBlock("div",{id:"chartModelId",class:"chart-model-class",ref_key:"chartModelRef",ref:o},null,512))}},v=p._export_sfc(_,[["__scopeId","data-v-69d6e63f"]]);exports.ssChart=v;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-Dv1G67_Q.cjs"),f=require("./index.vue_vue_type_style_index_1_lang-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-Dv1G67_Q.cjs"),f=require("./index.vue_vue_type_style_index_1_lang-CrmWclPR.cjs"),C=require("./index-D0XPyuy4.cjs"),r=require("./index-CMIGSPjz.cjs"),g=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),v={class:"menu-content"},x=l.defineComponent({__name:"index",setup(q){const m=f.useMenuState(u.pinia),{menus:_}=u.storeToRefs(m),p=l.ref([]),c=async()=>{var i,t,n,a;const e=await u.getInsofDataApi({key:{type:"mainEquip",systemKey:sessionStorage.getItem("systemKey")}});if(((i=e==null?void 0:e.data)==null?void 0:i.type)==="success"){let o=(n=(t=e==null?void 0:e.data)==null?void 0:t.result)==null?void 0:n.map(s=>s);return o=(a=u.cloneDeep(o))==null?void 0:a.map(s=>{var d;const b=Object.values((d=s==null?void 0:s.value)==null?void 0:d.tableData);return b.unshift({id:s==null?void 0:s.id}),b}),o}else return[]};l.onMounted(async()=>{var n;const e=await c(),t=[{key:"header",contents:[{label:"主菜单名称",formType:"Select",options:(n=u.cloneDeep(_.value))==null?void 0:n.map(a=>({label:a==null?void 0:a.title,value:a==null?void 0:a.title})),prop:"主菜单名称"},{label:"隐藏三维显示",formType:"Switch",value:!1,prop:"隐藏三维显示"},{label:"操作"}]},{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}];t.push({key:"tableContents",contents:e}),p.value=t});const y=e=>{(e==null?void 0:e.buttonName)==="新增"?r.addMenuContent(e==null?void 0:e.singleContent):(e==null?void 0:e.buttonName)==="删除"?r.deleteMenuContent(e==null?void 0:e.singleContent):(e==null?void 0:e.buttonName)==="编辑"&&r.fixMenuContent(e==null?void 0:e.singleContent)};return(e,i)=>(l.openBlock(),l.createElementBlock("div",v,[l.createVNode(C.ssTable,{itemData:p.value,class:"table-content",onChange:y},null,8,["itemData"])]))}}),h=g._export_sfc(x,[["__scopeId","data-v-26f5cadc"]]);exports.default=h;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const g=require("vue"),p=require("./index-Dv1G67_Q.cjs"),w=require("./index.vue_vue_type_style_index_1_lang-
|
|
1
|
+
"use strict";const g=require("vue"),p=require("./index-Dv1G67_Q.cjs"),w=require("./index.vue_vue_type_style_index_1_lang-CrmWclPR.cjs"),D=p.useLoginState(p.pinia),{loginUserInfo:u,cryptoInfo:m}=p.storeToRefs(D),V=w.useMenuState(p.pinia),{activeMenuPath:y}=p.storeToRefs(V),E=g.ref(0),P=g.computed(()=>{var s,a,t,r,n,l,e,o,d,v,f;return[{label:"",name:"账号",prop:"账号",value:((s=u.value)==null?void 0:s.account)||(((a=u.value)==null?void 0:a.账号)??"未知")},{label:"",name:"角色名称",prop:"角色名称",value:((t=u.value)==null?void 0:t.layer)==="superAdmin"?"超级管理员":(r=u.value)==null?void 0:r.角色名称},{label:"",name:"部门名称",prop:"部门名称",value:((n=u.value)==null?void 0:n.部门名称)??"未知"},{label:"",name:"状态",prop:"状态",value:((l=u.value)==null?void 0:l.layer)==="superAdmin"?"启用":((e=u.value)==null?void 0:e.状态)??"未知"},{label:"",prop:"头像",isFormColHidden:!0,value:((o=u.value)==null?void 0:o.layer)==="superAdmin"?"启用":((d=u.value)==null?void 0:d.状态)??"未知"},{label:"",prop:"签名",isFormColHidden:!0,value:((v=u.value)==null?void 0:v.layer)==="superAdmin"?"启用":((f=u.value)==null?void 0:f.状态)??"未知"}]}),W=()=>{},U=g.ref(!1),h=g.reactive({dialogTitle:"电子签名",dialogWidth:"30",dialogShow:!1,url:""}),S=g.ref([{label:"签字版",icon:p.edit_pen_default,type:"button",disabled:!1},{label:"电子签名",icon:p.edit_default,type:"button",disabled:!1},{label:"上传手写签名",icon:p.upload_filled_default,type:"buttonUpload",disabled:!1}]),_=g.ref(!1),I=g.ref(!1),R=g.ref(!1),M=g.computed(()=>{var r,n,l;const s=sessionStorage.getItem("authority"),a=JSON.parse(s||""),t=(r=y.value)!=null&&r.startsWith("/")?(n=y.value)==null?void 0:n.substring(1):y.value;return Array.isArray(a)?(R.value=!(a!=null&&a.includes(`${t}/上传头像`)),(l=S.value)==null?void 0:l.map(e=>({...e,disabled:!(a!=null&&a.includes(`${t}/签名`))}))):typeof a=="string"&&(a==null?void 0:a.toUpperCase())==="SUPERADMIN"?S.value:[]}),O=g.computed(()=>[{key:"signConfig",contents:h},{key:"signTypeList",contents:M.value}]),$=s=>{h.dialogShow=s.label==="电子签名"},L=()=>{h.dialogShow=!1},N=async s=>{var t,r,n,l,e,o,d,v,f;const a=await p.getInsofDataApi({id:s});if(((t=a==null?void 0:a.data)==null?void 0:t.code)===200&&a.data.result&&Array.isArray(a.data.result)&&a.data.result.length>0){const b={...(l=(n=(r=a.data.result)==null?void 0:r[0])==null?void 0:n.value)==null?void 0:l.tableData,id:(o=(e=a.data.result)==null?void 0:e[0])==null?void 0:o.id,layer:(f=(v=(d=a.data.result)==null?void 0:d[0])==null?void 0:v.key)==null?void 0:f.layer};D.setLoginUserInfo(b)}},q=async(s,a)=>{var r,n,l;const t=p.cloneDeep(s);t==null||delete t.id;try{const e=await p.updateInsofDataApi({id:(r=u.value)==null?void 0:r.id,value:{tableData:t}});((n=e==null?void 0:e.data)==null?void 0:n.code)===200&&(L(),p.ElMessage.success("修改成功"),await N((l=u.value)==null?void 0:l.id),await D.setLogRecordAsync({type:a,data:s},y.value))}catch{p.ElMessage.error("修改响应失败")}finally{U.value=!1,_.value=!1,I.value=!1}},x=async(s,a)=>{var n;const t=s==="avatarUrl"?"头像":"签名",r={...u.value,status:((n=u.value)==null?void 0:n.status)??"启用",[t]:a};_.value=s==="avatarUrl",I.value=s==="signature",await q(r,"图片修改")},c=g.reactive({baseCols:[],otherCols:[]}),K=g.ref([]),k=g.ref(),B=(s,a,t)=>{var l,e,o,d,v,f;let r;const n=a;((e=(l=u.value)==null?void 0:l.layer)==null?void 0:e.toUpperCase())!=="SUPERADMIN"?r=(o=u.value)!=null&&o.password?w.decryptData((d=u.value)==null?void 0:d.password,(v=m==null?void 0:m.value)==null?void 0:v.privateKey):w.resetPassword:r=(f=u.value)==null?void 0:f.password,r===n?t():t(new Error("输入的密码与原密码不匹配,请重新输入"))},H=(s,a,t)=>{a?t():t(new Error("请输入密码"))},j=(s,a,t)=>{var r;a!==((r=k.value)==null?void 0:r.newtPass)?t(new Error("两次输入的密码不一致")):t()},J=async()=>{var a,t,r,n,l,e,o,d,v,f;const s=await p.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure",pageKey:"系统管理/用户管理"}});if(((a=s==null?void 0:s.data)==null?void 0:a.code)===200&&s.data.result&&((t=s.data.result)==null?void 0:t.length)>0){const b=(o=(e=(l=(n=(r=s.data.result)==null?void 0:r[0])==null?void 0:n.value)==null?void 0:l.pageData)==null?void 0:e.compData)==null?void 0:o.find(i=>(i==null?void 0:i.key)==="header"),C=(d=P.value)==null?void 0:d.map(i=>i==null?void 0:i.prop);c.baseCols=b&&((v=b.contents)==null?void 0:v.map(i=>({...i,isFormColHidden:(C==null?void 0:C.includes(i==null?void 0:i.prop))||(i==null?void 0:i.label)==="操作"})));const A=(f=b.contents)==null?void 0:f.find(i=>(i==null?void 0:i.prop)==="password"),F=[{...A,label:"当前密码",prop:"currentPass",validator:B},{...A,label:"新密码",prop:"newtPass",validator:H},{...A,label:"确认密码",prop:"confirmNewPass",validator:j}];c.otherCols=F,Q(u.value)}},z=s=>{k.value=s},G=async({content:s,buttonName:a})=>{var r,n,l,e,o;let t;a==="确定"&&(t={...u.value,status:((r=u.value)==null?void 0:r.status)??"启用",password:((l=(n=u.value)==null?void 0:n.layer)==null?void 0:l.toUpperCase())==="SUPERADMIN"?s==null?void 0:s.confirmNewPass:w.encryptData(s==null?void 0:s.confirmNewPass,(e=m.value)==null?void 0:e.publicKey)}),a==="保存基本信息"&&(t={...u.value,...s,status:((o=u.value)==null?void 0:o.status)??"启用"}),U.value=!0,await q(t,a)},T=()=>{var r,n;const s={base:[{label:"保存基本信息"}],other:[{label:"重置",background:"#b7b8b8"},{label:"确定"}]},a=sessionStorage.getItem("authority"),t=JSON.parse(a||"");if(Array.isArray(t)){const l=(r=y.value)!=null&&r.startsWith("/")?(n=y.value)==null?void 0:n.substring(1):y.value,e=t!=null&&t.includes(`${l}/基本信息`)?s==null?void 0:s.base:[],o=t!=null&&t.includes(`${l}/修改密码`)?s==null?void 0:s.other:[];return{base:e,other:o}}else return typeof t=="string"&&(t==null?void 0:t.toUpperCase())==="SUPERADMIN"?s:null},Q=s=>{var a,t,r,n,l;K.value=[{value:"基础信息",label:"基础信息",children:[{type:"form",content:{rowContents:(a=c.baseCols)==null?void 0:a.map(e=>({...e,width:2,type:e==null?void 0:e.formType,name:e==null?void 0:e.prop,prop:e==null?void 0:e.prop,contents:e==null?void 0:e.options,value:s[e==null?void 0:e.prop]})),formRules:{userName:[{required:!0,message:"输入不能为空",trigger:"blur"}],birthDay:[{required:!0,message:"输入不能为空",trigger:"blur"}],phone:[{required:!0,message:"输入不能为空",trigger:"blur"}]},buttonValue:(t=T())==null?void 0:t.base,isEnableWrap:!1,isButtonRow:!1},value:""}]},{value:"修改密码",label:"修改密码",children:[{type:"form",content:{rowContents:(r=c.otherCols)==null?void 0:r.map(e=>({...e,width:1,type:e==null?void 0:e.formType,name:e==null?void 0:e.prop,contents:e==null?void 0:e.options})),formRules:(n=c.otherCols)==null?void 0:n.reduce((e,o)=>(e[o.prop]=[{required:!0,message:"输入有误",trigger:"change"},{validator:(d,v,f)=>o.validator(d,v,f),trigger:"blur"}],e),{}),buttonValue:(l=T())==null?void 0:l.other,isEnableWrap:!1},value:""}]}]},X=Object.freeze(Object.defineProperty({__proto__:null,avatarLoading:_,beforeSignDestroy:L,changeFormTrigger:z,clickFormButton:W,clickSignButton:$,clickTabButton:G,getUserTableHeadersAsync:J,itemData:O,loading:U,refreshLoginUserInfoAsync:N,rowContents:P,signPadInfo:h,signTypes:M,signatureLoading:I,submitImageAsync:x,tabKey:E,tabsContents:K,tempSignTypes:S,uploadDisabled:R},Symbol.toStringTag,{value:"Module"}));exports.State=X;exports.tabKey=E;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),b=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),b=require("./index-D0XPyuy4.cjs"),c=require("./index-Dv1G67_Q.cjs"),r=require("./index.vue_vue_type_style_index_1_lang-CrmWclPR.cjs"),g=r.useModelComp(),{itemData:i}=c.storeToRefs(g),d=o.ref(0),m=o.ref([{label:"机构名称",value:"",name:"deptName"}]),D=e=>{console.log("handleQueryChange",e)},u=o.ref([{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"编辑"},{label:"删除"}]},{key:"header",contents:[{label:"职位名称",prop:"postName"},{label:"职位排序",formType:"Number",prop:"postOrder"},{label:"备注",formType:"TextArea",prop:"remark"},{label:"操作"}]},{key:"tableContents",contents:[]}]),f=e=>{r.submitTableAsyncByVerify(e.singleContent,e.buttonName,d.value)},_=e=>{console.log("onDoubleClick",e)},h=(e,a)=>{console.log("onButtonClick",e,a)},C=async e=>{const a=await r.handleSubmitAsync(c.getInsofDataApi,{key:{type:"data",systemKey:sessionStorage.getItem("systemKey"),pageKey:e}},"查询"),l=a==null?void 0:a.map(t=>{var n;return{id:t.id,tableData:(n=t==null?void 0:t.value)==null?void 0:n.tableData}});return l==null?void 0:l.map(t=>{var n;if(Array.isArray(t==null?void 0:t.tableData)){let s={id:t.id};return(n=t==null?void 0:t.tableData)==null||n.forEach((p,y)=>{s[`a${y}`]=p}),s}else return{...t.tableData,id:t.id}})},k={comp:"Group",name:"/系统管理/职位管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:u.value,name:""}]}]};o.watch(()=>i.value,e=>{var a;e&&(e==null?void 0:e.length)>0&&(u.value=(a=e==null?void 0:e[0])==null?void 0:a.compData)});const S=Object.freeze(Object.defineProperty({__proto__:null,getPageDataAsync:C,handleItemDataChange:f,handleQueryChange:D,onButtonClick:h,onDoubleClick:_,pageData:u,queryFormData:m,structureId:d,tempPostPageData:k},Symbol.toStringTag,{value:"Module"})),T=o.defineComponent({__name:"index",setup(e){const a=o.reactive({...S}),l=r.useMenuState(),{activeMenuPath:t}=c.storeToRefs(l);return o.onMounted(async()=>{a.structureId=await r.getActivePageStructureId(t.value)}),(n,s)=>(o.openBlock(),o.createElementBlock("div",null,[o.createVNode(b.ssTable,{itemData:a.pageData,onChange:a.handleItemDataChange},null,8,["itemData","onChange"])]))}});exports.default=T;
|