@das-fed/ui 7.1.0-seres.23 → 7.1.0-seres.25
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 +5 -5
- package/packages/business-components/export-button/index.js +21 -19
- package/packages/business-components/export-button/index.js.gz +0 -0
- package/packages/business-components/import-button/index.d.ts +3 -0
- package/packages/business-components/import-button/index.js +295 -283
- package/packages/business-components/import-button/index.js.gz +0 -0
- package/packages/business-components/import-button/src/App.vue.d.ts +1 -0
- package/packages/business-components/import-button/src/type.d.ts +2 -0
- package/packages/business-components/import-button/style.css +1 -1
- package/packages/business-components/meeting-evaluation-info/index.js +116 -115
- package/packages/business-components/meeting-evaluation-info/index.js.gz +0 -0
- package/packages/business-components/meeting-evaluation-info/style.css +1 -1
- package/packages/business-components/meeting-evaluation-info/style.css.gz +0 -0
- package/packages/business-components/process-log/index.js +298 -297
- package/packages/business-components/process-log/index.js.gz +0 -0
- package/packages/business-components/process-log/style.css +1 -1
- package/packages/business-components/process-log/style.css.gz +0 -0
- package/packages/components/search-form/index.js +6 -6
- 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/icons/historical-replay/index.d.ts +1 -0
- package/packages/icons/historical-replay/index.js +18 -0
- package/packages/icons/historical-replay/index.js.gz +0 -0
- package/packages/icons/historical-replay/index.vue.d.ts +12 -0
- package/packages/icons/index.d.ts +1 -0
- package/packages/icons/index.js +1 -0
package/esm-map.json
CHANGED
|
@@ -436,5 +436,6 @@
|
|
|
436
436
|
"DasUpdateConfirmDialog": "/packages/business-components/update-confirm-dialog/index",
|
|
437
437
|
"DasUpdateConfirmDialogRef": "/packages/business-components/update-confirm-dialog/index",
|
|
438
438
|
"DasMeetingEvaluationInfo": "/packages/business-components/meeting-evaluation-info/index",
|
|
439
|
-
"DasMeetingEvaluationInfoRef": "/packages/business-components/meeting-evaluation-info/index"
|
|
439
|
+
"DasMeetingEvaluationInfoRef": "/packages/business-components/meeting-evaluation-info/index",
|
|
440
|
+
"DasIconHistoricalReplay": "/packages/icons/historical-replay/index"
|
|
440
441
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@das-fed/ui",
|
|
3
|
-
"version": "7.1.0-seres.
|
|
3
|
+
"version": "7.1.0-seres.25",
|
|
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.1.0-seres.
|
|
29
|
+
"@das-fed/cli": "7.1.0-seres.25",
|
|
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.1.0-seres.
|
|
60
|
-
"@das-fed/utils": "7.1.0-seres.
|
|
61
|
-
"@das-fed/web": "7.1.0-seres.
|
|
59
|
+
"@das-fed/ui": "7.1.0-seres.25",
|
|
60
|
+
"@das-fed/utils": "7.1.0-seres.25",
|
|
61
|
+
"@das-fed/web": "7.1.0-seres.25",
|
|
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,14 +1,14 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/business-components/export-button/style.css';
|
|
2
2
|
import { withInstall as J } from "@das-fed/utils/with-install/index";
|
|
3
3
|
import { ref as p, defineComponent as K, computed as Q, watch as I, createElementBlock as W, openBlock as Z, createVNode as D, createCommentVNode as ee, unref as h, withCtx as M, renderSlot as te, createTextVNode as se, toDisplayString as ae, isRef as H } from "vue";
|
|
4
|
-
import { t as v, currentLang as V, i18n as
|
|
4
|
+
import { t as v, currentLang as V, i18n as P, setI18nRule as oe } from "@das-fed/web/packages/i18n/index";
|
|
5
5
|
import { DasDialog as re } from "@das-fed/ui/packages/components/dialog/index";
|
|
6
6
|
import { DasProgress as le } from "@das-fed/ui/packages/components/progress/index";
|
|
7
7
|
import { DasButton as ne } from "@das-fed/ui/packages/components/button/index";
|
|
8
8
|
import { iotProgress as ue } from "@das-fed/utils/api-services/modules/iot";
|
|
9
9
|
import { extractFilename as Y } from "@das-fed/utils/common-tools";
|
|
10
10
|
import E from "dayjs";
|
|
11
|
-
import { DasMessage as
|
|
11
|
+
import { DasMessage as N } from "@das-fed/ui/packages/components/message/index";
|
|
12
12
|
import { getConfig as F } from "@das-fed/utils/config";
|
|
13
13
|
let j = (o = 21) => {
|
|
14
14
|
let l = "", e = crypto.getRandomValues(new Uint8Array(o));
|
|
@@ -20,7 +20,7 @@ let j = (o = 21) => {
|
|
|
20
20
|
};
|
|
21
21
|
const ie = ue.get("progress"), pe = (o) => {
|
|
22
22
|
let l = p(!1), e = p(!1), s = p(""), i = p(0), r = p("normal"), m = p(!1), c, x = p(""), n = p(""), d = p(""), f = p(""), g = p(!1), w = p(""), C;
|
|
23
|
-
const
|
|
23
|
+
const $ = () => {
|
|
24
24
|
n.value = "", d.value = "", f.value = "", g.value = !1, w.value = "";
|
|
25
25
|
}, q = async (t, u = "", y = "") => {
|
|
26
26
|
r.value = "normal", i.value = 0, s.value = y || v("导出进度"), e.value = !0;
|
|
@@ -53,7 +53,7 @@ const ie = ue.get("progress"), pe = (o) => {
|
|
|
53
53
|
return;
|
|
54
54
|
}
|
|
55
55
|
i.value = a.percentage;
|
|
56
|
-
const
|
|
56
|
+
const _ = u == "export" ? v("导出") : v("导入");
|
|
57
57
|
if (i.value == 100)
|
|
58
58
|
if (x.value = a, m.value = !1, R(), u == "export")
|
|
59
59
|
if (a.status == 1) {
|
|
@@ -62,8 +62,8 @@ const ie = ue.get("progress"), pe = (o) => {
|
|
|
62
62
|
const z = ((B = k == null ? void 0 : k.split("/")) == null ? void 0 : B.pop()) || "";
|
|
63
63
|
let G = y || z;
|
|
64
64
|
O(`${F().baseURL}/oss${a.filePath}`, G, b), m.value = !1, o("success");
|
|
65
|
-
} else a.status == 2 && (f.value = a.message || `${
|
|
66
|
-
message: a.message || `${
|
|
65
|
+
} else a.status == 2 && (f.value = a.message || `${_}${V.value === "zh-CN" ? v("失败") : " " + v("失败")}`, N.error({
|
|
66
|
+
message: a.message || `${_}${V.value === "zh-CN" ? v("失败") : " " + v("失败")}`,
|
|
67
67
|
grouping: !0,
|
|
68
68
|
repeatNum: 1
|
|
69
69
|
}));
|
|
@@ -74,22 +74,22 @@ const ie = ue.get("progress"), pe = (o) => {
|
|
|
74
74
|
const z = ((L = k == null ? void 0 : k.split("/")) == null ? void 0 : L.pop()) || "";
|
|
75
75
|
n.value = z, d.value = C.sizeText, f.value = v("部分数据校验不通过,请下载附件并修改,重新导入!"), w.value = `${F().baseURL}/oss${a.filePath}`;
|
|
76
76
|
}
|
|
77
|
-
U(a.status,
|
|
77
|
+
U(a.status, _), a.status == 1 && (l.value = !1), o("success");
|
|
78
78
|
} else u == "action" && (r.value = "success");
|
|
79
79
|
else
|
|
80
80
|
c && a.status != 2 ? c = setTimeout(() => {
|
|
81
81
|
S(t, u, y, b);
|
|
82
|
-
}, 50) : (x.value = a, m.value = !1, U(a.status,
|
|
82
|
+
}, 50) : (x.value = a, m.value = !1, U(a.status, _), R(), g.value = !0, f.value = (a == null ? void 0 : a.message) || "");
|
|
83
83
|
}, U = (t, u) => {
|
|
84
|
-
t == 1 ? (r.value = "success",
|
|
84
|
+
t == 1 ? (r.value = "success", N.success({
|
|
85
85
|
message: v("business-components_export-success-tip", u),
|
|
86
86
|
grouping: !0,
|
|
87
87
|
repeatNum: 1
|
|
88
|
-
}), n.value = "", d.value = "", f.value = "") : t == 2 ? (r.value = "error",
|
|
88
|
+
}), n.value = "", d.value = "", f.value = "") : t == 2 ? (r.value = "error", N.error({
|
|
89
89
|
message: v("business-components_export-failure-tip", u),
|
|
90
90
|
grouping: !0,
|
|
91
91
|
repeatNum: 1
|
|
92
|
-
})) : t == 3 && (r.value = "error",
|
|
92
|
+
})) : t == 3 && (r.value = "error", N.error({
|
|
93
93
|
message: v("business-components_export-partially-failure-tip", u),
|
|
94
94
|
grouping: !0,
|
|
95
95
|
repeatNum: 1
|
|
@@ -115,7 +115,7 @@ const ie = ue.get("progress"), pe = (o) => {
|
|
|
115
115
|
return `${t == null ? void 0 : t.replace(/(.*\/)*([^.]+).*/gi, "$2")}${j()}${u}`;
|
|
116
116
|
},
|
|
117
117
|
downloadFile: O,
|
|
118
|
-
resetStataus:
|
|
118
|
+
resetStataus: $,
|
|
119
119
|
checkProgress: T
|
|
120
120
|
};
|
|
121
121
|
}, O = (o, l, e = "xlsx") => {
|
|
@@ -138,10 +138,12 @@ const ie = ue.get("progress"), pe = (o) => {
|
|
|
138
138
|
}, n.value = {
|
|
139
139
|
...w
|
|
140
140
|
};
|
|
141
|
-
let C =
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
141
|
+
let C = "";
|
|
142
|
+
if (o.exportFileName) {
|
|
143
|
+
let $ = `${E().format("YYYYMMDD")}-${E().format("HHmmss")}.${o.fileType}`;
|
|
144
|
+
V.value === "en" && !/s$/.test(o.exportFileName) && ($ = " " + $), C = `${o.exportFileName}${$}`;
|
|
145
|
+
}
|
|
146
|
+
c(f, C, o.fileType);
|
|
145
147
|
}, f = async () => {
|
|
146
148
|
let g = j();
|
|
147
149
|
o.taskIdPosition === "params" && (x.value.taskId = g), o.taskIdPosition === "body" && (n.value.taskId = g);
|
|
@@ -178,7 +180,7 @@ const ie = ue.get("progress"), pe = (o) => {
|
|
|
178
180
|
}), I(e.bodyParams, (n) => {
|
|
179
181
|
s("update:bodyParams", n);
|
|
180
182
|
});
|
|
181
|
-
const { showProgressDialog: i, percent: r, progressStatus: m, exportList: c } = me(e, s), x = [
|
|
183
|
+
const { showProgressDialog: i, percent: r, progressStatus: m, exportList: c } = me(e, s), x = [P("正在导出中...").value, P("导出失败").value, P("导出成功").value];
|
|
182
184
|
return (n, d) => (Z(), W("div", ce, [
|
|
183
185
|
D(h(ne), {
|
|
184
186
|
block: n.block,
|
|
@@ -191,7 +193,7 @@ const ie = ue.get("progress"), pe = (o) => {
|
|
|
191
193
|
default: M(() => [
|
|
192
194
|
te(n.$slots, "default", {}, () => [
|
|
193
195
|
se(
|
|
194
|
-
ae(h(
|
|
196
|
+
ae(h(P)("导出").value),
|
|
195
197
|
1
|
|
196
198
|
/* TEXT */
|
|
197
199
|
)
|
|
@@ -203,7 +205,7 @@ const ie = ue.get("progress"), pe = (o) => {
|
|
|
203
205
|
ee(" 进度弹窗 "),
|
|
204
206
|
D(h(re), {
|
|
205
207
|
size: "mini",
|
|
206
|
-
title: h(
|
|
208
|
+
title: h(P)("导出进度").value,
|
|
207
209
|
"is-feedback-img": !1,
|
|
208
210
|
modelValue: h(i),
|
|
209
211
|
"onUpdate:modelValue": d[2] || (d[2] = (f) => H(i) ? i.value = f : null),
|
|
Binary file
|
|
@@ -16,6 +16,7 @@ declare const DasImportButton: import("@das-fed/utils").SFCWithInstall<{
|
|
|
16
16
|
maxCount: number;
|
|
17
17
|
fileType: string;
|
|
18
18
|
templateName: string;
|
|
19
|
+
templateFileName: string;
|
|
19
20
|
templateType: "static" | "dynamic";
|
|
20
21
|
fileMaxSize: string;
|
|
21
22
|
importParams: any;
|
|
@@ -43,6 +44,7 @@ declare const DasImportButton: import("@das-fed/utils").SFCWithInstall<{
|
|
|
43
44
|
maxCount: number;
|
|
44
45
|
fileType: string;
|
|
45
46
|
templateName: string;
|
|
47
|
+
templateFileName: string;
|
|
46
48
|
templateType: "static" | "dynamic";
|
|
47
49
|
fileMaxSize: string;
|
|
48
50
|
importParams: any;
|
|
@@ -71,6 +73,7 @@ declare const DasImportButton: import("@das-fed/utils").SFCWithInstall<{
|
|
|
71
73
|
maxCount: number;
|
|
72
74
|
fileType: string;
|
|
73
75
|
templateName: string;
|
|
76
|
+
templateFileName: string;
|
|
74
77
|
templateType: "static" | "dynamic";
|
|
75
78
|
fileMaxSize: string;
|
|
76
79
|
importParams: any;
|