@das-fed/ui 6.4.0-dev.55.13 → 6.4.0-dev.55.15

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.
Files changed (76) hide show
  1. package/esm-map.json +4 -1
  2. package/package.json +5 -5
  3. package/packages/business-components/change-enterprises/index.js +8 -8
  4. package/packages/business-components/change-enterprises/index.js.gz +0 -0
  5. package/packages/business-components/change-pwd/index.js +37 -37
  6. package/packages/business-components/change-pwd/index.js.gz +0 -0
  7. package/packages/business-components/currency-page/index.js +16 -16
  8. package/packages/business-components/currency-page/index.js.gz +0 -0
  9. package/packages/business-components/device-panel/index.js +12414 -12707
  10. package/packages/business-components/device-panel/index.js.gz +0 -0
  11. package/packages/business-components/device-panel/src/components/alarmDevicePanel/operatingData/index.vue.d.ts +1 -7
  12. package/packages/business-components/device-panel/src/hooks/use-operating-data.d.ts +22 -0
  13. package/packages/business-components/device-panel/style.css +1 -1
  14. package/packages/business-components/device-panel/style.css.gz +0 -0
  15. package/packages/business-components/export-button/index.js +30 -30
  16. package/packages/business-components/export-button/index.js.gz +0 -0
  17. package/packages/business-components/import-button/i18n/index.d.ts +1 -1
  18. package/packages/business-components/import-button/index.js +57 -57
  19. package/packages/business-components/import-button/index.js.gz +0 -0
  20. package/packages/business-components/model-table-dialog/index.js +1 -1
  21. package/packages/business-components/model-table-dialog/index.js.gz +0 -0
  22. package/packages/business-components/process-configuration/index.js +58 -58
  23. package/packages/business-components/process-configuration/index.js.gz +0 -0
  24. package/packages/business-components/process-form/index.js +209 -214
  25. package/packages/business-components/process-form/index.js.gz +0 -0
  26. package/packages/business-components/process-search-form/index.js +25 -25
  27. package/packages/business-components/process-search-form/index.js.gz +0 -0
  28. package/packages/business-components/upload-file/index.js +13 -13
  29. package/packages/business-components/upload-file/index.js.gz +0 -0
  30. package/packages/business-components/urgent-panel/index.js +245 -245
  31. package/packages/business-components/urgent-panel/index.js.gz +0 -0
  32. package/packages/business-components/user-org-dialog/index.js +67 -67
  33. package/packages/business-components/user-org-dialog/index.js.gz +0 -0
  34. package/packages/components/date-picker/index.js +61 -61
  35. package/packages/components/date-picker/index.js.gz +0 -0
  36. package/packages/components/dimple-layout/index.js +7 -7
  37. package/packages/components/dimple-layout/index.js.gz +0 -0
  38. package/packages/components/image-upload/index.js +57 -57
  39. package/packages/components/image-upload/index.js.gz +0 -0
  40. package/packages/components/input-dialog-select/i18n/index.d.ts +12 -1
  41. package/packages/components/input-dialog-select/index.d.ts +1 -0
  42. package/packages/components/input-dialog-select/index.js +108 -101
  43. package/packages/components/input-dialog-select/index.js.gz +0 -0
  44. package/packages/components/input-dialog-select/src/Index.vue.d.ts +1 -0
  45. package/packages/components/input-dialog-select/style.css +1 -1
  46. package/packages/components/input-dialog-select/style.css.gz +0 -0
  47. package/packages/components/live-player/index.js +142 -142
  48. package/packages/components/live-player/index.js.gz +0 -0
  49. package/packages/components/map/index.js +3 -3
  50. package/packages/components/map/index.js.gz +0 -0
  51. package/packages/components/rich-editor/index.js +4 -4
  52. package/packages/components/rich-editor/index.js.gz +0 -0
  53. package/packages/components/select/index.js +41 -41
  54. package/packages/components/select/index.js.gz +0 -0
  55. package/packages/components/select/style.css +1 -1
  56. package/packages/components/select/style.css.gz +0 -0
  57. package/packages/components/table/index.js +460 -460
  58. package/packages/components/table/index.js.gz +0 -0
  59. package/packages/components/tree/index.js +1 -1
  60. package/packages/components/tree/index.js.gz +0 -0
  61. package/packages/components/upload/index.js +7 -7
  62. package/packages/components/upload/index.js.gz +0 -0
  63. package/packages/icons/exit/index.d.ts +1 -0
  64. package/packages/icons/exit/index.js +17 -0
  65. package/packages/icons/exit/index.js.gz +0 -0
  66. package/packages/icons/exit/index.vue.d.ts +16 -0
  67. package/packages/icons/global/index.d.ts +1 -0
  68. package/packages/icons/global/index.js +17 -0
  69. package/packages/icons/global/index.js.gz +0 -0
  70. package/packages/icons/global/index.vue.d.ts +16 -0
  71. package/packages/icons/index.d.ts +3 -0
  72. package/packages/icons/index.js +3 -0
  73. package/packages/icons/system/index.d.ts +1 -0
  74. package/packages/icons/system/index.js +17 -0
  75. package/packages/icons/system/index.js.gz +0 -0
  76. package/packages/icons/system/index.vue.d.ts +16 -0
@@ -1,12 +1,12 @@
1
1
  import '@das-fed/ui/packages/business-components/export-button/style.css';
2
2
  import { withInstall as X } from "@das-fed/utils/with-install/index";
3
- import { ref as p, defineComponent as G, computed as J, watch as E, openBlock as K, createElementBlock as Q, createVNode as T, unref as h, withCtx as B, renderSlot as W, createTextVNode as Z, toDisplayString as ee, createCommentVNode as te, isRef as S } from "vue";
4
- import { t as g, i18n as C, setI18nRule as se } from "@das-fed/web/packages/i18n/index";
3
+ import { ref as p, defineComponent as G, computed as J, watch as I, openBlock as K, createElementBlock as Q, createVNode as T, unref as h, withCtx as B, renderSlot as W, createTextVNode as Z, toDisplayString as ee, createCommentVNode as te, isRef as S } from "vue";
4
+ import { t as g, i18n as $, setI18nRule as se } from "@das-fed/web/packages/i18n/index";
5
5
  import { DasDialog as ae } from "@das-fed/ui/packages/components/dialog/index";
6
6
  import { DasProgress as oe } from "@das-fed/ui/packages/components/progress/index";
7
7
  import { DasButton as re } from "@das-fed/ui/packages/components/button/index";
8
8
  import { iotProgress as le } from "@das-fed/utils/api-services/modules/iot";
9
- import D from "dayjs";
9
+ import z from "dayjs";
10
10
  import { DasMessage as P } from "@das-fed/ui/packages/components/message/index";
11
11
  import { getConfig as L } from "@das-fed/utils/config";
12
12
  let H = (a = 21) => {
@@ -21,7 +21,7 @@ const ne = le.get("progress"), ue = (a) => {
21
21
  let l = p(!1), e = p(!1), s = p(""), i = p(0), o = p("normal"), m = p(!1), c, x = p(""), n = p(""), d = p(""), f = p(""), v = p(!1), k = p(""), w;
22
22
  const Y = () => {
23
23
  n.value = "", d.value = "", f.value = "", v.value = !1, k.value = "";
24
- }, F = async (t, u = "", y = "") => {
24
+ }, O = async (t, u = "", y = "") => {
25
25
  o.value = "normal", i.value = 0, s.value = y || g("导出进度"), e.value = !0;
26
26
  const b = await (t == null ? void 0 : t());
27
27
  if (!b.status) {
@@ -29,21 +29,21 @@ const ne = le.get("progress"), ue = (a) => {
29
29
  return;
30
30
  }
31
31
  _(b.taskId, "action", "");
32
- }, O = async (t, u = "", y = "") => {
32
+ }, F = async (t, u = "", y = "") => {
33
33
  o.value = "normal", i.value = 0, s.value = g("导出进度"), e.value = !0;
34
34
  const b = await (t == null ? void 0 : t());
35
35
  if (!b.status) {
36
36
  e.value = !1, o.value = "error";
37
37
  return;
38
38
  }
39
- D().format("YYYYMMDDHHmmss") + "", _(b.taskId, "export", u || "", y);
39
+ z().format("YYYYMMDDHHmmss") + "", _(b.taskId, "export", u || "", y);
40
40
  }, _ = async (t, u, y, b = "") => {
41
- m.value = !0, z(t, u, y, b), c = setTimeout(() => {
41
+ m.value = !0, V(t, u, y, b), c = setTimeout(() => {
42
42
  }, 50);
43
- }, V = () => {
43
+ }, D = () => {
44
44
  clearTimeout(c), c = null, e.value = !1;
45
- }, z = async (t, u = "export", y, b = "") => {
46
- var I, N, U;
45
+ }, V = async (t, u = "export", y, b = "") => {
46
+ var R, U, E;
47
47
  const [j, r] = await ne("", {
48
48
  url: `progress/${t}`
49
49
  }).run();
@@ -52,29 +52,29 @@ const ne = le.get("progress"), ue = (a) => {
52
52
  return;
53
53
  }
54
54
  i.value = r.percentage;
55
- const $ = u == "export" ? g("导出") : g("导入");
55
+ const C = u == "export" ? g("导出") : g("导入");
56
56
  if (i.value == 100)
57
- if (x.value = r, m.value = !1, V(), u == "export")
58
- r.status == 1 ? (o.value = "success", M(`${L().baseURL}/oss${r.filePath}`, y, b), m.value = !1, a("success")) : r.status == 2 && (f.value = r.message || `${$}${g("失败")}`, P.error({
59
- message: r.message || `${$}${g("失败")}`,
57
+ if (x.value = r, m.value = !1, D(), u == "export")
58
+ r.status == 1 ? (o.value = "success", M(`${L().baseURL}/oss${r.filePath}`, y, b), m.value = !1, a("success")) : r.status == 2 && (f.value = r.message || `${C}${g("失败")}`, P.error({
59
+ message: r.message || `${C}${g("失败")}`,
60
60
  grouping: !0,
61
61
  repeatNum: 1
62
62
  }));
63
63
  else if (u == "import") {
64
64
  if (r.filePath) {
65
65
  o.value = "error";
66
- const q = (I = w.name) == null ? void 0 : I.substr(w.name.indexOf("."));
67
- (N = w.name) == null || N.replace(/(.*\/)*([^.]+).*/gi, "$2"), v.value = !0;
68
- const A = (U = r.filePath) == null ? void 0 : U.replace(/(.*\/)*([^.]+).*/gi, "$2");
66
+ const q = (R = w.name) == null ? void 0 : R.substr(w.name.indexOf("."));
67
+ (U = w.name) == null || U.replace(/(.*\/)*([^.]+).*/gi, "$2"), v.value = !0;
68
+ const A = (E = r.filePath) == null ? void 0 : E.replace(/(.*\/)*([^.]+).*/gi, "$2");
69
69
  n.value = `${A}${q}`, d.value = w.sizeText, f.value = g("部分数据校验不通过,请下载附件并修改,重新导入!"), k.value = `${L().baseURL}/oss${r.filePath}`;
70
70
  }
71
- R(r.status, $), r.status == 1 && (l.value = !1), a("success");
71
+ N(r.status, C), r.status == 1 && (l.value = !1), a("success");
72
72
  } else u == "action" && (o.value = "success");
73
73
  else
74
74
  c && r.status != 2 ? c = setTimeout(() => {
75
- z(t, u, y, b);
76
- }, 50) : (x.value = r, m.value = !1, R(r.status, $), V(), v.value = !0, f.value = (r == null ? void 0 : r.message) || "");
77
- }, R = (t, u) => {
75
+ V(t, u, y, b);
76
+ }, 50) : (x.value = r, m.value = !1, N(r.status, C), D(), v.value = !0, f.value = (r == null ? void 0 : r.message) || "");
77
+ }, N = (t, u) => {
78
78
  t == 1 ? (o.value = "success", P.success({
79
79
  message: g("business-components_export-success-tip", u),
80
80
  grouping: !0,
@@ -102,8 +102,8 @@ const ne = le.get("progress"), ue = (a) => {
102
102
  errorMessage: f,
103
103
  errorImport: v,
104
104
  errorFilePath: k,
105
- fileExport: O,
106
- fileAction: F,
105
+ fileExport: F,
106
+ fileAction: O,
107
107
  generateUniqueName: (t) => {
108
108
  const u = t == null ? void 0 : t.substr(t.indexOf("."));
109
109
  return `${t == null ? void 0 : t.replace(/(.*\/)*([^.]+).*/gi, "$2")}${H()}${u}`;
@@ -132,7 +132,7 @@ const ne = le.get("progress"), ue = (a) => {
132
132
  }, n.value = {
133
133
  ...k
134
134
  };
135
- const w = `${a.exportFileName}${D().format("YYYYMMDD")}-${D().format("HHmmss")}.${a.fileType}`;
135
+ const w = `${a.exportFileName}${z().format("YYYYMMDD")}-${z().format("HHmmss")}.${a.fileType}`;
136
136
  c(f, w, a.fileType);
137
137
  }, f = async () => {
138
138
  let v = H();
@@ -165,12 +165,12 @@ const ne = le.get("progress"), ue = (a) => {
165
165
  emits: ["update:modelValue", "update:bodyParams", "success"],
166
166
  setup(a, { emit: l }) {
167
167
  const e = a, s = l;
168
- J(() => e.exportFileName || g("导出表")), E(e.modelValue, (n) => {
168
+ J(() => e.exportFileName || g("导出表")), I(e.modelValue, (n) => {
169
169
  s("update:modelValue", n);
170
- }), E(e.bodyParams, (n) => {
170
+ }), I(e.bodyParams, (n) => {
171
171
  s("update:bodyParams", n);
172
172
  });
173
- const { showProgressDialog: i, percent: o, progressStatus: m, exportList: c } = ie(e, s), x = [C("正在导出中...").value, C("导出失败").value, C("导出成功").value];
173
+ const { showProgressDialog: i, percent: o, progressStatus: m, exportList: c } = ie(e, s), x = [$("正在导出中...").value, $("导出失败").value, $("导出成功").value];
174
174
  return (n, d) => (K(), Q("div", pe, [
175
175
  T(h(re), {
176
176
  block: n.block,
@@ -183,7 +183,7 @@ const ne = le.get("progress"), ue = (a) => {
183
183
  default: B(() => [
184
184
  W(n.$slots, "default", {}, () => [
185
185
  Z(
186
- ee(h(C)("导出").value),
186
+ ee(h($)("导出").value),
187
187
  1
188
188
  /* TEXT */
189
189
  )
@@ -195,7 +195,7 @@ const ne = le.get("progress"), ue = (a) => {
195
195
  te(" 进度弹窗 "),
196
196
  T(h(ae), {
197
197
  size: "mini",
198
- title: h(C)("导出进度").value,
198
+ title: h($)("导出进度").value,
199
199
  "is-feedback-img": !1,
200
200
  modelValue: h(i),
201
201
  "onUpdate:modelValue": d[2] || (d[2] = (f) => S(i) ? i.value = f : null),
@@ -231,7 +231,7 @@ const ne = le.get("progress"), ue = (a) => {
231
231
  导入: { "zh-CN": "导入", en: "Import", _appCode: "framework" },
232
232
  "部分数据校验不通过,请下载附件并修改,重新导入!": {
233
233
  "zh-CN": "部分数据校验不通过,请下载附件并修改,重新导入!",
234
- en: "Some Data Failed Validation, Please Download the Attachment, Make Corrections, and Re-Import!",
234
+ en: "Some data failed validation, please download the attachment, make corrections, and re-import!",
235
235
  _appCode: "framework"
236
236
  },
237
237
  "正在导出中...": { "zh-CN": "正在导出中...", en: "Exporting...", _appCode: "framework" },
@@ -1,5 +1,5 @@
1
1
  declare const _default: {
2
- 点击下载: {
2
+ '1\u3001\u70B9\u51FB\u4E0B\u8F7D': {
3
3
  'zh-CN': string;
4
4
  en: string;
5
5
  _appCode: string;
@@ -1,6 +1,6 @@
1
1
  import '@das-fed/ui/packages/business-components/import-button/style.css';
2
2
  import { withInstall as fe } from "@das-fed/utils/with-install/index";
3
- import { ref as w, defineComponent as ge, watch as ve, openBlock as he, createElementBlock as we, createElementVNode as O, unref as o, renderSlot as re, createVNode as U, withCtx as L, createTextVNode as K, toDisplayString as A, createCommentVNode as le, isRef as Q } from "vue";
3
+ import { ref as w, defineComponent as ge, watch as ve, openBlock as he, createElementBlock as we, createElementVNode as O, unref as o, renderSlot as re, createVNode as U, withCtx as L, createTextVNode as K, toDisplayString as H, createCommentVNode as le, isRef as Q } from "vue";
4
4
  import { t as c, i18n as $, setI18nRule as Ce } from "@das-fed/web/packages/i18n/index";
5
5
  import { DasDialog as se } from "@das-fed/ui/packages/components/dialog/index";
6
6
  import { DasUpload as ke } from "@das-fed/ui/packages/components/upload/index";
@@ -22,13 +22,13 @@ let te = (e = 21) => {
22
22
  return m;
23
23
  };
24
24
  const Te = 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 = ye.get("progress"), Se = (e) => {
25
- let m = w(!1), u = w(!1), n = w(""), h = w(0), p = w("normal"), C = w(!1), g, z = w(""), D = w(""), I = w(""), b = w(""), _ = w(!1), E = w(""), T = "", F = w(""), S;
25
+ let m = w(!1), u = w(!1), n = w(""), h = w(0), p = w("normal"), C = w(!1), g, z = w(""), P = w(""), I = w(""), b = w(""), _ = w(!1), E = w(""), T = "", F = w(""), S;
26
26
  const k = () => {
27
- D.value = "", I.value = "", b.value = "", _.value = !1, E.value = "";
28
- }, R = async () => {
27
+ P.value = "", I.value = "", b.value = "", _.value = !1, E.value = "";
28
+ }, j = async () => {
29
29
  const [r, l] = await Te().run();
30
30
  return r ? { stauts: !1 } : { status: !0, data: l };
31
- }, j = (r) => new Promise((l, a) => {
31
+ }, R = (r) => new Promise((l, a) => {
32
32
  const i = [];
33
33
  let t = 0;
34
34
  for (; t < r.size; ) {
@@ -39,14 +39,14 @@ const Te = ae.get("token"), Fe = ae.post("put-object", (e) => (e.headers || (e.h
39
39
  l(x);
40
40
  }), V = async (r, l, a, s = !1, i = !0, t = "") => {
41
41
  T = t, F.value = "import", i && (p.value = "normal", h.value = 0, n.value = c("导入进度"), u.value = !0, z.value = ""), S = l;
42
- const x = await R();
42
+ const x = await j();
43
43
  if (!x.status) return;
44
44
  let y = x.data, N = null, { autoContentType: Y, bucketName: B, importFileName: J } = a;
45
45
  const ue = s ? Ie : Fe;
46
46
  if (s) {
47
47
  let X = [];
48
48
  await l.forEach(async (G) => {
49
- let ee = await j(G);
49
+ let ee = await R(G);
50
50
  X.push(ee);
51
51
  }), N = new FormData(), N.append("accessKeyId", y.accessKeyId), N.append("secretAccessKey", y.secretAccessKey), N.append("sessionToken", y.sessionToken), N.append("bucketName", B), l.forEach((G, ee) => {
52
52
  N.append("file", X[ee]);
@@ -54,7 +54,7 @@ const Te = ae.get("token"), Fe = ae.post("put-object", (e) => (e.headers || (e.h
54
54
  N.append("filePaths", G);
55
55
  });
56
56
  } else {
57
- const X = await j(l);
57
+ const X = await R(l);
58
58
  N = {
59
59
  accessKeyId: y.accessKeyId,
60
60
  secretAccessKey: y.secretAccessKey,
@@ -67,7 +67,7 @@ const Te = ae.get("token"), Fe = ae.post("put-object", (e) => (e.headers || (e.h
67
67
  }
68
68
  const [me, ce] = await ue(N).run();
69
69
  if (me) return;
70
- const de = await Pe(ce.data), Z = await (r == null ? void 0 : r(de));
70
+ const de = await De(ce.data), Z = await (r == null ? void 0 : r(de));
71
71
  if (i) {
72
72
  if (!Z.status) {
73
73
  u.value = !1, p.value = "error";
@@ -82,7 +82,7 @@ const Te = ae.get("token"), Fe = ae.post("put-object", (e) => (e.headers || (e.h
82
82
  repeatNum: 1
83
83
  });
84
84
  }
85
- }, H = async (r, l = "", a = "") => {
85
+ }, A = async (r, l = "", a = "") => {
86
86
  p.value = "normal", h.value = 0, n.value = a || c("导出进度"), u.value = !0;
87
87
  const s = await (r == null ? void 0 : r());
88
88
  if (!s.status) {
@@ -90,7 +90,7 @@ const Te = ae.get("token"), Fe = ae.post("put-object", (e) => (e.headers || (e.h
90
90
  return;
91
91
  }
92
92
  d(s.taskId, "action", "");
93
- }, P = async (r, l = "", a = "xlsx") => {
93
+ }, D = async (r, l = "", a = "xlsx") => {
94
94
  F.value = "export", p.value = "normal", h.value = 0, n.value = c("导出进度"), u.value = !0;
95
95
  const s = await (r == null ? void 0 : r());
96
96
  if (!s.status) {
@@ -128,7 +128,7 @@ const Te = ae.get("token"), Fe = ae.post("put-object", (e) => (e.headers || (e.h
128
128
  Y.length && Y[2], _.value = !0;
129
129
  let B = await be(`/oss/${t == null ? void 0 : t.filePath}`);
130
130
  const J = ((N = B == null ? void 0 : B.split("/")) == null ? void 0 : N.pop()) || "";
131
- D.value = T || J, I.value = S.sizeText, b.value = c("部分数据校验不通过,请下载附件并修改,重新导入!"), E.value = `${ne().baseURL}/oss/${t == null ? void 0 : t.filePath}`;
131
+ P.value = T || J, I.value = S.sizeText, b.value = c("部分数据校验不通过,请下载附件并修改,重新导入!"), E.value = `${ne().baseURL}/oss/${t == null ? void 0 : t.filePath}`;
132
132
  }
133
133
  q(t.status, x, t.message), t.status == 1 && (m.value = !1), e("success");
134
134
  } else l == "action" && (p.value = "success");
@@ -141,7 +141,7 @@ const Te = ae.get("token"), Fe = ae.post("put-object", (e) => (e.headers || (e.h
141
141
  message: c("business-components_export-success-tip", l),
142
142
  grouping: !0,
143
143
  repeatNum: 1
144
- }), D.value = "", I.value = "", b.value = "") : r == 2 ? (p.value = "error", M.error({
144
+ }), P.value = "", I.value = "", b.value = "") : r == 2 ? (p.value = "error", M.error({
145
145
  message: c("business-components_export-failure-tip", l),
146
146
  grouping: !0,
147
147
  repeatNum: 1
@@ -159,15 +159,15 @@ const Te = ae.get("token"), Fe = ae.post("put-object", (e) => (e.headers || (e.h
159
159
  progressStatus: p,
160
160
  progressLoading: C,
161
161
  progressResult: z,
162
- errorFileName: D,
162
+ errorFileName: P,
163
163
  errorFileSize: I,
164
164
  errorMessage: b,
165
165
  errorImport: _,
166
166
  errorFilePath: E,
167
167
  fileHandleType: F,
168
168
  fileImport: V,
169
- fileExport: P,
170
- fileAction: H,
169
+ fileExport: D,
170
+ fileAction: A,
171
171
  generateUniqueName: (r) => {
172
172
  const l = r == null ? void 0 : r.match(/(.*?)(\.[^.]*$|$)/), a = l.length ? l[2] : "";
173
173
  return `${l.length ? l[1] : r}${te()}${a}`;
@@ -176,7 +176,7 @@ const Te = ae.get("token"), Fe = ae.post("put-object", (e) => (e.headers || (e.h
176
176
  resetStataus: k,
177
177
  checkProgress: d
178
178
  };
179
- }, De = (e) => {
179
+ }, Pe = (e) => {
180
180
  let m = e == null ? void 0 : e.toLocaleLowerCase();
181
181
  return {
182
182
  excel: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
@@ -209,7 +209,7 @@ const Te = ae.get("token"), Fe = ae.post("put-object", (e) => (e.headers || (e.h
209
209
  const n = new XMLHttpRequest();
210
210
  n.open("get", e), n.setRequestHeader("Content-Type", "application/json; charset=UTF-8"), n.responseType = "blob", n.onload = function(h) {
211
211
  const p = new Blob([this.response], {
212
- type: De(u)
212
+ type: Pe(u)
213
213
  }), C = URL.createObjectURL(p);
214
214
  if (window.navigator.msSaveOrOpenBlob)
215
215
  navigator.msSaveBlob(p, m);
@@ -218,7 +218,7 @@ const Te = ae.get("token"), Fe = ae.post("put-object", (e) => (e.headers || (e.h
218
218
  g.href = C, g.download = m, g.click(), window.URL.revokeObjectURL(C);
219
219
  }
220
220
  }, n.send();
221
- }, Pe = (e) => new Promise((m, u) => {
221
+ }, De = (e) => new Promise((m, u) => {
222
222
  var n = new FileReader();
223
223
  n.onload = function(h) {
224
224
  let p = "";
@@ -234,7 +234,7 @@ const Te = ae.get("token"), Fe = ae.post("put-object", (e) => (e.headers || (e.h
234
234
  progressStatus: C,
235
235
  progressLoading: g,
236
236
  errorFileName: z,
237
- errorFileSize: D,
237
+ errorFileSize: P,
238
238
  errorMessage: I,
239
239
  errorImport: b,
240
240
  errorFilePath: _,
@@ -243,13 +243,13 @@ const Te = ae.get("token"), Fe = ae.post("put-object", (e) => (e.headers || (e.h
243
243
  fileExport: F,
244
244
  downloadFile: S
245
245
  } = Se(m);
246
- let k = w([]), R = (l = ze()) == null ? void 0 : l.tenantId;
247
- const j = () => {
248
- k.value = [], b.value = !1, z.value = "", D.value = "", I.value = "", u.value = !0, _.value = "", m("open");
246
+ let k = w([]), j = (l = ze()) == null ? void 0 : l.tenantId;
247
+ const R = () => {
248
+ k.value = [], b.value = !1, z.value = "", P.value = "", I.value = "", u.value = !0, _.value = "", m("open");
249
249
  };
250
250
  let V;
251
- const H = (a) => {
252
- const s = e.fileType.split(","), i = a.name.substring(a.name.lastIndexOf(".")), t = P(a.sizeText), x = P(e.fileMaxSize);
251
+ const A = (a) => {
252
+ const s = e.fileType.split(","), i = a.name.substring(a.name.lastIndexOf(".")), t = D(a.sizeText), x = D(e.fileMaxSize);
253
253
  if (!s.includes(i)) {
254
254
  M.warning(c("文件格式错误,请重新上传!")), setTimeout(() => {
255
255
  k.value = [];
@@ -263,7 +263,7 @@ const Te = ae.get("token"), Fe = ae.post("put-object", (e) => (e.headers || (e.h
263
263
  return;
264
264
  }
265
265
  V = a.name;
266
- }, P = (a) => {
266
+ }, D = (a) => {
267
267
  let s = a.match(/\d+(\.\d+)?/)[0], i = a.match(/[a-zA-z]+/gi)[0], t = 0;
268
268
  return s = parseFloat(s), i = i.toLowerCase(), i === "gb" || i === "g" ? t = (s * 1024 * 1024 * 1024).toFixed(2) : i === "mb" || i === "m" ? t = (s * 1024 * 1024).toFixed(2) : i === "kb" || i === "k" ? t = (s * 1024).toFixed(2) : i === "b" && (t = s), parseFloat(t);
269
269
  }, d = async (a) => {
@@ -280,7 +280,7 @@ const Te = ae.get("token"), Fe = ae.post("put-object", (e) => (e.headers || (e.h
280
280
  if (!k.value.length) return M.warning(c("请上传文件"));
281
281
  const a = {
282
282
  bucketName: e.bucketName,
283
- importFileName: `${R}/${e.ossName}/${V}`
283
+ importFileName: `${j}/${e.ossName}/${V}`
284
284
  }, s = e.maxCount > 1, i = e.maxCount > 1 ? k.value : k.value[0];
285
285
  await T(d, i, a, s);
286
286
  }, v = () => {
@@ -299,15 +299,15 @@ const Te = ae.get("token"), Fe = ae.post("put-object", (e) => (e.headers || (e.h
299
299
  progressStatus: C,
300
300
  progressLoading: g,
301
301
  errorFileName: z,
302
- errorFileSize: D,
302
+ errorFileSize: P,
303
303
  errorMessage: I,
304
304
  errorImport: b,
305
305
  importDialog: u,
306
306
  fileList: k,
307
307
  fileHandleType: E,
308
- showImportHandle: j,
308
+ showImportHandle: R,
309
309
  confirmImport: f,
310
- fileUpload: H,
310
+ fileUpload: A,
311
311
  errorFileDownload: v,
312
312
  downTemplate: async () => {
313
313
  let a = "";
@@ -327,7 +327,7 @@ const Te = ae.get("token"), Fe = ae.post("put-object", (e) => (e.headers || (e.h
327
327
  }
328
328
  }
329
329
  };
330
- }, $e = { class: "das-import-button" }, Me = { class: "tip-box" }, Ee = { class: "first-line" }, Le = { class: "second-line" }, Re = /* @__PURE__ */ ge({
330
+ }, $e = { class: "das-import-button" }, Me = { class: "tip-box" }, Ee = { class: "first-line" }, Le = { class: "second-line" }, je = /* @__PURE__ */ ge({
331
331
  __name: "App",
332
332
  props: {
333
333
  importFun: {},
@@ -354,7 +354,7 @@ const Te = ae.get("token"), Fe = ae.post("put-object", (e) => (e.headers || (e.h
354
354
  progressTitle: C,
355
355
  percent: g,
356
356
  progressStatus: z,
357
- progressLoading: D,
357
+ progressLoading: P,
358
358
  errorFileName: I,
359
359
  errorFileSize: b,
360
360
  errorMessage: _,
@@ -363,16 +363,16 @@ const Te = ae.get("token"), Fe = ae.post("put-object", (e) => (e.headers || (e.h
363
363
  fileList: F,
364
364
  fileHandleType: S,
365
365
  showImportHandle: k,
366
- confirmImport: R,
367
- fileUpload: j,
366
+ confirmImport: j,
367
+ fileUpload: R,
368
368
  errorFileDownload: V,
369
- downTemplate: H
369
+ downTemplate: A
370
370
  } = Ue(n, h);
371
- let P;
371
+ let D;
372
372
  return ve(S, (d) => {
373
- d.includes("import") ? P = [c("正在导入中..."), c("导入失败"), c("导入成功")] : P = [c("正在导出中..."), c("导出失败"), c("导出成功")];
373
+ d.includes("import") ? D = [c("正在导入中..."), c("导入失败"), c("导入成功")] : D = [c("正在导出中..."), c("导出失败"), c("导出成功")];
374
374
  }), m({
375
- confirmImport: R,
375
+ confirmImport: j,
376
376
  showImportHandle: k
377
377
  }), (d, f) => (he(), we("div", $e, [
378
378
  O("div", {
@@ -386,7 +386,7 @@ const Te = ae.get("token"), Fe = ae.post("put-object", (e) => (e.headers || (e.h
386
386
  }, {
387
387
  default: L(() => [
388
388
  K(
389
- A(o($)("导入").value),
389
+ H(o($)("导入").value),
390
390
  1
391
391
  /* TEXT */
392
392
  )
@@ -413,7 +413,7 @@ const Te = ae.get("token"), Fe = ae.post("put-object", (e) => (e.headers || (e.h
413
413
  }, {
414
414
  default: L(() => [
415
415
  K(
416
- A(o($)("取消").value),
416
+ H(o($)("取消").value),
417
417
  1
418
418
  /* TEXT */
419
419
  )
@@ -426,11 +426,11 @@ const Te = ae.get("token"), Fe = ae.post("put-object", (e) => (e.headers || (e.h
426
426
  "btn-type": "primary",
427
427
  disabled: d.openDisabled && o(F).length === 0,
428
428
  style: { "margin-left": "12px" },
429
- onClick: o(R)
429
+ onClick: o(j)
430
430
  }, {
431
431
  default: L(() => [
432
432
  K(
433
- A(o($)(`${d.confirmButtonName}`).value),
433
+ H(o($)(`${d.confirmButtonName}`).value),
434
434
  1
435
435
  /* TEXT */
436
436
  )
@@ -445,7 +445,7 @@ const Te = ae.get("token"), Fe = ae.post("put-object", (e) => (e.headers || (e.h
445
445
  O("div", Me, [
446
446
  O("div", Ee, [
447
447
  K(
448
- A(o($)("1、点击下载 ").value),
448
+ H(o($)("1、点击下载 ").value),
449
449
  1
450
450
  /* TEXT */
451
451
  ),
@@ -453,11 +453,11 @@ const Te = ae.get("token"), Fe = ae.post("put-object", (e) => (e.headers || (e.h
453
453
  size: "large",
454
454
  btnType: "primary-text",
455
455
  block: "",
456
- onClick: o(H)
456
+ onClick: o(A)
457
457
  }, {
458
458
  default: L(() => [
459
459
  K(
460
- A(o($)(`${d.templateName}`).value),
460
+ H(o($)(`${d.templateName}`).value),
461
461
  1
462
462
  /* TEXT */
463
463
  )
@@ -469,7 +469,7 @@ const Te = ae.get("token"), Fe = ae.post("put-object", (e) => (e.headers || (e.h
469
469
  O(
470
470
  "div",
471
471
  Le,
472
- A(o($)("2、仅支持上传Excel文件,重复数据以最后一条为准").value),
472
+ H(o($)("2、仅支持上传Excel文件,重复数据以最后一条为准").value),
473
473
  1
474
474
  /* TEXT */
475
475
  )
@@ -486,7 +486,7 @@ const Te = ae.get("token"), Fe = ae.post("put-object", (e) => (e.headers || (e.h
486
486
  maxCount: d.maxCount,
487
487
  multiple: d.multiple,
488
488
  onErrorFileDownload: o(V),
489
- onFileUpload: o(j)
489
+ onFileUpload: o(R)
490
490
  }, null, 8, ["modelValue", "error", "error-file-name", "error-file-size", "error-message", "accept", "maxCount", "multiple", "onErrorFileDownload", "onFileUpload"])
491
491
  ]),
492
492
  _: 3
@@ -508,7 +508,7 @@ const Te = ae.get("token"), Fe = ae.post("put-object", (e) => (e.headers || (e.h
508
508
  style: { "margin-top": "35px" },
509
509
  type: "circle",
510
510
  status: o(z),
511
- textMap: o(P)
511
+ textMap: o(D)
512
512
  }, null, 8, ["modelValue", "status", "textMap"])
513
513
  ]),
514
514
  _: 1
@@ -516,18 +516,18 @@ const Te = ae.get("token"), Fe = ae.post("put-object", (e) => (e.headers || (e.h
516
516
  }, 8, ["title", "modelValue"])
517
517
  ]));
518
518
  }
519
- }), je = (e, m) => {
519
+ }), Re = (e, m) => {
520
520
  const u = e.__vccOpts || e;
521
521
  for (const [n, h] of m)
522
522
  u[n] = h;
523
523
  return u;
524
- }, Ve = /* @__PURE__ */ je(Re, [["__scopeId", "data-v-3fab7506"]]), Be = {
525
- 点击下载: { "zh-CN": "点击下载", en: "Click to Download", _appCode: "framework" },
524
+ }, Ve = /* @__PURE__ */ Re(je, [["__scopeId", "data-v-3fab7506"]]), Be = {
525
+ "1、点击下载": { "zh-CN": "1、点击下载", en: "Click to Download", _appCode: "framework" },
526
526
  仅支持上传: { "zh-CN": "仅支持上传", en: "Only Support Uploading", _appCode: "framework" },
527
527
  文件: { "zh-CN": "文件", en: "File", _appCode: "framework" },
528
528
  重复数据以最后一条为准: {
529
529
  "zh-CN": "重复数据以最后一条为准",
530
- en: "Duplicate Data Is Subject to the Last Entry",
530
+ en: "Duplicate data is subject to the last entry",
531
531
  _appCode: "framework"
532
532
  },
533
533
  取消: { "zh-CN": "取消", en: "Cancel", _appCode: "framework" },
@@ -537,9 +537,9 @@ const Te = ae.get("token"), Fe = ae.post("put-object", (e) => (e.headers || (e.h
537
537
  导出失败: { "zh-CN": "导出失败", en: "Export Failed", _appCode: "framework" },
538
538
  导出成功: { "zh-CN": "导出成功", en: "Export Successful", _appCode: "framework" },
539
539
  文件格式错误: { "zh-CN": "文件格式错误", en: "File Format Error", _appCode: "framework" },
540
- 请重新上传: { "zh-CN": "请重新上传", en: "Please Upload Again", _appCode: "framework" },
541
- 文件大小不超过: { "zh-CN": "文件大小不超过", en: "File Size Must Not Exceed", _appCode: "framework" },
542
- 请上传文件: { "zh-CN": "请上传文件", en: "Please Upload the File", _appCode: "framework" },
540
+ 请重新上传: { "zh-CN": "请重新上传", en: "Please upload again", _appCode: "framework" },
541
+ 文件大小不超过: { "zh-CN": "文件大小不超过", en: "File size must not exceed", _appCode: "framework" },
542
+ 请上传文件: { "zh-CN": "请上传文件", en: "Please upload the file", _appCode: "framework" },
543
543
  导入进度: { "zh-CN": "导入进度", en: "Import Progress", _appCode: "framework" },
544
544
  导入成功: { "zh-CN": "导入成功", en: "Import Successful", _appCode: "framework" },
545
545
  导出进度: { "zh-CN": "导出进度", en: "Export Progress", _appCode: "framework" },
@@ -550,12 +550,12 @@ const Te = ae.get("token"), Fe = ae.post("put-object", (e) => (e.headers || (e.h
550
550
  部分: { "zh-CN": "部分", en: "Partial", _appCode: "framework" },
551
551
  "部分数据校验不通过,请下载附件并修改,重新导入!": {
552
552
  "zh-CN": "部分数据校验不通过,请下载附件并修改,重新导入!",
553
- en: "Some Data Validation Failed, Please Download the Attachment, Modify, and Re-Import!",
553
+ en: "Some data validation failed, please download the attachment, modify, and re-import!",
554
554
  _appCode: "framework"
555
555
  },
556
556
  "文件格式错误,请重新上传!": {
557
557
  "zh-CN": "文件格式错误,请重新上传!",
558
- en: "File Format Error, Please Re-Upload!",
558
+ en: "File format error, please re-upload!",
559
559
  _appCode: "framework"
560
560
  },
561
561
  "正在导入中...": { "zh-CN": "正在导入中...", en: "Importing...", _appCode: "framework" },
@@ -1108,7 +1108,7 @@ const no = { class: "business-dialog-content" }, ao = { class: "table-list-box"
1108
1108
  }
1109
1109
  }), io = /* @__PURE__ */ Lt(so, [["__scopeId", "data-v-059f72e7"]]), uo = {
1110
1110
  全部: { "zh-CN": "全部", en: "All", _appCode: "framework" },
1111
- 请输入关键词: { "zh-CN": "请输入关键词", en: "Please Enter Keywords", _appCode: "framework" },
1111
+ 请输入关键词: { "zh-CN": "请输入关键词", en: "Please enter keywords", _appCode: "framework" },
1112
1112
  取消: { "zh-CN": "取消", en: "Cancel", _appCode: "framework" },
1113
1113
  确定: { "zh-CN": "确定", en: "OK", _appCode: "framework" },
1114
1114
  标题: { "zh-CN": "标题", en: "Title", _appCode: "framework" },