@das-fed/ui 7.0.5-beta.8.1 → 7.0.5-beta.9

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 (199) hide show
  1. package/esm-map.json +5 -2
  2. package/package.json +6 -5
  3. package/packages/business-components/app-container/style.css +1 -1
  4. package/packages/business-components/app-container/style.css.gz +0 -0
  5. package/packages/business-components/area-phone-select/index.d.ts +23 -23
  6. package/packages/business-components/area-phone-select/src/Index.vue.d.ts +2 -2
  7. package/packages/business-components/area-phone-select/src/area-popover/index.vue.d.ts +2 -2
  8. package/packages/business-components/change-pwd/index.js +162 -120
  9. package/packages/business-components/change-pwd/index.js.gz +0 -0
  10. package/packages/business-components/change-pwd/src/get-public-key.d.ts +10 -0
  11. package/packages/business-components/change-pwd/src/password-encryption.d.ts +8 -0
  12. package/packages/business-components/currency-page/index.d.ts +5 -1
  13. package/packages/business-components/currency-page/index.js +50 -41
  14. package/packages/business-components/currency-page/index.js.gz +0 -0
  15. package/packages/business-components/currency-page/src/index.vue.d.ts +5 -1
  16. package/packages/business-components/currency-page/src/type.d.ts +9 -0
  17. package/packages/business-components/currency-page/style.css +1 -1
  18. package/packages/business-components/device-panel/i18n/index.d.ts +231 -0
  19. package/packages/business-components/device-panel/index.d.ts +1 -1
  20. package/packages/business-components/device-panel/index.js +23587 -20976
  21. package/packages/business-components/device-panel/index.js.gz +0 -0
  22. package/packages/business-components/device-panel/src/apis.d.ts +10 -0
  23. package/packages/business-components/device-panel/src/components/alarmDevicePanel/alarmScreenshot/components/currentAlarmScreenshot.vue.d.ts +6 -0
  24. package/packages/business-components/device-panel/src/components/alarmDevicePanel/alarmScreenshot/components/currentList.vue.d.ts +8 -0
  25. package/packages/business-components/device-panel/src/components/alarmDevicePanel/alarmScreenshot/components/hisList.vue.d.ts +8 -0
  26. package/packages/business-components/device-panel/src/components/alarmDevicePanel/alarmScreenshot/components/historyAlarmScreenshot.vue.d.ts +6 -0
  27. package/packages/business-components/device-panel/src/components/alarmDevicePanel/alarmScreenshot/index.vue.d.ts +2 -0
  28. package/packages/business-components/device-panel/src/components/alarmDevicePanel/hooks/use-alarm-screenshot.d.ts +6 -0
  29. package/packages/business-components/device-panel/src/components/alarmDevicePanel/hooks/use-knowledge.d.ts +6 -0
  30. package/packages/business-components/device-panel/src/components/alarmDevicePanel/knowledge/Index.vue.d.ts +6 -0
  31. package/packages/business-components/device-panel/src/components/alarmDevicePanel/knowledge/apis.d.ts +5 -0
  32. package/packages/business-components/device-panel/src/components/alarmDevicePanel/knowledge/components/use-info/Info.vue.d.ts +44 -0
  33. package/packages/business-components/device-panel/src/components/alarmDevicePanel/knowledge/components/use-info/downloadFile.d.ts +8 -0
  34. package/packages/business-components/device-panel/src/components/alarmDevicePanel/knowledge/components/use-info/info.d.ts +24 -0
  35. package/packages/business-components/device-panel/src/components/alarmDevicePanel/knowledge/utils/get-file-details.d.ts +2 -0
  36. package/packages/business-components/device-panel/src/components/alarmDevicePanel/repairRecord/apis.d.ts +10 -2
  37. package/packages/business-components/device-panel/src/components/alarmDevicePanel/repairRecord/components/use-info/Info.vue.d.ts +2 -1
  38. package/packages/business-components/device-panel/src/components/alarmDevicePanel/repairRecord/components/use-info/detail-tabs/ConsumableRecord.vue.d.ts +2 -0
  39. package/packages/business-components/device-panel/src/components/alarmDevicePanel/repairRecord/components/use-info/detail-tabs/DutyInfo.vue.d.ts +2 -0
  40. package/packages/business-components/device-panel/src/components/alarmDevicePanel/repairRecord/components/use-info/detail-tabs/EvaluateInfo.vue.d.ts +2 -0
  41. package/packages/business-components/device-panel/src/components/alarmDevicePanel/repairRecord/components/use-info/detail-tabs/FollowUpRecord.vue.d.ts +2 -0
  42. package/packages/business-components/device-panel/src/components/alarmDevicePanel/repairRecord/components/use-info/detail-tabs/ProgressInfo.vue.d.ts +2 -0
  43. package/packages/business-components/device-panel/src/components/alarmDevicePanel/repairRecord/components/use-info/info.d.ts +1 -0
  44. package/packages/business-components/device-panel/src/components/devicePanelModal/alarmScreenshot/components/currentAlarmScreenshot.vue.d.ts +6 -0
  45. package/packages/business-components/device-panel/src/components/devicePanelModal/alarmScreenshot/components/currentList.vue.d.ts +8 -0
  46. package/packages/business-components/device-panel/src/components/devicePanelModal/alarmScreenshot/components/hisList.vue.d.ts +8 -0
  47. package/packages/business-components/device-panel/src/components/devicePanelModal/alarmScreenshot/components/historyAlarmScreenshot.vue.d.ts +6 -0
  48. package/packages/business-components/device-panel/src/components/devicePanelModal/alarmScreenshot/index.vue.d.ts +2 -0
  49. package/packages/business-components/device-panel/src/components/devicePanelModal/hooks/use-alarm-screenshot.d.ts +6 -0
  50. package/packages/business-components/device-panel/src/components/devicePanelModal/hooks/use-knowledge.d.ts +6 -0
  51. package/packages/business-components/device-panel/src/components/devicePanelModal/index.vue.d.ts +1 -1
  52. package/packages/business-components/device-panel/src/components/devicePanelModal/knowledge/Index.vue.d.ts +6 -0
  53. package/packages/business-components/device-panel/src/components/devicePanelModal/knowledge/apis.d.ts +5 -0
  54. package/packages/business-components/device-panel/src/components/devicePanelModal/knowledge/components/use-info/Info.vue.d.ts +44 -0
  55. package/packages/business-components/device-panel/src/components/devicePanelModal/knowledge/components/use-info/downloadFile.d.ts +8 -0
  56. package/packages/business-components/device-panel/src/components/devicePanelModal/knowledge/components/use-info/info.d.ts +24 -0
  57. package/packages/business-components/device-panel/src/components/devicePanelModal/knowledge/utils/get-file-details.d.ts +2 -0
  58. package/packages/business-components/device-panel/src/components/devicePanelModal/repairRecord/apis.d.ts +10 -2
  59. package/packages/business-components/device-panel/src/components/devicePanelModal/repairRecord/components/use-info/Info.vue.d.ts +2 -1
  60. package/packages/business-components/device-panel/src/components/devicePanelModal/repairRecord/components/use-info/detail-tabs/ConsumableRecord.vue.d.ts +2 -0
  61. package/packages/business-components/device-panel/src/components/devicePanelModal/repairRecord/components/use-info/detail-tabs/DutyInfo.vue.d.ts +2 -0
  62. package/packages/business-components/device-panel/src/components/devicePanelModal/repairRecord/components/use-info/detail-tabs/EvaluateInfo.vue.d.ts +2 -0
  63. package/packages/business-components/device-panel/src/components/devicePanelModal/repairRecord/components/use-info/detail-tabs/FollowUpRecord.vue.d.ts +2 -0
  64. package/packages/business-components/device-panel/src/components/devicePanelModal/repairRecord/components/use-info/detail-tabs/ProgressInfo.vue.d.ts +2 -0
  65. package/packages/business-components/device-panel/src/components/devicePanelModal/repairRecord/components/use-info/info.d.ts +1 -0
  66. package/packages/business-components/device-panel/src/index.vue.d.ts +1 -1
  67. package/packages/business-components/device-panel/src/render-panel.d.ts +2 -1
  68. package/packages/business-components/device-panel/style.css +1 -1
  69. package/packages/business-components/device-panel/style.css.gz +0 -0
  70. package/packages/business-components/export-button/index.js +120 -114
  71. package/packages/business-components/export-button/index.js.gz +0 -0
  72. package/packages/business-components/import-button/index.js +76 -74
  73. package/packages/business-components/import-button/index.js.gz +0 -0
  74. package/packages/business-components/import-button/src/type.d.ts +4 -0
  75. package/packages/business-components/import-button/style.css +1 -1
  76. package/packages/business-components/index.d.ts +1 -0
  77. package/packages/business-components/index.js +1 -0
  78. package/packages/business-components/layout-breadcrumb/index.js +72 -74
  79. package/packages/business-components/layout-breadcrumb/index.js.gz +0 -0
  80. package/packages/business-components/payment/api.d.ts +8 -0
  81. package/packages/business-components/payment/index.d.ts +9 -11
  82. package/packages/business-components/payment/index.js +153 -147
  83. package/packages/business-components/payment/index.js.gz +0 -0
  84. package/packages/business-components/payment/style.css +1 -1
  85. package/packages/business-components/payment/type.d.ts +2 -0
  86. package/packages/business-components/process-configuration/index.js +3 -3
  87. package/packages/business-components/process-configuration/index.js.gz +0 -0
  88. package/packages/business-components/process-configuration/style.css +1 -1
  89. package/packages/business-components/process-configuration/style.css.gz +0 -0
  90. package/packages/business-components/process-form/api-service/formPreView.d.ts +22 -0
  91. package/packages/business-components/process-form/apis.d.ts +3 -0
  92. package/packages/business-components/process-form/i18n/index.d.ts +5 -0
  93. package/packages/business-components/process-form/index.js +1439 -1218
  94. package/packages/business-components/process-form/index.js.gz +0 -0
  95. package/packages/business-components/process-form/src/hooks/useSelector.d.ts +15 -1
  96. package/packages/business-components/process-form/src/hooks/useSpaceTree.d.ts +4 -4
  97. package/packages/business-components/process-form/src/utils/common-methods.d.ts +6 -0
  98. package/packages/business-components/process-form/style.css +1 -1
  99. package/packages/business-components/process-search-form/index.js +54 -54
  100. package/packages/business-components/process-search-form/index.js.gz +0 -0
  101. package/packages/business-components/update-confirm-dialog/i18n/index.d.ts +23 -0
  102. package/packages/business-components/update-confirm-dialog/index.d.ts +61 -0
  103. package/packages/business-components/update-confirm-dialog/index.js +105 -0
  104. package/packages/business-components/update-confirm-dialog/index.js.gz +0 -0
  105. package/packages/business-components/update-confirm-dialog/src/App.vue.d.ts +11 -0
  106. package/packages/business-components/update-confirm-dialog/src/type.d.ts +4 -0
  107. package/packages/business-components/video-dialog/index.d.ts +20 -0
  108. package/packages/business-components/video-dialog/index.js +364 -341
  109. package/packages/business-components/video-dialog/index.js.gz +0 -0
  110. package/packages/business-components/video-dialog/src/api.d.ts +1 -0
  111. package/packages/business-components/video-dialog/src/component/Player/index.vue.d.ts +2 -0
  112. package/packages/business-components/video-dialog/src/hooks/use-video/PlayerProvider.d.ts +6 -0
  113. package/packages/business-components/video-dialog/src/index.vue.d.ts +4 -0
  114. package/packages/business-components/video-dialog/src/type.d.ts +11 -1
  115. package/packages/business-components/video-dialog/style.css +1 -1
  116. package/packages/business-components/video-dialog/style.css.gz +0 -0
  117. package/packages/components/autocomplete/index.d.ts +15 -15
  118. package/packages/components/autocomplete/src/index.vue.d.ts +2 -2
  119. package/packages/components/checkbox/index.d.ts +15 -15
  120. package/packages/components/checkbox/src/Index.vue.d.ts +2 -2
  121. package/packages/components/collapse-panel/index.js +64 -39
  122. package/packages/components/collapse-panel/index.js.gz +0 -0
  123. package/packages/components/collapse-panel/style.css +1 -1
  124. package/packages/components/collapse-panel/style.css.gz +0 -0
  125. package/packages/components/color-picker/index.d.ts +8 -8
  126. package/packages/components/color-picker/src/Index.vue.d.ts +2 -2
  127. package/packages/components/custom-search-item/index.d.ts +15 -15
  128. package/packages/components/custom-search-item/src/Index.vue.d.ts +2 -2
  129. package/packages/components/dialog/index.d.ts +12 -3
  130. package/packages/components/dialog/index.js +284 -186
  131. package/packages/components/dialog/index.js.gz +0 -0
  132. package/packages/components/dialog/src/Index.vue.d.ts +5 -1
  133. package/packages/components/dialog/src/directives/dialogResize.d.ts +2 -0
  134. package/packages/components/dialog/src/type.d.ts +6 -0
  135. package/packages/components/dialog/style.css +1 -1
  136. package/packages/components/dialog/style.css.gz +0 -0
  137. package/packages/components/edit-table/index.js +1 -1
  138. package/packages/components/edit-table/index.js.gz +0 -0
  139. package/packages/components/hls-player/index.d.ts +45 -158
  140. package/packages/components/hls-player/index.js +3420 -3330
  141. package/packages/components/hls-player/index.js.gz +0 -0
  142. package/packages/components/hls-player/src/das-hls-player-origin.vue.d.ts +13 -0
  143. package/packages/components/hls-player/src/das-hls-player.vue.d.ts +3 -11
  144. package/packages/components/hls-player/src/type.d.ts +6 -0
  145. package/packages/components/hls-player/style.css +1 -1
  146. package/packages/components/hls-player/style.css.gz +0 -0
  147. package/packages/components/input/index.d.ts +5 -5
  148. package/packages/components/input/src/index.vue.d.ts +2 -2
  149. package/packages/components/input-dialog-select/index.d.ts +2 -2
  150. package/packages/components/input-dialog-select/src/Index.vue.d.ts +2 -2
  151. package/packages/components/input-number/index.d.ts +8 -8
  152. package/packages/components/input-number/src/App.vue.d.ts +2 -2
  153. package/packages/components/live-player/index.d.ts +2 -0
  154. package/packages/components/live-player/index.js +822 -814
  155. package/packages/components/live-player/index.js.gz +0 -0
  156. package/packages/components/live-player/src/type.d.ts +3 -0
  157. package/packages/components/live-player/style.css +1 -1
  158. package/packages/components/radio/index.d.ts +15 -15
  159. package/packages/components/radio/src/Index.vue.d.ts +2 -2
  160. package/packages/components/rich-editor/index.d.ts +10 -9
  161. package/packages/components/rich-editor/index.js +15507 -14971
  162. package/packages/components/rich-editor/index.js.gz +0 -0
  163. package/packages/components/rich-editor/src/Index.vue.d.ts +2 -2
  164. package/packages/components/scrollbar/index.d.ts +9 -3
  165. package/packages/components/scrollbar/index.js +323 -319
  166. package/packages/components/scrollbar/index.js.gz +0 -0
  167. package/packages/components/scrollbar/src/scrollbar.vue.d.ts +3 -1
  168. package/packages/components/scrollbar/style.css +1 -1
  169. package/packages/components/scrollbar/style.css.gz +0 -0
  170. package/packages/components/search/index.d.ts +2 -2
  171. package/packages/components/search/src/Index.vue.d.ts +2 -2
  172. package/packages/components/search-form/index.js +1020 -846
  173. package/packages/components/search-form/index.js.gz +0 -0
  174. package/packages/components/search-form/src/Index.vue.d.ts +11 -3
  175. package/packages/components/search-form/src/type.d.ts +9 -5
  176. package/packages/components/search-form/style.css +1 -1
  177. package/packages/components/search-form/style.css.gz +0 -0
  178. package/packages/components/select-input/index.js +149 -109
  179. package/packages/components/select-input/index.js.gz +0 -0
  180. package/packages/components/select-input/src/hooks/use-select-input.d.ts +2 -0
  181. package/packages/components/select-input/style.css +1 -1
  182. package/packages/components/select-input/style.css.gz +0 -0
  183. package/packages/components/special-range-picker-month/index.d.ts +2 -2
  184. package/packages/components/special-range-picker-month/src/Index.vue.d.ts +2 -2
  185. package/packages/components/special-range-picker-year/index.d.ts +2 -2
  186. package/packages/components/special-range-picker-year/src/Index.vue.d.ts +2 -2
  187. package/packages/components/table/index.js +7 -8
  188. package/packages/components/table/index.js.gz +0 -0
  189. package/packages/components/table/style.css +1 -1
  190. package/packages/components/table/style.css.gz +0 -0
  191. package/packages/components/tree-select/index.js +43 -42
  192. package/packages/components/tree-select/index.js.gz +0 -0
  193. package/packages/components/tree-select/src/App.vue.d.ts +3 -2
  194. package/packages/business-components/device-panel/src/components/alarmDevicePanel/repairRecord/components/use-consumables-record/consumables.d.ts +0 -15
  195. package/packages/business-components/device-panel/src/components/alarmDevicePanel/repairRecord/components/use-feedback-record/feedback.d.ts +0 -14
  196. package/packages/business-components/device-panel/src/components/alarmDevicePanel/repairRecord/components/use-schedule-track/track.d.ts +0 -14
  197. package/packages/business-components/device-panel/src/components/devicePanelModal/repairRecord/components/use-consumables-record/consumables.d.ts +0 -15
  198. package/packages/business-components/device-panel/src/components/devicePanelModal/repairRecord/components/use-feedback-record/feedback.d.ts +0 -14
  199. package/packages/business-components/device-panel/src/components/devicePanelModal/repairRecord/components/use-schedule-track/track.d.ts +0 -14
@@ -1,90 +1,96 @@
1
1
  import '@das-fed/ui/packages/business-components/export-button/style.css';
2
- import { withInstall as G } from "@das-fed/utils/with-install/index";
3
- import { ref as p, defineComponent as J, computed as K, watch as B, createElementBlock as Q, openBlock as W, createVNode as z, createCommentVNode as Z, unref as k, withCtx as L, renderSlot as ee, createTextVNode as te, toDisplayString as se, isRef as M } from "vue";
4
- import { t as g, currentLang as N, i18n as $, setI18nRule as ae } from "@das-fed/web/packages/i18n/index";
5
- import { DasDialog as oe } from "@das-fed/ui/packages/components/dialog/index";
6
- import { DasProgress as re } from "@das-fed/ui/packages/components/progress/index";
7
- import { DasButton as le } from "@das-fed/ui/packages/components/button/index";
8
- import { iotProgress as ne } from "@das-fed/utils/api-services/modules/iot";
9
- import D from "dayjs";
10
- import { DasMessage as P } from "@das-fed/ui/packages/components/message/index";
11
- import { getConfig as H } from "@das-fed/utils/config";
12
- let F = (a = 21) => {
13
- let l = "", e = crypto.getRandomValues(new Uint8Array(a));
14
- for (; a--; ) {
15
- let s = e[a] & 63;
2
+ import { withInstall as J } from "@das-fed/utils/with-install/index";
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 $, setI18nRule as oe } from "@das-fed/web/packages/i18n/index";
5
+ import { DasDialog as re } from "@das-fed/ui/packages/components/dialog/index";
6
+ import { DasProgress as le } from "@das-fed/ui/packages/components/progress/index";
7
+ import { DasButton as ne } from "@das-fed/ui/packages/components/button/index";
8
+ import { iotProgress as ue } from "@das-fed/utils/api-services/modules/iot";
9
+ import { extractFilename as Y } from "@das-fed/utils/common-tools";
10
+ import E from "dayjs";
11
+ import { DasMessage as _ } from "@das-fed/ui/packages/components/message/index";
12
+ import { getConfig as F } from "@das-fed/utils/config";
13
+ let j = (o = 21) => {
14
+ let l = "", e = crypto.getRandomValues(new Uint8Array(o));
15
+ for (; o--; ) {
16
+ let s = e[o] & 63;
16
17
  s < 36 ? l += s.toString(36) : s < 62 ? l += (s - 26).toString(36).toUpperCase() : s < 63 ? l += "_" : l += "-";
17
18
  }
18
19
  return l;
19
20
  };
20
- const ue = ne.get("progress"), ie = (a) => {
21
- let l = p(!1), e = p(!1), s = p(""), i = p(0), o = p("normal"), m = p(!1), d, x = p(""), n = p(""), c = p(""), f = p(""), v = p(!1), w = p(""), y;
22
- const _ = () => {
23
- n.value = "", c.value = "", f.value = "", v.value = !1, w.value = "";
24
- }, O = async (t, u = "", h = "") => {
25
- o.value = "normal", i.value = 0, s.value = h || g("导出进度"), e.value = !0;
21
+ const ie = ue.get("progress"), pe = (o) => {
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 N = () => {
24
+ n.value = "", d.value = "", f.value = "", g.value = !1, w.value = "";
25
+ }, q = async (t, u = "", y = "") => {
26
+ r.value = "normal", i.value = 0, s.value = y || v("导出进度"), e.value = !0;
26
27
  const b = await (t == null ? void 0 : t());
27
28
  if (!b.status) {
28
- e.value = !1, o.value = "error";
29
+ e.value = !1, r.value = "error";
29
30
  return;
30
31
  }
31
32
  T(b.taskId, "action", "");
32
- }, j = async (t, u = "", h = "") => {
33
- o.value = "normal", i.value = 0, s.value = g("导出进度"), e.value = !0;
33
+ }, A = async (t, u = "", y = "") => {
34
+ r.value = "normal", i.value = 0, s.value = v("导出进度"), e.value = !0;
34
35
  const b = await (t == null ? void 0 : t());
35
36
  if (!b.status) {
36
- e.value = !1, o.value = "error";
37
+ e.value = !1, r.value = "error";
37
38
  return;
38
39
  }
39
- D().format("YYYYMMDDHHmmss") + "", T(b.taskId, "export", u || "", h);
40
- }, T = async (t, u, h, b = "") => {
41
- m.value = !0, E(t, u, h, b), d = setTimeout(() => {
40
+ E().format("YYYYMMDDHHmmss") + "", T(b.taskId, "export", u || "", y);
41
+ }, T = async (t, u, y, b = "") => {
42
+ m.value = !0, S(t, u, y, b), c = setTimeout(() => {
42
43
  }, 50);
43
- }, V = () => {
44
- clearTimeout(d), d = null, e.value = !1;
45
- }, E = async (t, u = "export", h, b = "") => {
46
- var S, U, I;
47
- const [q, r] = await ue("", {
44
+ }, R = () => {
45
+ clearTimeout(c), c = null, e.value = !1;
46
+ }, S = async (t, u = "export", y, b = "") => {
47
+ var B, L;
48
+ const [X, a] = await ie("", {
48
49
  url: `progress/${t}`
49
50
  }).run();
50
- if (q) {
51
+ if (X) {
51
52
  m.value = !1;
52
53
  return;
53
54
  }
54
- i.value = r.percentage;
55
- const C = u == "export" ? g("导出") : g("导入");
55
+ i.value = a.percentage;
56
+ const P = u == "export" ? v("导出") : v("导入");
56
57
  if (i.value == 100)
57
- if (x.value = r, m.value = !1, V(), u == "export")
58
- r.status == 1 ? (o.value = "success", Y(`${H().baseURL}/oss${r.filePath}`, h, b), m.value = !1, a("success")) : r.status == 2 && (f.value = r.message || `${C}${N.value === "zh-CN" ? g("失败") : " " + g("失败")}`, P.error({
59
- message: r.message || `${C}${N.value === "zh-CN" ? g("失败") : " " + g("失败")}`,
58
+ if (x.value = a, m.value = !1, R(), u == "export")
59
+ if (a.status == 1) {
60
+ r.value = "success";
61
+ let k = await Y(`/oss/${a == null ? void 0 : a.filePath}`);
62
+ const z = ((B = k == null ? void 0 : k.split("/")) == null ? void 0 : B.pop()) || "";
63
+ let G = y || z;
64
+ O(`${F().baseURL}/oss${a.filePath}`, G, b), m.value = !1, o("success");
65
+ } else a.status == 2 && (f.value = a.message || `${P}${V.value === "zh-CN" ? v("失败") : " " + v("失败")}`, _.error({
66
+ message: a.message || `${P}${V.value === "zh-CN" ? v("失败") : " " + v("失败")}`,
60
67
  grouping: !0,
61
68
  repeatNum: 1
62
69
  }));
63
70
  else if (u == "import") {
64
- if (r.filePath) {
65
- o.value = "error";
66
- const A = (S = y.name) == null ? void 0 : S.substr(y.name.indexOf("."));
67
- (U = y.name) == null || U.replace(/(.*\/)*([^.]+).*/gi, "$2"), v.value = !0;
68
- const X = (I = r.filePath) == null ? void 0 : I.replace(/(.*\/)*([^.]+).*/gi, "$2");
69
- n.value = `${X}${A}`, c.value = y.sizeText, f.value = g("部分数据校验不通过,请下载附件并修改,重新导入!"), w.value = `${H().baseURL}/oss${r.filePath}`;
71
+ if (a.filePath) {
72
+ r.value = "error", g.value = !0;
73
+ let k = await Y(`/oss/${a == null ? void 0 : a.filePath}`);
74
+ const z = ((L = k == null ? void 0 : k.split("/")) == null ? void 0 : L.pop()) || "";
75
+ n.value = z, d.value = C.sizeText, f.value = v("部分数据校验不通过,请下载附件并修改,重新导入!"), w.value = `${F().baseURL}/oss${a.filePath}`;
70
76
  }
71
- R(r.status, C), r.status == 1 && (l.value = !1), a("success");
72
- } else u == "action" && (o.value = "success");
77
+ U(a.status, P), a.status == 1 && (l.value = !1), o("success");
78
+ } else u == "action" && (r.value = "success");
73
79
  else
74
- d && r.status != 2 ? d = setTimeout(() => {
75
- E(t, u, h, b);
76
- }, 50) : (x.value = r, m.value = !1, R(r.status, C), V(), v.value = !0, f.value = (r == null ? void 0 : r.message) || "");
77
- }, R = (t, u) => {
78
- t == 1 ? (o.value = "success", P.success({
79
- message: g("business-components_export-success-tip", u),
80
+ c && a.status != 2 ? c = setTimeout(() => {
81
+ S(t, u, y, b);
82
+ }, 50) : (x.value = a, m.value = !1, U(a.status, P), R(), g.value = !0, f.value = (a == null ? void 0 : a.message) || "");
83
+ }, U = (t, u) => {
84
+ t == 1 ? (r.value = "success", _.success({
85
+ message: v("business-components_export-success-tip", u),
80
86
  grouping: !0,
81
87
  repeatNum: 1
82
- }), n.value = "", c.value = "", f.value = "") : t == 2 ? (o.value = "error", P.error({
83
- message: g("business-components_export-failure-tip", u),
88
+ }), n.value = "", d.value = "", f.value = "") : t == 2 ? (r.value = "error", _.error({
89
+ message: v("business-components_export-failure-tip", u),
84
90
  grouping: !0,
85
91
  repeatNum: 1
86
- })) : t == 3 && (o.value = "error", P.error({
87
- message: g("business-components_export-partially-failure-tip", u),
92
+ })) : t == 3 && (r.value = "error", _.error({
93
+ message: v("business-components_export-partially-failure-tip", u),
88
94
  grouping: !0,
89
95
  repeatNum: 1
90
96
  }));
@@ -94,63 +100,63 @@ const ue = ne.get("progress"), ie = (a) => {
94
100
  showProgressDialog: e,
95
101
  progressTitle: s,
96
102
  percent: i,
97
- progressStatus: o,
103
+ progressStatus: r,
98
104
  progressLoading: m,
99
105
  progressResult: x,
100
106
  errorFileName: n,
101
- errorFileSize: c,
107
+ errorFileSize: d,
102
108
  errorMessage: f,
103
- errorImport: v,
109
+ errorImport: g,
104
110
  errorFilePath: w,
105
- fileExport: j,
106
- fileAction: O,
111
+ fileExport: A,
112
+ fileAction: q,
107
113
  generateUniqueName: (t) => {
108
114
  const u = t == null ? void 0 : t.substr(t.indexOf("."));
109
- return `${t == null ? void 0 : t.replace(/(.*\/)*([^.]+).*/gi, "$2")}${F()}${u}`;
115
+ return `${t == null ? void 0 : t.replace(/(.*\/)*([^.]+).*/gi, "$2")}${j()}${u}`;
110
116
  },
111
- downloadFile: Y,
112
- resetStataus: _,
117
+ downloadFile: O,
118
+ resetStataus: N,
113
119
  checkProgress: T
114
120
  };
115
- }, Y = (a, l, e = "xlsx") => {
121
+ }, O = (o, l, e = "xlsx") => {
116
122
  const s = new XMLHttpRequest();
117
- s.open("get", a), s.setRequestHeader("Content-Type", "application/json; charset=UTF-8"), s.responseType = "blob", s.onload = function(i) {
118
- const o = new Blob([this.response], {
123
+ s.open("get", o), s.setRequestHeader("Content-Type", "application/json; charset=UTF-8"), s.responseType = "blob", s.onload = function(i) {
124
+ const r = new Blob([this.response], {
119
125
  type: e === "zip" ? "application/zip" : e === "xlsx" ? "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" : "application/pdf"
120
- }), m = URL.createObjectURL(o);
126
+ }), m = URL.createObjectURL(r);
121
127
  if (window.navigator.msSaveOrOpenBlob)
122
- navigator.msSaveBlob(o, l);
128
+ navigator.msSaveBlob(r, l);
123
129
  else {
124
- const d = document.createElement("a");
125
- d.href = m, d.download = l, d.click(), window.URL.revokeObjectURL(m);
130
+ const c = document.createElement("a");
131
+ c.href = m, c.download = l, c.click(), window.URL.revokeObjectURL(m);
126
132
  }
127
133
  }, s.send();
128
- }, pe = (a, l) => {
129
- const { showProgressDialog: e, progressTitle: s, percent: i, progressStatus: o, progressLoading: m, fileExport: d } = ie(l), x = p({}), n = p({}), c = (v, w) => {
134
+ }, me = (o, l) => {
135
+ const { showProgressDialog: e, progressTitle: s, percent: i, progressStatus: r, progressLoading: m, fileExport: c } = pe(l), x = p({}), n = p({}), d = (g, w) => {
130
136
  x.value = {
131
- ...v
137
+ ...g
132
138
  }, n.value = {
133
139
  ...w
134
140
  };
135
- let y = `${D().format("YYYYMMDD")}-${D().format("HHmmss")}.${a.fileType}`;
136
- N.value === "en" && !/s$/.test(a.exportFileName) && (y = " " + y);
137
- const _ = `${a.exportFileName}${y}`;
138
- d(f, _, a.fileType);
141
+ let C = `${E().format("YYYYMMDD")}-${E().format("HHmmss")}.${o.fileType}`;
142
+ V.value === "en" && !/s$/.test(o.exportFileName) && (C = " " + C);
143
+ const N = `${o.exportFileName}${C}`;
144
+ c(f, N, o.fileType);
139
145
  }, f = async () => {
140
- let v = F();
141
- a.taskIdPosition === "params" && (x.value.taskId = v), a.taskIdPosition === "body" && (n.value.taskId = v);
142
- const [w, y] = await a.exportFun(n.value, { params: x.value }).run();
143
- return w ? { status: !1 } : { status: !0, taskId: v };
146
+ let g = j();
147
+ o.taskIdPosition === "params" && (x.value.taskId = g), o.taskIdPosition === "body" && (n.value.taskId = g);
148
+ const [w, C] = await o.exportFun(n.value, { params: x.value }).run();
149
+ return w ? { status: !1 } : { status: !0, taskId: g };
144
150
  };
145
151
  return {
146
152
  showProgressDialog: e,
147
153
  progressTitle: s,
148
154
  percent: i,
149
- progressStatus: o,
155
+ progressStatus: r,
150
156
  progressLoading: m,
151
- exportList: c
157
+ exportList: d
152
158
  };
153
- }, me = { class: "das-export-button" }, de = /* @__PURE__ */ J({
159
+ }, ce = { class: "das-export-button" }, de = /* @__PURE__ */ K({
154
160
  __name: "App",
155
161
  props: {
156
162
  modelValue: {},
@@ -165,27 +171,27 @@ const ue = ne.get("progress"), ie = (a) => {
165
171
  disabled: { type: Boolean, default: !1 }
166
172
  },
167
173
  emits: ["update:modelValue", "update:bodyParams", "success"],
168
- setup(a, { emit: l }) {
169
- const e = a, s = l;
170
- K(() => e.exportFileName || g("导出表")), B(e.modelValue, (n) => {
174
+ setup(o, { emit: l }) {
175
+ const e = o, s = l;
176
+ Q(() => e.exportFileName || v("导出表")), I(e.modelValue, (n) => {
171
177
  s("update:modelValue", n);
172
- }), B(e.bodyParams, (n) => {
178
+ }), I(e.bodyParams, (n) => {
173
179
  s("update:bodyParams", n);
174
180
  });
175
- const { showProgressDialog: i, percent: o, progressStatus: m, exportList: d } = pe(e, s), x = [$("正在导出中...").value, $("导出失败").value, $("导出成功").value];
176
- return (n, c) => (W(), Q("div", me, [
177
- z(k(le), {
181
+ const { showProgressDialog: i, percent: r, progressStatus: m, exportList: c } = me(e, s), x = [$("正在导出中...").value, $("导出失败").value, $("导出成功").value];
182
+ return (n, d) => (Z(), W("div", ce, [
183
+ D(h(ne), {
178
184
  block: n.block,
179
185
  size: "middle",
180
186
  disabled: n.disabled,
181
187
  "btn-type": e.btnType,
182
188
  ghost: n.ghost,
183
- onClick: c[0] || (c[0] = (f) => k(d)(e.modelValue, e.bodyParams))
189
+ onClick: d[0] || (d[0] = (f) => h(c)(e.modelValue, e.bodyParams))
184
190
  }, {
185
- default: L(() => [
186
- ee(n.$slots, "default", {}, () => [
187
- te(
188
- se(k($)("导出").value),
191
+ default: M(() => [
192
+ te(n.$slots, "default", {}, () => [
193
+ se(
194
+ ae(h($)("导出").value),
189
195
  1
190
196
  /* TEXT */
191
197
  )
@@ -194,23 +200,23 @@ const ue = ne.get("progress"), ie = (a) => {
194
200
  _: 3
195
201
  /* FORWARDED */
196
202
  }, 8, ["block", "disabled", "btn-type", "ghost"]),
197
- Z(" 进度弹窗 "),
198
- z(k(oe), {
203
+ ee(" 进度弹窗 "),
204
+ D(h(re), {
199
205
  size: "mini",
200
- title: k($)("导出进度").value,
206
+ title: h($)("导出进度").value,
201
207
  "is-feedback-img": !1,
202
- modelValue: k(i),
203
- "onUpdate:modelValue": c[2] || (c[2] = (f) => M(i) ? i.value = f : null),
208
+ modelValue: h(i),
209
+ "onUpdate:modelValue": d[2] || (d[2] = (f) => H(i) ? i.value = f : null),
204
210
  "append-to-body": !0,
205
211
  type: "feedback"
206
212
  }, {
207
- default: L(() => [
208
- z(k(re), {
209
- modelValue: k(o),
210
- "onUpdate:modelValue": c[1] || (c[1] = (f) => M(o) ? o.value = f : null),
213
+ default: M(() => [
214
+ D(h(le), {
215
+ modelValue: h(r),
216
+ "onUpdate:modelValue": d[1] || (d[1] = (f) => H(r) ? r.value = f : null),
211
217
  style: { "margin-top": "35px" },
212
218
  type: "circle",
213
- status: k(m),
219
+ status: h(m),
214
220
  textMap: x
215
221
  }, null, 8, ["modelValue", "status"])
216
222
  ]),
@@ -219,12 +225,12 @@ const ue = ne.get("progress"), ie = (a) => {
219
225
  }, 8, ["title", "modelValue"])
220
226
  ]));
221
227
  }
222
- }), ce = (a, l) => {
223
- const e = a.__vccOpts || a;
228
+ }), fe = (o, l) => {
229
+ const e = o.__vccOpts || o;
224
230
  for (const [s, i] of l)
225
231
  e[s] = i;
226
232
  return e;
227
- }, fe = /* @__PURE__ */ ce(de, [["__scopeId", "data-v-49f0bb05"]]), ge = {
233
+ }, ve = /* @__PURE__ */ fe(de, [["__scopeId", "data-v-49f0bb05"]]), ge = {
228
234
  导出表: { "zh-CN": "导出表", en: "Export Table", _appCode: "framework" },
229
235
  导出失败: { "zh-CN": "导出失败", en: "Exported Failed", _appCode: "framework" },
230
236
  导出成功: { "zh-CN": "导出成功", en: "Exported Successfully", _appCode: "framework" },
@@ -245,9 +251,9 @@ const ue = ne.get("progress"), ie = (a) => {
245
251
  _appCode: "framework"
246
252
  }
247
253
  };
248
- ae(ge);
249
- const Te = G(fe);
254
+ oe(ge);
255
+ const ze = J(ve);
250
256
  export {
251
- Te as DasExportButton,
252
- Te as default
257
+ ze as DasExportButton,
258
+ ze as default
253
259
  };