ss-component-new 1.3.641 → 1.3.643
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-CZqN7Zrs.js → MTLLoader-CzUQTGKY.js} +2 -2
- package/dist/{URDFLoader-5yxKptss.js → URDFLoader-Cpc_aT68.js} +584 -589
- package/dist/{animationData-_pwKquvD.js → animationData-BgDqzRLe.js} +3 -3
- package/dist/{array-CHe-DoyQ.js → array-x70XTJSv.js} +14 -13
- package/dist/{clone-BjJ_R9XN.js → clone-DqQwDoSV.js} +1 -1
- package/dist/{eleIcon-BWVKfp5t.js → eleIcon-Dtsx377t.js} +2 -2
- package/dist/{iconfont-DGtoabuW.js → iconfont-B4WPRBLy.js} +91 -91
- package/dist/{index-DJrzqi4-.js → index-11kpzK0A.js} +17 -17
- package/dist/{index-BEuZVqx1.js → index-B0w8-AEa.js} +9164 -9616
- package/dist/{index-BibSA99e.js → index-B2i-wZ7I.js} +20 -17
- package/dist/{index-BSIx33n6.js → index-B9g43cVc.js} +62 -60
- package/dist/index-BDfs7pV0.js +11397 -0
- package/dist/{index-dD-mKgue.js → index-BHtNKL1L.js} +2 -2
- package/dist/{index-Bvvz41NY.js → index-BI3gwdBk.js} +1 -1
- package/dist/{index-DwmZbmjQ.js → index-BjSS0ovo.js} +80 -74
- package/dist/{index-qv_1lhhv.js → index-BkAYMm70.js} +2 -2
- package/dist/{index-FPf0BzIG.js → index-C4OLi6tq.js} +551 -554
- package/dist/{index-CmGpt__g.js → index-CB2B4YM9.js} +3 -3
- package/dist/{index-D_kI6aHR.js → index-CDpLX430.js} +8 -7
- package/dist/{index-CmrtXrCW.js → index-CMXhAlkY.js} +8 -8
- package/dist/{index-DV-y9RNF.js → index-C_c-5ZAh.js} +61 -57
- package/dist/index-Cb5fCewf.js +572 -0
- package/dist/{index-CcdSuqPt.js → index-Cnet9-km.js} +8 -8
- package/dist/{index-BYTAx6bL.js → index-Czz3dB6u.js} +5 -5
- package/dist/{index-CUB0YIQp.js → index-D8cOzz3g.js} +5 -5
- package/dist/{index-DW6CZC2b.js → index-DGmjWChr.js} +1051 -1053
- package/dist/{index-CwKQTNJ6.js → index-DLZVUgaP.js} +2 -2
- package/dist/{index-DW2-bo7z.js → index-DNl2K8-4.js} +176 -167
- package/dist/{index-CIFdtwKG.js → index-DaOXFFsu.js} +20 -18
- package/dist/{index-CT3n6jZB.js → index-DllVa0Ze.js} +6 -6
- package/dist/{index-DlH7-Quf.js → index-DpcGBPYo.js} +3 -3
- package/dist/{index-Dae7KcRH.js → index-DzZWEErj.js} +3 -3
- package/dist/{index-C6ZyziE9.js → index-FCnO8UeA.js} +4 -4
- package/dist/{index-BcWf6LmN.js → index-IXxKIj3h.js} +4 -4
- package/dist/{index-B6zWduiC.js → index-LED1qeo2.js} +3 -3
- package/dist/{index-BwEO2Ckl.js → index-NwTP3AQl.js} +7 -7
- package/dist/{index-rVTDSJ7d.js → index-_fheIMoz.js} +22950 -23035
- package/dist/{index-CUUkM-MP.js → index-awI81WIz.js} +47 -43
- package/dist/{index-JxFaaWxD.js → index-fxJSVddL.js} +1 -1
- package/dist/{index-BFqUz4pN.js → index-rlStojTL.js} +1 -1
- package/dist/{index-YVR3acYT.js → index-tLd2cEHX.js} +1 -1
- package/dist/{index-DIimK4we.js → index-yJckrmsT.js} +4 -4
- 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-DdTK-nti.js → index.vue_vue_type_style_index_0_scoped_39e1db95_lang-BEPFL4uU.js} +27735 -27760
- package/dist/isString-CXX7MUiv.js +8 -0
- package/dist/{localIcon-CoJHw5ss.js → localIcon-D5UoFBU5.js} +1 -1
- package/dist/{main-B7yRqx5R.js → main-nJu2K4N-.js} +9 -9
- package/dist/{menuIndex-CY5XD7Ny.js → menuIndex-2JX7SuB8.js} +1 -1
- package/dist/obj/model.mtl +42 -0
- package/dist/obj/model.obj +26110 -0
- package/dist/{request-DiogHwkN.js → request-D-LN5bvn.js} +3075 -3494
- 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-D2NPH9rB.js → threeModel-BbNw-rXE.js} +174 -174
- package/dist/{threePreview-BC0mxp0t.js → threePreview-Cjupz9HK.js} +12 -12
- package/dist/{threeSceneView-CYA_dl9b.js → threeSceneView-4bCcg3w6.js} +111 -110
- package/dist/{threeSceneViewForCPMPIP-BeAfVkav.js → threeSceneViewForCPMPIP-D6nwYUWT.js} +17 -16
- package/dist/{threeTrackPathView-C8RcSYdk.js → threeTrackPathView-DuiNPnon.js} +7 -7
- package/dist/{threeViewerHost-EI6zUnYp.js → threeViewerHost-CsGXf4BF.js} +4 -4
- package/dist/{urdfTree-BGPikD3W.js → urdfTree-CymLIkE8.js} +9 -9
- package/dist/{workpieceTreePanel-DO6BojnM.js → workpieceTreePanel-DaTdJC9q.js} +60 -56
- package/package.json +1 -1
- package/public/obj/model.mtl +42 -0
- package/public/obj/model.obj +26110 -0
- package/dist/index-D23qc_Ne.js +0 -2623
- package/dist/index-DT8oA7Bc.js +0 -11550
- package/dist/isString-CoCw_sp3.js +0 -8
|
@@ -0,0 +1,572 @@
|
|
|
1
|
+
import { ref as h, computed as E, reactive as j, defineComponent as q, watch as H, createElementBlock as N, openBlock as k, createVNode as A, createCommentVNode as ue, withCtx as _, createTextVNode as x, toDisplayString as F, resolveComponent as D, createBlock as R, Fragment as ie, renderList as ce, createElementVNode as de, normalizeStyle as pe } from "vue";
|
|
2
|
+
import { c7 as fe, c8 as ve, c9 as ge, E as T } from "./request-D-LN5bvn.js";
|
|
3
|
+
import { s as J, b as ye, u as be, p as G, c as me, e as he } from "./index-DGmjWChr.js";
|
|
4
|
+
import { g as Q, u as we } from "./index-tLd2cEHX.js";
|
|
5
|
+
import { J as X } from "./JSEncrypt-B36c1iN5.js";
|
|
6
|
+
import { a4 as Se } from "./index-C4OLi6tq.js";
|
|
7
|
+
import { A as _e } from "./index-awI81WIz.js";
|
|
8
|
+
import { u as Y, m as Ce } from "./index-B0w8-AEa.js";
|
|
9
|
+
import { _ as Z } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
+
import { S as V } from "./index-BHtNKL1L.js";
|
|
11
|
+
function Ae(t, s) {
|
|
12
|
+
const e = new X();
|
|
13
|
+
return e.setPublicKey(s), e.encrypt(t) || "";
|
|
14
|
+
}
|
|
15
|
+
function ke(t, s) {
|
|
16
|
+
const e = new X();
|
|
17
|
+
return e.setPrivateKey(s), e.decrypt(t) || "";
|
|
18
|
+
}
|
|
19
|
+
const M = ye(G), { loginUserInfo: d, cryptoInfo: P } = J(M), Ie = be(G), { activeMenuPath: I } = J(Ie), Ue = h(0), ee = E(() => {
|
|
20
|
+
var t, s, e, n, l, o, a, p, y, b, g;
|
|
21
|
+
return [
|
|
22
|
+
{
|
|
23
|
+
label: "",
|
|
24
|
+
// name: 'account',
|
|
25
|
+
name: "账号",
|
|
26
|
+
prop: "账号",
|
|
27
|
+
value: ((t = d.value) == null ? void 0 : t.account) || (((s = d.value) == null ? void 0 : s.账号) ?? "未知")
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
label: "",
|
|
31
|
+
// name: 'userRoles',
|
|
32
|
+
name: "角色名称",
|
|
33
|
+
prop: "角色名称",
|
|
34
|
+
// value: loginUserInfo.value?.userRoles?.join('、')
|
|
35
|
+
value: ((e = d.value) == null ? void 0 : e.layer) === "superAdmin" ? "超级管理员" : (n = d.value) == null ? void 0 : n.角色名称
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
label: "",
|
|
39
|
+
// name: 'userDept',
|
|
40
|
+
name: "部门名称",
|
|
41
|
+
prop: "部门名称",
|
|
42
|
+
value: ((l = d.value) == null ? void 0 : l.部门名称) ?? "未知"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
label: "",
|
|
46
|
+
// name: 'userDept',
|
|
47
|
+
name: "状态",
|
|
48
|
+
prop: "状态",
|
|
49
|
+
value: ((o = d.value) == null ? void 0 : o.layer) === "superAdmin" ? "启用" : ((a = d.value) == null ? void 0 : a.状态) ?? "未知"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
label: "",
|
|
53
|
+
prop: "头像",
|
|
54
|
+
isFormColHidden: !0,
|
|
55
|
+
value: ((p = d.value) == null ? void 0 : p.layer) === "superAdmin" ? "启用" : ((y = d.value) == null ? void 0 : y.状态) ?? "未知"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
label: "",
|
|
59
|
+
prop: "签名",
|
|
60
|
+
isFormColHidden: !0,
|
|
61
|
+
value: ((b = d.value) == null ? void 0 : b.layer) === "superAdmin" ? "启用" : ((g = d.value) == null ? void 0 : g.状态) ?? "未知"
|
|
62
|
+
}
|
|
63
|
+
];
|
|
64
|
+
}), Be = () => {
|
|
65
|
+
}, $ = h(!1), L = j({
|
|
66
|
+
dialogTitle: "电子签名",
|
|
67
|
+
dialogWidth: "30",
|
|
68
|
+
dialogShow: !1,
|
|
69
|
+
url: ""
|
|
70
|
+
}), K = h([
|
|
71
|
+
{
|
|
72
|
+
label: "签字版",
|
|
73
|
+
icon: fe,
|
|
74
|
+
type: "button",
|
|
75
|
+
disabled: !1
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
label: "电子签名",
|
|
79
|
+
icon: ve,
|
|
80
|
+
type: "button",
|
|
81
|
+
disabled: !1
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
label: "上传手写签名",
|
|
85
|
+
icon: ge,
|
|
86
|
+
type: "buttonUpload",
|
|
87
|
+
disabled: !1
|
|
88
|
+
}
|
|
89
|
+
]), z = h(!1), O = h(!1), ae = h(!1), te = E(() => {
|
|
90
|
+
var n, l, o;
|
|
91
|
+
const t = sessionStorage.getItem("authority"), s = JSON.parse(t || ""), e = (n = I.value) != null && n.startsWith("/") ? (l = I.value) == null ? void 0 : l.substring(1) : I.value;
|
|
92
|
+
return Array.isArray(s) ? (ae.value = !(s != null && s.includes(`${e}/上传头像`)), (o = K.value) == null ? void 0 : o.map((a) => ({
|
|
93
|
+
...a,
|
|
94
|
+
disabled: !(s != null && s.includes(`${e}/签名`))
|
|
95
|
+
}))) : typeof s == "string" && (s == null ? void 0 : s.toUpperCase()) === "SUPERADMIN" ? K.value : [];
|
|
96
|
+
}), Te = E(() => [
|
|
97
|
+
{
|
|
98
|
+
key: "signConfig",
|
|
99
|
+
contents: L
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
key: "signTypeList",
|
|
103
|
+
contents: te.value
|
|
104
|
+
}
|
|
105
|
+
]), Ee = (t) => {
|
|
106
|
+
L.dialogShow = t.label === "电子签名";
|
|
107
|
+
}, se = () => {
|
|
108
|
+
L.dialogShow = !1;
|
|
109
|
+
}, re = async (t) => {
|
|
110
|
+
var e, n, l, o, a, p, y, b, g;
|
|
111
|
+
const s = await Q({
|
|
112
|
+
id: t
|
|
113
|
+
// key: {
|
|
114
|
+
// systemKey: sessionStorage.getItem("systemKey"),
|
|
115
|
+
// type: "data",
|
|
116
|
+
// // pageKey: '/系统管理/用户管理',
|
|
117
|
+
// pageKey: '系统管理/用户管理',
|
|
118
|
+
// }
|
|
119
|
+
});
|
|
120
|
+
if (((e = s == null ? void 0 : s.data) == null ? void 0 : e.code) === 200 && s.data.result && Array.isArray(s.data.result) && s.data.result.length > 0) {
|
|
121
|
+
const c = {
|
|
122
|
+
...(o = (l = (n = s.data.result) == null ? void 0 : n[0]) == null ? void 0 : l.value) == null ? void 0 : o.tableData,
|
|
123
|
+
id: (p = (a = s.data.result) == null ? void 0 : a[0]) == null ? void 0 : p.id,
|
|
124
|
+
layer: (g = (b = (y = s.data.result) == null ? void 0 : y[0]) == null ? void 0 : b.key) == null ? void 0 : g.layer
|
|
125
|
+
};
|
|
126
|
+
M.setLoginUserInfo(c);
|
|
127
|
+
}
|
|
128
|
+
}, ne = async (t, s) => {
|
|
129
|
+
var n, l, o;
|
|
130
|
+
const e = me(t);
|
|
131
|
+
e == null || delete e.id;
|
|
132
|
+
try {
|
|
133
|
+
const a = await we({
|
|
134
|
+
id: (n = d.value) == null ? void 0 : n.id,
|
|
135
|
+
value: {
|
|
136
|
+
tableData: e
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
((l = a == null ? void 0 : a.data) == null ? void 0 : l.code) === 200 && (se(), T.success("修改成功"), await re((o = d.value) == null ? void 0 : o.id), await M.setLogRecordAsync({
|
|
140
|
+
type: s,
|
|
141
|
+
data: t
|
|
142
|
+
}, I.value));
|
|
143
|
+
} catch {
|
|
144
|
+
T.error("修改响应失败");
|
|
145
|
+
} finally {
|
|
146
|
+
$.value = !1, z.value = !1, O.value = !1;
|
|
147
|
+
}
|
|
148
|
+
}, De = async (t, s) => {
|
|
149
|
+
var l;
|
|
150
|
+
const e = t === "avatarUrl" ? "头像" : "签名", n = {
|
|
151
|
+
...d.value,
|
|
152
|
+
status: ((l = d.value) == null ? void 0 : l.status) ?? "启用",
|
|
153
|
+
// password: encryptData(loginUserInfo.value?.password, cryptoInfo?.publicKey),
|
|
154
|
+
// [prop]: url
|
|
155
|
+
[e]: s
|
|
156
|
+
};
|
|
157
|
+
z.value = t === "avatarUrl", O.value = t === "signature", await ne(n, "图片修改");
|
|
158
|
+
}, B = j({
|
|
159
|
+
baseCols: [],
|
|
160
|
+
otherCols: []
|
|
161
|
+
}), le = h([]), oe = h(), Pe = (t, s, e) => {
|
|
162
|
+
var o, a, p, y, b, g;
|
|
163
|
+
let n;
|
|
164
|
+
const l = s;
|
|
165
|
+
((a = (o = d.value) == null ? void 0 : o.layer) == null ? void 0 : a.toUpperCase()) !== "SUPERADMIN" ? n = (p = d.value) != null && p.password ? ke((y = d.value) == null ? void 0 : y.password, (b = P == null ? void 0 : P.value) == null ? void 0 : b.privateKey) : Se : n = (g = d.value) == null ? void 0 : g.password, n === l ? e() : e(new Error("输入的密码与原密码不匹配,请重新输入"));
|
|
166
|
+
}, Ne = (t, s, e) => {
|
|
167
|
+
s ? e() : e(new Error("请输入密码"));
|
|
168
|
+
}, Fe = (t, s, e) => {
|
|
169
|
+
var n;
|
|
170
|
+
s !== ((n = oe.value) == null ? void 0 : n.newtPass) ? e(new Error("两次输入的密码不一致")) : e();
|
|
171
|
+
}, Le = async () => {
|
|
172
|
+
var s, e, n, l, o, a, p, y, b, g;
|
|
173
|
+
const t = await Q({
|
|
174
|
+
key: {
|
|
175
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
176
|
+
type: "structure",
|
|
177
|
+
// pageKey: "/系统管理/用户管理"
|
|
178
|
+
pageKey: "系统管理/用户管理"
|
|
179
|
+
}
|
|
180
|
+
});
|
|
181
|
+
if (((s = t == null ? void 0 : t.data) == null ? void 0 : s.code) === 200 && t.data.result && ((e = t.data.result) == null ? void 0 : e.length) > 0) {
|
|
182
|
+
const c = (p = (a = (o = (l = (n = t.data.result) == null ? void 0 : n[0]) == null ? void 0 : l.value) == null ? void 0 : o.pageData) == null ? void 0 : a.compData) == null ? void 0 : p.find((r) => (r == null ? void 0 : r.key) === "header"), w = (y = ee.value) == null ? void 0 : y.map((r) => r == null ? void 0 : r.prop);
|
|
183
|
+
B.baseCols = c && ((b = c.contents) == null ? void 0 : b.map((r) => ({
|
|
184
|
+
...r,
|
|
185
|
+
isFormColHidden: (w == null ? void 0 : w.includes(r == null ? void 0 : r.prop)) || (r == null ? void 0 : r.label) === "操作"
|
|
186
|
+
})));
|
|
187
|
+
const S = (g = c.contents) == null ? void 0 : g.find((r) => (r == null ? void 0 : r.prop) === "password"), u = [
|
|
188
|
+
{
|
|
189
|
+
...S,
|
|
190
|
+
label: "当前密码",
|
|
191
|
+
prop: "currentPass",
|
|
192
|
+
validator: Pe
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
...S,
|
|
196
|
+
label: "新密码",
|
|
197
|
+
prop: "newtPass",
|
|
198
|
+
validator: Ne
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
...S,
|
|
202
|
+
label: "确认密码",
|
|
203
|
+
prop: "confirmNewPass",
|
|
204
|
+
validator: Fe
|
|
205
|
+
}
|
|
206
|
+
];
|
|
207
|
+
B.otherCols = u, xe(d.value);
|
|
208
|
+
}
|
|
209
|
+
}, Re = (t) => {
|
|
210
|
+
oe.value = t;
|
|
211
|
+
}, Ve = async ({ content: t, buttonName: s }) => {
|
|
212
|
+
var n, l, o, a, p;
|
|
213
|
+
let e;
|
|
214
|
+
s === "确定" && (e = {
|
|
215
|
+
...d.value,
|
|
216
|
+
status: ((n = d.value) == null ? void 0 : n.status) ?? "启用",
|
|
217
|
+
// 目前是超管密码明文传输,非超管用户密码加密传输
|
|
218
|
+
password: ((o = (l = d.value) == null ? void 0 : l.layer) == null ? void 0 : o.toUpperCase()) === "SUPERADMIN" ? t == null ? void 0 : t.confirmNewPass : Ae(t == null ? void 0 : t.confirmNewPass, (a = P.value) == null ? void 0 : a.publicKey)
|
|
219
|
+
}), s === "保存基本信息" && (e = {
|
|
220
|
+
...d.value,
|
|
221
|
+
...t,
|
|
222
|
+
status: ((p = d.value) == null ? void 0 : p.status) ?? "启用"
|
|
223
|
+
}), $.value = !0, await ne(e, s);
|
|
224
|
+
}, W = () => {
|
|
225
|
+
var n, l;
|
|
226
|
+
const t = {
|
|
227
|
+
base: [
|
|
228
|
+
{
|
|
229
|
+
label: "保存基本信息"
|
|
230
|
+
}
|
|
231
|
+
],
|
|
232
|
+
other: [
|
|
233
|
+
{
|
|
234
|
+
label: "重置",
|
|
235
|
+
background: "#b7b8b8"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
label: "确定"
|
|
239
|
+
}
|
|
240
|
+
]
|
|
241
|
+
}, s = sessionStorage.getItem("authority"), e = JSON.parse(s || "");
|
|
242
|
+
if (Array.isArray(e)) {
|
|
243
|
+
const o = (n = I.value) != null && n.startsWith("/") ? (l = I.value) == null ? void 0 : l.substring(1) : I.value, a = e != null && e.includes(`${o}/基本信息`) ? t == null ? void 0 : t.base : [], p = e != null && e.includes(`${o}/修改密码`) ? t == null ? void 0 : t.other : [];
|
|
244
|
+
return {
|
|
245
|
+
base: a,
|
|
246
|
+
other: p
|
|
247
|
+
};
|
|
248
|
+
} else return typeof e == "string" && (e == null ? void 0 : e.toUpperCase()) === "SUPERADMIN" ? t : null;
|
|
249
|
+
}, xe = (t) => {
|
|
250
|
+
var s, e, n, l, o;
|
|
251
|
+
le.value = [
|
|
252
|
+
{
|
|
253
|
+
value: "基础信息",
|
|
254
|
+
label: "基础信息",
|
|
255
|
+
children: [
|
|
256
|
+
{
|
|
257
|
+
type: "form",
|
|
258
|
+
content: {
|
|
259
|
+
rowContents: (s = B.baseCols) == null ? void 0 : s.map((a) => ({
|
|
260
|
+
...a,
|
|
261
|
+
width: 2,
|
|
262
|
+
type: a == null ? void 0 : a.formType,
|
|
263
|
+
name: a == null ? void 0 : a.prop,
|
|
264
|
+
prop: a == null ? void 0 : a.prop,
|
|
265
|
+
contents: a == null ? void 0 : a.options,
|
|
266
|
+
value: t[a == null ? void 0 : a.prop]
|
|
267
|
+
})),
|
|
268
|
+
formRules: {
|
|
269
|
+
userName: [
|
|
270
|
+
{ required: !0, message: "输入不能为空", trigger: "blur" }
|
|
271
|
+
],
|
|
272
|
+
birthDay: [
|
|
273
|
+
{ required: !0, message: "输入不能为空", trigger: "blur" }
|
|
274
|
+
],
|
|
275
|
+
phone: [
|
|
276
|
+
{ required: !0, message: "输入不能为空", trigger: "blur" }
|
|
277
|
+
]
|
|
278
|
+
},
|
|
279
|
+
buttonValue: (e = W()) == null ? void 0 : e.base,
|
|
280
|
+
isEnableWrap: !1,
|
|
281
|
+
isButtonRow: !1
|
|
282
|
+
},
|
|
283
|
+
value: ""
|
|
284
|
+
}
|
|
285
|
+
]
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
value: "修改密码",
|
|
289
|
+
label: "修改密码",
|
|
290
|
+
children: [
|
|
291
|
+
{
|
|
292
|
+
type: "form",
|
|
293
|
+
content: {
|
|
294
|
+
rowContents: (n = B.otherCols) == null ? void 0 : n.map((a) => ({
|
|
295
|
+
...a,
|
|
296
|
+
width: 1,
|
|
297
|
+
type: a == null ? void 0 : a.formType,
|
|
298
|
+
name: a == null ? void 0 : a.prop,
|
|
299
|
+
contents: a == null ? void 0 : a.options
|
|
300
|
+
})),
|
|
301
|
+
formRules: (l = B.otherCols) == null ? void 0 : l.reduce((a, p) => (a[p.prop] = [
|
|
302
|
+
{ required: !0, message: "输入有误", trigger: "change" },
|
|
303
|
+
{
|
|
304
|
+
validator: (y, b, g) => p.validator(y, b, g),
|
|
305
|
+
trigger: "blur"
|
|
306
|
+
}
|
|
307
|
+
], a), {}),
|
|
308
|
+
buttonValue: (o = W()) == null ? void 0 : o.other,
|
|
309
|
+
isEnableWrap: !1
|
|
310
|
+
},
|
|
311
|
+
value: ""
|
|
312
|
+
}
|
|
313
|
+
]
|
|
314
|
+
}
|
|
315
|
+
];
|
|
316
|
+
}, ea = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
317
|
+
__proto__: null,
|
|
318
|
+
avatarLoading: z,
|
|
319
|
+
beforeSignDestroy: se,
|
|
320
|
+
changeFormTrigger: Re,
|
|
321
|
+
clickFormButton: Be,
|
|
322
|
+
clickSignButton: Ee,
|
|
323
|
+
clickTabButton: Ve,
|
|
324
|
+
getUserTableHeadersAsync: Le,
|
|
325
|
+
itemData: Te,
|
|
326
|
+
loading: $,
|
|
327
|
+
refreshLoginUserInfoAsync: re,
|
|
328
|
+
rowContents: ee,
|
|
329
|
+
signPadInfo: L,
|
|
330
|
+
signTypes: te,
|
|
331
|
+
signatureLoading: O,
|
|
332
|
+
submitImageAsync: De,
|
|
333
|
+
tabKey: Ue,
|
|
334
|
+
tabsContents: le,
|
|
335
|
+
tempSignTypes: K,
|
|
336
|
+
uploadDisabled: ae
|
|
337
|
+
}, Symbol.toStringTag, { value: "Module" })), Ke = { class: "avatar-model-wrap" }, Me = { key: 0 }, $e = /* @__PURE__ */ q({
|
|
338
|
+
__name: "index",
|
|
339
|
+
props: {
|
|
340
|
+
disabled: {
|
|
341
|
+
type: Boolean,
|
|
342
|
+
default: !1
|
|
343
|
+
},
|
|
344
|
+
avatarUrl: {
|
|
345
|
+
type: String,
|
|
346
|
+
default: ""
|
|
347
|
+
},
|
|
348
|
+
size: {
|
|
349
|
+
type: [String, Number],
|
|
350
|
+
default: "large"
|
|
351
|
+
},
|
|
352
|
+
userInfo: {
|
|
353
|
+
type: Object,
|
|
354
|
+
default: {}
|
|
355
|
+
},
|
|
356
|
+
clickStop: {
|
|
357
|
+
type: Boolean,
|
|
358
|
+
default: !0
|
|
359
|
+
}
|
|
360
|
+
},
|
|
361
|
+
emits: ["submitImage", "deleteImage"],
|
|
362
|
+
setup(t, { emit: s }) {
|
|
363
|
+
const e = t, n = s, l = E(() => "http://222.92.178.198:62001"), o = h(""), a = h(""), p = h();
|
|
364
|
+
H(() => {
|
|
365
|
+
var c;
|
|
366
|
+
return (c = e.userInfo) == null ? void 0 : c.头像;
|
|
367
|
+
}, (c) => {
|
|
368
|
+
a.value = c ? l.value + "/" + c : "";
|
|
369
|
+
}, { immediate: !0 });
|
|
370
|
+
const y = async () => {
|
|
371
|
+
if (!(e != null && e.disabled))
|
|
372
|
+
try {
|
|
373
|
+
const c = await he({
|
|
374
|
+
url: o.value
|
|
375
|
+
// url: props.avatarUrl
|
|
376
|
+
});
|
|
377
|
+
if (c.status !== 200)
|
|
378
|
+
throw new Error(`HTTP error! status: ${c.status}`);
|
|
379
|
+
const w = new Blob([c.data], { type: c.headers["content-type"] });
|
|
380
|
+
p.value = w;
|
|
381
|
+
} catch (c) {
|
|
382
|
+
throw new Error(c);
|
|
383
|
+
}
|
|
384
|
+
}, b = async (c) => {
|
|
385
|
+
var w, S, u, r, m;
|
|
386
|
+
try {
|
|
387
|
+
const f = await Y(c);
|
|
388
|
+
((w = f == null ? void 0 : f.data) == null ? void 0 : w.code) === 200 && (a.value = l.value + "/" + ((u = (S = f.data) == null ? void 0 : S.result) == null ? void 0 : u.url), o.value = (m = (r = f.data) == null ? void 0 : r.result) == null ? void 0 : m.url, n("submitImage", o.value));
|
|
389
|
+
} catch (f) {
|
|
390
|
+
T.error(f);
|
|
391
|
+
}
|
|
392
|
+
}, g = async () => {
|
|
393
|
+
try {
|
|
394
|
+
if (!a.value) return;
|
|
395
|
+
} catch (c) {
|
|
396
|
+
T.error(c);
|
|
397
|
+
}
|
|
398
|
+
};
|
|
399
|
+
return (c, w) => {
|
|
400
|
+
var S, u;
|
|
401
|
+
return k(), N("div", Ke, [
|
|
402
|
+
A(_e, {
|
|
403
|
+
avatarUrl: a.value ?? "",
|
|
404
|
+
avatarBlob: p.value,
|
|
405
|
+
size: t.size,
|
|
406
|
+
onClickAvatar: y,
|
|
407
|
+
onSubmitImage: b,
|
|
408
|
+
onDeleteImage: g,
|
|
409
|
+
clickStop: e == null ? void 0 : e.clickStop
|
|
410
|
+
}, {
|
|
411
|
+
avatarDefault: _(() => {
|
|
412
|
+
var r, m, f, v;
|
|
413
|
+
return [
|
|
414
|
+
x(F(((m = (r = t.userInfo) == null ? void 0 : r.account) == null ? void 0 : m.charAt(0)) || ((v = (f = t.userInfo) == null ? void 0 : f.姓名) == null ? void 0 : v.charAt(0)) || ""), 1)
|
|
415
|
+
];
|
|
416
|
+
}),
|
|
417
|
+
_: 1
|
|
418
|
+
}, 8, ["avatarUrl", "avatarBlob", "size", "clickStop"]),
|
|
419
|
+
t.disabled ? ue("", !0) : (k(), N("span", Me, F(((S = t.userInfo) == null ? void 0 : S.account) || ((u = t.userInfo) == null ? void 0 : u.账号) || "未知"), 1))
|
|
420
|
+
]);
|
|
421
|
+
};
|
|
422
|
+
}
|
|
423
|
+
}), aa = /* @__PURE__ */ Z($e, [["__scopeId", "data-v-1a1f2575"]]), ze = /* @__PURE__ */ q({
|
|
424
|
+
__name: "index",
|
|
425
|
+
props: {
|
|
426
|
+
itemData: {
|
|
427
|
+
type: Array,
|
|
428
|
+
default: () => []
|
|
429
|
+
},
|
|
430
|
+
childItemData: {
|
|
431
|
+
type: Array,
|
|
432
|
+
default: () => []
|
|
433
|
+
},
|
|
434
|
+
userInfo: {
|
|
435
|
+
type: Object,
|
|
436
|
+
default: {}
|
|
437
|
+
}
|
|
438
|
+
},
|
|
439
|
+
emits: ["clickSignButton", "clickSubmitSign", "beforeDestroy"],
|
|
440
|
+
setup(t, { emit: s }) {
|
|
441
|
+
const e = t, n = h({}), l = h([]), o = s, a = (u) => {
|
|
442
|
+
n.value.dialogShow = (u == null ? void 0 : u.label) === "电子签名", o("clickSignButton", u);
|
|
443
|
+
}, p = () => {
|
|
444
|
+
n.value.dialogShow = !1, o("beforeDestroy");
|
|
445
|
+
}, y = E(() => "http://222.92.178.198:62001"), b = (u) => {
|
|
446
|
+
var i;
|
|
447
|
+
const r = u.split(","), m = (i = r == null ? void 0 : r[0]) == null ? void 0 : i.match(/:(.*?);/)[1], f = atob(r[1]);
|
|
448
|
+
let v = f.length;
|
|
449
|
+
const C = new Uint8Array(v);
|
|
450
|
+
for (; v--; )
|
|
451
|
+
C[v] = f.charCodeAt(v);
|
|
452
|
+
return new Blob([C], { type: m });
|
|
453
|
+
}, g = async (u) => {
|
|
454
|
+
var r, m, f;
|
|
455
|
+
try {
|
|
456
|
+
const v = await Y(u);
|
|
457
|
+
((r = v == null ? void 0 : v.data) == null ? void 0 : r.code) === 200 && o("clickSubmitSign", (f = (m = v.data) == null ? void 0 : m.result) == null ? void 0 : f.url);
|
|
458
|
+
} catch (v) {
|
|
459
|
+
T.error(v);
|
|
460
|
+
}
|
|
461
|
+
}, c = h(""), w = (u) => {
|
|
462
|
+
c.value = u, n.value.dialogShow = !1;
|
|
463
|
+
const r = new FormData(), m = b(u);
|
|
464
|
+
r.append("file", m, "image.png"), g(r);
|
|
465
|
+
}, S = (u) => {
|
|
466
|
+
const r = new FormData();
|
|
467
|
+
r.append("file", u == null ? void 0 : u.file), g(r);
|
|
468
|
+
};
|
|
469
|
+
return H(() => e == null ? void 0 : e.itemData, (u) => {
|
|
470
|
+
var m, f, v, C;
|
|
471
|
+
c.value = "", (m = n.value) != null && m.dialogShow && (n.value.dialogShow = !1);
|
|
472
|
+
const r = (f = u == null ? void 0 : u.find((i) => (i == null ? void 0 : i.key) === "signConfig")) == null ? void 0 : f.contents;
|
|
473
|
+
r && Object.keys(r).forEach((i) => {
|
|
474
|
+
(r[i] === void 0 || r[i] === null || r[i] === "") && delete r[i];
|
|
475
|
+
}), n.value = (v = u == null ? void 0 : u.find((i) => (i == null ? void 0 : i.key) === "signConfig")) == null ? void 0 : v.contents, l.value = (C = u == null ? void 0 : u.find((i) => (i == null ? void 0 : i.key) === "signTypeList")) == null ? void 0 : C.contents;
|
|
476
|
+
}, {
|
|
477
|
+
immediate: !0
|
|
478
|
+
}), (u, r) => {
|
|
479
|
+
const m = D("el-empty"), f = D("el-image"), v = D("el-button"), C = D("el-upload");
|
|
480
|
+
return k(), R(Ce, {
|
|
481
|
+
signPadInfo: n.value,
|
|
482
|
+
onBeforeDestroy: p,
|
|
483
|
+
onClickSubmitSign: w
|
|
484
|
+
}, {
|
|
485
|
+
signatureRender: _(() => {
|
|
486
|
+
var i, U;
|
|
487
|
+
return [
|
|
488
|
+
de("div", {
|
|
489
|
+
class: "signature-render",
|
|
490
|
+
style: pe({ width: `${(i = n.value) == null ? void 0 : i.signPadWidth}%` })
|
|
491
|
+
}, [
|
|
492
|
+
A(f, {
|
|
493
|
+
src: c.value ? c.value : y.value + "/" + ((U = t.userInfo) == null ? void 0 : U.签名),
|
|
494
|
+
fit: "contain"
|
|
495
|
+
}, {
|
|
496
|
+
error: _(() => [
|
|
497
|
+
A(m, {
|
|
498
|
+
"image-size": 60,
|
|
499
|
+
description: " "
|
|
500
|
+
}, {
|
|
501
|
+
image: _(() => [
|
|
502
|
+
A(V, { name: "emptyImg" })
|
|
503
|
+
]),
|
|
504
|
+
_: 1
|
|
505
|
+
})
|
|
506
|
+
]),
|
|
507
|
+
_: 1
|
|
508
|
+
}, 8, ["src"])
|
|
509
|
+
], 4)
|
|
510
|
+
];
|
|
511
|
+
}),
|
|
512
|
+
signatureTypes: _(() => [
|
|
513
|
+
(k(!0), N(ie, null, ce(l.value, (i) => {
|
|
514
|
+
var U;
|
|
515
|
+
return k(), N("div", {
|
|
516
|
+
key: i.label,
|
|
517
|
+
class: "signature-button"
|
|
518
|
+
}, [
|
|
519
|
+
(U = i.label) != null && U.includes("上传") ? (k(), R(C, {
|
|
520
|
+
key: 0,
|
|
521
|
+
ref_for: !0,
|
|
522
|
+
ref: "uploadRef",
|
|
523
|
+
"http-request": S,
|
|
524
|
+
"show-file-list": !1
|
|
525
|
+
}, {
|
|
526
|
+
trigger: _(() => [
|
|
527
|
+
A(v, {
|
|
528
|
+
disabled: i.disabled,
|
|
529
|
+
id: "themeButton"
|
|
530
|
+
}, {
|
|
531
|
+
default: _(() => [
|
|
532
|
+
x(F(i.label), 1)
|
|
533
|
+
]),
|
|
534
|
+
icon: _(() => [
|
|
535
|
+
A(V, {
|
|
536
|
+
name: i.icon ?? ""
|
|
537
|
+
}, null, 8, ["name"])
|
|
538
|
+
]),
|
|
539
|
+
_: 2
|
|
540
|
+
}, 1032, ["disabled"])
|
|
541
|
+
]),
|
|
542
|
+
_: 2
|
|
543
|
+
}, 1536)) : (k(), R(v, {
|
|
544
|
+
key: 1,
|
|
545
|
+
id: "themeButton",
|
|
546
|
+
disabled: i.disabled,
|
|
547
|
+
onClick: (Oe) => a(i)
|
|
548
|
+
}, {
|
|
549
|
+
default: _(() => [
|
|
550
|
+
x(F(i.label), 1)
|
|
551
|
+
]),
|
|
552
|
+
icon: _(() => [
|
|
553
|
+
A(V, {
|
|
554
|
+
name: i.icon ?? ""
|
|
555
|
+
}, null, 8, ["name"])
|
|
556
|
+
]),
|
|
557
|
+
_: 2
|
|
558
|
+
}, 1032, ["disabled", "onClick"]))
|
|
559
|
+
]);
|
|
560
|
+
}), 128))
|
|
561
|
+
]),
|
|
562
|
+
_: 1
|
|
563
|
+
}, 8, ["signPadInfo"]);
|
|
564
|
+
};
|
|
565
|
+
}
|
|
566
|
+
}), ta = /* @__PURE__ */ Z(ze, [["__scopeId", "data-v-ce5a2314"]]);
|
|
567
|
+
export {
|
|
568
|
+
ea as S,
|
|
569
|
+
ta as a,
|
|
570
|
+
aa as s,
|
|
571
|
+
Ue as t
|
|
572
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as J, ref as u, onBeforeUnmount as le,
|
|
2
|
-
import { b as ue, s as pe, e as fe, B as ve } from "./index-
|
|
3
|
-
import { u as me, t as w } from "./index-
|
|
4
|
-
import { _ as x } from "./index.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { s as _e } from "./index-
|
|
6
|
-
import { u as ge } from "./index-
|
|
7
|
-
import { E as K } from "./request-
|
|
1
|
+
import { defineComponent as J, ref as u, onBeforeUnmount as le, createElementBlock as L, openBlock as F, createElementVNode as o, renderSlot as te, computed as z, onMounted as se, onUnmounted as ne, reactive as re, resolveComponent as g, Fragment as ie, createVNode as a, withCtx as l, toDisplayString as H, unref as h, createBlock as de, createCommentVNode as ce } from "vue";
|
|
2
|
+
import { b as ue, s as pe, e as fe, B as ve } from "./index-DGmjWChr.js";
|
|
3
|
+
import { u as me, t as w } from "./index-fxJSVddL.js";
|
|
4
|
+
import { _ as x } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
|
|
5
|
+
import { s as _e } from "./index-11kpzK0A.js";
|
|
6
|
+
import { u as ge } from "./index-BkAYMm70.js";
|
|
7
|
+
import { E as K } from "./request-D-LN5bvn.js";
|
|
8
8
|
import { _ as Q } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
|
-
import { c as ye } from "./clone-
|
|
9
|
+
import { c as ye } from "./clone-DqQwDoSV.js";
|
|
10
10
|
const be = { class: "account-wrap" }, we = { class: "video-wrap" }, Re = /* @__PURE__ */ J({
|
|
11
11
|
__name: "index",
|
|
12
12
|
emits: ["startVerify", "completeVerify", "verifyResult"],
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { V as m } from "./index-
|
|
3
|
-
import { g as d, c as _ } from "./index-
|
|
1
|
+
import { ref as n, computed as c, defineComponent as s, reactive as p, onMounted as i, createElementBlock as u, openBlock as f, createVNode as b } from "vue";
|
|
2
|
+
import { V as m } from "./index-_fheIMoz.js";
|
|
3
|
+
import { g as d, c as _ } from "./index-D8cOzz3g.js";
|
|
4
4
|
import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
-
const l =
|
|
5
|
+
const l = n([]), g = c(() => [
|
|
6
6
|
{
|
|
7
7
|
key: "extraButton",
|
|
8
8
|
contents: [
|
|
@@ -68,7 +68,7 @@ const l = c([]), g = n(() => [
|
|
|
68
68
|
a && (e.tableData = []);
|
|
69
69
|
});
|
|
70
70
|
};
|
|
71
|
-
return (o, t) => (
|
|
71
|
+
return (o, t) => (f(), u("div", D, [
|
|
72
72
|
b(m, {
|
|
73
73
|
itemData: e.pageData,
|
|
74
74
|
allowOperate: !1,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as I, g as M } from "./index-
|
|
3
|
-
import { E as N } from "./index-
|
|
4
|
-
import { E as s } from "./request-
|
|
5
|
-
const K =
|
|
1
|
+
import { ref as _, computed as A } from "vue";
|
|
2
|
+
import { a as I, g as M } from "./index-tLd2cEHX.js";
|
|
3
|
+
import { E as N } from "./index-DGmjWChr.js";
|
|
4
|
+
import { E as s } from "./request-D-LN5bvn.js";
|
|
5
|
+
const K = _([]), T = A(() => [
|
|
6
6
|
{
|
|
7
7
|
key: "extraButton",
|
|
8
8
|
contents: [
|