yahee-components 0.0.9 → 0.0.12

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 (213) hide show
  1. package/es/annex-upload/annex-upload.vue.js +6 -6
  2. package/es/api/server.js +29 -0
  3. package/es/api/tool.js +69 -0
  4. package/es/comprehensive-search/comprehensive-search.vue.js +10 -10
  5. package/es/country-platform-shop-condition/country-platform-shop-condition.vue.js +218 -0
  6. package/es/country-platform-shop-condition/country-platform-shop-condition.vue2.js +4 -0
  7. package/es/country-platform-shop-condition/index.js +7 -0
  8. package/es/country-platform-shop-condition/style/index.css +48 -0
  9. package/es/drop-down-condition/drop-down-condition.vue.js +215 -0
  10. package/es/drop-down-condition/drop-down-condition.vue2.js +4 -0
  11. package/es/drop-down-condition/index.js +7 -0
  12. package/es/drop-down-condition/style/index.css +45 -0
  13. package/es/image-upload/image-upload.vue.js +125 -124
  14. package/es/index.js +28 -15
  15. package/es/installs.js +18 -10
  16. package/es/left-condition/index.js +7 -0
  17. package/es/left-condition/left-condition-sub.vue.js +95 -0
  18. package/es/left-condition/left-condition-sub.vue2.js +4 -0
  19. package/es/left-condition/left-condition.vue.js +214 -0
  20. package/es/left-condition/left-condition.vue2.js +4 -0
  21. package/es/left-condition/style/index.css +11 -0
  22. package/es/left-condition-enum/index.js +7 -0
  23. package/es/left-condition-enum/left-condition-enum.vue.js +76 -0
  24. package/es/left-condition-enum/left-condition-enum.vue2.js +4 -0
  25. package/es/left-condition-enum/style/index.css +0 -0
  26. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/index.js +38 -0
  27. package/es/operation-log/operation-log-content.vue.js +6 -6
  28. package/es/operation-log/operation-log-form.vue.js +2 -2
  29. package/es/operation-log/operation-log-form.vue2.js +17 -17
  30. package/es/operation-log/operation-log.vue.js +50 -49
  31. package/es/packages/components/api/log/index.js +15 -0
  32. package/es/packages/components/api/log-server.js +17 -21
  33. package/es/packages/components/api/server.js +19 -0
  34. package/es/packages/components/api/tool.js +57 -0
  35. package/es/packages/components/api/{requestTools.js → upload-server.js} +13 -10
  36. package/es/packages/components/hooks/useClipboard.js +16 -14
  37. package/es/packages/components/hooks/useImport.js +14 -12
  38. package/es/packages/components/hooks/useUpload.js +9 -9
  39. package/es/static/CommonObject.js +4 -0
  40. package/es/style.css +81 -196
  41. package/es/utils/config.js +19 -0
  42. package/es/utils/const.js +19 -0
  43. package/es/utils/style.js +28 -0
  44. package/es/utils/translate.js +50 -31
  45. package/lib/country-platform-shop-condition/style/index.css +48 -0
  46. package/lib/drop-down-condition/style/index.css +45 -0
  47. package/lib/left-condition/style/index.css +11 -0
  48. package/lib/left-condition-enum/style/index.css +0 -0
  49. package/lib/style.css +81 -196
  50. package/package.json +1 -1
  51. package/types/hooks/useClipboard.d.ts +7 -0
  52. package/types/hooks/useImg.d.ts +10 -0
  53. package/types/hooks/useImgPath.d.ts +5 -0
  54. package/types/hooks/useImport.d.ts +11 -0
  55. package/types/hooks/useUpload.d.ts +12 -0
  56. package/types/index.d.ts +6 -1204
  57. package/types/src/annex-upload/annex-upload.d.ts +30 -0
  58. package/types/src/annex-upload/annex-upload.vue.d.ts +443 -0
  59. package/types/src/annex-upload/index.d.ts +123 -0
  60. package/types/src/annex-upload/mimeType.d.ts +2 -0
  61. package/types/src/api/server.d.ts +6 -0
  62. package/types/src/api/tool.d.ts +6 -0
  63. package/types/src/api/types.d.ts +17 -0
  64. package/types/src/components.d.ts +10 -0
  65. package/types/src/comprehensive-search/comprehensive-search.d.ts +12 -0
  66. package/types/src/comprehensive-search/comprehensive-search.vue.d.ts +33 -0
  67. package/types/src/comprehensive-search/index.d.ts +36 -0
  68. package/types/src/copy/copy.d.ts +12 -0
  69. package/types/src/copy/copy.vue.d.ts +21 -0
  70. package/types/src/copy/index.d.ts +32 -0
  71. package/types/src/country-platform-shop-condition/country-platform-shop-condition.d.ts +17 -0
  72. package/types/src/country-platform-shop-condition/country-platform-shop-condition.vue.d.ts +14 -0
  73. package/types/src/country-platform-shop-condition/index.d.ts +16 -0
  74. package/types/src/drop-down-condition/drop-down-condition.d.ts +6 -0
  75. package/types/src/drop-down-condition/drop-down-condition.vue.d.ts +38 -0
  76. package/types/src/drop-down-condition/index.d.ts +40 -0
  77. package/types/src/image-upload/image-upload.d.ts +26 -0
  78. package/types/src/image-upload/image-upload.vue.d.ts +43 -0
  79. package/types/src/image-upload/index.d.ts +94 -0
  80. package/types/src/index.d.ts +7 -0
  81. package/types/src/input/index.d.ts +16 -0
  82. package/types/src/input/input.d.ts +18 -0
  83. package/types/src/input/input.vue.d.ts +14 -0
  84. package/types/src/installs.d.ts +535 -0
  85. package/types/src/left-condition/index.d.ts +69 -0
  86. package/types/src/left-condition/left-condition-sub.vue.d.ts +47 -0
  87. package/types/src/left-condition/left-condition.d.ts +5 -0
  88. package/types/src/left-condition/left-condition.vue.d.ts +68 -0
  89. package/types/src/left-condition-enum/index.d.ts +153 -0
  90. package/types/src/left-condition-enum/left-condition-enum.d.ts +5 -0
  91. package/types/src/left-condition-enum/left-condition-enum.vue.d.ts +151 -0
  92. package/types/src/operation-log/index.d.ts +9 -0
  93. package/types/src/operation-log/operation-log-content.vue.d.ts +24 -0
  94. package/types/src/operation-log/operation-log-dialog.vue.d.ts +39 -0
  95. package/types/src/operation-log/operation-log-form.vue.d.ts +19 -0
  96. package/types/src/operation-log/operation-log.d.ts +11 -0
  97. package/types/src/operation-log/operation-log.vue.d.ts +6 -0
  98. package/types/src/static/CommonObject.d.ts +18 -0
  99. package/types/src/static/CommonVariables.d.ts +4 -0
  100. package/types/src/utils/config.d.ts +8 -0
  101. package/types/src/utils/const.d.ts +19 -0
  102. package/types/src/utils/functions.d.ts +1 -0
  103. package/types/src/utils/install.d.ts +8 -0
  104. package/types/src/utils/storage.d.ts +18 -0
  105. package/types/src/utils/style.d.ts +19 -0
  106. package/types/src/utils/to-kebab-case.d.ts +1 -0
  107. package/types/src/utils/translate.d.ts +5 -0
  108. package/types/src/utils/typescript.d.ts +5 -0
  109. package/es/packages/components/api/remarkApi.js +0 -15
  110. package/es/packages/components/api/requestRemark.js +0 -47
  111. package/lib/_virtual/_commonjsHelpers.js +0 -1
  112. package/lib/_virtual/_plugin-vue_export-helper.js +0 -1
  113. package/lib/_virtual/dayjs.min.js +0 -1
  114. package/lib/_virtual/lodash.js +0 -1
  115. package/lib/annex-upload/annex-upload.vue.js +0 -1
  116. package/lib/annex-upload/annex-upload.vue2.js +0 -1
  117. package/lib/annex-upload/index.js +0 -1
  118. package/lib/annex-upload/mimeType.js +0 -1
  119. package/lib/comprehensive-search/comprehensive-search.vue.js +0 -1
  120. package/lib/comprehensive-search/comprehensive-search.vue2.js +0 -1
  121. package/lib/comprehensive-search/index.js +0 -1
  122. package/lib/copy/copy.vue.js +0 -1
  123. package/lib/copy/copy.vue2.js +0 -1
  124. package/lib/copy/index.js +0 -1
  125. package/lib/image-upload/image-upload.vue.js +0 -1
  126. package/lib/image-upload/image-upload.vue2.js +0 -1
  127. package/lib/image-upload/index.js +0 -1
  128. package/lib/index.js +0 -1
  129. package/lib/input/index.js +0 -1
  130. package/lib/input/input.vue.js +0 -1
  131. package/lib/input/input.vue2.js +0 -1
  132. package/lib/installs.js +0 -1
  133. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/adapters/adapters.js +0 -3
  134. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/adapters/fetch.js +0 -1
  135. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/adapters/xhr.js +0 -1
  136. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/axios.js +0 -1
  137. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/cancel/CancelToken.js +0 -1
  138. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/cancel/CanceledError.js +0 -1
  139. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/cancel/isCancel.js +0 -1
  140. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/Axios.js +0 -2
  141. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/AxiosError.js +0 -1
  142. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/AxiosHeaders.js +0 -2
  143. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/InterceptorManager.js +0 -1
  144. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/buildFullPath.js +0 -1
  145. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/dispatchRequest.js +0 -1
  146. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/mergeConfig.js +0 -1
  147. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/settle.js +0 -1
  148. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/transformData.js +0 -1
  149. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/defaults/index.js +0 -1
  150. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/defaults/transitional.js +0 -1
  151. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/env/data.js +0 -1
  152. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -1
  153. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/HttpStatusCode.js +0 -1
  154. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/bind.js +0 -1
  155. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/buildURL.js +0 -1
  156. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/combineURLs.js +0 -1
  157. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/composeSignals.js +0 -1
  158. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/cookies.js +0 -1
  159. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/formDataToJSON.js +0 -1
  160. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -1
  161. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/isAxiosError.js +0 -1
  162. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -1
  163. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/null.js +0 -1
  164. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/parseHeaders.js +0 -2
  165. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/parseProtocol.js +0 -1
  166. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/progressEventReducer.js +0 -1
  167. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/resolveConfig.js +0 -1
  168. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/speedometer.js +0 -1
  169. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/spread.js +0 -1
  170. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/throttle.js +0 -1
  171. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/toFormData.js +0 -1
  172. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -1
  173. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/trackStream.js +0 -1
  174. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/validator.js +0 -1
  175. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/browser/classes/Blob.js +0 -1
  176. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/browser/classes/FormData.js +0 -1
  177. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +0 -1
  178. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/browser/index.js +0 -1
  179. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/common/utils.js +0 -1
  180. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/index.js +0 -1
  181. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/utils.js +0 -1
  182. package/lib/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js +0 -1
  183. package/lib/node_modules/.pnpm/element-plus@2.8.3_vue@3.5.4_typescript@5.6.2_/node_modules/element-plus/es/locale/lang/zh-cn.js +0 -1
  184. package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/lodash.js +0 -27
  185. package/lib/node_modules/.pnpm/v3-infinite-loading@1.3.2/node_modules/v3-infinite-loading/lib/v3-infinite-loading.es.js +0 -1
  186. package/lib/operation-log/index.js +0 -1
  187. package/lib/operation-log/operation-log-content.vue.js +0 -1
  188. package/lib/operation-log/operation-log-content.vue2.js +0 -1
  189. package/lib/operation-log/operation-log-dialog.vue.js +0 -1
  190. package/lib/operation-log/operation-log-dialog.vue2.js +0 -1
  191. package/lib/operation-log/operation-log-form.vue.js +0 -1
  192. package/lib/operation-log/operation-log-form.vue2.js +0 -1
  193. package/lib/operation-log/operation-log.vue.js +0 -1
  194. package/lib/operation-log/operation-log.vue2.js +0 -1
  195. package/lib/packages/components/api/log-server.js +0 -1
  196. package/lib/packages/components/api/remarkApi.js +0 -1
  197. package/lib/packages/components/api/requestRemark.js +0 -1
  198. package/lib/packages/components/api/requestTools.js +0 -1
  199. package/lib/packages/components/assets/images/errorimg.png.js +0 -1
  200. package/lib/packages/components/assets/images/excel.png.js +0 -1
  201. package/lib/packages/components/assets/images/file-word.png.js +0 -1
  202. package/lib/packages/components/assets/images/pdf.png.js +0 -1
  203. package/lib/packages/components/assets/images/ppt.png.js +0 -1
  204. package/lib/packages/components/assets/images/vue.svg.js +0 -1
  205. package/lib/packages/components/hooks/useClipboard.js +0 -1
  206. package/lib/packages/components/hooks/useImg.js +0 -1
  207. package/lib/packages/components/hooks/useImgPath.js +0 -1
  208. package/lib/packages/components/hooks/useImport.js +0 -1
  209. package/lib/packages/components/hooks/useUpload.js +0 -1
  210. package/lib/utils/install.js +0 -1
  211. package/lib/utils/storage.js +0 -1
  212. package/lib/utils/translate.js +0 -1
  213. /package/es/node_modules/.pnpm/{element-plus@2.8.3_vue@3.5.4_typescript@5.6.2_ → element-plus@2.8.3_vue@3.5.12_typescript@5.6.2_}/node_modules/element-plus/es/locale/lang/zh-cn.js +0 -0
@@ -0,0 +1,95 @@
1
+ import { defineComponent as A, toRefs as E, ref as p, watch as F, openBlock as s, createElementBlock as u, Fragment as w, createElementVNode as h, normalizeStyle as P, unref as t, withModifiers as U, createCommentVNode as r, createTextVNode as T, toDisplayString as k, nextTick as v } from "vue";
2
+ import N from "../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/lodash.js";
3
+ import { stylesUtils as z } from "../utils/style.js";
4
+ import { translateEmployeeName as D, M2 as j } from "../utils/translate.js";
5
+ const q = ["checked"], G = { key: 1 }, H = {
6
+ key: 0,
7
+ class: "num"
8
+ }, W = /* @__PURE__ */ A({
9
+ __name: "left-condition-sub",
10
+ props: {
11
+ multiSelectList: { default: () => [] },
12
+ countList: {},
13
+ item: { default: () => ({ label: "", value: "" }) },
14
+ hasNum: { type: Boolean, default: !1 },
15
+ allIsCheckbox: { type: Boolean, default: !1 },
16
+ translateUserId: { type: Boolean, default: !1 }
17
+ },
18
+ emits: [
19
+ "resetAllCheckedValue",
20
+ "setSelectedStatusMap",
21
+ "resetRange",
22
+ "resetIsSelectAll",
23
+ "notifyParent",
24
+ "setNoNeedRefreshNumFilterName"
25
+ ],
26
+ setup(y, { expose: b, emit: C }) {
27
+ const g = y, { item: l, hasNum: S, multiSelectList: V } = E(g), n = C, a = p(!1), c = p(!1);
28
+ function x(e) {
29
+ n("setNoNeedRefreshNumFilterName"), n("resetRange"), a.value = e.target.checked, f(a.value), i();
30
+ }
31
+ function i() {
32
+ v(() => {
33
+ n("notifyParent");
34
+ });
35
+ }
36
+ function f(e) {
37
+ c.value = e;
38
+ }
39
+ function m(e) {
40
+ a.value = e;
41
+ }
42
+ function R() {
43
+ a.value = !1, c.value = !1;
44
+ }
45
+ function _() {
46
+ return l.value;
47
+ }
48
+ function B() {
49
+ n("resetAllCheckedValue");
50
+ }
51
+ function I() {
52
+ n("setNoNeedRefreshNumFilterName"), n("resetRange"), B(), v(() => {
53
+ m(!0);
54
+ }), i();
55
+ }
56
+ function L(e) {
57
+ return N.includes(V.value, e.value);
58
+ }
59
+ return F(a, (e) => {
60
+ console.log("left condition subview watch value", e), n("setSelectedStatusMap", { ...l.value, selected: e });
61
+ }), b({
62
+ resetValue: R,
63
+ getValue: _,
64
+ setCurrentValue: m,
65
+ setCheckboxValue: f
66
+ }), (e, o) => {
67
+ var d;
68
+ return s(), u(w, null, [
69
+ h("span", {
70
+ class: "el-button custom-button el-button--small",
71
+ style: P(t(z).getBackgroundColor(a.value)),
72
+ onClick: I
73
+ }, [
74
+ e.allIsCheckbox || L(t(l)) ? (s(), u("input", {
75
+ key: 0,
76
+ checked: c.value,
77
+ class: "el-checkbox__input",
78
+ type: "checkbox",
79
+ onChange: x,
80
+ onClick: o[0] || (o[0] = U(() => {
81
+ }, ["stop"]))
82
+ }, null, 40, q)) : r("", !0),
83
+ T(" " + k(e.translateUserId ? t(D)(t(l).value, t(l).label) : t(j)(t(l).label)) + " ", 1),
84
+ t(N).isEmpty(e.countList) ? r("", !0) : (s(), u("span", G, " (" + k((d = e.countList.filter((M) => M.value == t(l).value)[0]) == null ? void 0 : d.count) + ") ", 1))
85
+ ], 4),
86
+ t(S) ? (s(), u("span", H, o[1] || (o[1] = [
87
+ h("em", null, null, -1)
88
+ ]))) : r("", !0)
89
+ ], 64);
90
+ };
91
+ }
92
+ });
93
+ export {
94
+ W as default
95
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./left-condition-sub.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,214 @@
1
+ import { defineComponent as se, toRefs as oe, ref as m, computed as re, watch as ie, onMounted as ce, resolveComponent as B, openBlock as y, createBlock as D, withCtx as T, createVNode as I, unref as o, createElementVNode as fe, normalizeStyle as de, toDisplayString as L, createElementBlock as q, Fragment as me, renderList as ve, createTextVNode as K, createCommentVNode as pe, nextTick as z } from "vue";
2
+ import l from "../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/lodash.js";
3
+ import ge from "./left-condition-sub.vue.js";
4
+ import { stylesUtils as ye } from "../utils/style.js";
5
+ import { M2 as J } from "../utils/translate.js";
6
+ const he = {
7
+ key: 0,
8
+ class: "el-button custom-button el-button--small",
9
+ style: { "margin-left": "5px", display: "inline-flex" }
10
+ }, Ce = /* @__PURE__ */ se({
11
+ name: "YaheeLeftCondition",
12
+ __name: "left-condition",
13
+ props: {
14
+ multiSelectList: { default: () => [] },
15
+ selectList: { default: () => [] },
16
+ countList: { default: () => [] },
17
+ totalCount: { default: 0 },
18
+ hasNum: { type: Boolean, default: !1 },
19
+ displayRangeInput: { type: Boolean, default: !1 },
20
+ rangeLabel: { default: "区间" },
21
+ rangeStartKey: { default: "rangeStart" },
22
+ rangeEndKey: { default: "rangeEnd" },
23
+ rangeDelimiter: { default: "——" },
24
+ allIsCheckbox: { type: Boolean },
25
+ allIsEmpty: { type: Boolean, default: !1 },
26
+ translateUserId: { type: Boolean },
27
+ staticSearch: { type: Boolean, default: !1 },
28
+ label: { default: "" },
29
+ noNeedRefreshNumFilterName: { default: "" },
30
+ filterKey: { default: "" },
31
+ defaultValues: { default: () => [] }
32
+ },
33
+ emits: ["filterChange", "setNoNeedRefreshNumFilterName"],
34
+ setup(O, { expose: Y, emit: j }) {
35
+ const G = O, {
36
+ multiSelectList: A,
37
+ displayRangeInput: h,
38
+ selectList: N,
39
+ hasNum: H,
40
+ allIsEmpty: Q,
41
+ translateUserId: W,
42
+ label: X,
43
+ filterKey: v,
44
+ rangeStartKey: r,
45
+ rangeEndKey: i,
46
+ noNeedRefreshNumFilterName: F,
47
+ defaultValues: M,
48
+ totalCount: k,
49
+ countList: S
50
+ } = oe(G), V = j, b = m(k.value), c = m(), f = m(), $ = m(S.value), n = /* @__PURE__ */ new Map(), d = m(!1), C = m([]), p = () => {
51
+ console.log("left condition notifyParent start"), z(() => {
52
+ var s, g;
53
+ const e = _(), t = le();
54
+ if (l.isEmpty(e) && l.isEmpty(t)) {
55
+ E();
56
+ return;
57
+ }
58
+ const a = [
59
+ {
60
+ filterKey: v.value,
61
+ checkedValues: l.map(e, (u) => u.value)
62
+ }
63
+ ];
64
+ h.value && (a.push({
65
+ filterKey: r.value,
66
+ checkedValues: [(s = n.get(r.value)) == null ? void 0 : s.value]
67
+ }), a.push({
68
+ filterKey: i.value,
69
+ checkedValues: [(g = n.get(i.value)) == null ? void 0 : g.value]
70
+ })), V("filterChange", a), console.log(
71
+ `left condition notifyParent nextTick after emit, filterKey: ${v.value}, checkedValues: ${JSON.stringify(l.map(e, (u) => u.value))}`
72
+ );
73
+ });
74
+ }, Z = () => {
75
+ V("setNoNeedRefreshNumFilterName");
76
+ }, w = () => {
77
+ R(), x({ label: r.value, selected: !0, value: c.value }), x({ label: i.value, selected: !0, value: f.value });
78
+ }, ee = () => {
79
+ const e = n.get(r.value);
80
+ l.isEmpty(e) && !c.value || l.get(e, "value") === c.value || (w(), p());
81
+ }, te = () => {
82
+ const e = n.get(i.value);
83
+ l.isEmpty(e) && !f.value || l.get(e, "value") === f.value || (w(), p());
84
+ };
85
+ function x(e) {
86
+ console.log(`left condition setSelectedStatusMap start, item: ${JSON.stringify(e)}`), n.set(e.label, {
87
+ selected: e.selected,
88
+ value: e.value
89
+ }), d.value = l.eq(_().length, N.value.length);
90
+ }
91
+ function U(e) {
92
+ return l.includes(A.value, e.value);
93
+ }
94
+ function R() {
95
+ const e = l.map(_(), (t) => t.value);
96
+ n.clear(), l.forEach(C.value, (t) => {
97
+ l.includes(e, t.getValue().value) && t.resetValue();
98
+ }), d.value = !1;
99
+ }
100
+ const _ = () => {
101
+ const e = l.filter(
102
+ Array.from(n.values()),
103
+ (t) => t.selected
104
+ );
105
+ return l.filter(e, (t) => {
106
+ const a = Array.from(n.keys()).find((s) => n.get(s) === t);
107
+ return ![r.value, i.value].includes(a);
108
+ });
109
+ }, le = () => l.filter(Array.from(n.values()), (e) => {
110
+ const t = Array.from(n.keys()).find((a) => n.get(a) === e);
111
+ return [r.value, i.value].includes(t);
112
+ }), ae = () => {
113
+ d.value = !1;
114
+ }, ne = re(() => l.sortBy(N.value, (e) => U(e))), P = () => {
115
+ c.value = void 0, f.value = void 0, n.delete(r.value), n.delete(i.value);
116
+ };
117
+ function E() {
118
+ R(), z(() => {
119
+ d.value = !0;
120
+ const e = N.value.filter((a) => !U(a)), t = l.map(e, (a) => a.value);
121
+ V("filterChange", [
122
+ {
123
+ filterKey: v.value,
124
+ checkedValues: Q.value ? [] : t
125
+ }
126
+ ]);
127
+ }), h.value && P();
128
+ }
129
+ return ie(
130
+ [() => k.value, () => S.value],
131
+ ([e, t], [a, s]) => {
132
+ console.log(e, t), console.log(a, s), (!F.value || !l.eq(F.value, v.value)) && (b.value = k.value, $.value = S.value);
133
+ }
134
+ ), Y({
135
+ clickAllSelected: E
136
+ }), ce(() => {
137
+ if (l.isEmpty(M.value)) {
138
+ d.value = !0;
139
+ return;
140
+ }
141
+ l.filter(
142
+ C.value,
143
+ (e) => l.includes(M.value, e.getValue().value)
144
+ ).forEach((e) => {
145
+ e.setCurrentValue(!0), e.setCheckboxValue(!0);
146
+ }), p();
147
+ }), (e, t) => {
148
+ const a = B("el-input-number"), s = B("el-form-item"), g = B("el-form");
149
+ return y(), D(g, null, {
150
+ default: T(() => [
151
+ I(s, { label: o(X) }, {
152
+ default: T(() => [
153
+ fe("span", {
154
+ onClick: E,
155
+ class: "el-button custom-button el-button--small",
156
+ style: de(o(ye).getBackgroundColor(d.value))
157
+ }, L(b.value ? `${o(J)("全部")}(${b.value})` : o(J)("全部")), 5),
158
+ (y(!0), q(me, null, ve(ne.value, (u, ue) => (y(), D(ge, {
159
+ key: ue,
160
+ ref_for: !0,
161
+ ref_key: "itemRefs",
162
+ ref: C,
163
+ "all-is-checkbox": e.allIsCheckbox,
164
+ "multi-select-list": o(A),
165
+ "translate-user-id": o(W),
166
+ "count-list": $.value,
167
+ item: u,
168
+ "has-num": o(H),
169
+ onResetAllCheckedValue: R,
170
+ onSetSelectedStatusMap: x,
171
+ onResetRange: P,
172
+ onSetNoNeedRefreshNumFilterName: Z,
173
+ onNotifyParent: p,
174
+ onResetIsSelectAll: ae
175
+ }, null, 8, ["all-is-checkbox", "multi-select-list", "translate-user-id", "count-list", "item", "has-num"]))), 128)),
176
+ o(h) ? (y(), q("div", he, [
177
+ K(L(e.rangeLabel) + "  ", 1),
178
+ I(a, {
179
+ modelValue: c.value,
180
+ "onUpdate:modelValue": t[0] || (t[0] = (u) => c.value = u),
181
+ style: { "margin-left": "2px", width: "60px", height: "22px" },
182
+ precision: 2,
183
+ step: 0.01,
184
+ min: 1,
185
+ max: 100,
186
+ controls: !1,
187
+ onBlur: ee
188
+ }, null, 8, ["modelValue"]),
189
+ K("   %   " + L(e.rangeDelimiter) + "   ", 1),
190
+ I(a, {
191
+ modelValue: f.value,
192
+ "onUpdate:modelValue": t[1] || (t[1] = (u) => f.value = u),
193
+ style: { width: "60px", height: "22px" },
194
+ precision: 2,
195
+ step: 0.01,
196
+ size: "small",
197
+ max: 100,
198
+ controls: !1,
199
+ onChange: te
200
+ }, null, 8, ["modelValue"]),
201
+ t[2] || (t[2] = K(" %   "))
202
+ ])) : pe("", !0)
203
+ ]),
204
+ _: 1
205
+ }, 8, ["label"])
206
+ ]),
207
+ _: 1
208
+ });
209
+ };
210
+ }
211
+ });
212
+ export {
213
+ Ce as default
214
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./left-condition.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,11 @@
1
+ :deep(.custom-button + .custom-button) {
2
+ margin-left: 5px;
3
+ margin-bottom: 5px;
4
+ position: relative;
5
+ top: 2px;
6
+ }
7
+
8
+ :deep(.custom-button) {
9
+ padding: 1px 4px;
10
+ height: 22px;
11
+ }
@@ -0,0 +1,7 @@
1
+ import { withInstall as t } from "../utils/install.js";
2
+ import o from "./left-condition-enum.vue.js";
3
+ const n = t(o);
4
+ export {
5
+ n as YaheeLeftConditionEnum,
6
+ n as default
7
+ };
@@ -0,0 +1,76 @@
1
+ import { defineComponent as f, ref as c, onMounted as d, openBlock as y, createBlock as N } from "vue";
2
+ import h from "../left-condition/left-condition.vue.js";
3
+ import { Get as p } from "../api/server.js";
4
+ import { storage as o } from "../utils/storage.js";
5
+ const E = /* @__PURE__ */ f({
6
+ name: "YaheeLeftConditionEnum",
7
+ __name: "left-condition-enum",
8
+ props: {
9
+ selectList: {
10
+ type: Array,
11
+ default: () => []
12
+ },
13
+ countList: {
14
+ type: Array,
15
+ required: !1
16
+ },
17
+ enumEntity: {
18
+ type: String,
19
+ default: ""
20
+ },
21
+ filterKey: {
22
+ type: String,
23
+ default: ""
24
+ },
25
+ totalCount: {
26
+ type: Number,
27
+ required: !1
28
+ },
29
+ noNeedRefreshNumFilterName: {
30
+ type: String,
31
+ required: !1
32
+ },
33
+ allIsCheckbox: {
34
+ type: Boolean,
35
+ required: !1
36
+ },
37
+ allIsEmpty: {
38
+ type: Boolean,
39
+ required: !1
40
+ },
41
+ translateUserId: {
42
+ type: Boolean,
43
+ required: !1
44
+ }
45
+ },
46
+ emits: ["filterChange", "setNoNeedRefreshNumFilterName"],
47
+ setup(e, { emit: s }) {
48
+ const l = e, a = s, n = c(l.selectList), m = (t) => {
49
+ a("filterChange", t);
50
+ }, u = () => {
51
+ a("setNoNeedRefreshNumFilterName", l.filterKey);
52
+ };
53
+ return d(() => {
54
+ const t = `filter-key-${l.enumEntity}`, r = o.getWithExpireTime(t);
55
+ r ? n.value = r : p(`/${l.enumEntity}`).then((i) => {
56
+ n.value = i.data, o.setWithExpireTime(t, n.value, 1200 * 1e3);
57
+ }).catch((i) => {
58
+ console.log(i);
59
+ });
60
+ }), (t, r) => (y(), N(h, {
61
+ "select-list": n.value,
62
+ "count-list": e.countList,
63
+ "total-count": e.totalCount,
64
+ "filter-key": e.filterKey,
65
+ "no-need-refresh-num-filter-name": e.noNeedRefreshNumFilterName,
66
+ "all-is-checkbox": e.allIsCheckbox,
67
+ "translate-user-id": e.translateUserId,
68
+ "all-is-empty": e.allIsEmpty,
69
+ onFilterChange: m,
70
+ onSetNoNeedRefreshNumFilterName: u
71
+ }, null, 8, ["select-list", "count-list", "total-count", "filter-key", "no-need-refresh-num-filter-name", "all-is-checkbox", "translate-user-id", "all-is-empty"]));
72
+ }
73
+ });
74
+ export {
75
+ E as default
76
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./left-condition-enum.vue.js";
2
+ export {
3
+ f as default
4
+ };
File without changes
@@ -0,0 +1,38 @@
1
+ import o from "./lib/axios.js";
2
+ const {
3
+ Axios: e,
4
+ AxiosError: a,
5
+ CanceledError: s,
6
+ isCancel: t,
7
+ CancelToken: i,
8
+ VERSION: l,
9
+ all: n,
10
+ Cancel: d,
11
+ isAxiosError: x,
12
+ spread: C,
13
+ toFormData: c,
14
+ AxiosHeaders: m,
15
+ HttpStatusCode: p,
16
+ formToJSON: A,
17
+ getAdapter: f,
18
+ mergeConfig: E
19
+ } = o;
20
+ export {
21
+ e as Axios,
22
+ a as AxiosError,
23
+ m as AxiosHeaders,
24
+ d as Cancel,
25
+ i as CancelToken,
26
+ s as CanceledError,
27
+ p as HttpStatusCode,
28
+ l as VERSION,
29
+ n as all,
30
+ o as default,
31
+ A as formToJSON,
32
+ f as getAdapter,
33
+ x as isAxiosError,
34
+ t as isCancel,
35
+ E as mergeConfig,
36
+ C as spread,
37
+ c as toFormData
38
+ };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as h, computed as d, openBlock as i, createElementBlock as n, createElementVNode as e, normalizeClass as u, toDisplayString as s, createVNode as f, unref as o, withCtx as m } from "vue";
2
2
  import c from "../packages/components/hooks/useImgPath.js";
3
- import { ElImage as g, ElIcon as N } from "element-plus";
3
+ import { ElImage as N, ElIcon as g } from "element-plus";
4
4
  import "element-plus/theme-chalk/src/base.scss";
5
5
  import "element-plus/theme-chalk/src/image.scss";
6
6
  import "element-plus/theme-chalk/src/image-viewer.scss";
@@ -29,18 +29,18 @@ const v = { key: 0 }, x = {
29
29
  }
30
30
  },
31
31
  id: {
32
- type: String,
33
- default: ""
32
+ type: Number,
33
+ default: 0
34
34
  }
35
35
  },
36
36
  setup(t) {
37
37
  const l = t, a = d(() => l.info.Notes.replace(/\n/g, "<br/>")), r = d(() => l.info.Notes.includes("http") ? l.info.Title.split(".")[0] : l.info.Title);
38
- return (M, S) => (i(), n("div", null, [
38
+ return (M, V) => (i(), n("div", null, [
39
39
  e("div", {
40
40
  class: u(["fontsize-15 paddingB10 text-color-primary", t.id == t.info.CreatedBy ? "d-flex" : ""])
41
41
  }, s(r.value), 3),
42
42
  t.info.Notes.includes(".jpg") && t.info.Notes.startsWith("http") ? (i(), n("div", v, [
43
- f(o(g), {
43
+ f(o(N), {
44
44
  class: "img",
45
45
  src: t.info.Notes,
46
46
  "preview-src-list": [t.info.Notes]
@@ -78,7 +78,7 @@ const v = { key: 0 }, x = {
78
78
  target: "_blank"
79
79
  }, s(t.info.Title), 9, j)
80
80
  ])) : t.info.Notes.includes("http") ? (i(), n("div", D, [
81
- f(o(N), { size: "40" }, {
81
+ f(o(g), { size: "40" }, {
82
82
  default: m(() => [
83
83
  f(o(k))
84
84
  ]),
@@ -1,7 +1,7 @@
1
1
  import o from "./operation-log-form.vue2.js";
2
- import "E:/工作/项目代码/yaheecomponents/packages/components/src/operation-log/operation-log-form.vue?vue&type=style&index=0&scoped=a74073a7&lang.scss";
2
+ import "E:/工作/项目代码/common_componentsweb/packages/components/src/operation-log/operation-log-form.vue?vue&type=style&index=0&scoped=a1609bbd&lang.scss";
3
3
  import r from "../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-a74073a7"]]);
4
+ const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-a1609bbd"]]);
5
5
  export {
6
6
  p as default
7
7
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent as w, reactive as v, ref as B, onMounted as x, openBlock as u, createBlock as c, unref as t, withCtx as n, createVNode as r, createElementBlock as T, Fragment as E, renderList as M, createTextVNode as f, toDisplayString as g } from "vue";
2
- import { ElForm as Y, ElFormItem as s, ElDatePicker as b, ElSelect as N, ElOption as _, ElInput as S, ElButton as d } from "element-plus";
1
+ import { defineComponent as k, reactive as v, ref as B, onMounted as x, openBlock as u, createBlock as c, unref as t, withCtx as n, createVNode as r, createElementBlock as T, Fragment as E, renderList as M, createTextVNode as f, toDisplayString as g } from "vue";
2
+ import { ElForm as Y, ElFormItem as i, ElDatePicker as b, ElSelect as N, ElOption as _, ElInput as S, ElButton as d } from "element-plus";
3
3
  import "element-plus/theme-chalk/src/base.scss";
4
4
  import "element-plus/theme-chalk/src/form.scss";
5
5
  import "element-plus/theme-chalk/src/date-picker.scss";
@@ -13,9 +13,9 @@ import "element-plus/theme-chalk/src/option.scss";
13
13
  import "element-plus/theme-chalk/src/option-group.scss";
14
14
  import "element-plus/theme-chalk/src/select.scss";
15
15
  import { Search as U } from "@element-plus/icons-vue";
16
- import { RemarkApi as F } from "../packages/components/api/remarkApi.js";
16
+ import { getGlobalNotesUsers as F } from "../packages/components/api/log/index.js";
17
17
  import { M2 as o } from "../utils/translate.js";
18
- const Z = /* @__PURE__ */ w({
18
+ const Z = /* @__PURE__ */ k({
19
19
  __name: "operation-log-form",
20
20
  props: {
21
21
  projectId: {
@@ -65,11 +65,11 @@ const Z = /* @__PURE__ */ w({
65
65
  l.append(
66
66
  "filter",
67
67
  JSON.stringify({ BusinessKey: y.projectId, BusinessName: "PRODUCT_DEV" })
68
- ), F.getGlobalNotesUsers(l).then((e) => {
68
+ ), F(l).then((e) => {
69
69
  p.value = e;
70
70
  });
71
- }, k = D, i = (l) => {
72
- m.Mark = l, k("filterChange", m);
71
+ }, w = D, s = (l) => {
72
+ m.Mark = l, w("filterChange", m);
73
73
  };
74
74
  return x(() => {
75
75
  V();
@@ -80,7 +80,7 @@ const Z = /* @__PURE__ */ w({
80
80
  size: "small"
81
81
  }, {
82
82
  default: n(() => [
83
- r(t(s), null, {
83
+ r(t(i), null, {
84
84
  default: n(() => [
85
85
  r(t(b), {
86
86
  modelValue: m.timeValue,
@@ -95,12 +95,12 @@ const Z = /* @__PURE__ */ w({
95
95
  shortcuts: h,
96
96
  size: "small",
97
97
  clearable: "",
98
- onChange: i
98
+ onChange: s
99
99
  }, null, 8, ["modelValue", "range-separator", "start-placeholder", "end-placeholder"])
100
100
  ]),
101
101
  _: 1
102
102
  }),
103
- r(t(s), null, {
103
+ r(t(i), null, {
104
104
  default: n(() => [
105
105
  r(t(N), {
106
106
  modelValue: m.CreatedBy,
@@ -109,7 +109,7 @@ const Z = /* @__PURE__ */ w({
109
109
  style: { width: "120px" },
110
110
  size: "small",
111
111
  clearable: "",
112
- onChange: i
112
+ onChange: s
113
113
  }, {
114
114
  default: n(() => [
115
115
  (u(!0), T(E, null, M(p.value, (a) => (u(), c(t(_), {
@@ -123,7 +123,7 @@ const Z = /* @__PURE__ */ w({
123
123
  ]),
124
124
  _: 1
125
125
  }),
126
- r(t(s), null, {
126
+ r(t(i), null, {
127
127
  default: n(() => [
128
128
  r(t(S), {
129
129
  modelValue: m.search,
@@ -135,7 +135,7 @@ const Z = /* @__PURE__ */ w({
135
135
  append: n(() => [
136
136
  r(t(d), {
137
137
  icon: t(U),
138
- onClick: i
138
+ onClick: s
139
139
  }, null, 8, ["icon"])
140
140
  ]),
141
141
  _: 1
@@ -143,11 +143,11 @@ const Z = /* @__PURE__ */ w({
143
143
  ]),
144
144
  _: 1
145
145
  }),
146
- r(t(s), null, {
146
+ r(t(i), null, {
147
147
  default: n(() => [
148
148
  r(t(d), {
149
149
  type: "primary",
150
- onClick: e[3] || (e[3] = (a) => i(null))
150
+ onClick: e[3] || (e[3] = (a) => s(null))
151
151
  }, {
152
152
  default: n(() => [
153
153
  f(g(t(o)("搜索全部")), 1)
@@ -157,11 +157,11 @@ const Z = /* @__PURE__ */ w({
157
157
  ]),
158
158
  _: 1
159
159
  }),
160
- r(t(s), null, {
160
+ r(t(i), null, {
161
161
  default: n(() => [
162
162
  r(t(d), {
163
163
  type: "primary",
164
- onClick: e[4] || (e[4] = (a) => i("Check"))
164
+ onClick: e[4] || (e[4] = (a) => s("Check"))
165
165
  }, {
166
166
  default: n(() => [
167
167
  f(g(t(o)("审核节点备注")), 1)