@das-fed/ui 7.0.5-test.20 → 7.0.5-test.22
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/esm-map.json +1 -0
- package/package.json +5 -5
- package/packages/business-components/change-pwd/index.js +162 -120
- package/packages/business-components/change-pwd/index.js.gz +0 -0
- package/packages/business-components/change-pwd/src/get-public-key.d.ts +10 -0
- package/packages/business-components/change-pwd/src/password-encryption.d.ts +8 -0
- package/packages/business-components/currency-page/index.d.ts +5 -1
- package/packages/business-components/currency-page/index.js +50 -41
- package/packages/business-components/currency-page/index.js.gz +0 -0
- package/packages/business-components/currency-page/src/index.vue.d.ts +5 -1
- package/packages/business-components/currency-page/src/type.d.ts +22 -13
- package/packages/business-components/currency-page/style.css +1 -1
- package/packages/business-components/device-panel/i18n/index.d.ts +16 -0
- package/packages/business-components/device-panel/index.js +12724 -12112
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/device-panel/src/apis.d.ts +2 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/alarmScreenshot/components/currentAlarmScreenshot.vue.d.ts +6 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/alarmScreenshot/components/currentList.vue.d.ts +8 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/alarmScreenshot/components/hisList.vue.d.ts +8 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/alarmScreenshot/components/historyAlarmScreenshot.vue.d.ts +6 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/alarmScreenshot/index.vue.d.ts +2 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/hooks/use-alarm-screenshot.d.ts +6 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/alarmScreenshot/components/currentAlarmScreenshot.vue.d.ts +6 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/alarmScreenshot/components/currentList.vue.d.ts +8 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/alarmScreenshot/components/hisList.vue.d.ts +8 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/alarmScreenshot/components/historyAlarmScreenshot.vue.d.ts +6 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/alarmScreenshot/index.vue.d.ts +2 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/hooks/use-alarm-screenshot.d.ts +6 -0
- package/packages/business-components/device-panel/style.css +1 -1
- package/packages/business-components/device-panel/style.css.gz +0 -0
- package/packages/business-components/export-button/index.js +120 -114
- package/packages/business-components/export-button/index.js.gz +0 -0
- package/packages/business-components/process-form/api-service/formPreView.d.ts +22 -0
- package/packages/business-components/process-form/apis.d.ts +3 -0
- package/packages/business-components/process-form/i18n/index.d.ts +5 -0
- package/packages/business-components/process-form/index.js +1331 -1144
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-form/src/hooks/useSelector.d.ts +14 -1
- package/packages/business-components/process-form/src/hooks/useSpaceTree.d.ts +1 -1
- package/packages/business-components/process-form/style.css +1 -1
- package/packages/business-components/video-dialog/index.d.ts +5 -5
- package/packages/business-components/video-dialog/src/index.vue.d.ts +1 -1
- package/packages/components/rich-editor/index.d.ts +2 -1
- package/packages/components/rich-editor/index.js +1 -0
- package/packages/components/rich-editor/index.js.gz +0 -0
- package/packages/components/select-input/index.js +149 -109
- package/packages/components/select-input/index.js.gz +0 -0
- package/packages/components/select-input/src/hooks/use-select-input.d.ts +2 -0
- package/packages/components/select-input/style.css +1 -1
- package/packages/components/select-input/style.css.gz +0 -0
- package/packages/components/table/index.js +7 -8
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/table/style.css +1 -1
- package/packages/components/table/style.css.gz +0 -0
package/esm-map.json
CHANGED
|
@@ -431,6 +431,7 @@
|
|
|
431
431
|
"getDasHlsPlayerRef": "/packages/components/hls-player/index",
|
|
432
432
|
"DasIconTucao2": "/packages/icons/tucao-2/index",
|
|
433
433
|
"DasIconTucao": "/packages/icons/tucao/index",
|
|
434
|
+
"DasRichEditorBoot": "/packages/components/rich-editor/index",
|
|
434
435
|
"getPayAppid": "/packages/business-components/payment/index",
|
|
435
436
|
"DasUpdateConfirmDialog": "/packages/business-components/update-confirm-dialog/index",
|
|
436
437
|
"DasUpdateConfirmDialogRef": "/packages/business-components/update-confirm-dialog/index"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@das-fed/ui",
|
|
3
|
-
"version": "7.0.5-test.
|
|
3
|
+
"version": "7.0.5-test.22",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@antv/x6-plugin-snapline": "^2.1.7",
|
|
27
27
|
"@antv/x6-plugin-transform": "^2.1.8",
|
|
28
28
|
"@antv/x6-vue-shape": "^2.1.2",
|
|
29
|
-
"@das-fed/cli": "7.0.5-test.
|
|
29
|
+
"@das-fed/cli": "7.0.5-test.22",
|
|
30
30
|
"@element-plus/icons-vue": "^2.3.1",
|
|
31
31
|
"@types/lodash": "^4.14.194",
|
|
32
32
|
"@types/lodash-es": "^4.17.9",
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
"vue-tsc": "^2.0.29"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@das-fed/ui": "7.0.5-test.
|
|
60
|
-
"@das-fed/utils": "7.0.5-test.
|
|
61
|
-
"@das-fed/web": "7.0.5-test.
|
|
59
|
+
"@das-fed/ui": "7.0.5-test.22",
|
|
60
|
+
"@das-fed/utils": "7.0.5-test.22",
|
|
61
|
+
"@das-fed/web": "7.0.5-test.22",
|
|
62
62
|
"@types/markdown-it": "^14.1.2",
|
|
63
63
|
"@wangeditor-next/editor": "5.6.31",
|
|
64
64
|
"@wangeditor-next/editor-for-vue": "5.1.14",
|
|
@@ -1,20 +1,57 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/business-components/change-pwd/style.css';
|
|
2
|
-
import { ref as
|
|
3
|
-
import { withInstall as
|
|
4
|
-
import { t as
|
|
5
|
-
import { DasDialog as
|
|
6
|
-
import { DasFormRef as
|
|
2
|
+
import { ref as b, reactive as I, defineComponent as O, createBlock as V, openBlock as A, unref as t, isRef as $, withCtx as C, createElementVNode as S, createVNode as y, createCommentVNode as Z, createTextVNode as x, toDisplayString as E } from "vue";
|
|
3
|
+
import { withInstall as W } from "@das-fed/utils/with-install/index";
|
|
4
|
+
import { t as d, i18n as D, setI18nRule as j } from "@das-fed/web/packages/i18n/index";
|
|
5
|
+
import { DasDialog as G } from "@das-fed/ui/packages/components/dialog/index";
|
|
6
|
+
import { DasFormRef as H, DasForm as X } from "@das-fed/ui/packages/components/form/index";
|
|
7
7
|
import { DasFormItem as q } from "@das-fed/ui/packages/components/form-item/index";
|
|
8
8
|
import { DasButton as U } from "@das-fed/ui/packages/components/button/index";
|
|
9
|
-
import { DasMessage as
|
|
10
|
-
import { enterpriseright as
|
|
11
|
-
import { encryption as
|
|
12
|
-
const
|
|
13
|
-
const
|
|
9
|
+
import { DasMessage as Y } from "@das-fed/ui/packages/components/message/index";
|
|
10
|
+
import { enterpriseright as z, superadminPortal as J, systemConfiguration as Q, justauth as ee } from "@das-fed/utils/api-services/modules";
|
|
11
|
+
import { encryption as v } from "@das-fed/utils/atob";
|
|
12
|
+
const M = z.get("/user/change-pwd", (r) => (r.ignoreErrorMessage = !0, r)), K = z.put("/user/change-pwd", (r) => (r.csrf = !0, r)), re = J.put("/change-pwd"), te = Q.get("/visitor/login/with-default"), ne = "RSA_V1:", ae = async (r) => {
|
|
13
|
+
const n = window.atob(r), p = new Uint8Array(n.length);
|
|
14
|
+
for (let a = 0; a < n.length; a++)
|
|
15
|
+
p[a] = n.charCodeAt(a);
|
|
16
|
+
return window.crypto.subtle.importKey("spki", p.buffer, { name: "RSA-OAEP", hash: "SHA-256" }, !1, ["encrypt"]);
|
|
17
|
+
}, oe = (r) => {
|
|
18
|
+
let n = "";
|
|
19
|
+
const p = new Uint8Array(r);
|
|
20
|
+
for (let a = 0; a < p.byteLength; a++)
|
|
21
|
+
n += String.fromCharCode(p[a]);
|
|
22
|
+
return window.btoa(n);
|
|
23
|
+
}, se = async (r) => {
|
|
24
|
+
try {
|
|
25
|
+
const n = await r();
|
|
26
|
+
if (!n.trim())
|
|
27
|
+
return async (a) => v(a);
|
|
28
|
+
const p = await ae(n);
|
|
29
|
+
return async (a) => {
|
|
30
|
+
try {
|
|
31
|
+
const l = await window.crypto.subtle.encrypt(
|
|
32
|
+
{ name: "RSA-OAEP" },
|
|
33
|
+
p,
|
|
34
|
+
new TextEncoder().encode(a)
|
|
35
|
+
);
|
|
36
|
+
return ne + oe(l);
|
|
37
|
+
} catch {
|
|
38
|
+
return v(a);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
} catch {
|
|
42
|
+
return async (n) => v(n);
|
|
43
|
+
}
|
|
44
|
+
}, ie = z.get("/visitor/rsa/public-key", (r) => (r.ignoreErrorMessage = !0, r));
|
|
45
|
+
ee.get("/rsa/public-key", (r) => (r.ignoreErrorMessage = !0, r));
|
|
46
|
+
const pe = async () => {
|
|
47
|
+
const [r, n] = await ie().run();
|
|
48
|
+
return r || !n ? "" : typeof n.publicKey == "string" ? n.publicKey : "";
|
|
49
|
+
}, de = (r, n) => {
|
|
50
|
+
const p = b(!1), a = H(), l = b({
|
|
14
51
|
prePwd: "",
|
|
15
52
|
pwd: "",
|
|
16
53
|
confirmPwd: ""
|
|
17
|
-
}),
|
|
54
|
+
}), o = I({
|
|
18
55
|
pwdStrongLimit: !1,
|
|
19
56
|
// 是否开启密码强度校验
|
|
20
57
|
pwdRequireLength: !1,
|
|
@@ -29,117 +66,122 @@ const S = M.get("/user/change-pwd", (n) => (n.ignoreErrorMessage = !0, n)), A =
|
|
|
29
66
|
// 密码要求包含大写字母
|
|
30
67
|
pwdRequireSpecialCharacter: !1
|
|
31
68
|
// 密码要求特殊字符
|
|
32
|
-
}),
|
|
33
|
-
const [
|
|
34
|
-
|
|
35
|
-
},
|
|
69
|
+
}), _ = async () => {
|
|
70
|
+
const [s, e] = await te().run();
|
|
71
|
+
s || (o.pwdStrongLimit = e.pwdStrongLimit, o.pwdRequireLength = e.pwdRequireLength, o.pwdMinLength = e.pwdMinLength, o.pwdRequireNum = e.pwdRequireNum, o.pwdRequireLowercaseLetters = e.pwdRequireLowercaseLetters, o.pwdRequireUppercaseLetters = e.pwdRequireUppercaseLetters, o.pwdRequireSpecialCharacter = e.pwdRequireSpecialCharacter);
|
|
72
|
+
}, w = (s) => {
|
|
36
73
|
let e = "";
|
|
37
|
-
return
|
|
38
|
-
},
|
|
39
|
-
var
|
|
40
|
-
if (!e) return
|
|
41
|
-
if (
|
|
42
|
-
const
|
|
43
|
-
if ((
|
|
74
|
+
return o.pwdStrongLimit ? e = F(s) : e = c(s), e;
|
|
75
|
+
}, L = (s, e, i) => {
|
|
76
|
+
var m;
|
|
77
|
+
if (!e) return i(new Error(d("新密码不能为空")));
|
|
78
|
+
if (r.mainApp === "enterpriseadmin") {
|
|
79
|
+
const h = w(e);
|
|
80
|
+
if ((m = a.value) == null || m.validateField("confirmPwd", () => null), h) return i(new Error(h));
|
|
44
81
|
}
|
|
45
|
-
|
|
46
|
-
}, N = (
|
|
47
|
-
if (!e) return
|
|
48
|
-
if (
|
|
49
|
-
if (
|
|
50
|
-
const
|
|
51
|
-
if (
|
|
82
|
+
i();
|
|
83
|
+
}, N = (s, e, i) => {
|
|
84
|
+
if (!e) return i(new Error(d("确认密码不能为空")));
|
|
85
|
+
if (l.value.pwd !== e) return i(new Error(d("与新密码不一致")));
|
|
86
|
+
if (r.mainApp === "enterpriseadmin") {
|
|
87
|
+
const m = w(e);
|
|
88
|
+
if (m) return i(new Error(m));
|
|
52
89
|
}
|
|
53
|
-
|
|
54
|
-
},
|
|
90
|
+
i();
|
|
91
|
+
}, R = b({
|
|
55
92
|
prePwd: [
|
|
56
93
|
{
|
|
57
|
-
required: !
|
|
58
|
-
message:
|
|
94
|
+
required: !r.forceUpdate,
|
|
95
|
+
message: d("旧密码不能为空"),
|
|
59
96
|
trigger: "blur"
|
|
60
97
|
}
|
|
61
98
|
],
|
|
62
|
-
pwd: [{ validator:
|
|
99
|
+
pwd: [{ validator: L, trigger: "blur" }],
|
|
63
100
|
confirmPwd: [{ validator: N, trigger: "blur" }]
|
|
64
|
-
}),
|
|
65
|
-
|
|
66
|
-
},
|
|
101
|
+
}), g = b(""), k = (s) => {
|
|
102
|
+
r.mainApp === "enterpriseadmin" && _(), p.value = !0, g.value = s || "";
|
|
103
|
+
}, u = (s = !1) => {
|
|
67
104
|
var e;
|
|
68
|
-
|
|
69
|
-
},
|
|
70
|
-
const e =
|
|
71
|
-
return /^(?=.*[a-zA-Z])(?=.*[\d])(?=.*[\w])[a-zA-Z\d\W_]{8,20}$/.test(
|
|
72
|
-
},
|
|
73
|
-
let e = "",
|
|
74
|
-
e +=
|
|
75
|
-
const
|
|
76
|
-
return new RegExp(
|
|
105
|
+
l.value.prePwd = "", l.value.pwd = "", l.value.confirmPwd = "", (e = a.value) == null || e.resetField(), p.value = !1, s || n("onCancel");
|
|
106
|
+
}, c = (s) => {
|
|
107
|
+
const e = d("das-ui-business-components-change-pwd-passwordFormatRule");
|
|
108
|
+
return /^(?=.*[a-zA-Z])(?=.*[\d])(?=.*[\w])[a-zA-Z\d\W_]{8,20}$/.test(s) ? "" : e;
|
|
109
|
+
}, F = (s) => {
|
|
110
|
+
let e = "", i = !1;
|
|
111
|
+
e += d("das-ui-business-components-change-pwd-limit-number", o.pwdMinLength);
|
|
112
|
+
const m = `\\S{${o.pwdMinLength},}`;
|
|
113
|
+
return new RegExp(m).test(s) || (i = !0), (o.pwdRequireNum || o.pwdRequireLowercaseLetters || o.pwdRequireUppercaseLetters || o.pwdRequireSpecialCharacter) && (e += d("必须包含")), o.pwdRequireNum && (e += d("数字,"), /\d+/.test(s) || (i = !0)), o.pwdRequireLowercaseLetters && (e += d("小写字母,"), /[a-z]+/.test(s) || (i = !0)), o.pwdRequireUppercaseLetters && (e += d("大写字母,"), /[A-Z]+/.test(s) || (i = !0)), o.pwdRequireSpecialCharacter && (e += d("符号,"), /[`~!@#$%^&*()_\-+=<>?:"{}|,.\/;'\\[\]·~]+/.test(s) || (i = !0)), i ? e.slice(0, -1) : "";
|
|
77
114
|
};
|
|
78
115
|
return {
|
|
79
|
-
visible:
|
|
80
|
-
formData:
|
|
81
|
-
form:
|
|
82
|
-
rules:
|
|
83
|
-
openDialog:
|
|
84
|
-
onCancel:
|
|
116
|
+
visible: p,
|
|
117
|
+
formData: l,
|
|
118
|
+
form: a,
|
|
119
|
+
rules: R,
|
|
120
|
+
openDialog: k,
|
|
121
|
+
onCancel: u,
|
|
85
122
|
onConfirm: async () => {
|
|
86
|
-
var
|
|
87
|
-
(
|
|
123
|
+
var s;
|
|
124
|
+
(s = a.value) == null || s.validate(async (e) => {
|
|
125
|
+
const i = await se(pe), [m, h, T] = await Promise.all([
|
|
126
|
+
i(l.value.pwd),
|
|
127
|
+
i(l.value.confirmPwd),
|
|
128
|
+
i(l.value.prePwd)
|
|
129
|
+
]);
|
|
88
130
|
if (e) {
|
|
89
|
-
const
|
|
90
|
-
pwd:
|
|
91
|
-
confirmPwd:
|
|
131
|
+
const P = {
|
|
132
|
+
pwd: m,
|
|
133
|
+
confirmPwd: h
|
|
92
134
|
};
|
|
93
|
-
if (
|
|
94
|
-
let
|
|
95
|
-
|
|
96
|
-
const [
|
|
97
|
-
if (
|
|
98
|
-
} else if (
|
|
99
|
-
await
|
|
100
|
-
const [
|
|
101
|
-
if (
|
|
135
|
+
if (r.mainApp === "enterpriseadmin" && r.forceUpdate) {
|
|
136
|
+
let f = {};
|
|
137
|
+
g.value && (f = { headers: { Authorization: g.value } }), await M({}, f).run();
|
|
138
|
+
const [B] = await K({}, f).run(P);
|
|
139
|
+
if (B) return;
|
|
140
|
+
} else if (P.prePwd = T, r.mainApp === "enterpriseadmin") {
|
|
141
|
+
await M().run();
|
|
142
|
+
const [f] = await K().run(P);
|
|
143
|
+
if (f) return;
|
|
102
144
|
} else {
|
|
103
|
-
const [
|
|
104
|
-
if (
|
|
145
|
+
const [f] = await re().run(P);
|
|
146
|
+
if (f) return;
|
|
105
147
|
}
|
|
106
|
-
|
|
148
|
+
u(!0), Y.success(d("修改密码成功!")), n("onConfirm");
|
|
107
149
|
}
|
|
108
150
|
});
|
|
109
151
|
}
|
|
110
152
|
};
|
|
111
|
-
},
|
|
153
|
+
}, le = { class: "dialog-content" }, ue = {
|
|
112
154
|
name: "ChangePwd"
|
|
113
|
-
},
|
|
114
|
-
...
|
|
155
|
+
}, we = /* @__PURE__ */ O({
|
|
156
|
+
...ue,
|
|
115
157
|
props: {
|
|
116
158
|
mainApp: { default: "enterpriseadmin" },
|
|
117
159
|
forceUpdate: { type: Boolean }
|
|
118
160
|
},
|
|
119
161
|
emits: ["onCancel", "onConfirm"],
|
|
120
|
-
setup(
|
|
121
|
-
const
|
|
122
|
-
return
|
|
162
|
+
setup(r, { expose: n, emit: p }) {
|
|
163
|
+
const a = r, l = p, { visible: o, form: _, formData: w, rules: L, openDialog: N, onCancel: R, onConfirm: g } = de(a, l);
|
|
164
|
+
return n({
|
|
123
165
|
openDialog: N
|
|
124
|
-
}), (
|
|
125
|
-
title:
|
|
166
|
+
}), (k, u) => (A(), V(t(G), {
|
|
167
|
+
title: t(d)("修改密码"),
|
|
126
168
|
width: "460px",
|
|
127
169
|
height: "360px",
|
|
128
170
|
bodyStyle: { padding: 0 },
|
|
129
|
-
modelValue:
|
|
130
|
-
"onUpdate:modelValue":
|
|
131
|
-
"before-close":
|
|
171
|
+
modelValue: t(o),
|
|
172
|
+
"onUpdate:modelValue": u[3] || (u[3] = (c) => $(o) ? o.value = c : null),
|
|
173
|
+
"before-close": t(R)
|
|
132
174
|
}, {
|
|
133
|
-
footer:
|
|
134
|
-
|
|
135
|
-
|
|
175
|
+
footer: C(() => [
|
|
176
|
+
S("div", null, [
|
|
177
|
+
y(t(U), {
|
|
136
178
|
size: "middle",
|
|
137
179
|
style: { "margin-right": "12px" },
|
|
138
|
-
onClick:
|
|
180
|
+
onClick: t(R)
|
|
139
181
|
}, {
|
|
140
|
-
default:
|
|
141
|
-
|
|
142
|
-
|
|
182
|
+
default: C(() => [
|
|
183
|
+
x(
|
|
184
|
+
E(t(D)("取消").value),
|
|
143
185
|
1
|
|
144
186
|
/* TEXT */
|
|
145
187
|
)
|
|
@@ -147,14 +189,14 @@ const S = M.get("/user/change-pwd", (n) => (n.ignoreErrorMessage = !0, n)), A =
|
|
|
147
189
|
_: 1
|
|
148
190
|
/* STABLE */
|
|
149
191
|
}, 8, ["onClick"]),
|
|
150
|
-
|
|
192
|
+
y(t(U), {
|
|
151
193
|
btnType: "primary",
|
|
152
194
|
size: "middle",
|
|
153
|
-
onClick:
|
|
195
|
+
onClick: t(g)
|
|
154
196
|
}, {
|
|
155
|
-
default:
|
|
156
|
-
|
|
157
|
-
|
|
197
|
+
default: C(() => [
|
|
198
|
+
x(
|
|
199
|
+
E(t(D)("确定").value),
|
|
158
200
|
1
|
|
159
201
|
/* TEXT */
|
|
160
202
|
)
|
|
@@ -164,51 +206,51 @@ const S = M.get("/user/change-pwd", (n) => (n.ignoreErrorMessage = !0, n)), A =
|
|
|
164
206
|
}, 8, ["onClick"])
|
|
165
207
|
])
|
|
166
208
|
]),
|
|
167
|
-
default:
|
|
168
|
-
|
|
169
|
-
|
|
209
|
+
default: C(() => [
|
|
210
|
+
S("div", le, [
|
|
211
|
+
y(t(X), {
|
|
170
212
|
ref_key: "form",
|
|
171
|
-
ref:
|
|
172
|
-
rules:
|
|
213
|
+
ref: _,
|
|
214
|
+
rules: t(L),
|
|
173
215
|
style: { "overflow-x": "hidden !important" }
|
|
174
216
|
}, {
|
|
175
|
-
default:
|
|
176
|
-
|
|
217
|
+
default: C(() => [
|
|
218
|
+
k.forceUpdate ? Z("v-if", !0) : (A(), V(t(q), {
|
|
177
219
|
key: 0,
|
|
178
220
|
type: "password",
|
|
179
221
|
isTitle: !1,
|
|
180
222
|
autocomplete: "new-password",
|
|
181
223
|
"show-password": "",
|
|
182
224
|
prop: "prePwd",
|
|
183
|
-
label:
|
|
184
|
-
modelValue:
|
|
185
|
-
"onUpdate:modelValue":
|
|
225
|
+
label: t(d)("旧密码"),
|
|
226
|
+
modelValue: t(w).prePwd,
|
|
227
|
+
"onUpdate:modelValue": u[0] || (u[0] = (c) => t(w).prePwd = c),
|
|
186
228
|
modelModifiers: { trim: !0 },
|
|
187
229
|
maxlength: 20,
|
|
188
230
|
required: ""
|
|
189
231
|
}, null, 8, ["label", "modelValue"])),
|
|
190
|
-
|
|
232
|
+
y(t(q), {
|
|
191
233
|
type: "password",
|
|
192
234
|
isTitle: !1,
|
|
193
235
|
autocomplete: "new-password",
|
|
194
236
|
"show-password": "",
|
|
195
237
|
prop: "pwd",
|
|
196
|
-
label:
|
|
197
|
-
modelValue:
|
|
198
|
-
"onUpdate:modelValue":
|
|
238
|
+
label: t(d)("新密码"),
|
|
239
|
+
modelValue: t(w).pwd,
|
|
240
|
+
"onUpdate:modelValue": u[1] || (u[1] = (c) => t(w).pwd = c),
|
|
199
241
|
modelModifiers: { trim: !0 },
|
|
200
242
|
maxlength: 20,
|
|
201
243
|
required: ""
|
|
202
244
|
}, null, 8, ["label", "modelValue"]),
|
|
203
|
-
|
|
245
|
+
y(t(q), {
|
|
204
246
|
type: "password",
|
|
205
247
|
isTitle: !1,
|
|
206
248
|
autocomplete: "new-password",
|
|
207
249
|
"show-password": "",
|
|
208
250
|
prop: "confirmPwd",
|
|
209
|
-
label:
|
|
210
|
-
modelValue:
|
|
211
|
-
"onUpdate:modelValue":
|
|
251
|
+
label: t(d)("确认新密码"),
|
|
252
|
+
modelValue: t(w).confirmPwd,
|
|
253
|
+
"onUpdate:modelValue": u[2] || (u[2] = (c) => t(w).confirmPwd = c),
|
|
212
254
|
modelModifiers: { trim: !0 },
|
|
213
255
|
maxlength: 20,
|
|
214
256
|
required: ""
|
|
@@ -223,12 +265,12 @@ const S = M.get("/user/change-pwd", (n) => (n.ignoreErrorMessage = !0, n)), A =
|
|
|
223
265
|
/* STABLE */
|
|
224
266
|
}, 8, ["title", "modelValue", "before-close"]));
|
|
225
267
|
}
|
|
226
|
-
}),
|
|
227
|
-
const
|
|
228
|
-
for (const [
|
|
229
|
-
|
|
230
|
-
return
|
|
231
|
-
},
|
|
268
|
+
}), ce = (r, n) => {
|
|
269
|
+
const p = r.__vccOpts || r;
|
|
270
|
+
for (const [a, l] of n)
|
|
271
|
+
p[a] = l;
|
|
272
|
+
return p;
|
|
273
|
+
}, me = /* @__PURE__ */ ce(we, [["__scopeId", "data-v-901c1af6"]]), fe = {
|
|
232
274
|
新密码不能为空: { "zh-CN": "新密码不能为空", en: "New password cannot be empty", _appCode: "framework" },
|
|
233
275
|
确认密码不能为空: { "zh-CN": "确认密码不能为空", en: "Confirm password cannot be empty", _appCode: "framework" },
|
|
234
276
|
与新密码不一致: { "zh-CN": "与新密码不一致", en: "Doesn't match the new password", _appCode: "framework" },
|
|
@@ -260,9 +302,9 @@ const S = M.get("/user/change-pwd", (n) => (n.ignoreErrorMessage = !0, n)), A =
|
|
|
260
302
|
_appCode: "framework"
|
|
261
303
|
}
|
|
262
304
|
};
|
|
263
|
-
|
|
264
|
-
const
|
|
305
|
+
j(fe);
|
|
306
|
+
const qe = W(me), ve = () => b(null);
|
|
265
307
|
export {
|
|
266
|
-
|
|
267
|
-
|
|
308
|
+
qe as DasChangePwd,
|
|
309
|
+
ve as DasChangePwdRef
|
|
268
310
|
};
|
|
Binary file
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 获取 EnterpriseRight 服务的 RSA 公钥字符串。
|
|
3
|
+
* 请求失败时返回空字符串,由调用方兼容旧编码方式。
|
|
4
|
+
*/
|
|
5
|
+
export declare const getEnterpriseRightPublicKey: () => Promise<string>;
|
|
6
|
+
/**
|
|
7
|
+
* 获取 OAuth 服务的 RSA 公钥字符串。
|
|
8
|
+
* 请求失败时返回空字符串,由调用方兼容旧编码方式。
|
|
9
|
+
*/
|
|
10
|
+
export declare const getAuthPublicKey: () => Promise<string>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type GetPublicKey = () => Promise<string>;
|
|
2
|
+
export type SensitiveValueEncryptor = (value: string) => Promise<string>;
|
|
3
|
+
/**
|
|
4
|
+
* 根据对应服务的公钥创建敏感值加密函数。
|
|
5
|
+
* 公钥不可用时保留原编码方式,确保兼容尚未启用 RSA 的服务。
|
|
6
|
+
*/
|
|
7
|
+
export declare const createSensitiveValueEncryptor: (getPublicKey: GetPublicKey) => Promise<SensitiveValueEncryptor>;
|
|
8
|
+
export {};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
declare const DasCurrencyPage: import("@das-fed/utils").SFCWithInstall<import("vue").DefineComponent<import("./src/type.js").Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}
|
|
1
|
+
declare const DasCurrencyPage: import("@das-fed/utils").SFCWithInstall<import("vue").DefineComponent<import("./src/type.js").Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
2
|
+
btnClick: (mouseEvent: MouseEvent) => any;
|
|
3
|
+
}, string, import("vue").PublicProps, Readonly<import("./src/type.js").Props> & Readonly<{
|
|
4
|
+
onBtnClick?: ((mouseEvent: MouseEvent) => any) | undefined;
|
|
5
|
+
}>, {
|
|
2
6
|
showStatus: boolean;
|
|
3
7
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>>;
|
|
4
8
|
export { DasCurrencyPage };
|