yahee-components 0.0.113 → 0.0.114

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 (174) hide show
  1. package/es/annex-upload/annex-upload.vue.js +55 -0
  2. package/es/annex-upload/annex-upload.vue2.js +121 -0
  3. package/es/annex-upload/index.js +7 -0
  4. package/es/annex-upload/mimeType.js +822 -0
  5. package/es/annex-upload/style/index.css +7 -0
  6. package/es/border-wrap/border-wrap.vue.js +75 -0
  7. package/es/border-wrap/border-wrap.vue2.js +48 -0
  8. package/es/border-wrap/index.js +7 -0
  9. package/es/border-wrap/props.js +11 -0
  10. package/es/border-wrap/style/index.css +24 -0
  11. package/es/common-import/common-import.vue.js +394 -0
  12. package/es/common-import/common-import.vue2.js +366 -0
  13. package/es/common-import/index.js +7 -0
  14. package/es/common-import/props.js +23 -0
  15. package/es/common-import/style/index.css +32 -0
  16. package/es/complex-search/batch-search-dialog.vue.js +119 -0
  17. package/es/complex-search/batch-search-dialog.vue2.js +50 -0
  18. package/es/complex-search/complex-search.vue.js +122 -0
  19. package/es/complex-search/complex-search.vue2.js +71 -0
  20. package/es/complex-search/index.js +7 -0
  21. package/es/complex-search/props.js +19 -0
  22. package/es/complex-search/style/index.css +24 -0
  23. package/es/complex-search/useComplexSearch.js +44 -0
  24. package/es/copy/copy.vue.js +39 -0
  25. package/es/copy/copy.vue2.js +36 -0
  26. package/es/copy/index.js +7 -0
  27. package/es/copy/props.js +9 -0
  28. package/es/copy/style/index.css +12 -0
  29. package/es/country-platform-shop-condition/country-platform-shop-condition.vue.js +120 -0
  30. package/es/country-platform-shop-condition/country-platform-shop-condition.vue2.js +127 -0
  31. package/es/country-platform-shop-condition/index.js +7 -0
  32. package/es/country-platform-shop-condition/style/index.css +59 -0
  33. package/es/drop-down-condition/drop-down-condition.vue.js +125 -0
  34. package/es/drop-down-condition/drop-down-condition.vue2.js +129 -0
  35. package/es/drop-down-condition/index.js +7 -0
  36. package/es/drop-down-condition/style/index.css +64 -0
  37. package/es/echart-gauge/echart-gauge.vue.js +14 -0
  38. package/es/echart-gauge/echart-gauge.vue2.js +149 -0
  39. package/es/echart-gauge/index.js +7 -0
  40. package/es/echart-gauge/props.js +9 -0
  41. package/es/echart-gauge/style/index.css +4 -0
  42. package/es/file-download-wrapper/file-download-wrapper.vue.js +164 -0
  43. package/es/file-download-wrapper/file-download-wrapper.vue2.js +115 -0
  44. package/es/file-download-wrapper/index.js +7 -0
  45. package/es/file-download-wrapper/key.js +17 -0
  46. package/es/file-download-wrapper/props.js +12 -0
  47. package/es/file-download-wrapper/style/index.css +66 -0
  48. package/es/filter-container/filter-container.vue.js +24 -0
  49. package/es/filter-container/filter-container.vue2.js +61 -0
  50. package/es/filter-container/index.js +7 -0
  51. package/es/filter-container/key.js +4 -0
  52. package/es/filter-container/props.js +11 -0
  53. package/es/filter-container/style/index.css +16 -0
  54. package/es/filter-wrapper/filter-wrapper.vue.js +19 -0
  55. package/es/filter-wrapper/filter-wrapper.vue2.js +56 -0
  56. package/es/filter-wrapper/index.js +7 -0
  57. package/es/filter-wrapper/props.js +10 -0
  58. package/es/filter-wrapper/style/index.css +3 -0
  59. package/es/height-collapse/height-collapse.vue.js +26 -0
  60. package/es/height-collapse/height-collapse.vue2.js +44 -0
  61. package/es/height-collapse/index.js +7 -0
  62. package/es/height-collapse/props.js +11 -0
  63. package/es/height-collapse/style/index.css +32 -0
  64. package/es/help-tag/help-tag.vue.js +46 -0
  65. package/es/help-tag/help-tag.vue2.js +51 -0
  66. package/es/help-tag/index.js +7 -0
  67. package/es/help-tag/props.js +9 -0
  68. package/es/help-tag/style/index.css +8 -0
  69. package/es/image-upload/image-upload.vue.js +116 -0
  70. package/es/image-upload/image-upload.vue2.js +93 -0
  71. package/es/image-upload/index.js +7 -0
  72. package/es/image-upload/style/index.css +33 -0
  73. package/es/index.js +63 -0
  74. package/es/installs.js +41 -0
  75. package/es/left-condition/index.js +7 -0
  76. package/es/left-condition/left-condition-sub.vue.js +36 -0
  77. package/es/left-condition/left-condition-sub.vue2.js +78 -0
  78. package/es/left-condition/left-condition.vue.js +77 -0
  79. package/es/left-condition/left-condition.vue2.js +162 -0
  80. package/es/left-condition/style/index.css +10 -0
  81. package/es/left-condition-enum/index.js +7 -0
  82. package/es/left-condition-enum/left-condition-enum.vue.js +22 -0
  83. package/es/left-condition-enum/left-condition-enum.vue2.js +42 -0
  84. package/es/left-condition-enum/style/index.css +10 -0
  85. package/es/node_modules/.pnpm/@vueuse_core@11.3.0_vue@3.5.17_typescript@5.8.3_/node_modules/@vueuse/core/index.js +99 -0
  86. package/es/node_modules/.pnpm/@vueuse_shared@11.3.0_vue@3.5.17_typescript@5.8.3_/node_modules/@vueuse/shared/index.js +22 -0
  87. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/index.js +38 -0
  88. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/adapters/adapters.js +53 -0
  89. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/adapters/fetch.js +141 -0
  90. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/adapters/xhr.js +71 -0
  91. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/axios.js +46 -0
  92. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/cancel/CancelToken.js +77 -0
  93. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/cancel/CanceledError.js +11 -0
  94. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/cancel/isCancel.js +6 -0
  95. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/Axios.js +136 -0
  96. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/AxiosError.js +54 -0
  97. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/AxiosHeaders.js +181 -0
  98. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/InterceptorManager.js +58 -0
  99. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/buildFullPath.js +9 -0
  100. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/dispatchRequest.js +31 -0
  101. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/mergeConfig.js +70 -0
  102. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/settle.js +14 -0
  103. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/transformData.js +13 -0
  104. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/defaults/index.js +89 -0
  105. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/defaults/transitional.js +8 -0
  106. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/env/data.js +4 -0
  107. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +33 -0
  108. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/HttpStatusCode.js +71 -0
  109. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/bind.js +8 -0
  110. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/buildURL.js +23 -0
  111. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/combineURLs.js +6 -0
  112. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/composeSignals.js +30 -0
  113. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/cookies.js +32 -0
  114. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/formDataToJSON.js +31 -0
  115. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/isAbsoluteURL.js +6 -0
  116. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/isAxiosError.js +7 -0
  117. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/isURLSameOrigin.js +8 -0
  118. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/null.js +4 -0
  119. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/parseHeaders.js +30 -0
  120. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/parseProtocol.js +7 -0
  121. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/progressEventReducer.js +35 -0
  122. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/resolveConfig.js +33 -0
  123. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/speedometer.js +19 -0
  124. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/spread.js +8 -0
  125. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/throttle.js +15 -0
  126. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/toFormData.js +85 -0
  127. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/toURLEncodedForm.js +13 -0
  128. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/trackStream.js +63 -0
  129. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/validator.js +54 -0
  130. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/browser/classes/Blob.js +4 -0
  131. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/browser/classes/FormData.js +4 -0
  132. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +5 -0
  133. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/browser/index.js +15 -0
  134. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/common/utils.js +9 -0
  135. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/index.js +9 -0
  136. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/utils.js +222 -0
  137. package/es/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js +282 -0
  138. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/index.js +97 -0
  139. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/basicTransition.js +96 -0
  140. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/customGraphicKeyframeAnimation.js +56 -0
  141. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/customGraphicTransition.js +242 -0
  142. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/morphTransitionHelper.js +106 -0
  143. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/universalTransition.js +345 -0
  144. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/BarSeries.js +56 -0
  145. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/BarView.js +487 -0
  146. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/BaseBarSeries.js +77 -0
  147. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/PictorialBarSeries.js +49 -0
  148. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/PictorialBarView.js +325 -0
  149. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/install.js +23 -0
  150. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/installPictorialBar.js +10 -0
  151. package/lib/annex-upload/style/index.css +7 -0
  152. package/lib/border-wrap/style/index.css +24 -0
  153. package/lib/common-import/style/index.css +32 -0
  154. package/lib/complex-search/style/index.css +24 -0
  155. package/lib/copy/style/index.css +12 -0
  156. package/lib/country-platform-shop-condition/style/index.css +59 -0
  157. package/lib/drop-down-condition/style/index.css +64 -0
  158. package/lib/echart-gauge/style/index.css +4 -0
  159. package/lib/file-download-wrapper/style/index.css +66 -0
  160. package/lib/filter-container/style/index.css +16 -0
  161. package/lib/filter-wrapper/style/index.css +3 -0
  162. package/lib/height-collapse/style/index.css +32 -0
  163. package/lib/help-tag/style/index.css +8 -0
  164. package/lib/image-upload/style/index.css +33 -0
  165. package/lib/left-condition/style/index.css +10 -0
  166. package/lib/left-condition-enum/style/index.css +10 -0
  167. package/lib/operation-log/style/index.css +234 -0
  168. package/lib/scale-screen/style/index.css +0 -0
  169. package/lib/style.css +1405 -0
  170. package/lib/styles/custom.css +82 -0
  171. package/lib/styles/globals.css +699 -0
  172. package/lib/styles/index.css +753 -0
  173. package/lib/styles/variables.css +34 -0
  174. package/package.json +1 -1
@@ -0,0 +1,7 @@
1
+ .yahee-annex-upload .el-upload .el-button {
2
+ --el-button-size: 24px;
3
+ border-radius: calc(var(--el-border-radius-base) - 1px);
4
+ font-size: 12px;
5
+ height: var(--el-button-size);
6
+ padding: 5px 11px;
7
+ }
@@ -0,0 +1,75 @@
1
+ import a from "./border-wrap.vue2.js";
2
+ import { createElementBlock as d, openBlock as i, createElementVNode as t, createCommentVNode as c, createBlock as h, toDisplayString as _, withCtx as n, createVNode as l, renderSlot as s } from "vue";
3
+ import f from "../_virtual/_plugin-vue_export-helper.js";
4
+ const g = { class: "yahee-border-wrap" }, m = {
5
+ class: "dv-border-box",
6
+ ref: "domRef"
7
+ }, v = ["width", "height"], w = ["fill", "stroke", "d"], b = { class: "dv-border-box-content" }, k = { class: "paddingL20 paddingR20 paddingT20 paddingB10 d-flex ai-center jc-between" }, L = {
8
+ key: 0,
9
+ class: "d-flex ai-center"
10
+ }, x = {
11
+ class: "fontsize-16 fontBold",
12
+ style: { "margin-right": "4px" }
13
+ }, p = ["innerHTML"], C = { class: "d-flex ai-center" }, B = { class: "item_title_content" };
14
+ function y(r, E, o, e, T, I) {
15
+ return i(), d("div", g, [
16
+ t("div", m, [
17
+ (i(), d("svg", {
18
+ width: e.width,
19
+ height: e.height,
20
+ class: "dv-border-svg-container"
21
+ }, [
22
+ t("path", {
23
+ fill: o.backgroundColor,
24
+ stroke: e.mergedColor[0],
25
+ d: `
26
+ M 5 20 L 5 10 L 68 10
27
+ L ${e.width - 20} 10 L ${e.width - 5} 25
28
+ L ${e.width - 5} ${e.height - 5} L 20 ${e.height - 5}
29
+ L 5 ${e.height - 20} L 5 20
30
+ `
31
+ }, null, 8, w)
32
+ ], 8, v)),
33
+ t("div", b, [
34
+ t("div", k, [
35
+ o.title !== "" ? (i(), d("div", L, [
36
+ t("div", x, _(o.title), 1),
37
+ o.tipsId ? (i(), h(e.ElPopover, {
38
+ key: 0,
39
+ placement: "bottom",
40
+ width: 400,
41
+ trigger: "click"
42
+ }, {
43
+ reference: n(() => [
44
+ l(e.ElIcon, {
45
+ size: "18",
46
+ color: "#ccc",
47
+ onClick: e.getTipsContent
48
+ }, {
49
+ default: n(() => [
50
+ l(e.InfoFilled)
51
+ ]),
52
+ _: 1
53
+ })
54
+ ]),
55
+ default: n(() => [
56
+ t("div", { innerHTML: e.tipsContent }, null, 8, p)
57
+ ]),
58
+ _: 1
59
+ })) : c("", !0)
60
+ ])) : c("", !0),
61
+ t("div", C, [
62
+ s(r.$slots, "filter")
63
+ ])
64
+ ]),
65
+ t("div", B, [
66
+ s(r.$slots, "content")
67
+ ])
68
+ ])
69
+ ], 512)
70
+ ]);
71
+ }
72
+ const z = /* @__PURE__ */ f(a, [["render", y], ["__file", "E:/工作/项目代码/common_componentsweb/packages/components/src/border-wrap/border-wrap.vue"]]);
73
+ export {
74
+ z as default
75
+ };
@@ -0,0 +1,48 @@
1
+ import { defineComponent as u, ref as i, computed as a } from "vue";
2
+ import { GetHelpTag as c } from "../packages/components/api/log/index.js";
3
+ import { InfoFilled as g } from "@element-plus/icons-vue";
4
+ import { ElIcon as C, ElPopover as _ } from "element-plus";
5
+ import "element-plus/theme-chalk/src/base.scss";
6
+ import "element-plus/theme-chalk/src/popper.scss";
7
+ import "element-plus/theme-chalk/src/popover.scss";
8
+ import { useElementSize as h } from "../node_modules/.pnpm/@vueuse_core@11.3.0_vue@3.5.17_typescript@5.8.3_/node_modules/@vueuse/core/index.js";
9
+ import { l as b } from "../_virtual/lodash.js";
10
+ const j = /* @__PURE__ */ u({
11
+ __name: "border-wrap",
12
+ props: {
13
+ title: {
14
+ type: String,
15
+ default: ""
16
+ },
17
+ color: {
18
+ type: Array,
19
+ default: () => []
20
+ },
21
+ backgroundColor: {
22
+ type: String,
23
+ default: "transparent"
24
+ },
25
+ tipsId: {
26
+ type: String,
27
+ default: ""
28
+ }
29
+ },
30
+ setup(l, { expose: s }) {
31
+ s();
32
+ const o = ["#6586ec", "#2cf7fe"], r = i(null), n = i(), { width: m, height: d } = h(r, { width: 0, height: 0 }, { box: "border-box" }), f = a(() => b.merge(o, t.color)), t = l, p = { defaultColor: o, domRef: r, tipsContent: n, width: m, height: d, mergedColor: f, props: t, getTipsContent: () => {
33
+ c({ Id: t.tipsId }).then((e) => {
34
+ e && e.Content && (n.value = e.Content.Content);
35
+ });
36
+ }, get InfoFilled() {
37
+ return g;
38
+ }, get ElPopover() {
39
+ return _;
40
+ }, get ElIcon() {
41
+ return C;
42
+ } };
43
+ return Object.defineProperty(p, "__isScriptSetup", { enumerable: !1, value: !0 }), p;
44
+ }
45
+ });
46
+ export {
47
+ j as default
48
+ };
@@ -0,0 +1,7 @@
1
+ import { withInstall as r } from "../utils/install.js";
2
+ import o from "./border-wrap.vue.js";
3
+ const e = r(o);
4
+ export {
5
+ e as YaheeBorderWrap,
6
+ e as default
7
+ };
@@ -0,0 +1,11 @@
1
+ function r() {
2
+ return {
3
+ title: "",
4
+ color: () => [],
5
+ backgroundColor: "transparent",
6
+ tipsId: ""
7
+ };
8
+ }
9
+ export {
10
+ r as defaultBorderWrapPropsProps
11
+ };
@@ -0,0 +1,24 @@
1
+ .yahee-border-wrap .dv-border-box {
2
+ position: relative;
3
+ box-sizing: border-box;
4
+ width: 100%;
5
+ height: 100%;
6
+ }
7
+ .yahee-border-wrap .dv-border-svg-container {
8
+ position: absolute;
9
+ width: 100%;
10
+ height: 100%;
11
+ top: 0px;
12
+ left: 0px;
13
+ display: block;
14
+ }
15
+ .yahee-border-wrap .dv-border-box-content {
16
+ position: relative;
17
+ width: 100%;
18
+ height: 100%;
19
+ }
20
+ .yahee-border-wrap .item_title_content {
21
+ width: calc(100% - 40px);
22
+ margin: 0 auto;
23
+ height: calc(100% - 60px);
24
+ }
@@ -0,0 +1,394 @@
1
+ import x from "./common-import.vue2.js";
2
+ import { createElementBlock as m, openBlock as t, Fragment as k, createVNode as o, withCtx as e, withDirectives as M, createElementVNode as y, createCommentVNode as g, renderSlot as v, createTextVNode as n, toDisplayString as a, renderList as R, createBlock as f } from "vue";
3
+ import T from "../_virtual/_plugin-vue_export-helper.js";
4
+ const D = { class: "form-slot" }, P = { key: 0 }, F = { key: 0 }, I = { key: 1 }, L = { style: { color: "red" } }, z = { class: "form-slot" }, S = {
5
+ key: 0,
6
+ class: "card-header"
7
+ }, V = ["innerHTML"], B = {
8
+ key: 0,
9
+ class: "ellipsis-cell"
10
+ };
11
+ function N(_, c, s, l, u, U) {
12
+ return t(), m(k, null, [
13
+ o(l.ElDialog, {
14
+ modelValue: l.isShowDialog,
15
+ "onUpdate:modelValue": c[1] || (c[1] = (i) => l.isShowDialog = i),
16
+ title: l.M2(l.title),
17
+ width: "900",
18
+ "before-close": l.handleClose,
19
+ draggable: "",
20
+ onOpen: l.handleOpen
21
+ }, {
22
+ default: e(() => {
23
+ var i;
24
+ return [
25
+ M((t(), m("div", null, [
26
+ y("div", D, [
27
+ v(_.$slots, "form")
28
+ ]),
29
+ o(l.ElRow, null, {
30
+ default: e(() => [
31
+ o(l.ElUpload, {
32
+ class: "upload-record",
33
+ "http-request": l.handleFileUpload,
34
+ accept: ".xls,.xlsx,.txt,.csv",
35
+ "show-file-list": !1,
36
+ multiple: s.multiple,
37
+ drag: "",
38
+ style: { width: "20%", height: "100%" },
39
+ disabled: s.uploadDisabled || l.uploadLoading
40
+ }, {
41
+ default: e(() => [
42
+ o(l.ElButton, {
43
+ style: { "background-color": "rgba(0, 183, 238, 1)", "font-weight": "bold" },
44
+ size: "large",
45
+ type: "primary",
46
+ disabled: s.uploadDisabled,
47
+ loading: l.uploadLoading
48
+ }, {
49
+ default: e(() => [
50
+ n(a(l.M2("上传文件")), 1)
51
+ ]),
52
+ _: 1
53
+ }, 8, ["disabled", "loading"])
54
+ ]),
55
+ _: 1
56
+ }, 8, ["multiple", "disabled"])
57
+ ]),
58
+ _: 1
59
+ }),
60
+ (i = l.fileNames) != null && i.size ? (t(), m("div", P, [
61
+ (t(!0), m(k, null, R(l.fileNames, (r) => {
62
+ var C, h;
63
+ return t(), m("div", {
64
+ key: r,
65
+ class: "uploadProgress"
66
+ }, [
67
+ o(l.ElRow, { style: { "margin-bottom": "5px" } }, {
68
+ default: e(() => [
69
+ o(l.ElCol, { span: 18 }, {
70
+ default: e(() => [
71
+ o(l.ElLink, {
72
+ type: "primary",
73
+ underline: !1,
74
+ style: { font: "inherit" },
75
+ onClick: c[0] || (c[0] = (b) => l.getFile(l.eventData.Template))
76
+ }, {
77
+ default: e(() => [
78
+ n(a(r), 1)
79
+ ]),
80
+ _: 2
81
+ }, 1024)
82
+ ]),
83
+ _: 2
84
+ }, 1024),
85
+ l.uploadProgress[r] ? (t(), f(l.ElCol, {
86
+ key: 0,
87
+ span: 6
88
+ }, {
89
+ default: e(() => [
90
+ l.uploadProgress[r] == 100 ? (t(), m("span", F, a(l.M2("文件上传完成")), 1)) : (t(), m("span", I, a(l.M2("文件正在上传,进度") + `${l.uploadProgress[r]}% ...`), 1))
91
+ ]),
92
+ _: 2
93
+ }, 1024)) : g("", !0)
94
+ ]),
95
+ _: 2
96
+ }, 1024),
97
+ l.sessionIds[r] ? (t(), f(l.ElRow, {
98
+ key: 0,
99
+ style: { "margin-bottom": "5px" }
100
+ }, {
101
+ default: e(() => [
102
+ n(a(l.M2("导入ID")) + ":" + a(l.sessionIds[r]), 1)
103
+ ]),
104
+ _: 2
105
+ }, 1024)) : g("", !0),
106
+ l.errorMessage[r] ? (t(), f(l.ElRow, {
107
+ key: 1,
108
+ style: { "margin-bottom": "5px" }
109
+ }, {
110
+ default: e(() => [
111
+ y("span", L, a(l.M2(l.errorMessage[r])), 1)
112
+ ]),
113
+ _: 2
114
+ }, 1024)) : g("", !0),
115
+ (C = l.importProgress[r]) != null && C.totalRowCount ? (t(), f(l.ElRow, {
116
+ key: 2,
117
+ style: { "margin-bottom": "5px" }
118
+ }, {
119
+ default: e(() => {
120
+ var b, w;
121
+ return [
122
+ o(l.ElCol, { span: 6 }, {
123
+ default: e(() => {
124
+ var d, E;
125
+ return [
126
+ n(a(l.M2("工作簿")) + ":" + a((d = l.importProgress[r]) == null ? void 0 : d.currentSheet) + "/" + a((E = l.importProgress[r]) == null ? void 0 : E.sheetCount), 1)
127
+ ];
128
+ }),
129
+ _: 2
130
+ }, 1024),
131
+ o(l.ElCol, { span: 6 }, {
132
+ default: e(() => {
133
+ var d;
134
+ return [
135
+ n(a(l.M2("总行数")) + ":" + a((d = l.importProgress[r]) == null ? void 0 : d.totalRowCount), 1)
136
+ ];
137
+ }),
138
+ _: 2
139
+ }, 1024),
140
+ o(l.ElCol, { span: 6 }, {
141
+ default: e(() => {
142
+ var d;
143
+ return [
144
+ n(a(l.M2("成功行数")) + ":" + a((d = l.importProgress[r]) == null ? void 0 : d.successRowCount), 1)
145
+ ];
146
+ }),
147
+ _: 2
148
+ }, 1024),
149
+ (b = l.importProgress[r]) != null && b.failedRowCount ? g("", !0) : (t(), f(l.ElCol, {
150
+ key: 0,
151
+ span: 6
152
+ }, {
153
+ default: e(() => [
154
+ n(a(l.M2("失败行数")) + ":0 ", 1)
155
+ ]),
156
+ _: 1
157
+ })),
158
+ (w = l.importProgress[r]) != null && w.failedRowCount ? (t(), f(l.ElCol, {
159
+ key: 1,
160
+ span: 6,
161
+ style: { display: "flex" }
162
+ }, {
163
+ default: e(() => [
164
+ n(a(l.M2("失败行数")) + ": ", 1),
165
+ o(l.ElLink, {
166
+ type: "primary",
167
+ underline: !1,
168
+ title: l.problemFiles[r],
169
+ onClick: (d) => l.getFile(l.problemFiles[r])
170
+ }, {
171
+ default: e(() => {
172
+ var d;
173
+ return [
174
+ n(a((d = l.importProgress[r]) == null ? void 0 : d.failedRowCount), 1)
175
+ ];
176
+ }),
177
+ _: 2
178
+ }, 1032, ["title", "onClick"])
179
+ ]),
180
+ _: 2
181
+ }, 1024)) : g("", !0)
182
+ ];
183
+ }),
184
+ _: 2
185
+ }, 1024)) : g("", !0),
186
+ c[3] || (c[3] = y("br", null, null, -1)),
187
+ (h = l.importProgress[r]) != null && h.totalRowCount ? (t(), f(l.ElProgress, {
188
+ key: 3,
189
+ percentage: l.getProgressPercentage(r)
190
+ }, null, 8, ["percentage"])) : g("", !0),
191
+ y("div", z, [
192
+ v(_.$slots, "resultMessage")
193
+ ])
194
+ ]);
195
+ }), 128))
196
+ ])) : g("", !0),
197
+ o(l.ElRow, { style: { "margin-top": "10px" } }, {
198
+ default: e(() => [
199
+ o(l.ElCard, { style: { width: "860px" } }, {
200
+ header: e(() => [
201
+ s.displayGetTemplate ? (t(), m("div", S, [
202
+ y("span", null, a(l.M2("说明")), 1)
203
+ ])) : g("", !0)
204
+ ]),
205
+ footer: e(() => [
206
+ o(l.ElRow, null, {
207
+ default: e(() => [
208
+ o(l.ElCol, { span: 10 }),
209
+ o(l.ElCol, {
210
+ span: 14,
211
+ style: { display: "flex", "justify-content": "flex-end" }
212
+ }, {
213
+ default: e(() => [
214
+ s.displayGetTemplate && l.eventData.TemplateType != 0 ? (t(), f(l.ElButton, {
215
+ key: 0,
216
+ style: { "background-color": "rgba(89, 191, 87, 1)", color: "white", "font-weight": "bold" },
217
+ size: "large",
218
+ onClick: l.getTemplateFile
219
+ }, {
220
+ default: e(() => [
221
+ n(a(l.M2("获取模板")), 1)
222
+ ]),
223
+ _: 1
224
+ })) : g("", !0),
225
+ o(l.ElButton, {
226
+ style: { "background-color": "rgba(89, 191, 87, 1)", color: "white", "font-weight": "bold" },
227
+ size: "large",
228
+ onClick: l.displayRecords
229
+ }, {
230
+ default: e(() => [
231
+ n(a(l.M2("导入记录")), 1)
232
+ ]),
233
+ _: 1
234
+ }),
235
+ o(l.ElButton, {
236
+ style: { color: "#949592", "font-weight": "bold" },
237
+ size: "large",
238
+ onClick: l.handleClose
239
+ }, {
240
+ default: e(() => [
241
+ n(a(l.M2("关闭")), 1)
242
+ ]),
243
+ _: 1
244
+ })
245
+ ]),
246
+ _: 1
247
+ })
248
+ ]),
249
+ _: 1
250
+ })
251
+ ]),
252
+ default: e(() => [
253
+ s.displayGetTemplate ? (t(), m("div", {
254
+ key: 0,
255
+ innerHTML: l.eventData.Description
256
+ }, null, 8, V)) : g("", !0)
257
+ ]),
258
+ _: 1
259
+ })
260
+ ]),
261
+ _: 1
262
+ })
263
+ ])), [
264
+ [l.vLoading, l.initWebRootUrlLoading]
265
+ ])
266
+ ];
267
+ }),
268
+ _: 3
269
+ }, 8, ["modelValue", "title"]),
270
+ o(l.ElDialog, {
271
+ modelValue: l.isShowCoreImportRecordDialog,
272
+ "onUpdate:modelValue": c[2] || (c[2] = (i) => l.isShowCoreImportRecordDialog = i),
273
+ title: l.M2("导入记录"),
274
+ width: "1400",
275
+ "before-close": l.handleCloseRecord,
276
+ draggable: ""
277
+ }, {
278
+ default: e(() => [
279
+ y("div", null, [
280
+ M((t(), f(l.ElTable, {
281
+ border: "",
282
+ "row-key": "id",
283
+ data: l.tableData,
284
+ "max-height": "500",
285
+ style: { width: "100%" },
286
+ "empty-text": l.M2("暂无数据")
287
+ }, {
288
+ default: e(() => [
289
+ o(l.ElTableColumn, {
290
+ align: "center",
291
+ label: l.M2("记录ID"),
292
+ "min-width": "220",
293
+ prop: "TaskId"
294
+ }, null, 8, ["label"]),
295
+ o(l.ElTableColumn, {
296
+ align: "center",
297
+ label: l.M2("导入时间"),
298
+ "min-width": "100"
299
+ }, {
300
+ default: e((i) => [
301
+ n(a(l.getFormattedDate(i.row)), 1)
302
+ ]),
303
+ _: 1
304
+ }, 8, ["label"]),
305
+ o(l.ElTableColumn, {
306
+ align: "center",
307
+ label: l.M2("导入人")
308
+ }, {
309
+ default: e((i) => [
310
+ n(a(i.row.CreatedBy ? l.translateEmployeeName(i.row.CreatedBy) : "-"), 1)
311
+ ]),
312
+ _: 1
313
+ }, 8, ["label"]),
314
+ o(l.ElTableColumn, {
315
+ align: "center",
316
+ label: l.M2("上传文件"),
317
+ "min-width": "160"
318
+ }, {
319
+ default: e((i) => [
320
+ o(l.ElLink, {
321
+ type: "primary",
322
+ underline: !1,
323
+ style: { font: "inherit" },
324
+ onClick: (r) => l.getFile(i.row.InFileId)
325
+ }, {
326
+ default: e(() => [
327
+ n(a(i.row.InFileId), 1)
328
+ ]),
329
+ _: 2
330
+ }, 1032, ["onClick"])
331
+ ]),
332
+ _: 1
333
+ }, 8, ["label"]),
334
+ o(l.ElTableColumn, {
335
+ align: "center",
336
+ label: l.M2("输出文件"),
337
+ "min-width": "160"
338
+ }, {
339
+ default: e((i) => [
340
+ o(l.ElLink, {
341
+ type: "primary",
342
+ underline: !1,
343
+ style: { font: "inherit" },
344
+ onClick: (r) => l.getFile(i.row.OutFileId)
345
+ }, {
346
+ default: e(() => [
347
+ n(a(i.row.OutFileId), 1)
348
+ ]),
349
+ _: 2
350
+ }, 1032, ["onClick"])
351
+ ]),
352
+ _: 1
353
+ }, 8, ["label"]),
354
+ o(l.ElTableColumn, {
355
+ align: "center",
356
+ label: l.M2("错误信息"),
357
+ prop: "ErrorMessage",
358
+ width: "200"
359
+ }, {
360
+ default: e((i) => [
361
+ i.row.ErrorMessage ? (t(), m("div", B, a(i.row.ErrorMessage), 1)) : g("", !0)
362
+ ]),
363
+ _: 1
364
+ }, 8, ["label"]),
365
+ o(l.ElTableColumn, {
366
+ align: "center",
367
+ label: l.M2("备注"),
368
+ prop: "Remark"
369
+ }, null, 8, ["label"])
370
+ ]),
371
+ _: 1
372
+ }, 8, ["data", "empty-text"])), [
373
+ [l.vLoading, l.tableLoading]
374
+ ]),
375
+ o(l.ElPagination, {
376
+ "current-page": l.pageNo,
377
+ "page-sizes": [50, 100, 150, 200],
378
+ "page-size": l.pageSize,
379
+ layout: "total, sizes, prev, pager, next, jumper",
380
+ total: l.totalNum,
381
+ class: "page-pagination",
382
+ onSizeChange: l.handleSizeChange,
383
+ onCurrentChange: l.handleCurrentChange
384
+ }, null, 8, ["current-page", "page-size", "total"])
385
+ ])
386
+ ]),
387
+ _: 1
388
+ }, 8, ["modelValue", "title"])
389
+ ], 64);
390
+ }
391
+ const H = /* @__PURE__ */ T(x, [["render", N], ["__file", "E:/工作/项目代码/common_componentsweb/packages/components/src/common-import/common-import.vue"]]);
392
+ export {
393
+ H as default
394
+ };