@das-fed/ui 6.4.0-beta.20 → 6.4.0-beta.21
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 +2 -1
- package/package.json +6 -6
- package/packages/business-components/app-container/index.js +97 -68
- package/packages/business-components/app-container/index.js.gz +0 -0
- package/packages/business-components/app-container/style.css +1 -1
- package/packages/business-components/app-container/style.css.gz +0 -0
- package/packages/business-components/change-pwd/index.js +12 -8
- package/packages/business-components/change-pwd/index.js.gz +0 -0
- package/packages/business-components/currency-page/index.js +1 -1
- package/packages/business-components/currency-page/index.js.gz +0 -0
- package/packages/business-components/device-panel/i18n/index.d.ts +24 -0
- package/packages/business-components/device-panel/index.js +16076 -14623
- 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/dataTrends/components/attribute.vue.d.ts +2 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/dataTrends/components/barChart.vue.d.ts +5 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/dataTrends/components/lineChart.vue.d.ts +5 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/dataTrends/index.vue.d.ts +11 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/hooks/use-data-Trends.d.ts +7 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/dataTrends/components/attribute.vue.d.ts +2 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/dataTrends/components/barChart.vue.d.ts +5 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/dataTrends/components/lineChart.vue.d.ts +5 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/dataTrends/index.vue.d.ts +11 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/hooks/use-data-Trends.d.ts +7 -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 +75 -75
- package/packages/business-components/export-button/index.js.gz +0 -0
- package/packages/business-components/import-button/hooks/useImport.d.ts +12 -13
- package/packages/business-components/import-button/i18n/index.d.ts +5 -5
- package/packages/business-components/import-button/index.js +162 -160
- package/packages/business-components/import-button/index.js.gz +0 -0
- package/packages/business-components/import-button/style.css +1 -1
- package/packages/business-components/model-table-dialog/index.js +100 -100
- package/packages/business-components/model-table-dialog/index.js.gz +0 -0
- package/packages/business-components/model-table-dialog/src/ModelTable.vue.d.ts +9 -6
- package/packages/business-components/payment/index.d.ts +5 -1
- package/packages/business-components/payment/index.js +102 -99
- package/packages/business-components/payment/index.js.gz +0 -0
- package/packages/business-components/payment/style.css +1 -1
- package/packages/business-components/process-configuration/i18n/index.d.ts +0 -10
- package/packages/business-components/process-configuration/index.d.ts +2 -0
- package/packages/business-components/process-configuration/index.js +55 -60
- package/packages/business-components/process-configuration/index.js.gz +0 -0
- package/packages/business-components/process-configuration/src/index.vue.d.ts +2 -0
- package/packages/business-components/process-configuration/src/type.d.ts +3 -0
- package/packages/business-components/process-configuration/style.css +1 -1
- package/packages/business-components/process-configuration/style.css.gz +0 -0
- package/packages/business-components/process-form/index.js +1 -1
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-search-form/index.js +2 -2
- package/packages/business-components/process-search-form/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/index.js +98 -98
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/components/autocomplete/index.js +23 -24
- package/packages/components/autocomplete/index.js.gz +0 -0
- package/packages/components/autocomplete/src/index.vue.d.ts +12 -7
- package/packages/components/autocomplete/style.css +1 -1
- package/packages/components/autocomplete/style.css.gz +0 -0
- package/packages/components/checkbox/index.js +149 -137
- package/packages/components/checkbox/index.js.gz +0 -0
- package/packages/components/checkbox/style.css +1 -1
- package/packages/components/checkbox/style.css.gz +0 -0
- package/packages/components/edit-table/index.d.ts +3 -3
- package/packages/components/edit-table/index.js +1254 -1251
- package/packages/components/edit-table/index.js.gz +0 -0
- package/packages/components/edit-table/src/index.vue.d.ts +1 -1
- package/packages/components/image-upload/index.js +1 -1
- package/packages/components/image-upload/index.js.gz +0 -0
- package/packages/components/image-viewer/index.js +77 -78
- package/packages/components/image-viewer/index.js.gz +0 -0
- package/packages/components/live-player/index.js +142 -142
- package/packages/components/live-player/index.js.gz +0 -0
- package/packages/components/map/index.js +34 -34
- package/packages/components/map/index.js.gz +0 -0
- package/packages/components/pagination/index.js +101 -98
- package/packages/components/pagination/index.js.gz +0 -0
- package/packages/components/pagination/style.css +1 -1
- package/packages/components/pagination/style.css.gz +0 -0
- package/packages/components/search-form/index.js +49 -49
- 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/select/index.js +257 -246
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select/style.css +1 -1
- package/packages/components/select/style.css.gz +0 -0
- package/packages/components/table/index.js +945 -951
- 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/tree/index.js +698 -701
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/tree/src/App.vue.d.ts +8 -7
- package/packages/components/tree/src/hooks/use-lazy-tree.d.ts +2 -2
- package/packages/components/tree/src/type.d.ts +7 -4
- package/packages/components/tree-select/index.js +50 -49
- package/packages/components/tree-select/index.js.gz +0 -0
- package/packages/components/tree-select/src/App.vue.d.ts +19 -12
- package/packages/components/tree-select/src/hooks/use-tree-select.d.ts +18 -12
- package/packages/components/tree-select/src/type.d.ts +3 -0
- package/packages/components/tree-v2/i18n/index.d.ts +5 -0
- package/packages/components/tree-v2/index.js +150 -149
- package/packages/components/tree-v2/index.js.gz +0 -0
- package/packages/components/image-viewer/i18n/index.d.ts +0 -2
package/esm-map.json
CHANGED
|
@@ -395,5 +395,6 @@
|
|
|
395
395
|
"DasPaymentRef": "/packages/business-components/payment/index",
|
|
396
396
|
"DasPayment": "/packages/business-components/payment/index",
|
|
397
397
|
"ProviderMenu": "/packages/business-components/payment/index",
|
|
398
|
-
"PayStatusCode": "/packages/business-components/payment/index"
|
|
398
|
+
"PayStatusCode": "/packages/business-components/payment/index",
|
|
399
|
+
"payAppid": "/packages/business-components/payment/index"
|
|
399
400
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@das-fed/ui",
|
|
3
|
-
"version": "6.4.0-beta.
|
|
3
|
+
"version": "6.4.0-beta.21",
|
|
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-beta.
|
|
29
|
+
"@das-fed/cli": "6.4.0-beta.21",
|
|
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-beta.
|
|
60
|
-
"@das-fed/utils": "6.4.0-beta.
|
|
61
|
-
"@das-fed/web": "6.4.0-beta.
|
|
59
|
+
"@das-fed/ui": "6.4.0-beta.21",
|
|
60
|
+
"@das-fed/utils": "6.4.0-beta.21",
|
|
61
|
+
"@das-fed/web": "6.4.0-beta.21",
|
|
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",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"element-resize-detector": "^1.2.4",
|
|
71
71
|
"lodash": "^4.17.21",
|
|
72
72
|
"lodash-es": "^4.17.21",
|
|
73
|
-
"mpegts.js": "
|
|
73
|
+
"mpegts.js": "1.7.3",
|
|
74
74
|
"nanoid": "3.2.0",
|
|
75
75
|
"overlayscrollbars": "2.6.1",
|
|
76
76
|
"pinia": "^2.1.7",
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/business-components/app-container/style.css';
|
|
2
|
-
import { withInstall as
|
|
3
|
-
import { defineComponent as
|
|
4
|
-
import { ElRow as
|
|
2
|
+
import { withInstall as q } from "@das-fed/utils/with-install/index";
|
|
3
|
+
import { defineComponent as B, computed as S, ref as O, watch as U, onMounted as V, withDirectives as f, openBlock as a, createElementBlock as l, normalizeClass as $, normalizeStyle as C, Fragment as h, renderList as u, createElementVNode as c, toDisplayString as g, createBlock as y, unref as i, withCtx as k, createTextVNode as w } from "vue";
|
|
4
|
+
import { ElRow as L, ElCol as M } from "element-plus";
|
|
5
5
|
import "element-plus/es/components/row/style/css";
|
|
6
6
|
import "element-plus/es/components/col/style/css";
|
|
7
|
-
import { DasEmpty as
|
|
8
|
-
import { vOverlay as
|
|
9
|
-
import { vDasTooltip as
|
|
10
|
-
import { pureImageSrc as
|
|
11
|
-
import { setThemeRule as
|
|
12
|
-
const
|
|
7
|
+
import { DasEmpty as P } from "@das-fed/ui/packages/components/empty/index";
|
|
8
|
+
import { vOverlay as G } from "@das-fed/ui/packages/components/overlay/index";
|
|
9
|
+
import { vDasTooltip as z } from "@das-fed/ui/packages/components/text-tooltip/index";
|
|
10
|
+
import { pureImageSrc as x } from "@das-fed/utils/pure-image-src";
|
|
11
|
+
import { setThemeRule as H } from "@das-fed/web/packages/theme/index";
|
|
12
|
+
const D = {
|
|
13
13
|
"--das-application-app-bg-color": {
|
|
14
14
|
kjl: "#2673DC",
|
|
15
15
|
cjb: "#343848",
|
|
@@ -20,102 +20,131 @@ const g = {
|
|
|
20
20
|
cjb: "#FFFFFF",
|
|
21
21
|
ssl: "#FFFFFF"
|
|
22
22
|
}
|
|
23
|
-
},
|
|
23
|
+
}, J = {
|
|
24
24
|
key: 0,
|
|
25
25
|
class: "application-list"
|
|
26
|
-
},
|
|
26
|
+
}, K = { class: "app-box" }, Q = { class: "cell cell-title" }, X = { class: "app-name" }, Y = { class: "cell app-list" }, Z = ["onClick"], b = ["src"], A = { class: "box-right" }, tt = { class: "name" }, et = { class: "describe" }, ot = /* @__PURE__ */ B({
|
|
27
27
|
__name: "index",
|
|
28
28
|
props: {
|
|
29
29
|
theme: { default: "default" },
|
|
30
30
|
appCategorys: { default: () => [] }
|
|
31
31
|
},
|
|
32
32
|
emits: ["open-app"],
|
|
33
|
-
setup(
|
|
34
|
-
const
|
|
35
|
-
const
|
|
36
|
-
return
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
33
|
+
setup(j, { emit: E }) {
|
|
34
|
+
const p = j, T = E, N = S(() => {
|
|
35
|
+
const t = {};
|
|
36
|
+
return p.theme === "default" || Object.keys(D).forEach((e) => {
|
|
37
|
+
var n;
|
|
38
|
+
t[e] = (n = D[e]) == null ? void 0 : n[p.theme];
|
|
39
|
+
}), t;
|
|
40
|
+
}), I = (t) => T("open-app", t), F = O("18px"), _ = (t, e) => {
|
|
41
|
+
if (!e) return;
|
|
42
|
+
if (e.offsetWidth > t) {
|
|
43
|
+
const s = parseInt(window.getComputedStyle(e).fontSize) - 1;
|
|
44
|
+
e.style.fontSize = s + "px", F.value = s + "px", _(t, e);
|
|
45
|
+
}
|
|
46
|
+
}, v = async () => {
|
|
47
|
+
await R();
|
|
48
|
+
const t = document.querySelectorAll(".application-content .cell-title .app-name")[0];
|
|
49
|
+
if (!t) return;
|
|
50
|
+
const e = parseInt(getComputedStyle(t).paddingRight) || 0, n = t.clientWidth - e;
|
|
51
|
+
let r = 0, s = null;
|
|
52
|
+
document.querySelectorAll(".application-content .cell-title .app-name > .text").forEach((d) => {
|
|
53
|
+
const m = d.offsetWidth;
|
|
54
|
+
m > r && (r = m, s = d);
|
|
55
|
+
}), _(n, s);
|
|
56
|
+
}, R = () => new Promise((t) => {
|
|
57
|
+
const e = () => {
|
|
58
|
+
const n = document.querySelectorAll(".application-content .cell-title .app-name");
|
|
59
|
+
if ((n == null ? void 0 : n.length) === p.appCategorys.length) return t();
|
|
60
|
+
setTimeout(() => e(), 50);
|
|
61
|
+
};
|
|
62
|
+
e();
|
|
63
|
+
}), W = S(() => p.appCategorys.map((t) => t.name));
|
|
64
|
+
return U(() => W.value, v, { deep: !0 }), V(v), (t, e) => f((a(), l(
|
|
41
65
|
"div",
|
|
42
66
|
{
|
|
43
|
-
class:
|
|
44
|
-
style:
|
|
67
|
+
class: $(["application-content", `theme-${t.theme}`]),
|
|
68
|
+
style: C(N.value)
|
|
45
69
|
},
|
|
46
70
|
[
|
|
47
|
-
|
|
48
|
-
(
|
|
49
|
-
|
|
71
|
+
t.appCategorys && t.appCategorys.length ? (a(), l("div", J, [
|
|
72
|
+
(a(!0), l(
|
|
73
|
+
h,
|
|
50
74
|
null,
|
|
51
|
-
|
|
52
|
-
(
|
|
53
|
-
key:
|
|
75
|
+
u(t.appCategorys, (n, r) => (a(), l("div", K, [
|
|
76
|
+
(a(), l("div", {
|
|
77
|
+
key: r,
|
|
54
78
|
class: "row"
|
|
55
79
|
}, [
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
80
|
+
c("div", Q, [
|
|
81
|
+
c("div", X, [
|
|
82
|
+
c(
|
|
83
|
+
"span",
|
|
84
|
+
{
|
|
85
|
+
class: "text",
|
|
86
|
+
style: C({ fontSize: F.value })
|
|
87
|
+
},
|
|
88
|
+
g(n.name),
|
|
89
|
+
5
|
|
90
|
+
/* TEXT, STYLE */
|
|
91
|
+
)
|
|
92
|
+
])
|
|
64
93
|
]),
|
|
65
|
-
|
|
66
|
-
(
|
|
67
|
-
|
|
94
|
+
c("div", Y, [
|
|
95
|
+
(a(!0), l(
|
|
96
|
+
h,
|
|
68
97
|
null,
|
|
69
|
-
n
|
|
70
|
-
|
|
98
|
+
u(n.apps, (s) => (a(), y(
|
|
99
|
+
i(L),
|
|
71
100
|
{
|
|
72
101
|
class: "app-row",
|
|
73
102
|
gutter: 20
|
|
74
103
|
},
|
|
75
104
|
{
|
|
76
|
-
default:
|
|
77
|
-
(
|
|
78
|
-
|
|
105
|
+
default: k(() => [
|
|
106
|
+
(a(!0), l(
|
|
107
|
+
h,
|
|
79
108
|
null,
|
|
80
|
-
|
|
81
|
-
|
|
109
|
+
u(s, (o, d) => (a(), y(
|
|
110
|
+
i(M),
|
|
82
111
|
{
|
|
83
112
|
class: "app-col",
|
|
84
|
-
key:
|
|
113
|
+
key: d,
|
|
85
114
|
span: 6
|
|
86
115
|
},
|
|
87
116
|
{
|
|
88
|
-
default:
|
|
89
|
-
|
|
117
|
+
default: k(() => [
|
|
118
|
+
c("div", {
|
|
90
119
|
class: "sub-app",
|
|
91
|
-
onClick: (
|
|
120
|
+
onClick: (m) => I(o)
|
|
92
121
|
}, [
|
|
93
|
-
|
|
122
|
+
c("img", {
|
|
94
123
|
class: "img",
|
|
95
|
-
src:
|
|
124
|
+
src: o != null && o.iconDomain ? o.iconDomain + i(x)(o == null ? void 0 : o.iconUrl) : i(x)(o == null ? void 0 : o.iconUrl),
|
|
96
125
|
alt: ""
|
|
97
|
-
}, null, 8,
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
126
|
+
}, null, 8, b),
|
|
127
|
+
c("div", A, [
|
|
128
|
+
f((a(), l("div", tt, [
|
|
129
|
+
w(
|
|
130
|
+
g(o.name),
|
|
102
131
|
1
|
|
103
132
|
/* TEXT */
|
|
104
133
|
)
|
|
105
134
|
])), [
|
|
106
|
-
[
|
|
135
|
+
[i(z)]
|
|
107
136
|
]),
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
137
|
+
f((a(), l("div", et, [
|
|
138
|
+
w(
|
|
139
|
+
g(o.description),
|
|
111
140
|
1
|
|
112
141
|
/* TEXT */
|
|
113
142
|
)
|
|
114
143
|
])), [
|
|
115
|
-
[
|
|
144
|
+
[i(z)]
|
|
116
145
|
])
|
|
117
146
|
])
|
|
118
|
-
], 8,
|
|
147
|
+
], 8, Z)
|
|
119
148
|
]),
|
|
120
149
|
_: 2
|
|
121
150
|
/* DYNAMIC */
|
|
@@ -142,7 +171,7 @@ const g = {
|
|
|
142
171
|
256
|
|
143
172
|
/* UNKEYED_FRAGMENT */
|
|
144
173
|
))
|
|
145
|
-
])) : (
|
|
174
|
+
])) : (a(), y(i(P), {
|
|
146
175
|
key: 1,
|
|
147
176
|
size: "large"
|
|
148
177
|
}))
|
|
@@ -150,18 +179,18 @@ const g = {
|
|
|
150
179
|
6
|
|
151
180
|
/* CLASS, STYLE */
|
|
152
181
|
)), [
|
|
153
|
-
[
|
|
182
|
+
[i(G)]
|
|
154
183
|
]);
|
|
155
184
|
}
|
|
156
|
-
}),
|
|
185
|
+
}), nt = {
|
|
157
186
|
"--das-application-app-bg-color": "#343848",
|
|
158
187
|
"--das-application-app-color": "#ffffff",
|
|
159
188
|
"--das-application-subapp-bg-color": "#ffffff",
|
|
160
189
|
"--das-application-subapp-name-color": "#212121",
|
|
161
190
|
"--das-application-subapp-describe-color": "#999999"
|
|
162
191
|
};
|
|
163
|
-
|
|
164
|
-
const
|
|
192
|
+
H(nt);
|
|
193
|
+
const ht = q(ot);
|
|
165
194
|
export {
|
|
166
|
-
|
|
195
|
+
ht as DasAppContainer
|
|
167
196
|
};
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.application-content{position:relative;width:100%;height:100%;padding:30px 20px;box-sizing:border-box}.application-content .application-list{width:100%;display:table}.application-content .application-list .app-box{width:100%;margin-bottom:20px;display:table}.application-content .application-list .app-box .row{display:table-row}.application-content .application-list .app-box .row .cell{display:table-cell}.application-content .application-list .app-box .row .cell.cell-title{width:110px;font-size:0;vertical-align:middle;color:var(--das-application-app-color);background-color:var(--das-application-app-bg-color);position:relative}.application-content .application-list .app-box .row .cell.cell-title .app-name{width:110px;height:100%;font-size:18px;text-align:center;box-sizing:border-box;padding:25px 8px
|
|
1
|
+
.application-content{position:relative;width:100%;height:100%;padding:30px 20px;box-sizing:border-box}.application-content .application-list{width:100%;display:table}.application-content .application-list .app-box{width:100%;margin-bottom:20px;display:table}.application-content .application-list .app-box .row{display:table-row}.application-content .application-list .app-box .row .cell{display:table-cell}.application-content .application-list .app-box .row .cell.cell-title{width:110px;font-size:0;vertical-align:middle;color:var(--das-application-app-color);background-color:var(--das-application-app-bg-color);position:relative}.application-content .application-list .app-box .row .cell.cell-title .app-name{width:110px;height:100%;font-size:18px;text-align:center;box-sizing:border-box;padding:25px 8px}.application-content .application-list .app-box .row .cell.app-list{padding-left:20px;box-sizing:border-box;width:calc(100% - 110px)}.application-content .application-list .app-box .row .cell.app-list .app-row:not(:first-child){margin-top:20px}.application-content .application-list .app-box .row .cell.app-list .app-row .app-col .sub-app{height:100%;box-shadow:0 4px 12px #86a2d233;background-color:var(--das-application-subapp-bg-color);padding:25px 30px;display:flex;cursor:pointer}.application-content .application-list .app-box .row .cell.app-list .app-row .app-col .sub-app .img{width:48px;height:48px;border-radius:6px}.application-content .application-list .app-box .row .cell.app-list .app-row .app-col .sub-app .box-right{padding-left:10px;flex:1;box-sizing:border-box;overflow:hidden}.application-content .application-list .app-box .row .cell.app-list .app-row .app-col .sub-app .box-right .name{font-size:16px;font-weight:400;color:var(--das-application-subapp-name-color)}.application-content .application-list .app-box .row .cell.app-list .app-row .app-col .sub-app .box-right .describe{font-size:12px;font-weight:400;color:var(--das-application-subapp-describe-color)}.application-content .application-list .app-box .row .cell.app-list .app-row .app-col .sub-app:hover,.application-content .application-list .app-box .row .cell.app-list .app-row .app-col .sub-app:active{box-shadow:0 0 20px #0003;border-radius:2px}
|
|
Binary file
|
|
@@ -7,9 +7,9 @@ import { DasFormRef as W, DasForm as G } from "@das-fed/ui/packages/components/f
|
|
|
7
7
|
import { DasFormItem as q } from "@das-fed/ui/packages/components/form-item/index";
|
|
8
8
|
import { DasButton as S } from "@das-fed/ui/packages/components/button/index";
|
|
9
9
|
import { DasMessage as K } from "@das-fed/ui/packages/components/message/index";
|
|
10
|
-
import { enterpriseright as M, superadminPortal as
|
|
10
|
+
import { enterpriseright as M, superadminPortal as Y, systemConfiguration as j } from "@das-fed/utils/api-services/modules";
|
|
11
11
|
import { encryption as k } from "@das-fed/utils/atob";
|
|
12
|
-
const x = M.get("/user/change-pwd", (n) => (n.ignoreErrorMessage = !0, n)), A = M.put("/user/change-pwd", (n) => (n.csrf = !0, n)),
|
|
12
|
+
const x = M.get("/user/change-pwd", (n) => (n.ignoreErrorMessage = !0, n)), A = M.put("/user/change-pwd", (n) => (n.csrf = !0, n)), H = Y.put("/change-pwd"), J = j.get("/visitor/login/with-default"), Q = (n, f) => {
|
|
13
13
|
const w = R(!1), m = W(), d = R({
|
|
14
14
|
prePwd: "",
|
|
15
15
|
pwd: "",
|
|
@@ -30,7 +30,7 @@ const x = M.get("/user/change-pwd", (n) => (n.ignoreErrorMessage = !0, n)), A =
|
|
|
30
30
|
pwdRequireSpecialCharacter: !1
|
|
31
31
|
// 密码要求特殊字符
|
|
32
32
|
}), L = async () => {
|
|
33
|
-
const [o, e] = await
|
|
33
|
+
const [o, e] = await J().run();
|
|
34
34
|
o || (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
|
}, l = (o) => {
|
|
36
36
|
let e = "";
|
|
@@ -100,7 +100,7 @@ const x = M.get("/user/change-pwd", (n) => (n.ignoreErrorMessage = !0, n)), A =
|
|
|
100
100
|
const [i] = await A().run(a);
|
|
101
101
|
if (i) return;
|
|
102
102
|
} else {
|
|
103
|
-
const [i] = await
|
|
103
|
+
const [i] = await H().run(a);
|
|
104
104
|
if (i) return;
|
|
105
105
|
}
|
|
106
106
|
p(!0), K.success(s("修改密码成功!")), f("onConfirm");
|
|
@@ -108,7 +108,7 @@ const x = M.get("/user/change-pwd", (n) => (n.ignoreErrorMessage = !0, n)), A =
|
|
|
108
108
|
});
|
|
109
109
|
}
|
|
110
110
|
};
|
|
111
|
-
},
|
|
111
|
+
}, X = { class: "dialog-content" }, ee = {
|
|
112
112
|
name: "ChangePwd"
|
|
113
113
|
}, re = /* @__PURE__ */ T({
|
|
114
114
|
...ee,
|
|
@@ -118,7 +118,7 @@ const x = M.get("/user/change-pwd", (n) => (n.ignoreErrorMessage = !0, n)), A =
|
|
|
118
118
|
},
|
|
119
119
|
emits: ["onCancel", "onConfirm"],
|
|
120
120
|
setup(n, { expose: f, emit: w }) {
|
|
121
|
-
const m = n, d = w, { visible: t, form: L, formData: l, rules: _, openDialog: N, onCancel: P, onConfirm: c } =
|
|
121
|
+
const m = n, d = w, { visible: t, form: L, formData: l, rules: _, openDialog: N, onCancel: P, onConfirm: c } = Q(m, d);
|
|
122
122
|
return f({
|
|
123
123
|
openDialog: N
|
|
124
124
|
}), (b, p) => (v(), y(r(Z), {
|
|
@@ -165,7 +165,7 @@ const x = M.get("/user/change-pwd", (n) => (n.ignoreErrorMessage = !0, n)), A =
|
|
|
165
165
|
])
|
|
166
166
|
]),
|
|
167
167
|
default: g(() => [
|
|
168
|
-
z("div",
|
|
168
|
+
z("div", X, [
|
|
169
169
|
h(r(G), {
|
|
170
170
|
ref_key: "form",
|
|
171
171
|
ref: L,
|
|
@@ -235,7 +235,11 @@ const x = M.get("/user/change-pwd", (n) => (n.ignoreErrorMessage = !0, n)), A =
|
|
|
235
235
|
"小写字母,": { "zh-CN": "小写字母,", en: "lowercase letters,", _appCode: "framework" },
|
|
236
236
|
"大写字母,": { "zh-CN": "大写字母,", en: "uppercase letters,", _appCode: "framework" },
|
|
237
237
|
"符号,": { "zh-CN": "符号,", en: "symbols,", _appCode: "framework" },
|
|
238
|
-
"修改密码成功!": {
|
|
238
|
+
"修改密码成功!": {
|
|
239
|
+
"zh-CN": "修改密码成功!",
|
|
240
|
+
en: "You had successfully changed the password!",
|
|
241
|
+
_appCode: "framework"
|
|
242
|
+
},
|
|
239
243
|
修改密码: { "zh-CN": "修改密码", en: "Change Password", _appCode: "framework" },
|
|
240
244
|
旧密码: { "zh-CN": "旧密码", en: "Old Password", _appCode: "framework" },
|
|
241
245
|
新密码: { "zh-CN": "新密码", en: "New Password", _appCode: "framework" },
|
|
Binary file
|
|
@@ -71,7 +71,7 @@ const R = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA0gAAAHgCAYAAACfN01xAAA
|
|
|
71
71
|
Q[f] = v;
|
|
72
72
|
return Q;
|
|
73
73
|
}, U = /* @__PURE__ */ q(j, [["__scopeId", "data-v-bc480991"]]), Z = {
|
|
74
|
-
返回主页: { "zh-CN": "返回主页", en: "Return to
|
|
74
|
+
返回主页: { "zh-CN": "返回主页", en: "Return to the home page", _appCode: "framework" },
|
|
75
75
|
抱歉: { "zh-CN": "抱歉", en: "Sorry", _appCode: "framework" },
|
|
76
76
|
您无权访问此页面: {
|
|
77
77
|
"zh-CN": "您无权访问此页面",
|
|
Binary file
|
|
@@ -1174,5 +1174,29 @@ declare const _default: {
|
|
|
1174
1174
|
en: string;
|
|
1175
1175
|
_appCode: string;
|
|
1176
1176
|
};
|
|
1177
|
+
近24小时: {
|
|
1178
|
+
'zh-CN': string;
|
|
1179
|
+
en: string;
|
|
1180
|
+
};
|
|
1181
|
+
自定义: {
|
|
1182
|
+
'zh-CN': string;
|
|
1183
|
+
en: string;
|
|
1184
|
+
};
|
|
1185
|
+
柱状图: {
|
|
1186
|
+
'zh-CN': string;
|
|
1187
|
+
en: string;
|
|
1188
|
+
};
|
|
1189
|
+
折线图: {
|
|
1190
|
+
'zh-CN': string;
|
|
1191
|
+
en: string;
|
|
1192
|
+
};
|
|
1193
|
+
数据趋势: {
|
|
1194
|
+
'zh-CN': string;
|
|
1195
|
+
en: string;
|
|
1196
|
+
};
|
|
1197
|
+
最多支持选择10个属性: {
|
|
1198
|
+
'zh-CN': string;
|
|
1199
|
+
en: string;
|
|
1200
|
+
};
|
|
1177
1201
|
};
|
|
1178
1202
|
export default _default;
|