@das-fed/ui 6.4.0-dev.97 → 6.4.0-dev.99

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@das-fed/ui",
3
- "version": "6.4.0-dev.97",
3
+ "version": "6.4.0-dev.99",
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.97",
29
+ "@das-fed/cli": "6.4.0-dev.99",
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.97",
60
- "@das-fed/utils": "6.4.0-dev.97",
61
- "@das-fed/web": "6.4.0-dev.97",
59
+ "@das-fed/ui": "6.4.0-dev.99",
60
+ "@das-fed/utils": "6.4.0-dev.99",
61
+ "@das-fed/web": "6.4.0-dev.99",
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",
@@ -51412,7 +51412,7 @@ const Qte = (r) => r === null || typeof r > "u" || r === "", PD = (r, t = "YYYY/
51412
51412
  不能大于: { "zh-CN": "不能大于", en: "Cannot be greater than", _appCode: "framework" },
51413
51413
  不能小于: { "zh-CN": "不能小于", en: "Cannot be less than", _appCode: "framework" },
51414
51414
  加载中: { "zh-CN": "加载中", en: "Loading", _appCode: "framework" },
51415
- 正在实时预览: { "zh-CN": "正在实时预览", en: "Live Preview", _appCode: "framework" },
51415
+ 正在实时预览: { "zh-CN": "正在实时预览", en: "Real-time Video", _appCode: "framework" },
51416
51416
  正在告警回放: { "zh-CN": "正在告警回放", en: "Alarm Playback", _appCode: "framework" },
51417
51417
  暂停: { "zh-CN": "暂停", en: "Pause", _appCode: "framework" },
51418
51418
  播放: { "zh-CN": "播放", en: "Play", _appCode: "framework" },
@@ -51432,7 +51432,7 @@ const Qte = (r) => r === null || typeof r > "u" || r === "", PD = (r, t = "YYYY/
51432
51432
  下: { "zh-CN": "下", en: "Down", _appCode: "framework" },
51433
51433
  右下: { "zh-CN": "右下", en: "Bottom Right", _appCode: "framework" },
51434
51434
  更多: { "zh-CN": "更多", en: "More", _appCode: "framework" },
51435
- 告警趋势: { "zh-CN": "告警趋势", en: "Alarm Trends", _appCode: "framework" },
51435
+ 告警趋势: { "zh-CN": "告警趋势", en: "Alarm Trend", _appCode: "framework" },
51436
51436
  告警数量: { "zh-CN": "告警数量", en: "Alarm Count", _appCode: "framework" },
51437
51437
  条: { "zh-CN": "条", en: " Items", _appCode: "framework" },
51438
51438
  告警内容: { "zh-CN": "告警内容", en: "Alarm Content", _appCode: "framework" },
@@ -51445,7 +51445,7 @@ const Qte = (r) => r === null || typeof r > "u" || r === "", PD = (r, t = "YYYY/
51445
51445
  恢复时间: { "zh-CN": "恢复时间", en: "Recovery Time", _appCode: "framework" },
51446
51446
  告警规则: { "zh-CN": "告警规则", en: "Alarm Rule", _appCode: "framework" },
51447
51447
  所属应用: { "zh-CN": "所属应用", en: "Associated Application", _appCode: "framework" },
51448
- 处理记录: { "zh-CN": "处理记录", en: "Processing Records", _appCode: "framework" },
51448
+ 处理记录: { "zh-CN": "处理记录", en: "Processing Record", _appCode: "framework" },
51449
51449
  备: { "zh-CN": "备", en: "Backup", _appCode: "framework" },
51450
51450
  处理人: { "zh-CN": "处理人", en: "Processor", _appCode: "framework" },
51451
51451
  处理时间: { "zh-CN": "处理时间", en: "Processing Time", _appCode: "framework" },
@@ -51562,10 +51562,10 @@ const Qte = (r) => r === null || typeof r > "u" || r === "", PD = (r, t = "YYYY/
51562
51562
  任务详情: { "zh-CN": "任务详情", en: "Task Details", _appCode: "framework" },
51563
51563
  正常: { "zh-CN": "正常", en: "Normal", _appCode: "framework" },
51564
51564
  异常: { "zh-CN": "异常", en: "Abnormal", _appCode: "framework" },
51565
- 操作时间: { "zh-CN": "操作时间", en: "Actions Time", _appCode: "framework" },
51566
- 操作内容: { "zh-CN": "操作内容", en: "Actions Content", _appCode: "framework" },
51567
- 操作来源: { "zh-CN": "操作来源", en: "Actions Source", _appCode: "framework" },
51568
- 操作用户: { "zh-CN": "操作用户", en: "Actions User", _appCode: "framework" },
51565
+ 操作时间: { "zh-CN": "操作时间", en: "Operation Time", _appCode: "framework" },
51566
+ 操作内容: { "zh-CN": "操作内容", en: "Operation Content", _appCode: "framework" },
51567
+ 操作来源: { "zh-CN": "操作来源", en: "Operation Source", _appCode: "framework" },
51568
+ 操作用户: { "zh-CN": "操作用户", en: "Operation User", _appCode: "framework" },
51569
51569
  操作: { "zh-CN": "操作", en: "Actions", _appCode: "framework" },
51570
51570
  执行成功: { "zh-CN": "执行成功", en: "Executed Successfully", _appCode: "framework" },
51571
51571
  执行失败: { "zh-CN": "执行失败", en: "Executed Failed", _appCode: "framework" },
@@ -51594,7 +51594,7 @@ const Qte = (r) => r === null || typeof r > "u" || r === "", PD = (r, t = "YYYY/
51594
51594
  视频监控: { "zh-CN": "视频监控", en: "Video Surveillance", _appCode: "framework" },
51595
51595
  运行计划: { "zh-CN": "运行计划", en: "Operation Plan", _appCode: "framework" },
51596
51596
  告警记录: { "zh-CN": "告警记录", en: "Alarm Record", _appCode: "framework" },
51597
- 操作日志: { "zh-CN": "操作日志", en: "Actions Log", _appCode: "framework" },
51597
+ 操作日志: { "zh-CN": "操作日志", en: "Operation Log", _appCode: "framework" },
51598
51598
  巡检记录: { "zh-CN": "巡检记录", en: "Inspection Record", _appCode: "framework" },
51599
51599
  保养记录: { "zh-CN": "保养记录", en: "Maintenance Record", _appCode: "framework" },
51600
51600
  维修记录: { "zh-CN": "维修记录", en: "Repair Record", _appCode: "framework" },
@@ -51659,11 +51659,11 @@ const Qte = (r) => r === null || typeof r > "u" || r === "", PD = (r, t = "YYYY/
51659
51659
  "工单编码:": { "zh-CN": "工单编码:", en: "Work Order Code:", _appCode: "framework" },
51660
51660
  "事件编码:": { "zh-CN": "事件编码:", en: "Event Code:", _appCode: "framework" },
51661
51661
  "备注:": { "zh-CN": "备注:", en: "Remarks:", _appCode: "framework" },
51662
- "操作时间:": { "zh-CN": "操作时间:", en: "Actions Time:", _appCode: "framework" },
51663
- "操作内容:": { "zh-CN": "操作内容:", en: "Actions Content:", _appCode: "framework" },
51664
- "操作来源:": { "zh-CN": "操作来源:", en: "Actions Source:", _appCode: "framework" },
51665
- "操作用户:": { "zh-CN": "操作用户:", en: "Actions User:", _appCode: "framework" },
51666
- "操作IP:": { "zh-CN": "操作IP:", en: "Actions Ip:", _appCode: "framework" },
51662
+ "操作时间:": { "zh-CN": "操作时间:", en: "Operation Time:", _appCode: "framework" },
51663
+ "操作内容:": { "zh-CN": "操作内容:", en: "Operation Content:", _appCode: "framework" },
51664
+ "操作来源:": { "zh-CN": "操作来源:", en: "Operation Source:", _appCode: "framework" },
51665
+ "操作用户:": { "zh-CN": "操作用户:", en: "Operation User:", _appCode: "framework" },
51666
+ "操作IP:": { "zh-CN": "操作IP:", en: "Operation Ip:", _appCode: "framework" },
51667
51667
  "失败原因:": { "zh-CN": "失败原因:", en: "Failure Reason:", _appCode: "framework" },
51668
51668
  "超出正常范围值: 不能大于": {
51669
51669
  "zh-CN": "超出正常范围值: 不能大于",
@@ -51677,7 +51677,7 @@ const Qte = (r) => r === null || typeof r > "u" || r === "", PD = (r, t = "YYYY/
51677
51677
  },
51678
51678
  "超出正常范围值:": { "zh-CN": "超出正常范围值:", en: "Exceeds normal range:", _appCode: "framework" },
51679
51679
  "执行时刻:": { "zh-CN": "执行时刻:", en: "Execution Time:", _appCode: "framework" },
51680
- "所属策略:": { "zh-CN": "所属策略:", en: "Associated Strategy:", _appCode: "framework" },
51680
+ "所属策略:": { "zh-CN": "所属策略:", en: "Belonging Strategy:", _appCode: "framework" },
51681
51681
  "加载中...": { "zh-CN": "加载中...", en: "Loading...", _appCode: "framework" },
51682
51682
  "聚焦-": { "zh-CN": "聚焦-", en: "Focus-", _appCode: "framework" },
51683
51683
  "聚焦+": { "zh-CN": "聚焦+", en: "Focus+", _appCode: "framework" },
@@ -104,6 +104,16 @@ declare const _default: {
104
104
  en: string;
105
105
  _appCode: string;
106
106
  };
107
+ 导入模板: {
108
+ 'zh-CN': string;
109
+ en: string;
110
+ _appCode: string;
111
+ };
112
+ 确定导入: {
113
+ 'zh-CN': string;
114
+ en: string;
115
+ _appCode: string;
116
+ };
107
117
  '\u90E8\u5206\u6570\u636E\u6821\u9A8C\u4E0D\u901A\u8FC7\uFF0C\u8BF7\u4E0B\u8F7D\u9644\u4EF6\u5E76\u4FEE\u6539\uFF0C\u91CD\u65B0\u5BFC\u5165\uFF01': {
108
118
  'zh-CN': string;
109
119
  en: string;
@@ -1,7 +1,7 @@
1
1
  import '@das-fed/ui/packages/business-components/import-button/style.css';
2
2
  import { withInstall as de } from "@das-fed/utils/with-install/index";
3
- import { ref as k, defineComponent as fe, computed as ge, watch as ve, openBlock as he, createElementBlock as we, createElementVNode as q, unref as o, renderSlot as re, createVNode as D, withCtx as L, createTextVNode as Y, toDisplayString as H, isRef as Q } from "vue";
4
- import { t as p, currentLang as Ce, i18n as j, setI18nRule as xe } from "@das-fed/web/packages/i18n/index";
3
+ import { ref as k, defineComponent as fe, computed as ge, watch as ve, openBlock as he, createElementBlock as Ce, createElementVNode as q, unref as o, renderSlot as re, createVNode as D, withCtx as L, createTextVNode as Y, toDisplayString as H, isRef as Q } from "vue";
4
+ import { t as u, currentLang as we, i18n as j, setI18nRule as xe } from "@das-fed/web/packages/i18n/index";
5
5
  import { DasDialog as le } from "@das-fed/ui/packages/components/dialog/index";
6
6
  import { DasUpload as ke } from "@das-fed/ui/packages/components/upload/index";
7
7
  import { DasProgress as ye } from "@das-fed/ui/packages/components/progress/index";
@@ -14,41 +14,41 @@ import { extractFilename as ze } from "@das-fed/utils/common-tools";
14
14
  import { getUserInfo as Te } from "@das-fed/utils/common-info/index";
15
15
  import { pureImageSrc as ne } from "@das-fed/utils/pure-image-src";
16
16
  let te = (e = 21) => {
17
- let m = "", u = crypto.getRandomValues(new Uint8Array(e));
17
+ let m = "", p = crypto.getRandomValues(new Uint8Array(e));
18
18
  for (; e--; ) {
19
- let l = u[e] & 63;
19
+ let l = p[e] & 63;
20
20
  l < 36 ? m += l.toString(36) : l < 62 ? m += (l - 26).toString(36).toUpperCase() : l < 63 ? m += "_" : m += "-";
21
21
  }
22
22
  return m;
23
23
  };
24
- const Fe = ae.get("token"), _e = ae.post("put-object", (e) => (e.headers || (e.headers = {}), e.headers["Content-Type"] = "multipart/form-data", e.responseType = "blob", e)), Ie = ae.post("upload-objects", (e) => (e.headers || (e.headers = {}), e.headers["Content-Type"] = "multipart/form-data", e.responseType = "blob", e)), $e = be.get("progress"), Se = (e) => {
25
- let m = k(!1), u = k(!1), l = k(""), C = k(0), n = k("normal"), v = k(!1), y, N = k(""), I = k(""), $ = k(""), z = k(""), S = k(!1), M = k(""), F = "", _ = k(""), P;
24
+ const _e = ae.get("token"), Fe = ae.post("put-object", (e) => (e.headers || (e.headers = {}), e.headers["Content-Type"] = "multipart/form-data", e.responseType = "blob", e)), Ie = ae.post("upload-objects", (e) => (e.headers || (e.headers = {}), e.headers["Content-Type"] = "multipart/form-data", e.responseType = "blob", e)), $e = be.get("progress"), Se = (e) => {
25
+ let m = k(!1), p = k(!1), l = k(""), w = k(0), n = k("normal"), v = k(!1), y, N = k(""), I = k(""), $ = k(""), z = k(""), S = k(!1), M = k(""), _ = "", F = k(""), P;
26
26
  const E = () => {
27
27
  I.value = "", $.value = "", z.value = "", S.value = !1, M.value = "";
28
28
  }, b = async () => {
29
- const [r, s] = await Fe().run();
29
+ const [r, s] = await _e().run();
30
30
  return r ? { stauts: !1 } : { status: !0, data: s };
31
31
  }, B = (r) => new Promise((s, d) => {
32
32
  const i = [];
33
33
  let t = 0;
34
34
  for (; t < r.size; ) {
35
- const w = r.slice(t, t + 1048576);
36
- i.push(w), t += 1048576;
35
+ const C = r.slice(t, t + 1048576);
36
+ i.push(C), t += 1048576;
37
37
  }
38
38
  const c = new Blob(i, { type: r.type });
39
39
  s(c);
40
40
  }), A = async (r, s, d, a = !1, i = !0, t = "") => {
41
- F = t, _.value = "import", i && (n.value = "normal", C.value = 0, l.value = p("导入进度"), u.value = !0, N.value = ""), P = s;
41
+ _ = t, F.value = "import", i && (n.value = "normal", w.value = 0, l.value = u("导入进度"), p.value = !0, N.value = ""), P = s;
42
42
  const c = await b();
43
43
  if (!c.status) return;
44
- let w = c.data, x = null, { autoContentType: K, bucketName: V, importFileName: J } = d;
45
- const ue = a ? Ie : _e;
44
+ let C = c.data, x = null, { autoContentType: K, bucketName: V, importFileName: J } = d;
45
+ const pe = a ? Ie : Fe;
46
46
  if (a) {
47
47
  let X = [];
48
48
  await s.forEach(async (G) => {
49
49
  let ee = await B(G);
50
50
  X.push(ee);
51
- }), x = new FormData(), x.append("accessKeyId", w.accessKeyId), x.append("secretAccessKey", w.secretAccessKey), x.append("sessionToken", w.sessionToken), x.append("bucketName", V), s.forEach((G, ee) => {
51
+ }), x = new FormData(), x.append("accessKeyId", C.accessKeyId), x.append("secretAccessKey", C.secretAccessKey), x.append("sessionToken", C.sessionToken), x.append("bucketName", V), s.forEach((G, ee) => {
52
52
  x.append("file", X[ee]);
53
53
  }), J.forEach((G) => {
54
54
  x.append("filePaths", G);
@@ -56,45 +56,45 @@ const Fe = ae.get("token"), _e = ae.post("put-object", (e) => (e.headers || (e.h
56
56
  } else {
57
57
  const X = await B(s);
58
58
  x = {
59
- accessKeyId: w.accessKeyId,
60
- secretAccessKey: w.secretAccessKey,
61
- sessionToken: w.sessionToken,
59
+ accessKeyId: C.accessKeyId,
60
+ secretAccessKey: C.secretAccessKey,
61
+ sessionToken: C.sessionToken,
62
62
  file: X,
63
63
  bucketName: V,
64
64
  filePath: J,
65
65
  autoContentType: K
66
66
  };
67
67
  }
68
- const [pe, me] = await ue(x).run();
69
- if (pe) return;
68
+ const [ue, me] = await pe(x).run();
69
+ if (ue) return;
70
70
  const ce = await De(me.data), Z = await (r == null ? void 0 : r(ce));
71
71
  if (i) {
72
72
  if (!Z.status) {
73
- u.value = !1, n.value = "error";
73
+ p.value = !1, n.value = "error";
74
74
  return;
75
75
  }
76
- l.value = p("导入进度"), u.value = !0, T(Z.taskId, "import", "");
76
+ l.value = u("导入进度"), p.value = !0, T(Z.taskId, "import", "");
77
77
  } else {
78
78
  if (!Z.status) return;
79
79
  n.value = "success", U.success({
80
- message: p("导入成功"),
80
+ message: u("导入成功"),
81
81
  grouping: !0,
82
82
  repeatNum: 1
83
83
  });
84
84
  }
85
85
  }, R = async (r, s = "", d = "") => {
86
- n.value = "normal", C.value = 0, l.value = d || p("导出进度"), u.value = !0;
86
+ n.value = "normal", w.value = 0, l.value = d || u("导出进度"), p.value = !0;
87
87
  const a = await (r == null ? void 0 : r());
88
88
  if (!a.status) {
89
- u.value = !1, n.value = "error";
89
+ p.value = !1, n.value = "error";
90
90
  return;
91
91
  }
92
92
  T(a.taskId, "action", "");
93
93
  }, O = async (r, s = "", d = "xlsx") => {
94
- _.value = "export", n.value = "normal", C.value = 0, l.value = p("导出进度"), u.value = !0;
94
+ F.value = "export", n.value = "normal", w.value = 0, l.value = u("导出进度"), p.value = !0;
95
95
  const a = await (r == null ? void 0 : r());
96
96
  if (!a.status) {
97
- u.value = !1, n.value = "error";
97
+ p.value = !1, n.value = "error";
98
98
  return;
99
99
  }
100
100
  Ne().format("YYYYMMDDHHmmss") + "", T(a.taskId, "export", s || "", d);
@@ -102,9 +102,9 @@ const Fe = ae.get("token"), _e = ae.post("put-object", (e) => (e.headers || (e.h
102
102
  v.value = !0, g(r, s, d, a), y = setTimeout(() => {
103
103
  }, 50);
104
104
  }, f = () => {
105
- clearTimeout(y), y = null, u.value = !1;
105
+ clearTimeout(y), y = null, p.value = !1;
106
106
  }, g = async (r, s = "export", d, a = "") => {
107
- var w, x;
107
+ var C, x;
108
108
  const [i, t] = await $e("", {
109
109
  url: `progress/${r}`
110
110
  }).run();
@@ -112,23 +112,23 @@ const Fe = ae.get("token"), _e = ae.post("put-object", (e) => (e.headers || (e.h
112
112
  v.value = !1;
113
113
  return;
114
114
  }
115
- C.value = t.percentage;
116
- const c = s == "export" ? p("导出") : p("导入");
117
- if (C.value == 100)
115
+ w.value = t.percentage;
116
+ const c = s == "export" ? u("导出") : u("导入");
117
+ if (w.value == 100)
118
118
  if (N.value = t, v.value = !1, f(), s == "export")
119
- t.status == 1 ? (n.value = "success", ie(`${se().baseURL}/oss${t.filePath}`, d, a), v.value = !1) : t.status == 2 && (z.value = t.message || `${c}${p("失败")}`, U.error({
120
- message: t.message || `${c}${p("失败")}`,
119
+ t.status == 1 ? (n.value = "success", ie(`${se().baseURL}/oss${t.filePath}`, d, a), v.value = !1) : t.status == 2 && (z.value = t.message || `${c}${u("失败")}`, U.error({
120
+ message: t.message || `${c}${u("失败")}`,
121
121
  grouping: !0,
122
122
  repeatNum: 1
123
123
  }));
124
124
  else if (s == "import") {
125
125
  if (t.filePath) {
126
126
  n.value = "error";
127
- const K = (w = P.name) == null ? void 0 : w.match(/(.*?)(\.[^.]*$|$)/);
127
+ const K = (C = P.name) == null ? void 0 : C.match(/(.*?)(\.[^.]*$|$)/);
128
128
  K.length && K[2], S.value = !0;
129
129
  let V = await ze(`/oss/${t == null ? void 0 : t.filePath}`);
130
130
  const J = ((x = V == null ? void 0 : V.split("/")) == null ? void 0 : x.pop()) || "";
131
- I.value = F || J, $.value = P.sizeText, z.value = p("部分数据校验不通过,请下载附件并修改,重新导入!"), M.value = `${se().baseURL}/oss/${t == null ? void 0 : t.filePath}`;
131
+ I.value = _ || J, $.value = P.sizeText, z.value = u("部分数据校验不通过,请下载附件并修改,重新导入!"), M.value = `${se().baseURL}/oss/${t == null ? void 0 : t.filePath}`;
132
132
  }
133
133
  h(t.status, c, t.message), t.status == 1 && (m.value = !1), e("success");
134
134
  } else s == "action" && (n.value = "success");
@@ -138,24 +138,24 @@ const Fe = ae.get("token"), _e = ae.post("put-object", (e) => (e.headers || (e.h
138
138
  }, 50) : (N.value = t, v.value = !1, h(t.status, c, t.message), f(), S.value = !0, z.value = (t == null ? void 0 : t.message) || "", e("error", t));
139
139
  }, h = (r, s, d) => {
140
140
  r == 1 ? (n.value = "success", U.success({
141
- message: p("business-components_export-success-tip", s),
141
+ message: u("business-components_export-success-tip", s),
142
142
  grouping: !0,
143
143
  repeatNum: 1
144
144
  }), I.value = "", $.value = "", z.value = "") : r == 2 ? (n.value = "error", U.error({
145
- message: d || p("business-components_export-failure-tip", s),
145
+ message: d || u("business-components_export-failure-tip", s),
146
146
  grouping: !0,
147
147
  repeatNum: 1
148
148
  })) : r == 3 && (n.value = "error", U.error({
149
- message: p("business-components_export-partially-failure-tip", s),
149
+ message: u("business-components_export-partially-failure-tip", s),
150
150
  grouping: !0,
151
151
  repeatNum: 1
152
152
  }));
153
153
  };
154
154
  return {
155
155
  importDialog: m,
156
- showProgressDialog: u,
156
+ showProgressDialog: p,
157
157
  progressTitle: l,
158
- percent: C,
158
+ percent: w,
159
159
  progressStatus: n,
160
160
  progressLoading: v,
161
161
  progressResult: N,
@@ -164,7 +164,7 @@ const Fe = ae.get("token"), _e = ae.post("put-object", (e) => (e.headers || (e.h
164
164
  errorMessage: z,
165
165
  errorImport: S,
166
166
  errorFilePath: M,
167
- fileHandleType: _,
167
+ fileHandleType: F,
168
168
  fileImport: A,
169
169
  fileExport: O,
170
170
  fileAction: R,
@@ -206,11 +206,11 @@ const Fe = ae.get("token"), _e = ae.post("put-object", (e) => (e.headers || (e.h
206
206
  der: "application/x-x509-ca-cert",
207
207
  cer: "application/pkix-cert"
208
208
  }[m];
209
- }, ie = (e, m, u = "excel") => {
209
+ }, ie = (e, m, p = "excel") => {
210
210
  const l = new XMLHttpRequest();
211
- l.open("get", e), l.setRequestHeader("Content-Type", "application/json; charset=UTF-8"), l.responseType = "blob", l.onload = function(C) {
211
+ l.open("get", e), l.setRequestHeader("Content-Type", "application/json; charset=UTF-8"), l.responseType = "blob", l.onload = function(w) {
212
212
  const n = new Blob([this.response], {
213
- type: Pe(u)
213
+ type: Pe(p)
214
214
  }), v = URL.createObjectURL(n);
215
215
  if (window.navigator.msSaveOrOpenBlob)
216
216
  navigator.msSaveBlob(n, m);
@@ -219,18 +219,18 @@ const Fe = ae.get("token"), _e = ae.post("put-object", (e) => (e.headers || (e.h
219
219
  y.href = v, y.download = m, y.click(), window.URL.revokeObjectURL(v);
220
220
  }
221
221
  }, l.send();
222
- }, De = (e) => new Promise((m, u) => {
222
+ }, De = (e) => new Promise((m, p) => {
223
223
  var l = new FileReader();
224
- l.onload = function(C) {
224
+ l.onload = function(w) {
225
225
  let n = "";
226
226
  typeof l.result == "string" && (n = JSON.parse(l.result)), m(n);
227
227
  }, l.readAsText(e);
228
228
  }), Ue = (e, m) => {
229
229
  var d;
230
230
  const {
231
- importDialog: u,
231
+ importDialog: p,
232
232
  showProgressDialog: l,
233
- progressTitle: C,
233
+ progressTitle: w,
234
234
  percent: n,
235
235
  progressStatus: v,
236
236
  progressLoading: y,
@@ -240,27 +240,27 @@ const Fe = ae.get("token"), _e = ae.post("put-object", (e) => (e.headers || (e.h
240
240
  errorImport: z,
241
241
  errorFilePath: S,
242
242
  fileHandleType: M,
243
- fileImport: F,
244
- fileExport: _,
243
+ fileImport: _,
244
+ fileExport: F,
245
245
  downloadFile: P,
246
246
  clearTimer: E
247
247
  } = Se(m);
248
248
  let b = k([]), B = (d = Te()) == null ? void 0 : d.tenantId;
249
249
  const A = () => {
250
- b.value = [], z.value = !1, N.value = "", I.value = "", $.value = "", u.value = !0, S.value = "", m("open");
250
+ b.value = [], z.value = !1, N.value = "", I.value = "", $.value = "", p.value = !0, S.value = "", m("open");
251
251
  };
252
252
  let R;
253
253
  const O = (a) => {
254
- const i = e.fileType.split(","), t = a.name.substring(a.name.lastIndexOf(".")), c = T(a.sizeText), w = T(e.fileMaxSize);
254
+ const i = e.fileType.split(","), t = a.name.substring(a.name.lastIndexOf(".")), c = T(a.sizeText), C = T(e.fileMaxSize);
255
255
  if (!i.includes(t)) {
256
- U.warning(p("文件格式错误,请重新上传!")), setTimeout(() => {
256
+ U.warning(u("文件格式错误,请重新上传!")), setTimeout(() => {
257
257
  b.value = [];
258
258
  });
259
259
  return;
260
260
  }
261
- if (c > w) {
261
+ if (c > C) {
262
262
  U.warning(
263
- `${p("文件大小不超过")}${Ce.value === "zh-CN" ? e.fileMaxSize : " " + e.fileMaxSize}`
263
+ `${u("文件大小不超过")}${we.value === "zh-CN" ? e.fileMaxSize : " " + e.fileMaxSize}`
264
264
  ), setTimeout(() => {
265
265
  b.value = [];
266
266
  });
@@ -278,21 +278,21 @@ const Fe = ae.get("token"), _e = ae.post("put-object", (e) => (e.headers || (e.h
278
278
  filePath: a.value,
279
279
  taskId: t,
280
280
  ...e.importParams
281
- }, w = e.importParamsPosition === "params" ? e.importFun("", { params: c }) : e.importFun(c), [x, K] = await w.run();
281
+ }, C = e.importParamsPosition === "params" ? e.importFun("", { params: c }) : e.importFun(c), [x, K] = await C.run();
282
282
  return x ? { status: !1 } : { status: !0, taskId: t };
283
283
  }, g = async () => {
284
- if (!b.value.length) return U.warning(p("请上传文件"));
284
+ if (!b.value.length) return U.warning(u("请上传文件"));
285
285
  const a = {
286
286
  bucketName: e.bucketName,
287
287
  importFileName: `${B}/${e.ossName}/${R}`
288
288
  };
289
289
  e.maxCount > 1 && (a.importFileName = b.value.map((c) => c.name));
290
290
  const i = e.maxCount > 1, t = e.maxCount > 1 ? b.value : b.value[0];
291
- await F(f, t, a, i);
291
+ await _(f, t, a, i);
292
292
  }, h = () => {
293
293
  P(S.value, N.value);
294
294
  }, oe = () => {
295
- _(r, e.templateName);
295
+ F(r, e.templateName);
296
296
  }, r = async () => {
297
297
  let a = te();
298
298
  const [i, t] = await e.templateFun({ taskId: a }).run();
@@ -300,7 +300,7 @@ const Fe = ae.get("token"), _e = ae.post("put-object", (e) => (e.headers || (e.h
300
300
  };
301
301
  return {
302
302
  showProgressDialog: l,
303
- progressTitle: C,
303
+ progressTitle: w,
304
304
  percent: n,
305
305
  progressStatus: v,
306
306
  progressLoading: y,
@@ -308,7 +308,7 @@ const Fe = ae.get("token"), _e = ae.post("put-object", (e) => (e.headers || (e.h
308
308
  errorFileSize: I,
309
309
  errorMessage: $,
310
310
  errorImport: z,
311
- importDialog: u,
311
+ importDialog: p,
312
312
  fileList: b,
313
313
  fileHandleType: M,
314
314
  showImportHandle: A,
@@ -356,8 +356,8 @@ const Fe = ae.get("token"), _e = ae.post("put-object", (e) => (e.headers || (e.h
356
356
  multiple: { type: Boolean, default: !1 }
357
357
  },
358
358
  emits: ["open", "success", "error"],
359
- setup(e, { expose: m, emit: u }) {
360
- const l = e, C = u, n = ge(() => l.btnText ? l.btnText : p("导入")), {
359
+ setup(e, { expose: m, emit: p }) {
360
+ const l = e, w = p, n = ge(() => l.btnText ? l.btnText : u("导入")), {
361
361
  showProgressDialog: v,
362
362
  progressTitle: y,
363
363
  percent: N,
@@ -366,8 +366,8 @@ const Fe = ae.get("token"), _e = ae.post("put-object", (e) => (e.headers || (e.h
366
366
  errorFileSize: z,
367
367
  errorMessage: S,
368
368
  errorImport: M,
369
- importDialog: F,
370
- fileList: _,
369
+ importDialog: _,
370
+ fileList: F,
371
371
  fileHandleType: P,
372
372
  showImportHandle: E,
373
373
  confirmImport: b,
@@ -375,14 +375,14 @@ const Fe = ae.get("token"), _e = ae.post("put-object", (e) => (e.headers || (e.h
375
375
  errorFileDownload: A,
376
376
  downTemplate: R,
377
377
  clearTimer: O
378
- } = Ue(l, C);
378
+ } = Ue(l, w);
379
379
  let T;
380
380
  return ve(P, (f) => {
381
- f.includes("import") ? T = [p("正在导入中..."), p("导入失败"), p("导入成功")] : T = [p("正在导出中..."), p("导出失败"), p("导出成功")];
381
+ f.includes("import") ? T = [u("正在导入中..."), u("导入失败"), u("导入成功")] : T = [u("正在导出中..."), u("导出失败"), u("导出成功")];
382
382
  }), m({
383
383
  confirmImport: b,
384
384
  showImportHandle: E
385
- }), (f, g) => (he(), we("div", Me, [
385
+ }), (f, g) => (he(), Ce("div", Me, [
386
386
  q("div", {
387
387
  onClick: g[0] || (g[0] = //@ts-ignore
388
388
  (...h) => o(E) && o(E)(...h))
@@ -401,8 +401,8 @@ const Fe = ae.get("token"), _e = ae.post("put-object", (e) => (e.headers || (e.h
401
401
  ]),
402
402
  D(o(le), {
403
403
  title: o(j)(f.importDialogName).value,
404
- modelValue: o(F),
405
- "onUpdate:modelValue": g[3] || (g[3] = (h) => Q(F) ? F.value = h : null),
404
+ modelValue: o(_),
405
+ "onUpdate:modelValue": g[3] || (g[3] = (h) => Q(_) ? _.value = h : null),
406
406
  customClass: "upload-dialog",
407
407
  width: "610px",
408
408
  height: "500px"
@@ -411,7 +411,7 @@ const Fe = ae.get("token"), _e = ae.post("put-object", (e) => (e.headers || (e.h
411
411
  q("div", null, [
412
412
  D(o(W), {
413
413
  size: "middle",
414
- onClick: g[2] || (g[2] = (h) => F.value = !1)
414
+ onClick: g[2] || (g[2] = (h) => _.value = !1)
415
415
  }, {
416
416
  default: L(() => [
417
417
  Y(H(o(j)("取消").value), 1)
@@ -421,7 +421,7 @@ const Fe = ae.get("token"), _e = ae.post("put-object", (e) => (e.headers || (e.h
421
421
  D(o(W), {
422
422
  size: "middle",
423
423
  "btn-type": "primary",
424
- disabled: f.openDisabled && o(_).length === 0,
424
+ disabled: f.openDisabled && o(F).length === 0,
425
425
  style: { "margin-left": "12px", width: "100%" },
426
426
  onClick: o(b)
427
427
  }, {
@@ -453,8 +453,8 @@ const Fe = ae.get("token"), _e = ae.post("put-object", (e) => (e.headers || (e.h
453
453
  ])
454
454
  ], !0),
455
455
  D(o(ke), {
456
- modelValue: o(_),
457
- "onUpdate:modelValue": g[1] || (g[1] = (h) => Q(_) ? _.value = h : null),
456
+ modelValue: o(F),
457
+ "onUpdate:modelValue": g[1] || (g[1] = (h) => Q(F) ? F.value = h : null),
458
458
  error: o(M),
459
459
  "error-file-name": o($),
460
460
  "error-file-size": o(z),
@@ -492,10 +492,10 @@ const Fe = ae.get("token"), _e = ae.post("put-object", (e) => (e.headers || (e.h
492
492
  ]));
493
493
  }
494
494
  }), Re = (e, m) => {
495
- const u = e.__vccOpts || e;
496
- for (const [l, C] of m)
497
- u[l] = C;
498
- return u;
495
+ const p = e.__vccOpts || e;
496
+ for (const [l, w] of m)
497
+ p[l] = w;
498
+ return p;
499
499
  }, Ve = /* @__PURE__ */ Re(Be, [["__scopeId", "data-v-658f8c34"]]), He = {
500
500
  "1、点击下载 ": { "zh-CN": "1、点击下载 ", en: "1.Click to Download ", _appCode: "framework" },
501
501
  "2、仅支持上传Excel文件,重复数据以最后一条为准": {
@@ -522,6 +522,8 @@ const Fe = ae.get("token"), _e = ae.post("put-object", (e) => (e.headers || (e.h
522
522
  失败: { "zh-CN": "失败", en: "Failed", _appCode: "framework" },
523
523
  成功: { "zh-CN": "成功", en: "Successfully", _appCode: "framework" },
524
524
  部分: { "zh-CN": "部分", en: "Some", _appCode: "framework" },
525
+ 导入模板: { "zh-CN": "导入模板", en: "Import Template", _appCode: "framework" },
526
+ 确定导入: { "zh-CN": "确定导入", en: "OK", _appCode: "framework" },
525
527
  "部分数据校验不通过,请下载附件并修改,重新导入!": {
526
528
  "zh-CN": "部分数据校验不通过,请下载附件并修改,重新导入!",
527
529
  en: "Some data validation errors detected. Please download the attachment, make necessary corrections, and import again!",
@@ -9,7 +9,6 @@ import { setThemeRule as E } from "@das-fed/web/packages/theme/index";
9
9
  const J = (u, m) => {
10
10
  const s = B([]), p = q(() => [...s.value, ...u.data || []]), l = async (e, a) => {
11
11
  var f, c;
12
- await I();
13
12
  const o = [], n = a.menu || "", i = ((c = (f = _()) == null ? void 0 : f.currentSubApp) == null ? void 0 : c.menus) ?? [];
14
13
  if (!i || !i.length) return;
15
14
  let t = null;
@@ -44,8 +43,10 @@ const J = (u, m) => {
44
43
  () => b.currentRoute.value,
45
44
  (e) => {
46
45
  const a = (e == null ? void 0 : e.path) ?? "", o = (e == null ? void 0 : e.query) ?? {};
47
- g(o).then(() => {
48
- l(a, o);
46
+ I(() => {
47
+ g(o).then(() => {
48
+ l(a, o);
49
+ });
49
50
  });
50
51
  },
51
52
  { immediate: !0 }