@das-fed/ui 6.4.0-dev.54.8 → 6.4.0-dev.55
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/package.json +5 -5
- package/packages/business-components/change-enterprises/i18n/index.d.ts +3 -3
- package/packages/business-components/change-pwd/i18n/index.d.ts +26 -34
- package/packages/business-components/change-pwd/index.js +66 -65
- package/packages/business-components/change-pwd/index.js.gz +0 -0
- package/packages/business-components/device-panel/i18n/index.d.ts +172 -0
- package/packages/business-components/device-panel/index.js +331 -261
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/export-button/i18n/index.d.ts +16 -20
- package/packages/business-components/export-button/index.js +88 -86
- package/packages/business-components/export-button/index.js.gz +0 -0
- package/packages/business-components/import-button/i18n/index.d.ts +34 -30
- package/packages/business-components/import-button/index.js +148 -144
- package/packages/business-components/import-button/index.js.gz +0 -0
- package/packages/business-components/model-table-dialog/i18n/index.d.ts +6 -6
- package/packages/business-components/model-table-dialog/index.js +82 -83
- package/packages/business-components/model-table-dialog/index.js.gz +0 -0
- package/packages/business-components/model-table-dialog/src/ModelTable.vue.d.ts +17 -49
- package/packages/business-components/model-table-dialog/style.css +1 -1
- package/packages/business-components/model-table-dialog/style.css.gz +0 -0
- package/packages/business-components/process-configuration/i18n/index.d.ts +37 -29
- package/packages/business-components/process-configuration/index.js +103 -92
- package/packages/business-components/process-configuration/index.js.gz +0 -0
- package/packages/business-components/process-form/i18n/index.d.ts +109 -69
- package/packages/business-components/process-form/index.js +621 -580
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-form/style.css +1 -1
- package/packages/business-components/process-log/i18n/index.d.ts +4 -0
- package/packages/business-components/process-log/index.js +29 -28
- package/packages/business-components/process-log/index.js.gz +0 -0
- package/packages/business-components/process-search-form/i18n/index.d.ts +9 -9
- package/packages/business-components/process-search-form/index.js +77 -80
- package/packages/business-components/process-search-form/index.js.gz +0 -0
- package/packages/business-components/process-table/i18n/index.d.ts +8 -8
- package/packages/business-components/process-table/index.js +36 -36
- package/packages/business-components/process-table/index.js.gz +0 -0
- package/packages/business-components/upload-file/i18n/index.d.ts +2 -2
- package/packages/business-components/upload-file/index.js +45 -42
- package/packages/business-components/upload-file/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/i18n/index.d.ts +28 -0
- package/packages/business-components/urgent-panel/index.js +595 -576
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/business-components/user-org-dialog/i18n/index.d.ts +7 -3
- package/packages/business-components/user-org-dialog/index.js +92 -91
- package/packages/business-components/user-org-dialog/index.js.gz +0 -0
- package/packages/business-components/video-dialog/i18n/index.d.ts +29 -17
- package/packages/business-components/video-dialog/index.js +116 -113
- package/packages/business-components/video-dialog/index.js.gz +0 -0
- package/packages/components/button/index.js +54 -56
- package/packages/components/button/index.js.gz +0 -0
- package/packages/components/image-upload/i18n/index.d.ts +9 -21
- package/packages/components/image-upload/index.js +92 -92
- package/packages/components/image-upload/index.js.gz +0 -0
- package/packages/components/image-viewer/i18n/index.d.ts +1 -30
- package/packages/components/image-viewer/index.js +213 -219
- package/packages/components/image-viewer/index.js.gz +0 -0
- package/packages/components/input/i18n/index.d.ts +3 -3
- package/packages/components/input/index.js +1 -1
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/input-dialog-select/i18n/index.d.ts +1 -6
- package/packages/components/input-dialog-select/index.js +49 -51
- package/packages/components/input-dialog-select/index.js.gz +0 -0
- package/packages/components/live-player/i18n/index.d.ts +3 -7
- package/packages/components/live-player/index.js +7 -5
- package/packages/components/live-player/index.js.gz +0 -0
- package/packages/components/live-player/style.css +1 -1
- package/packages/components/loading/i18n/index.d.ts +1 -1
- package/packages/components/loading/index.js +1 -3
- package/packages/components/loading/index.js.gz +0 -0
- package/packages/components/map/i18n/index.d.ts +7 -11
- package/packages/components/map/index.js +168 -167
- package/packages/components/map/index.js.gz +0 -0
- package/packages/components/menu-aside/i18n/index.d.ts +1 -1
- package/packages/components/menu-aside/index.js +1 -3
- package/packages/components/menu-aside/index.js.gz +0 -0
- package/packages/components/message/i18n/index.d.ts +1 -1
- package/packages/components/message/index.js +1 -3
- package/packages/components/message/index.js.gz +0 -0
- package/packages/components/notification/i18n/index.d.ts +1 -1
- package/packages/components/notification/index.js +1 -3
- package/packages/components/notification/index.js.gz +0 -0
- package/packages/components/pagination/index.js +1 -1
- package/packages/components/pagination/index.js.gz +0 -0
- package/packages/components/popover/i18n/index.d.ts +2 -2
- package/packages/components/preview/i18n/index.d.ts +1 -1
- package/packages/components/preview/index.js +6 -7
- package/packages/components/preview/index.js.gz +0 -0
- package/packages/components/preview/style.css +1 -1
- package/packages/components/scrollbar/index.js +2 -2
- package/packages/components/scrollbar/index.js.gz +0 -0
- package/packages/components/scrollbar/style.css +1 -1
- package/packages/components/scrollbar/style.css.gz +0 -0
- package/packages/components/search/index.js +26 -36
- package/packages/components/search/index.js.gz +0 -0
- package/packages/components/search/style.css +1 -1
- package/packages/components/search/style.css.gz +0 -0
- package/packages/components/{search → search-form}/i18n/index.d.ts +6 -10
- package/packages/components/search-form/index.js +426 -418
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/search-form/style.css +1 -1
- package/packages/components/search-form/style.css.gz +0 -0
- package/packages/components/spin/i18n/index.d.ts +1 -1
- package/packages/components/spin/index.js +1 -3
- package/packages/components/spin/index.js.gz +0 -0
- package/packages/components/table/i18n/index.d.ts +19 -19
- package/packages/components/table/index.js +7 -7
- 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/packages/components/tabs/i18n/index.d.ts +3 -3
- package/packages/components/time-line/index.js +36 -40
- package/packages/components/time-line/index.js.gz +0 -0
- package/packages/components/tooltip/i18n/index.d.ts +1 -1
- package/packages/components/tooltip/index.js +1 -3
- package/packages/components/tooltip/index.js.gz +0 -0
- package/packages/components/tree/i18n/index.d.ts +8 -12
- package/packages/components/tree/index.js +141 -137
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/tree/src/App.vue.d.ts +26 -36
- package/packages/components/upload/i18n/index.d.ts +5 -5
- package/packages/components/upload/index.js +1 -1
- package/packages/components/upload/index.js.gz +0 -0
- package/packages/components/virtual-tree/i18n/index.d.ts +1 -1
- package/packages/components/virtual-tree/index.js +1 -3
- package/packages/components/virtual-tree/index.js.gz +0 -0
- package/packages/components/button/i18n/index.d.ts +0 -2
- package/packages/components/time-line/i18n/index.d.ts +0 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@das-fed/ui",
|
|
3
|
-
"version": "6.4.0-dev.
|
|
3
|
+
"version": "6.4.0-dev.55",
|
|
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": "6.4.0-dev.
|
|
29
|
+
"@das-fed/cli": "6.4.0-dev.55",
|
|
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": "6.4.0-dev.
|
|
60
|
-
"@das-fed/utils": "6.4.0-dev.
|
|
61
|
-
"@das-fed/web": "6.4.0-dev.
|
|
59
|
+
"@das-fed/ui": "6.4.0-dev.55",
|
|
60
|
+
"@das-fed/utils": "6.4.0-dev.55",
|
|
61
|
+
"@das-fed/web": "6.4.0-dev.55",
|
|
62
62
|
"@wangeditor/editor": "^5.1.23",
|
|
63
63
|
"@wangeditor/editor-for-vue": "^5.1.12",
|
|
64
64
|
"@wangeditor/plugin-upload-attachment": "^1.1.0",
|
|
@@ -1,82 +1,74 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
新密码不能为空: {
|
|
3
|
-
|
|
3
|
+
'zh-CN': string;
|
|
4
4
|
en: string;
|
|
5
5
|
};
|
|
6
6
|
确认密码不能为空: {
|
|
7
|
-
|
|
7
|
+
'zh-CN': string;
|
|
8
8
|
en: string;
|
|
9
9
|
};
|
|
10
10
|
与新密码不一致: {
|
|
11
|
-
|
|
11
|
+
'zh-CN': string;
|
|
12
12
|
en: string;
|
|
13
13
|
};
|
|
14
14
|
旧密码不能为空: {
|
|
15
|
-
|
|
16
|
-
en: string;
|
|
17
|
-
};
|
|
18
|
-
个字符: {
|
|
19
|
-
"zh-CN": string;
|
|
20
|
-
en: string;
|
|
21
|
-
};
|
|
22
|
-
至少包含数字和字母: {
|
|
23
|
-
"zh-CN": string;
|
|
24
|
-
en: string;
|
|
25
|
-
};
|
|
26
|
-
不包含空格: {
|
|
27
|
-
"zh-CN": string;
|
|
15
|
+
'zh-CN': string;
|
|
28
16
|
en: string;
|
|
29
17
|
};
|
|
30
18
|
必须包含: {
|
|
31
|
-
|
|
19
|
+
'zh-CN': string;
|
|
32
20
|
en: string;
|
|
33
21
|
};
|
|
34
|
-
|
|
35
|
-
|
|
22
|
+
'\u6570\u5B57\uFF0C': {
|
|
23
|
+
'zh-CN': string;
|
|
36
24
|
en: string;
|
|
37
25
|
};
|
|
38
|
-
|
|
39
|
-
|
|
26
|
+
'\u5C0F\u5199\u5B57\u6BCD\uFF0C': {
|
|
27
|
+
'zh-CN': string;
|
|
40
28
|
en: string;
|
|
41
29
|
};
|
|
42
|
-
|
|
43
|
-
|
|
30
|
+
'\u5927\u5199\u5B57\u6BCD\uFF0C': {
|
|
31
|
+
'zh-CN': string;
|
|
44
32
|
en: string;
|
|
45
33
|
};
|
|
46
|
-
|
|
47
|
-
|
|
34
|
+
'\u7B26\u53F7\uFF0C': {
|
|
35
|
+
'zh-CN': string;
|
|
48
36
|
en: string;
|
|
49
37
|
};
|
|
50
|
-
|
|
51
|
-
|
|
38
|
+
'\u4FEE\u6539\u5BC6\u7801\u6210\u529F\uFF01': {
|
|
39
|
+
'zh-CN': string;
|
|
52
40
|
en: string;
|
|
53
41
|
};
|
|
54
42
|
修改密码: {
|
|
55
|
-
|
|
43
|
+
'zh-CN': string;
|
|
56
44
|
en: string;
|
|
57
45
|
};
|
|
58
46
|
旧密码: {
|
|
59
|
-
|
|
47
|
+
'zh-CN': string;
|
|
60
48
|
en: string;
|
|
61
49
|
};
|
|
62
50
|
新密码: {
|
|
63
|
-
|
|
51
|
+
'zh-CN': string;
|
|
64
52
|
en: string;
|
|
65
53
|
};
|
|
66
54
|
确认新密码: {
|
|
67
|
-
|
|
55
|
+
'zh-CN': string;
|
|
68
56
|
en: string;
|
|
69
57
|
};
|
|
70
58
|
取消: {
|
|
71
|
-
|
|
59
|
+
'zh-CN': string;
|
|
72
60
|
en: string;
|
|
73
61
|
};
|
|
74
62
|
确定: {
|
|
75
|
-
|
|
63
|
+
'zh-CN': string;
|
|
76
64
|
en: string;
|
|
77
65
|
};
|
|
78
66
|
'das-ui-business-components-change-pwd-limit-number': {
|
|
79
|
-
|
|
67
|
+
'zh-CN': string;
|
|
68
|
+
en: string;
|
|
69
|
+
};
|
|
70
|
+
'das-ui-business-components-change-pwd-passwordFormatRule': {
|
|
71
|
+
'zh-CN': string;
|
|
80
72
|
en: string;
|
|
81
73
|
};
|
|
82
74
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/business-components/change-pwd/style.css';
|
|
2
|
-
import { ref as
|
|
2
|
+
import { ref as R, reactive as F, defineComponent as T, openBlock as z, createBlock as V, unref as r, isRef as $, withCtx as h, createElementVNode as D, createVNode as C, createTextVNode as U, toDisplayString as S, createCommentVNode as B } from "vue";
|
|
3
3
|
import { withInstall as I } from "@das-fed/utils/with-install/index";
|
|
4
|
-
import { t as
|
|
4
|
+
import { t as a, i18n as _, setI18nRule as O } from "@das-fed/web/packages/i18n/index";
|
|
5
5
|
import { DasDialog as Z } from "@das-fed/ui/packages/components/dialog/index";
|
|
6
6
|
import { DasFormRef as W, DasForm as G } from "@das-fed/ui/packages/components/form/index";
|
|
7
|
-
import { DasFormItem as
|
|
7
|
+
import { DasFormItem as v } from "@das-fed/ui/packages/components/form-item/index";
|
|
8
8
|
import { DasButton as x } from "@das-fed/ui/packages/components/button/index";
|
|
9
|
-
import { DasMessage as
|
|
10
|
-
import { enterpriseright as E, superadminPortal as
|
|
11
|
-
import { encryption as
|
|
12
|
-
const M = E.get("/user/change-pwd", (
|
|
13
|
-
const w =
|
|
9
|
+
import { DasMessage as j } from "@das-fed/ui/packages/components/message/index";
|
|
10
|
+
import { enterpriseright as E, superadminPortal as H, systemConfiguration as J } from "@das-fed/utils/api-services/modules";
|
|
11
|
+
import { encryption as y } from "@das-fed/utils/atob";
|
|
12
|
+
const M = E.get("/user/change-pwd", (s) => (s.ignoreErrorMessage = !0, s)), A = E.put("/user/change-pwd", (s) => (s.csrf = !0, s)), K = H.put("/change-pwd"), Q = J.get("/visitor/login/with-default"), X = (s, c) => {
|
|
13
|
+
const w = R(!1), m = W(), d = R({
|
|
14
14
|
prePwd: "",
|
|
15
15
|
pwd: "",
|
|
16
16
|
confirmPwd: ""
|
|
17
|
-
}), t =
|
|
17
|
+
}), t = F({
|
|
18
18
|
pwdStrongLimit: !1,
|
|
19
19
|
// 是否开启密码强度校验
|
|
20
20
|
pwdRequireLength: !1,
|
|
@@ -29,113 +29,113 @@ const M = E.get("/user/change-pwd", (a) => (a.ignoreErrorMessage = !0, a)), A =
|
|
|
29
29
|
// 密码要求包含大写字母
|
|
30
30
|
pwdRequireSpecialCharacter: !1
|
|
31
31
|
// 密码要求特殊字符
|
|
32
|
-
}),
|
|
32
|
+
}), L = async () => {
|
|
33
33
|
const [n, e] = await Q().run();
|
|
34
34
|
n || (t.pwdStrongLimit = e.pwdStrongLimit, t.pwdRequireLength = e.pwdRequireLength, t.pwdMinLength = e.pwdMinLength, t.pwdRequireNum = e.pwdRequireNum, t.pwdRequireLowercaseLetters = e.pwdRequireLowercaseLetters, t.pwdRequireUppercaseLetters = e.pwdRequireUppercaseLetters, t.pwdRequireSpecialCharacter = e.pwdRequireSpecialCharacter);
|
|
35
35
|
}, p = (n) => {
|
|
36
36
|
let e = "";
|
|
37
37
|
return t.pwdStrongLimit ? e = k(n) : e = u(n), e;
|
|
38
|
-
},
|
|
38
|
+
}, N = (n, e, o) => {
|
|
39
39
|
var i;
|
|
40
|
-
if (!e) return o(new Error(
|
|
41
|
-
if (
|
|
40
|
+
if (!e) return o(new Error(a("新密码不能为空")));
|
|
41
|
+
if (s.mainApp === "enterpriseadmin") {
|
|
42
42
|
const g = p(e);
|
|
43
43
|
if ((i = m.value) == null || i.validateField("confirmPwd", () => null), g) return o(new Error(g));
|
|
44
44
|
}
|
|
45
45
|
o();
|
|
46
|
-
},
|
|
47
|
-
if (!e) return o(new Error(
|
|
48
|
-
if (d.value.pwd !== e) return o(new Error(
|
|
49
|
-
if (
|
|
46
|
+
}, b = (n, e, o) => {
|
|
47
|
+
if (!e) return o(new Error(a("确认密码不能为空")));
|
|
48
|
+
if (d.value.pwd !== e) return o(new Error(a("与新密码不一致")));
|
|
49
|
+
if (s.mainApp === "enterpriseadmin") {
|
|
50
50
|
const i = p(e);
|
|
51
51
|
if (i) return o(new Error(i));
|
|
52
52
|
}
|
|
53
53
|
o();
|
|
54
|
-
},
|
|
54
|
+
}, P = R({
|
|
55
55
|
prePwd: [
|
|
56
56
|
{
|
|
57
|
-
required: !
|
|
58
|
-
message:
|
|
57
|
+
required: !s.forceUpdate,
|
|
58
|
+
message: a("旧密码不能为空"),
|
|
59
59
|
trigger: "blur"
|
|
60
60
|
}
|
|
61
61
|
],
|
|
62
|
-
pwd: [{ validator:
|
|
63
|
-
confirmPwd: [{ validator:
|
|
64
|
-
}), f =
|
|
65
|
-
|
|
62
|
+
pwd: [{ validator: N, trigger: "blur" }],
|
|
63
|
+
confirmPwd: [{ validator: b, trigger: "blur" }]
|
|
64
|
+
}), f = R(""), q = (n) => {
|
|
65
|
+
s.mainApp === "enterpriseadmin" && L(), w.value = !0, f.value = n || "";
|
|
66
66
|
}, l = (n = !1) => {
|
|
67
67
|
var e;
|
|
68
68
|
d.value.prePwd = "", d.value.pwd = "", d.value.confirmPwd = "", (e = m.value) == null || e.resetField(), w.value = !1, n || c("onCancel");
|
|
69
69
|
}, u = (n) => {
|
|
70
|
-
const e =
|
|
70
|
+
const e = a("das-ui-business-components-change-pwd-passwordFormatRule");
|
|
71
71
|
return /^(?=.*[a-zA-Z])(?=.*[\d])(?=.*[\w])[a-zA-Z\d\W_]{8,20}$/.test(n) ? "" : e;
|
|
72
72
|
}, k = (n) => {
|
|
73
73
|
let e = "", o = !1;
|
|
74
|
-
e +=
|
|
74
|
+
e += a("das-ui-business-components-change-pwd-limit-number", t.pwdMinLength);
|
|
75
75
|
const i = `\\S{${t.pwdMinLength},}`;
|
|
76
|
-
return new RegExp(i).test(n) || (o = !0), (t.pwdRequireNum || t.pwdRequireLowercaseLetters || t.pwdRequireUppercaseLetters || t.pwdRequireSpecialCharacter) && (e +=
|
|
76
|
+
return new RegExp(i).test(n) || (o = !0), (t.pwdRequireNum || t.pwdRequireLowercaseLetters || t.pwdRequireUppercaseLetters || t.pwdRequireSpecialCharacter) && (e += a("必须包含")), t.pwdRequireNum && (e += a("数字,"), /\d+/.test(n) || (o = !0)), t.pwdRequireLowercaseLetters && (e += a("小写字母,"), /[a-z]+/.test(n) || (o = !0)), t.pwdRequireUppercaseLetters && (e += a("大写字母,"), /[A-Z]+/.test(n) || (o = !0)), t.pwdRequireSpecialCharacter && (e += a("符号,"), /[`~!@#$%^&*()_\-+=<>?:"{}|,.\/;'\\[\]·~]+/.test(n) || (o = !0)), o ? e.slice(0, -1) : "";
|
|
77
77
|
};
|
|
78
78
|
return {
|
|
79
79
|
visible: w,
|
|
80
80
|
formData: d,
|
|
81
81
|
form: m,
|
|
82
|
-
rules:
|
|
83
|
-
openDialog:
|
|
82
|
+
rules: P,
|
|
83
|
+
openDialog: q,
|
|
84
84
|
onCancel: l,
|
|
85
85
|
onConfirm: async () => {
|
|
86
86
|
var n;
|
|
87
87
|
(n = m.value) == null || n.validate(async (e) => {
|
|
88
88
|
if (e) {
|
|
89
89
|
const o = {
|
|
90
|
-
pwd:
|
|
91
|
-
confirmPwd:
|
|
90
|
+
pwd: y(d.value.pwd),
|
|
91
|
+
confirmPwd: y(d.value.confirmPwd)
|
|
92
92
|
};
|
|
93
|
-
if (
|
|
93
|
+
if (s.mainApp === "enterpriseadmin" && s.forceUpdate) {
|
|
94
94
|
let i = {};
|
|
95
95
|
f.value && (i = { headers: { Authorization: f.value } }), await M({}, i).run();
|
|
96
96
|
const [g] = await A({}, i).run(o);
|
|
97
97
|
if (g) return;
|
|
98
|
-
} else if (o.prePwd =
|
|
98
|
+
} else if (o.prePwd = y(d.value.prePwd), s.mainApp === "enterpriseadmin") {
|
|
99
99
|
await M().run();
|
|
100
100
|
const [i] = await A().run(o);
|
|
101
101
|
if (i) return;
|
|
102
102
|
} else {
|
|
103
|
-
const [i] = await
|
|
103
|
+
const [i] = await K().run(o);
|
|
104
104
|
if (i) return;
|
|
105
105
|
}
|
|
106
|
-
l(!0),
|
|
106
|
+
l(!0), j.success(a("修改密码成功!")), c("onConfirm");
|
|
107
107
|
}
|
|
108
108
|
});
|
|
109
109
|
}
|
|
110
110
|
};
|
|
111
111
|
}, Y = { class: "dialog-content" }, ee = {
|
|
112
112
|
name: "ChangePwd"
|
|
113
|
-
}, re = /* @__PURE__ */
|
|
113
|
+
}, re = /* @__PURE__ */ T({
|
|
114
114
|
...ee,
|
|
115
115
|
props: {
|
|
116
116
|
mainApp: { default: "enterpriseadmin" },
|
|
117
117
|
forceUpdate: { type: Boolean }
|
|
118
118
|
},
|
|
119
119
|
emits: ["onCancel", "onConfirm"],
|
|
120
|
-
setup(
|
|
121
|
-
const m =
|
|
120
|
+
setup(s, { expose: c, emit: w }) {
|
|
121
|
+
const m = s, d = w, { visible: t, form: L, formData: p, rules: N, openDialog: b, onCancel: P, onConfirm: f } = X(m, d);
|
|
122
122
|
return c({
|
|
123
|
-
openDialog:
|
|
124
|
-
}), (
|
|
125
|
-
title: r(
|
|
123
|
+
openDialog: b
|
|
124
|
+
}), (q, l) => (z(), V(r(Z), {
|
|
125
|
+
title: r(a)("修改密码"),
|
|
126
126
|
width: "460px",
|
|
127
127
|
height: "360px",
|
|
128
128
|
bodyStyle: { padding: 0 },
|
|
129
129
|
modelValue: r(t),
|
|
130
|
-
"onUpdate:modelValue": l[3] || (l[3] = (u) =>
|
|
131
|
-
"before-close": r(
|
|
130
|
+
"onUpdate:modelValue": l[3] || (l[3] = (u) => $(t) ? t.value = u : null),
|
|
131
|
+
"before-close": r(P)
|
|
132
132
|
}, {
|
|
133
133
|
footer: h(() => [
|
|
134
134
|
D("div", null, [
|
|
135
135
|
C(r(x), {
|
|
136
136
|
size: "middle",
|
|
137
137
|
style: { "margin-right": "12px" },
|
|
138
|
-
onClick: r(
|
|
138
|
+
onClick: r(P)
|
|
139
139
|
}, {
|
|
140
140
|
default: h(() => [
|
|
141
141
|
U(
|
|
@@ -168,43 +168,43 @@ const M = E.get("/user/change-pwd", (a) => (a.ignoreErrorMessage = !0, a)), A =
|
|
|
168
168
|
D("div", Y, [
|
|
169
169
|
C(r(G), {
|
|
170
170
|
ref_key: "form",
|
|
171
|
-
ref:
|
|
172
|
-
rules: r(
|
|
171
|
+
ref: L,
|
|
172
|
+
rules: r(N),
|
|
173
173
|
style: { "overflow-x": "hidden !important" }
|
|
174
174
|
}, {
|
|
175
175
|
default: h(() => [
|
|
176
|
-
|
|
176
|
+
q.forceUpdate ? B("v-if", !0) : (z(), V(r(v), {
|
|
177
177
|
key: 0,
|
|
178
178
|
type: "password",
|
|
179
179
|
isTitle: !1,
|
|
180
180
|
autocomplete: "new-password",
|
|
181
181
|
"show-password": "",
|
|
182
182
|
prop: "prePwd",
|
|
183
|
-
label: r(
|
|
183
|
+
label: r(a)("旧密码"),
|
|
184
184
|
modelValue: r(p).prePwd,
|
|
185
185
|
"onUpdate:modelValue": l[0] || (l[0] = (u) => r(p).prePwd = u),
|
|
186
186
|
modelModifiers: { trim: !0 },
|
|
187
187
|
required: ""
|
|
188
188
|
}, null, 8, ["label", "modelValue"])),
|
|
189
|
-
C(r(
|
|
189
|
+
C(r(v), {
|
|
190
190
|
type: "password",
|
|
191
191
|
isTitle: !1,
|
|
192
192
|
autocomplete: "new-password",
|
|
193
193
|
"show-password": "",
|
|
194
194
|
prop: "pwd",
|
|
195
|
-
label: r(
|
|
195
|
+
label: r(a)("新密码"),
|
|
196
196
|
modelValue: r(p).pwd,
|
|
197
197
|
"onUpdate:modelValue": l[1] || (l[1] = (u) => r(p).pwd = u),
|
|
198
198
|
modelModifiers: { trim: !0 },
|
|
199
199
|
required: ""
|
|
200
200
|
}, null, 8, ["label", "modelValue"]),
|
|
201
|
-
C(r(
|
|
201
|
+
C(r(v), {
|
|
202
202
|
type: "password",
|
|
203
203
|
isTitle: !1,
|
|
204
204
|
autocomplete: "new-password",
|
|
205
205
|
"show-password": "",
|
|
206
206
|
prop: "confirmPwd",
|
|
207
|
-
label: r(
|
|
207
|
+
label: r(a)("确认新密码"),
|
|
208
208
|
modelValue: r(p).confirmPwd,
|
|
209
209
|
"onUpdate:modelValue": l[2] || (l[2] = (u) => r(p).confirmPwd = u),
|
|
210
210
|
modelModifiers: { trim: !0 },
|
|
@@ -220,8 +220,8 @@ const M = E.get("/user/change-pwd", (a) => (a.ignoreErrorMessage = !0, a)), A =
|
|
|
220
220
|
/* STABLE */
|
|
221
221
|
}, 8, ["title", "modelValue", "before-close"]));
|
|
222
222
|
}
|
|
223
|
-
}), te = (
|
|
224
|
-
const w =
|
|
223
|
+
}), te = (s, c) => {
|
|
224
|
+
const w = s.__vccOpts || s;
|
|
225
225
|
for (const [m, d] of c)
|
|
226
226
|
w[m] = d;
|
|
227
227
|
return w;
|
|
@@ -230,25 +230,26 @@ const M = E.get("/user/change-pwd", (a) => (a.ignoreErrorMessage = !0, a)), A =
|
|
|
230
230
|
确认密码不能为空: { "zh-CN": "确认密码不能为空", en: "Confirm password cannot be empty" },
|
|
231
231
|
与新密码不一致: { "zh-CN": "与新密码不一致", en: "Doesn't match the new password" },
|
|
232
232
|
旧密码不能为空: { "zh-CN": "旧密码不能为空", en: "Old password cannot be empty" },
|
|
233
|
-
个字符: { "zh-CN": "个字符", en: "Characters" },
|
|
234
|
-
至少包含数字和字母: { "zh-CN": "至少包含数字和字母", en: "Must contain at least numbers and letters" },
|
|
235
|
-
不包含空格: { "zh-CN": "不包含空格", en: "Cannot contain spaces" },
|
|
236
233
|
必须包含: { "zh-CN": "必须包含", en: "Must contain" },
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
234
|
+
"数字,": { "zh-CN": "数字,", en: "Number," },
|
|
235
|
+
"小写字母,": { "zh-CN": "小写字母,", en: "Lowercase letter," },
|
|
236
|
+
"大写字母,": { "zh-CN": "大写字母,", en: "Uppercase letter," },
|
|
237
|
+
"符号,": { "zh-CN": "符号,", en: "Symbol," },
|
|
238
|
+
"修改密码成功!": { "zh-CN": "修改密码成功!", en: "Password changed successfully!" },
|
|
242
239
|
修改密码: { "zh-CN": "修改密码", en: "Change Password" },
|
|
243
240
|
旧密码: { "zh-CN": "旧密码", en: "Old Password" },
|
|
244
241
|
新密码: { "zh-CN": "新密码", en: "New Password" },
|
|
245
242
|
确认新密码: { "zh-CN": "确认新密码", en: "Confirm New Password" },
|
|
246
243
|
取消: { "zh-CN": "取消", en: "Cancel" },
|
|
247
|
-
确定: { "zh-CN": "确定", en: "
|
|
248
|
-
"das-ui-business-components-change-pwd-limit-number": { "zh-CN": "$0~20个字符,", en: "$0~20 characters," }
|
|
244
|
+
确定: { "zh-CN": "确定", en: "Confirm" },
|
|
245
|
+
"das-ui-business-components-change-pwd-limit-number": { "zh-CN": "$0~20个字符,", en: "$0~20 characters," },
|
|
246
|
+
"das-ui-business-components-change-pwd-passwordFormatRule": {
|
|
247
|
+
"zh-CN": "8~20个字符,至少包含数字和字母,不包含空格",
|
|
248
|
+
en: "8~20 characters, at least including numbers and letters, and no spaces are allowed"
|
|
249
|
+
}
|
|
249
250
|
};
|
|
250
251
|
O(oe);
|
|
251
|
-
const ge = I(ne), he = () =>
|
|
252
|
+
const ge = I(ne), he = () => R(null);
|
|
252
253
|
export {
|
|
253
254
|
ge as DasChangePwd,
|
|
254
255
|
he as DasChangePwdRef
|
|
Binary file
|
|
@@ -763,5 +763,177 @@ declare const _default: {
|
|
|
763
763
|
'zh-CN': string;
|
|
764
764
|
en: string;
|
|
765
765
|
};
|
|
766
|
+
'\u5404\u4E1A\u52A1\u7ED1\u5B9A\u8BBE\u5907\u540E\uFF0C\u624D\u80FD\u5C55\u793A\u5185\u5BB9': {
|
|
767
|
+
'zh-CN': string;
|
|
768
|
+
en: string;
|
|
769
|
+
};
|
|
770
|
+
批量处理: {
|
|
771
|
+
'zh-CN': string;
|
|
772
|
+
en: string;
|
|
773
|
+
};
|
|
774
|
+
'\u5FC5\u586B\uFF0C\u6700\u591A50\u4E2A\u5B57\u7B26/\u6C49\u5B57': {
|
|
775
|
+
'zh-CN': string;
|
|
776
|
+
en: string;
|
|
777
|
+
};
|
|
778
|
+
'\u5FC5\u586B\uFF0C\u6700\u591A20\u4E2A\u6C49\u5B57/\u5B57\u7B26': {
|
|
779
|
+
'zh-CN': string;
|
|
780
|
+
en: string;
|
|
781
|
+
};
|
|
782
|
+
'\u5FC5\u586B\uFF0C\u8BF7\u8F93\u51651~999\u4E4B\u95F4\u7684\u6B63\u6574\u6570': {
|
|
783
|
+
'zh-CN': string;
|
|
784
|
+
en: string;
|
|
785
|
+
};
|
|
786
|
+
'\u544A\u8B66\u5904\u7406\u5931\u8D25\uFF0C\u544A\u8B66\u5DF2\u5165\u5386\u53F2\u5E93\u4E0D\u53EF\u5904\u7406': {
|
|
787
|
+
'zh-CN': string;
|
|
788
|
+
en: string;
|
|
789
|
+
};
|
|
790
|
+
'\u90E8\u5206\u544A\u8B66\u5DF2\u5165\u5386\u53F2\u5E93\uFF0C\u4E0D\u505A\u5904\u7406': {
|
|
791
|
+
'zh-CN': string;
|
|
792
|
+
en: string;
|
|
793
|
+
};
|
|
794
|
+
'\u544A\u8B66\u5747\u5DF2\u5165\u5386\u53F2\u5E93\uFF0C\u4E0D\u4F5C\u5904\u7406': {
|
|
795
|
+
'zh-CN': string;
|
|
796
|
+
en: string;
|
|
797
|
+
};
|
|
798
|
+
'\u544A\u8B66\u5185\u5BB9\uFF1A': {
|
|
799
|
+
'zh-CN': string;
|
|
800
|
+
en: string;
|
|
801
|
+
};
|
|
802
|
+
'\u544A\u8B66\u65F6\u95F4\uFF1A': {
|
|
803
|
+
'zh-CN': string;
|
|
804
|
+
en: string;
|
|
805
|
+
};
|
|
806
|
+
'\u544A\u8B66\u503C\uFF1A': {
|
|
807
|
+
'zh-CN': string;
|
|
808
|
+
en: string;
|
|
809
|
+
};
|
|
810
|
+
'\u544A\u8B66\u5BF9\u8C61\uFF1A': {
|
|
811
|
+
'zh-CN': string;
|
|
812
|
+
en: string;
|
|
813
|
+
};
|
|
814
|
+
'\u544A\u8B66\u7B49\u7EA7\uFF1A': {
|
|
815
|
+
'zh-CN': string;
|
|
816
|
+
en: string;
|
|
817
|
+
};
|
|
818
|
+
'\u544A\u8B66\u72B6\u6001\uFF1A': {
|
|
819
|
+
'zh-CN': string;
|
|
820
|
+
en: string;
|
|
821
|
+
};
|
|
822
|
+
'\u6062\u590D\u503C\uFF1A': {
|
|
823
|
+
'zh-CN': string;
|
|
824
|
+
en: string;
|
|
825
|
+
};
|
|
826
|
+
'\u5904\u7406\u72B6\u6001\uFF1A': {
|
|
827
|
+
'zh-CN': string;
|
|
828
|
+
en: string;
|
|
829
|
+
};
|
|
830
|
+
'\u6062\u590D\u65F6\u95F4\uFF1A': {
|
|
831
|
+
'zh-CN': string;
|
|
832
|
+
en: string;
|
|
833
|
+
};
|
|
834
|
+
'\u544A\u8B66\u89C4\u5219\uFF1A': {
|
|
835
|
+
'zh-CN': string;
|
|
836
|
+
en: string;
|
|
837
|
+
};
|
|
838
|
+
'\u6240\u5C5E\u5E94\u7528\uFF1A': {
|
|
839
|
+
'zh-CN': string;
|
|
840
|
+
en: string;
|
|
841
|
+
};
|
|
842
|
+
处理信息: {
|
|
843
|
+
'zh-CN': string;
|
|
844
|
+
en: string;
|
|
845
|
+
};
|
|
846
|
+
'\u5904\u7406\u4EBA\uFF1A': {
|
|
847
|
+
'zh-CN': string;
|
|
848
|
+
en: string;
|
|
849
|
+
};
|
|
850
|
+
'\u5904\u7406\u65F6\u95F4\uFF1A': {
|
|
851
|
+
'zh-CN': string;
|
|
852
|
+
en: string;
|
|
853
|
+
};
|
|
854
|
+
'\u5904\u7406\u7C7B\u578B\uFF1A': {
|
|
855
|
+
'zh-CN': string;
|
|
856
|
+
en: string;
|
|
857
|
+
};
|
|
858
|
+
'\u544A\u8B66\u539F\u56E0\uFF1A': {
|
|
859
|
+
'zh-CN': string;
|
|
860
|
+
en: string;
|
|
861
|
+
};
|
|
862
|
+
'\u5904\u7406\u65B9\u6848\uFF1A': {
|
|
863
|
+
'zh-CN': string;
|
|
864
|
+
en: string;
|
|
865
|
+
};
|
|
866
|
+
'\u5DE5\u5355\u7F16\u7801\uFF1A': {
|
|
867
|
+
'zh-CN': string;
|
|
868
|
+
en: string;
|
|
869
|
+
};
|
|
870
|
+
'\u4E8B\u4EF6\u7F16\u7801\uFF1A': {
|
|
871
|
+
'zh-CN': string;
|
|
872
|
+
en: string;
|
|
873
|
+
};
|
|
874
|
+
'\u5907\u6CE8\uFF1A': {
|
|
875
|
+
'zh-CN': string;
|
|
876
|
+
en: string;
|
|
877
|
+
};
|
|
878
|
+
'\u64CD\u4F5C\u65F6\u95F4\uFF1A': {
|
|
879
|
+
'zh-CN': string;
|
|
880
|
+
en: string;
|
|
881
|
+
};
|
|
882
|
+
'\u64CD\u4F5C\u5185\u5BB9\uFF1A': {
|
|
883
|
+
'zh-CN': string;
|
|
884
|
+
en: string;
|
|
885
|
+
};
|
|
886
|
+
'\u64CD\u4F5C\u6765\u6E90\uFF1A': {
|
|
887
|
+
'zh-CN': string;
|
|
888
|
+
en: string;
|
|
889
|
+
};
|
|
890
|
+
'\u64CD\u4F5C\u7528\u6237\uFF1A': {
|
|
891
|
+
'zh-CN': string;
|
|
892
|
+
en: string;
|
|
893
|
+
};
|
|
894
|
+
'\u64CD\u4F5CIP\uFF1A': {
|
|
895
|
+
'zh-CN': string;
|
|
896
|
+
en: string;
|
|
897
|
+
};
|
|
898
|
+
'\u5931\u8D25\u539F\u56E0\uFF1A': {
|
|
899
|
+
'zh-CN': string;
|
|
900
|
+
en: string;
|
|
901
|
+
};
|
|
902
|
+
'\u8D85\u51FA\u6B63\u5E38\u8303\u56F4\u503C\uFF1A \u4E0D\u80FD\u5927\u4E8E': {
|
|
903
|
+
'zh-CN': string;
|
|
904
|
+
en: string;
|
|
905
|
+
};
|
|
906
|
+
'\u8D85\u51FA\u6B63\u5E38\u8303\u56F4\u503C\uFF1A \u4E0D\u80FD\u5C0F\u4E8E': {
|
|
907
|
+
'zh-CN': string;
|
|
908
|
+
en: string;
|
|
909
|
+
};
|
|
910
|
+
'\u8D85\u51FA\u6B63\u5E38\u8303\u56F4\u503C\uFF1A': {
|
|
911
|
+
'zh-CN': string;
|
|
912
|
+
en: string;
|
|
913
|
+
};
|
|
914
|
+
'\u6267\u884C\u65F6\u523B\uFF1A': {
|
|
915
|
+
'zh-CN': string;
|
|
916
|
+
en: string;
|
|
917
|
+
};
|
|
918
|
+
'\u6240\u5C5E\u7B56\u7565\uFF1A': {
|
|
919
|
+
'zh-CN': string;
|
|
920
|
+
en: string;
|
|
921
|
+
};
|
|
922
|
+
'\u52A0\u8F7D\u4E2D...': {
|
|
923
|
+
'zh-CN': string;
|
|
924
|
+
en: string;
|
|
925
|
+
};
|
|
926
|
+
'\u805A\u7126-': {
|
|
927
|
+
'zh-CN': string;
|
|
928
|
+
en: string;
|
|
929
|
+
};
|
|
930
|
+
'\u805A\u7126+': {
|
|
931
|
+
'zh-CN': string;
|
|
932
|
+
en: string;
|
|
933
|
+
};
|
|
934
|
+
'\u5FC5\u586B\uFF0C\u6700\u591A10\u4E2A\u5B57\u7B26': {
|
|
935
|
+
'zh-CN': string;
|
|
936
|
+
en: string;
|
|
937
|
+
};
|
|
766
938
|
};
|
|
767
939
|
export default _default;
|