ss-component-new 1.1.821 → 1.1.822
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{OrbitControls-D6pgin7s.js → OrbitControls-Cm4Xs_Bq.js} +1 -1
- package/dist/{OrbitControls-Ff5ikkUQ.cjs → OrbitControls-D-XDZGf-.cjs} +1 -1
- package/dist/{STLLoader-BNh7D2zV.cjs → STLLoader-BxpEhvEg.cjs} +161 -161
- package/dist/{STLLoader-LGKv5i3H.js → STLLoader-DofhZbOw.js} +522 -593
- package/dist/{array-D1hKYLwI.cjs → array-Bfmx0w6P.cjs} +2 -2
- package/dist/{array-C60T9pDZ.js → array-DbAuNWGt.js} +1 -1
- package/dist/{iconfont-v9CcCMwF.js → iconfont-DQodgJo8.js} +73 -75
- package/dist/iconfont-Di4uXnX1.cjs +1 -0
- package/dist/icons/svg/editTable.svg +1 -1
- package/dist/icons/svg/export.svg +1 -0
- package/dist/icons/svg/model.svg +1 -0
- package/dist/icons/svg/three.svg +1 -0
- package/dist/index-1i-XlS2m.js +101 -0
- package/dist/{index-BdsJiFeW.cjs → index-6jSC3unU.cjs} +1 -1
- package/dist/{index-2kzGjuzu.js → index-6zbHinQ6.js} +10 -9
- package/dist/index-B-oe2x1V.cjs +109 -0
- package/dist/index-B-qent3l.cjs +1 -0
- package/dist/{index-CukZ8eDZ.js → index-BBo52W9F.js} +4 -4
- package/dist/index-BOev8isw.cjs +21 -0
- package/dist/index-BQgnYD51.js +6492 -0
- package/dist/{index-owcnOlVq.js → index-BYW-ix_Q.js} +5 -5
- package/dist/{index-4_M1SpeV.js → index-Bi1gr72d.js} +14 -14
- package/dist/{index-DnVaHi8q.js → index-BmHmnXS9.js} +7 -7
- package/dist/index-BoS30LXH.cjs +1 -0
- package/dist/index-BuBMi9JA.cjs +1 -0
- package/dist/{index-Zi9xLtwj.js → index-BvE05H-i.js} +2 -2
- package/dist/index-BwpOMKef.cjs +1 -0
- package/dist/index-C18ZPRC7.cjs +1 -0
- package/dist/{index-HVJSfh2g.js → index-CJx2DcDb.js} +21 -19
- package/dist/{index-B3cUSGXB.js → index-CL59qQ_W.js} +9 -8
- package/dist/{index-DDsJpzfR.js → index-CLdN0W98.js} +47 -47
- package/dist/index-CPP7L10q.cjs +1 -0
- package/dist/index-CSWIBSmo.cjs +1 -0
- package/dist/{index-DEobyz7r.js → index-CTgZZ96L.js} +6 -5
- package/dist/{index-WXpPDsev.js → index-CZ1ui4mT.js} +1 -1
- package/dist/index-CfQvGqaX.cjs +1 -0
- package/dist/index-CgJYAzeA.cjs +1 -0
- package/dist/index-ChtmIuBu.js +29771 -0
- package/dist/index-CjFcaJcL.cjs +1 -0
- package/dist/index-CjTmkzBO.js +24 -0
- package/dist/{index-Dtw4WkUo.cjs → index-CngO0AUc.cjs} +1 -1
- package/dist/index-CqCPdyGu.js +1248 -0
- package/dist/index-Cr6pWv0l.cjs +1 -0
- package/dist/{index-Cw95lvvp.js → index-D8Msszln.js} +223 -223
- package/dist/index-DDvUG6fk.js +22 -0
- package/dist/{index-CdMrhxHS.js → index-DMlIMlyC.js} +10 -10
- package/dist/{index-3Cdyqd1B.cjs → index-DOBeGYzT.cjs} +1 -1
- package/dist/index-DP0k43fj.cjs +1 -0
- package/dist/index-DTxccgVM.cjs +1 -0
- package/dist/{index-JAJeIBYE.cjs → index-DVAGljX0.cjs} +1 -1
- package/dist/{index-B5Vi6RBj.cjs → index-DVCrYVKw.cjs} +1 -1
- package/dist/{index-Dxoxm0Cc.js → index-DZWNGFC0.js} +22 -22
- package/dist/{index-CY2iphpd.cjs → index-DbniLh9G.cjs} +1 -1
- package/dist/index-Dj_ofPeK.cjs +1 -0
- package/dist/{index-DtogzZej.js → index-DocnYz5P.js} +1 -1
- package/dist/index-DrL7vroa.js +319 -0
- package/dist/index-Dt2McMki.js +13668 -0
- package/dist/{index-Cphx1eY1.js → index-Gba1Qfcc.js} +7 -8
- package/dist/{index-DMb9Vu-7.js → index-IUkCD4R_.js} +1 -1
- package/dist/{index-DAyzDsjs.js → index-K6BRW_Bw.js} +1 -1
- package/dist/{index-DzM8zZqe.js → index-OH9t-y2p.js} +4 -4
- package/dist/index-PNDdZKYG.cjs +1 -0
- package/dist/{index-Dn04IPFM.js → index-QETLKFyV.js} +10 -10
- package/dist/{index-BWHtpT9o.cjs → index-RgTvyK54.cjs} +1 -1
- package/dist/{index-Cuj-fGNO.cjs → index-VAIU8vMN.cjs} +1 -1
- package/dist/{index-CF_0RdqV.cjs → index-dukFqRog.cjs} +1 -1
- package/dist/{index-C9Boo2Cw.cjs → index-dyoOdMKX.cjs} +1 -1
- package/dist/index-f9bwREQl.cjs +1 -0
- package/dist/index-rPc9VS0S.cjs +1 -0
- package/dist/index-tPamnhR2.js +236 -0
- package/dist/{index-H3kf9EQv.js → index-tX2Hs05F.js} +11 -10
- package/dist/{index-DEU-pXeW.js → index-uvns6W6E.js} +1838 -1812
- package/dist/index-weauvEnW.cjs +4 -0
- package/dist/{index-B8xEed7C.cjs → index-wlnPb2aB.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-iyZtrhDf.js → index.vue_vue_type_script_setup_true_lang-C4G6mB7R.js} +28 -28
- package/dist/{index.vue_vue_type_script_setup_true_lang-CaYQQb8M.cjs → index.vue_vue_type_script_setup_true_lang-CWi4UVPF.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-qefZ9E5G.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CtN9Ij0Y.js} +53 -23
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CTcahF4Z.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-mQIxU0SD.cjs} +90 -90
- package/dist/{index.vue_vue_type_style_index_0_scoped_6bfd62db_lang-Cxjh1E1z.js → index.vue_vue_type_style_index_0_scoped_1966237d_lang-D3xcEtDT.js} +6488 -6474
- package/dist/{index.vue_vue_type_style_index_0_scoped_6bfd62db_lang-0eNHRdYw.cjs → index.vue_vue_type_style_index_0_scoped_1966237d_lang-DwIFJsxs.cjs} +14 -14
- package/dist/{index.vue_vue_type_style_index_0_scoped_86d2b6b8_lang-kymzIBO8.js → index.vue_vue_type_style_index_0_scoped_86d2b6b8_lang-D5CTJUDi.js} +17 -17
- package/dist/{index.vue_vue_type_style_index_0_scoped_86d2b6b8_lang-GlR2V0TC.cjs → index.vue_vue_type_style_index_0_scoped_86d2b6b8_lang-VPQBXOPW.cjs} +1 -1
- package/dist/index.vue_vue_type_style_index_1_lang-DraQDAAw.cjs +32 -0
- package/dist/index.vue_vue_type_style_index_1_lang-hffXwR3x.js +7028 -0
- package/dist/isUndefined-4Qg9wncf.js +84 -0
- package/dist/isUndefined-BEt4O79g.cjs +1 -0
- package/dist/{main-C6I42yaU.js → main-CBCk94h5.js} +30 -29
- package/dist/main-DO_PN7jt.cjs +1 -0
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +11 -11
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +12 -12
- package/dist/threeModel-GKSAzHfe.cjs +1 -0
- package/dist/{threeModel-BEt5OVCP.js → threeModel-RJwJMtfW.js} +91 -92
- package/dist/{threePreview-BUZRvBRx.js → threePreview-BSqdALPK.js} +3 -3
- package/dist/{threePreview-Dyzqu5s7.cjs → threePreview-CKvbwCiX.cjs} +1 -1
- package/dist/threeSceneView-BVbVe_Et.js +1277 -0
- package/dist/threeSceneView-KvCERteS.cjs +5 -0
- package/dist/{threeViewerHost-IhSFkCeD.js → threeViewerHost-AuhfL2Cn.js} +55 -57
- package/dist/threeViewerHost-D0pu5wk5.cjs +1 -0
- package/package.json +1 -1
- package/public/icons/svg/editTable.svg +1 -1
- package/public/icons/svg/export.svg +1 -0
- package/public/icons/svg/model.svg +1 -0
- package/public/icons/svg/three.svg +1 -0
- package/dist/animationData-B2T3Oamw.js +0 -108
- package/dist/animationData-Db_9HBoM.cjs +0 -1
- package/dist/iconfont-CZj6ltAs.cjs +0 -1
- package/dist/index-2KKrCkl8.cjs +0 -1
- package/dist/index-2OWkrGDh.js +0 -24
- package/dist/index-B1iXzkUF.cjs +0 -1
- package/dist/index-BBB4VObc.cjs +0 -11
- package/dist/index-BIVWMqJQ.cjs +0 -1
- package/dist/index-BWpZSzL1.cjs +0 -1
- package/dist/index-BllULnvx.cjs +0 -1
- package/dist/index-BvO1uTn0.js +0 -21
- package/dist/index-C2bI4adc.js +0 -8628
- package/dist/index-C9pN8_un.js +0 -548
- package/dist/index-CPdKWCSo.cjs +0 -1
- package/dist/index-CQfFbeTJ.cjs +0 -1
- package/dist/index-CZJOPfp5.js +0 -1152
- package/dist/index-Cb0q1Y5b.cjs +0 -1
- package/dist/index-Cfomm0G1.cjs +0 -109
- package/dist/index-CvvFU_QA.cjs +0 -1
- package/dist/index-DYMLmifU.cjs +0 -1
- package/dist/index-DfPyuGyq.js +0 -101
- package/dist/index-Dm2qfeUm.cjs +0 -1
- package/dist/index-DtX1F0sz.cjs +0 -4
- package/dist/index-Du3VUDcF.cjs +0 -1
- package/dist/index-VWNqRYy9.js +0 -36270
- package/dist/index-kmj8K3JX.cjs +0 -1
- package/dist/index-ndZw4AQJ.cjs +0 -1
- package/dist/index-y5FEcncv.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_1_lang-Bmwy3cgo.cjs +0 -42
- package/dist/index.vue_vue_type_style_index_1_lang-Rs1M3B8e.js +0 -11984
- package/dist/main-2gDZp_zL.cjs +0 -1
- package/dist/threeModel-DgOcIXVI.cjs +0 -1
- package/dist/threeSceneView-BZx98QgN.js +0 -1450
- package/dist/threeSceneView-DSkGJN5d.cjs +0 -5
- package/dist/threeViewerHost-T_51aUg5.cjs +0 -1
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
import { ref as g, computed as C, reactive as P } from "vue";
|
|
2
|
+
import { s as R, c4 as x, c5 as B, c6 as F, g as _, u as j, p as L, c as z, f as J, E } from "./index-Dt2McMki.js";
|
|
3
|
+
import { aP as H, u as Z, d as G, r as Q } from "./index.vue_vue_type_style_index_1_lang-hffXwR3x.js";
|
|
4
|
+
const A = j(L), { loginUserInfo: o, cryptoInfo: c } = R(A), X = Z(L), { activeMenuPath: v } = R(X), Y = g(0), M = C(() => {
|
|
5
|
+
var s, a, t, r, l, n;
|
|
6
|
+
return [
|
|
7
|
+
{
|
|
8
|
+
label: "",
|
|
9
|
+
// name: 'account',
|
|
10
|
+
name: "账号",
|
|
11
|
+
prop: "账号",
|
|
12
|
+
value: ((s = o.value) == null ? void 0 : s.账号) ?? "未知"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
label: "",
|
|
16
|
+
// name: 'userRoles',
|
|
17
|
+
name: "角色名称",
|
|
18
|
+
prop: "角色名称",
|
|
19
|
+
// value: loginUserInfo.value?.userRoles?.join('、')
|
|
20
|
+
value: ((a = o.value) == null ? void 0 : a.layer) === "superAdmin" ? "超级管理员" : (t = o.value) == null ? void 0 : t.角色名称
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
label: "",
|
|
24
|
+
// name: 'userDept',
|
|
25
|
+
name: "部门名称",
|
|
26
|
+
prop: "部门名称",
|
|
27
|
+
value: ((r = o.value) == null ? void 0 : r.部门名称) ?? "未知"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
label: "",
|
|
31
|
+
// name: 'userDept',
|
|
32
|
+
name: "状态",
|
|
33
|
+
prop: "状态",
|
|
34
|
+
value: ((l = o.value) == null ? void 0 : l.layer) === "superAdmin" ? "启用" : (n = o.value) == null ? void 0 : n.状态
|
|
35
|
+
}
|
|
36
|
+
];
|
|
37
|
+
}), ee = () => {
|
|
38
|
+
}, D = g(!1), w = P({
|
|
39
|
+
dialogTitle: "电子签名",
|
|
40
|
+
dialogWidth: "30",
|
|
41
|
+
dialogShow: !1,
|
|
42
|
+
url: ""
|
|
43
|
+
}), S = g([
|
|
44
|
+
{
|
|
45
|
+
label: "签字版",
|
|
46
|
+
icon: x,
|
|
47
|
+
type: "button",
|
|
48
|
+
disabled: !1
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
label: "电子签名",
|
|
52
|
+
icon: B,
|
|
53
|
+
type: "button",
|
|
54
|
+
disabled: !1
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
label: "上传手写签名",
|
|
58
|
+
icon: F,
|
|
59
|
+
type: "buttonUpload",
|
|
60
|
+
disabled: !1
|
|
61
|
+
}
|
|
62
|
+
]), U = g(!1), I = g(!1), N = g(!1), K = C(() => {
|
|
63
|
+
var r, l, n;
|
|
64
|
+
const s = sessionStorage.getItem("authority"), a = JSON.parse(s || ""), t = (r = v.value) != null && r.startsWith("/") ? (l = v.value) == null ? void 0 : l.substring(1) : v.value;
|
|
65
|
+
return Array.isArray(a) ? (N.value = !(a != null && a.includes(`${t}/上传头像`)), (n = S.value) == null ? void 0 : n.map((e) => ({
|
|
66
|
+
...e,
|
|
67
|
+
disabled: !(a != null && a.includes(`${t}/签名`))
|
|
68
|
+
}))) : typeof a == "string" && (a == null ? void 0 : a.toUpperCase()) === "SUPERADMIN" ? S.value : [];
|
|
69
|
+
}), ae = C(() => [
|
|
70
|
+
{
|
|
71
|
+
key: "signConfig",
|
|
72
|
+
contents: w
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
key: "signTypeList",
|
|
76
|
+
contents: K.value
|
|
77
|
+
}
|
|
78
|
+
]), te = (s) => {
|
|
79
|
+
w.dialogShow = s.label === "电子签名";
|
|
80
|
+
}, $ = () => {
|
|
81
|
+
w.dialogShow = !1;
|
|
82
|
+
}, k = async (s) => {
|
|
83
|
+
var t, r, l, n, e, i, p, d, f;
|
|
84
|
+
const a = await _({
|
|
85
|
+
id: s
|
|
86
|
+
// key: {
|
|
87
|
+
// systemKey: sessionStorage.getItem("systemKey"),
|
|
88
|
+
// type: "data",
|
|
89
|
+
// // pageKey: '/系统管理/用户管理',
|
|
90
|
+
// pageKey: '系统管理/用户管理',
|
|
91
|
+
// }
|
|
92
|
+
});
|
|
93
|
+
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) {
|
|
94
|
+
const y = {
|
|
95
|
+
...(n = (l = (r = a.data.result) == null ? void 0 : r[0]) == null ? void 0 : l.value) == null ? void 0 : n.tableData,
|
|
96
|
+
id: (i = (e = a.data.result) == null ? void 0 : e[0]) == null ? void 0 : i.id,
|
|
97
|
+
layer: (f = (d = (p = a.data.result) == null ? void 0 : p[0]) == null ? void 0 : d.key) == null ? void 0 : f.layer
|
|
98
|
+
};
|
|
99
|
+
A.setLoginUserInfo(y);
|
|
100
|
+
}
|
|
101
|
+
}, V = async (s, a) => {
|
|
102
|
+
var r, l, n;
|
|
103
|
+
const t = z(s);
|
|
104
|
+
t == null || delete t.id;
|
|
105
|
+
try {
|
|
106
|
+
const e = await J({
|
|
107
|
+
id: (r = o.value) == null ? void 0 : r.id,
|
|
108
|
+
// key: {
|
|
109
|
+
// // type: "data",
|
|
110
|
+
// systemKey: sessionStorage.getItem("systemKey"),
|
|
111
|
+
// pageKey: '/系统管理/用户管理',
|
|
112
|
+
// layer: loginUserInfo.value?.layer
|
|
113
|
+
// },
|
|
114
|
+
value: {
|
|
115
|
+
tableData: t
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
((l = e == null ? void 0 : e.data) == null ? void 0 : l.code) === 200 && ($(), E.success("修改成功"), await k((n = o.value) == null ? void 0 : n.id), await A.setLogRecordAsync({
|
|
119
|
+
type: a,
|
|
120
|
+
data: s
|
|
121
|
+
}, v.value));
|
|
122
|
+
} catch {
|
|
123
|
+
E.error("修改响应失败");
|
|
124
|
+
} finally {
|
|
125
|
+
D.value = !1, U.value = !1, I.value = !1;
|
|
126
|
+
}
|
|
127
|
+
}, se = async (s, a) => {
|
|
128
|
+
var r;
|
|
129
|
+
const t = {
|
|
130
|
+
...o.value,
|
|
131
|
+
status: ((r = o.value) == null ? void 0 : r.status) ?? "启用",
|
|
132
|
+
// password: encryptData(loginUserInfo.value?.password, cryptoInfo?.publicKey),
|
|
133
|
+
[s]: a
|
|
134
|
+
};
|
|
135
|
+
U.value = s === "avatarUrl", I.value = s === "signature", await V(t, "图片修改");
|
|
136
|
+
}, b = P({
|
|
137
|
+
baseCols: [],
|
|
138
|
+
otherCols: []
|
|
139
|
+
}), W = g([]), q = g(), re = (s, a, t) => {
|
|
140
|
+
var n, e, i, p, d, f;
|
|
141
|
+
let r;
|
|
142
|
+
const l = a;
|
|
143
|
+
((e = (n = o.value) == null ? void 0 : n.layer) == null ? void 0 : e.toUpperCase()) !== "SUPERADMIN" ? r = (i = o.value) != null && i.password ? G((p = o.value) == null ? void 0 : p.password, (d = c == null ? void 0 : c.value) == null ? void 0 : d.privateKey) : Q : r = (f = o.value) == null ? void 0 : f.password, r === l ? t() : t(new Error("输入的密码与原密码不匹配,请重新输入"));
|
|
144
|
+
}, ne = (s, a, t) => {
|
|
145
|
+
a ? /^(?=.*[A-Z])(?=.*[a-z])(?=.*\d)(?=.*[!@#$%^&*(),.?":{}|<>]).{6,}$/.test(a) ? t() : t(new Error("密码必须包含大写字母、小写字母、数字和特殊字符,并且长度至少为6个字符")) : t(new Error("请输入密码"));
|
|
146
|
+
}, le = (s, a, t) => {
|
|
147
|
+
var r;
|
|
148
|
+
a !== ((r = q.value) == null ? void 0 : r.newtPass) ? t(new Error("两次输入的密码不一致")) : t();
|
|
149
|
+
}, oe = async () => {
|
|
150
|
+
var a, t, r, l, n, e, i, p, d, f;
|
|
151
|
+
const s = await _({
|
|
152
|
+
key: {
|
|
153
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
154
|
+
type: "structure",
|
|
155
|
+
// pageKey: "/系统管理/用户管理"
|
|
156
|
+
pageKey: "系统管理/用户管理"
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
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) {
|
|
160
|
+
const y = (i = (e = (n = (l = (r = s.data.result) == null ? void 0 : r[0]) == null ? void 0 : l.value) == null ? void 0 : n.pageData) == null ? void 0 : e.compData) == null ? void 0 : i.find((u) => (u == null ? void 0 : u.key) === "header"), m = (p = M.value) == null ? void 0 : p.map((u) => u == null ? void 0 : u.prop);
|
|
161
|
+
b.baseCols = y && ((d = y.contents) == null ? void 0 : d.map((u) => ({
|
|
162
|
+
...u,
|
|
163
|
+
isFormColHidden: (m == null ? void 0 : m.includes(u == null ? void 0 : u.prop)) || (u == null ? void 0 : u.label) === "操作"
|
|
164
|
+
})));
|
|
165
|
+
const h = (f = y.contents) == null ? void 0 : f.find((u) => (u == null ? void 0 : u.prop) === "password"), O = [
|
|
166
|
+
{
|
|
167
|
+
...h,
|
|
168
|
+
label: "当前密码",
|
|
169
|
+
prop: "currentPass",
|
|
170
|
+
validator: re
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
...h,
|
|
174
|
+
label: "新密码",
|
|
175
|
+
prop: "newtPass",
|
|
176
|
+
validator: ne
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
...h,
|
|
180
|
+
label: "确认密码",
|
|
181
|
+
prop: "confirmNewPass",
|
|
182
|
+
validator: le
|
|
183
|
+
}
|
|
184
|
+
];
|
|
185
|
+
b.otherCols = O, pe(o.value);
|
|
186
|
+
}
|
|
187
|
+
}, ue = (s) => {
|
|
188
|
+
q.value = s;
|
|
189
|
+
}, ie = async ({ content: s, buttonName: a }) => {
|
|
190
|
+
var r, l, n, e, i;
|
|
191
|
+
let t;
|
|
192
|
+
a === "确定" && (t = {
|
|
193
|
+
...o.value,
|
|
194
|
+
status: ((r = o.value) == null ? void 0 : r.status) ?? "启用",
|
|
195
|
+
// 目前是超管密码明文传输,非超管用户密码加密传输
|
|
196
|
+
password: ((n = (l = o.value) == null ? void 0 : l.layer) == null ? void 0 : n.toUpperCase()) === "SUPERADMIN" ? s == null ? void 0 : s.confirmNewPass : H(s == null ? void 0 : s.confirmNewPass, (e = c.value) == null ? void 0 : e.publicKey)
|
|
197
|
+
}), a === "保存基本信息" && (t = {
|
|
198
|
+
...o.value,
|
|
199
|
+
...s,
|
|
200
|
+
status: ((i = o.value) == null ? void 0 : i.status) ?? "启用"
|
|
201
|
+
}), D.value = !0, await V(t, a);
|
|
202
|
+
}, T = () => {
|
|
203
|
+
var r, l;
|
|
204
|
+
const s = {
|
|
205
|
+
base: [
|
|
206
|
+
{
|
|
207
|
+
label: "保存基本信息"
|
|
208
|
+
}
|
|
209
|
+
],
|
|
210
|
+
other: [
|
|
211
|
+
{
|
|
212
|
+
label: "重置",
|
|
213
|
+
background: "#b7b8b8"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
label: "确定"
|
|
217
|
+
}
|
|
218
|
+
]
|
|
219
|
+
}, a = sessionStorage.getItem("authority"), t = JSON.parse(a || "");
|
|
220
|
+
if (Array.isArray(t)) {
|
|
221
|
+
const n = (r = v.value) != null && r.startsWith("/") ? (l = v.value) == null ? void 0 : l.substring(1) : v.value, e = t != null && t.includes(`${n}/基本信息`) ? s == null ? void 0 : s.base : [], i = t != null && t.includes(`${n}/修改密码`) ? s == null ? void 0 : s.other : [];
|
|
222
|
+
return {
|
|
223
|
+
base: e,
|
|
224
|
+
other: i
|
|
225
|
+
};
|
|
226
|
+
} else return typeof t == "string" && (t == null ? void 0 : t.toUpperCase()) === "SUPERADMIN" ? s : null;
|
|
227
|
+
}, pe = (s) => {
|
|
228
|
+
var a, t, r, l, n;
|
|
229
|
+
W.value = [
|
|
230
|
+
{
|
|
231
|
+
value: "基础信息",
|
|
232
|
+
label: "基础信息",
|
|
233
|
+
children: [
|
|
234
|
+
{
|
|
235
|
+
type: "form",
|
|
236
|
+
content: {
|
|
237
|
+
rowContents: (a = b.baseCols) == null ? void 0 : a.map((e) => ({
|
|
238
|
+
...e,
|
|
239
|
+
width: 2,
|
|
240
|
+
type: e == null ? void 0 : e.formType,
|
|
241
|
+
name: e == null ? void 0 : e.prop,
|
|
242
|
+
prop: e == null ? void 0 : e.prop,
|
|
243
|
+
contents: e == null ? void 0 : e.options,
|
|
244
|
+
value: s[e == null ? void 0 : e.prop]
|
|
245
|
+
})),
|
|
246
|
+
formRules: {
|
|
247
|
+
userName: [
|
|
248
|
+
{ required: !0, message: "输入不能为空", trigger: "blur" }
|
|
249
|
+
],
|
|
250
|
+
birthDay: [
|
|
251
|
+
{ required: !0, message: "输入不能为空", trigger: "blur" }
|
|
252
|
+
],
|
|
253
|
+
phone: [
|
|
254
|
+
{ required: !0, message: "输入不能为空", trigger: "blur" }
|
|
255
|
+
]
|
|
256
|
+
},
|
|
257
|
+
buttonValue: (t = T()) == null ? void 0 : t.base,
|
|
258
|
+
isEnableWrap: !1,
|
|
259
|
+
isButtonRow: !1
|
|
260
|
+
},
|
|
261
|
+
value: ""
|
|
262
|
+
}
|
|
263
|
+
]
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
value: "修改密码",
|
|
267
|
+
label: "修改密码",
|
|
268
|
+
children: [
|
|
269
|
+
{
|
|
270
|
+
type: "form",
|
|
271
|
+
content: {
|
|
272
|
+
rowContents: (r = b.otherCols) == null ? void 0 : r.map((e) => ({
|
|
273
|
+
...e,
|
|
274
|
+
width: 1,
|
|
275
|
+
type: e == null ? void 0 : e.formType,
|
|
276
|
+
name: e == null ? void 0 : e.prop,
|
|
277
|
+
contents: e == null ? void 0 : e.options
|
|
278
|
+
})),
|
|
279
|
+
formRules: (l = b.otherCols) == null ? void 0 : l.reduce((e, i) => (e[i.prop] = [
|
|
280
|
+
{ required: !0, message: "输入有误", trigger: "change" },
|
|
281
|
+
{
|
|
282
|
+
validator: (p, d, f) => i.validator(p, d, f),
|
|
283
|
+
trigger: "blur"
|
|
284
|
+
}
|
|
285
|
+
], e), {}),
|
|
286
|
+
buttonValue: (n = T()) == null ? void 0 : n.other,
|
|
287
|
+
isEnableWrap: !1
|
|
288
|
+
},
|
|
289
|
+
value: ""
|
|
290
|
+
}
|
|
291
|
+
]
|
|
292
|
+
}
|
|
293
|
+
];
|
|
294
|
+
}, ve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
295
|
+
__proto__: null,
|
|
296
|
+
avatarLoading: U,
|
|
297
|
+
beforeSignDestroy: $,
|
|
298
|
+
changeFormTrigger: ue,
|
|
299
|
+
clickFormButton: ee,
|
|
300
|
+
clickSignButton: te,
|
|
301
|
+
clickTabButton: ie,
|
|
302
|
+
getUserTableHeadersAsync: oe,
|
|
303
|
+
itemData: ae,
|
|
304
|
+
loading: D,
|
|
305
|
+
refreshLoginUserInfoAsync: k,
|
|
306
|
+
rowContents: M,
|
|
307
|
+
signPadInfo: w,
|
|
308
|
+
signTypes: K,
|
|
309
|
+
signatureLoading: I,
|
|
310
|
+
submitImageAsync: se,
|
|
311
|
+
tabKey: Y,
|
|
312
|
+
tabsContents: W,
|
|
313
|
+
tempSignTypes: S,
|
|
314
|
+
uploadDisabled: N
|
|
315
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
316
|
+
export {
|
|
317
|
+
ve as S,
|
|
318
|
+
Y as t
|
|
319
|
+
};
|