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
@@ -1,7 +1,6 @@
1
- import { defineComponent as R, ref as d, reactive as $, onMounted as K, openBlock as c, createElementBlock as u, createVNode as s, unref as n, normalizeStyle as A, withCtx as x, Fragment as y, renderList as G, normalizeClass as J, createElementVNode as l, toDisplayString as p, createCommentVNode as w, withDirectives as Q, vModelText as q, createTextVNode as W } from "vue";
1
+ import { defineComponent as R, ref as d, reactive as $, onMounted as K, openBlock as c, createElementBlock as u, createVNode as s, unref as n, normalizeStyle as G, withCtx as x, Fragment as y, renderList as A, normalizeClass as J, createElementVNode as l, toDisplayString as p, createCommentVNode as k, withDirectives as Q, vModelText as q, createTextVNode as W } from "vue";
2
2
  import { CaretRight as X, CaretLeft as Z } from "@element-plus/icons-vue";
3
- import { RemarkApi as L } from "../packages/components/api/remarkApi.js";
4
- import { ElScrollbar as ee, ElIcon as B, ElButton as te, ElMessage as f } from "element-plus";
3
+ import { ElScrollbar as ee, ElIcon as w, ElButton as te, ElMessage as f } from "element-plus";
5
4
  import "element-plus/theme-chalk/src/base.scss";
6
5
  import "element-plus/theme-chalk/src/badge.scss";
7
6
  import "element-plus/theme-chalk/src/message.scss";
@@ -10,29 +9,30 @@ import "element-plus/theme-chalk/src/button.scss";
10
9
  import { useUpload as oe } from "../packages/components/hooks/useUpload.js";
11
10
  import { useFile as ae } from "../packages/components/hooks/useImg.js";
12
11
  import ne from "./operation-log-form.vue.js";
13
- import U from "./operation-log-content.vue.js";
12
+ import B from "./operation-log-content.vue.js";
14
13
  import se from "./operation-log-dialog.vue.js";
15
- import b from "../node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js";
14
+ import U from "../node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js";
16
15
  import { M2 as r } from "../utils/translate.js";
17
16
  import le from "../annex-upload/annex-upload.vue.js";
18
17
  import ie from "../node_modules/.pnpm/v3-infinite-loading@1.3.2/node_modules/v3-infinite-loading/lib/v3-infinite-loading.es.js";
19
18
  /* empty css */
20
- const re = { class: "yahee-operation-log" }, de = { class: "d-flex jc-end" }, ce = { class: "content text-color-secondary" }, ue = { class: "date fontSize-12 pull-right text-color-a4" }, pe = { class: "name" }, fe = { class: "name" }, me = { class: "d-flex" }, ge = { class: "content text-color-secondary" }, ve = { class: "date fontSize-12 text-color-a4" }, he = {
19
+ import { insertGlobalnotes as P, findGlobalNotes as re } from "../packages/components/api/log/index.js";
20
+ const de = { class: "yahee-operation-log" }, ce = { class: "d-flex jc-end" }, ue = { class: "content text-color-secondary" }, pe = { class: "date fontSize-12 pull-right text-color-a4" }, fe = { class: "name" }, me = { class: "name" }, ge = { class: "d-flex" }, ve = { class: "content text-color-secondary" }, he = { class: "date fontSize-12 text-color-a4" }, _e = {
21
21
  key: 0,
22
22
  class: "loading text-color-a4"
23
- }, _e = {
23
+ }, xe = {
24
24
  key: 1,
25
25
  class: "no-more text-color-a4"
26
- }, xe = ["placeholder"], Ie = { class: "d-flex text-right marginT10" }, Ye = /* @__PURE__ */ R({
26
+ }, Ie = ["placeholder"], ye = { class: "d-flex text-right marginT10" }, He = /* @__PURE__ */ R({
27
27
  name: "YaheeOperationLog",
28
28
  __name: "operation-log",
29
29
  props: {
30
30
  projectId: { default: "" }
31
31
  },
32
- setup(P) {
33
- const I = P, m = d(!1), C = d(!1), _ = d(!1), D = d({}), i = $({
32
+ setup(b) {
33
+ const I = b, m = d(!1), L = d(!1), _ = d(!1), C = d({}), i = $({
34
34
  List: [],
35
- LoginId: ""
35
+ LoginId: 0
36
36
  }), g = d(""), v = d([]), a = {
37
37
  PageIndex: -1,
38
38
  StartOn: "",
@@ -55,35 +55,35 @@ const re = { class: "yahee-operation-log" }, de = { class: "d-flex jc-end" }, ce
55
55
  Notes: a.Notes,
56
56
  Mark: a.Mark
57
57
  })
58
- ), L.findGlobalNotes(e).then((t) => {
58
+ ), re(e).then((t) => {
59
59
  var o;
60
- i.LoginId = t.LoginId, a.PageIndex === 0 ? i.List = t.List || [] : i.List = [...i.List || [], ...t.List || []], ((o = t == null ? void 0 : t.List) == null ? void 0 : o.length) === 0 && (C.value = !0);
60
+ i.LoginId = t.LoginId, a.PageIndex === 0 ? i.List = t.List || [] : i.List = [...i.List || [], ...t.List || []], ((o = t == null ? void 0 : t.List) == null ? void 0 : o.length) === 0 && (L.value = !0);
61
61
  }).finally(() => {
62
62
  m.value = !1;
63
63
  });
64
- }, V = () => {
64
+ }, D = () => {
65
65
  m.value || (m.value = !0, a.PageIndex += 1, h());
66
66
  }, T = (e) => {
67
67
  i.List = [], a.PageIndex = 0, a.StartOn = e.timeValue ? e.timeValue[0] : "", a.EndOn = e.timeValue ? e.timeValue[1] : "", a.UserIds = e.CreatedBy ? [e.CreatedBy] : [], a.Notes = e.search, a.Mark = e.Mark, h();
68
68
  }, S = () => {
69
- v.value.length > 0 && M(v.value[0]).then(async () => {
70
- f.success(r("上传文件成功!")), a.PageIndex = 0, v.value = [], await h(), k();
69
+ v.value.length > 0 && V(v.value[0]).then(async () => {
70
+ f.success(r("上传文件成功!")), a.PageIndex = 0, v.value = [], await h(), N();
71
71
  });
72
72
  }, F = (e) => {
73
- M(e).then(() => {
73
+ V(e).then(() => {
74
74
  f.success(r("上传文件成功!")), _.value = !1, a.PageIndex = 0, h();
75
75
  });
76
- }, M = (e) => {
76
+ }, V = (e) => {
77
77
  const t = new FormData();
78
- return t.append("BusinessKey", I.projectId), t.append("BusinessName", "PRODUCT_DEV"), t.append("notes", e.fileUrl), t.append("ViewTitle", e.fileName), L.insertglobalnotes(t);
78
+ return t.append("BusinessKey", I.projectId), t.append("BusinessName", "PRODUCT_DEV"), t.append("notes", e.fileUrl), t.append("ViewTitle", e.fileName), P(t);
79
79
  }, j = () => {
80
80
  if (!g.value) {
81
81
  f.info(r("备注不能为空!"));
82
82
  return;
83
83
  }
84
84
  const e = new FormData();
85
- e.append("BusinessKey", I.projectId), e.append("BusinessName", "PRODUCT_DEV"), e.append("notes", g.value), e.append("ViewTitle", "备注"), L.insertglobalnotes(e).then(async () => {
86
- f.success(r("添加备注成功!")), a.PageIndex = 0, g.value = "", await h(), k();
85
+ e.append("BusinessKey", I.projectId), e.append("BusinessName", "PRODUCT_DEV"), e.append("notes", g.value), e.append("ViewTitle", "备注"), P(e).then(async () => {
86
+ f.success(r("添加备注成功!")), a.PageIndex = 0, g.value = "", await h(), N();
87
87
  });
88
88
  }, Y = (e) => {
89
89
  if (e.clipboardData || e.originalEvent) {
@@ -97,7 +97,7 @@ const re = { class: "yahee-operation-log" }, de = { class: "d-flex jc-end" }, ce
97
97
  e.clipboardData.files[t].size / 1024 / 1024 < 100 || f.error(r("上传文件大小不能超过 100MB!"));
98
98
  const { name: H } = e.clipboardData.files[t];
99
99
  oe("115", e.clipboardData.files[t]).then((z) => {
100
- D.value = {
100
+ C.value = {
101
101
  fileName: H || "",
102
102
  fileUrl: ae({ fileId: z[0] })
103
103
  };
@@ -106,13 +106,14 @@ const re = { class: "yahee-operation-log" }, de = { class: "d-flex jc-end" }, ce
106
106
  }
107
107
  }
108
108
  }
109
- }, N = d(null), k = () => {
110
- N.value.scrollTo({ top: 0, behavior: "smooth" });
109
+ }, M = d(null), N = () => {
110
+ M.value.scrollTo({ top: 0, behavior: "smooth" });
111
111
  }, E = d(0), O = d(null);
112
112
  return K(() => {
113
- const e = document.getElementsByClassName("log-form")[0].clientHeight;
114
- E.value = window.innerHeight - e - O.value.offsetHeight - 90, V();
115
- }), (e, t) => (c(), u("div", re, [
113
+ var t;
114
+ const e = (t = document.getElementsByClassName("log-form")[0]) == null ? void 0 : t.clientHeight;
115
+ E.value = window.innerHeight - e - O.value.offsetHeight - 90, D();
116
+ }), (e, t) => (c(), u("div", de, [
116
117
  s(ne, {
117
118
  ref: "logForm",
118
119
  class: "text-right log-form",
@@ -121,25 +122,25 @@ const re = { class: "yahee-operation-log" }, de = { class: "d-flex jc-end" }, ce
121
122
  }, null, 8, ["project-id"]),
122
123
  s(n(ee), {
123
124
  ref_key: "infiniteList",
124
- ref: N,
125
+ ref: M,
125
126
  class: "infinite-list-wrapper",
126
- style: A({ height: E.value + "px" })
127
+ style: G({ height: E.value + "px" })
127
128
  }, {
128
129
  default: x(() => [
129
- (c(!0), u(y, null, G(i.List, (o) => (c(), u("div", {
130
+ (c(!0), u(y, null, A(i.List, (o) => (c(), u("div", {
130
131
  key: o.Id,
131
132
  class: J(i.LoginId == o.CreatedBy ? "list-item-right" : "list-item-left")
132
133
  }, [
133
134
  i.LoginId == o.CreatedBy ? (c(), u(y, { key: 0 }, [
134
135
  l("div", null, [
135
- l("div", de, [
136
- l("div", ce, [
137
- s(U, {
136
+ l("div", ce, [
137
+ l("div", ue, [
138
+ s(B, {
138
139
  id: i.LoginId,
139
140
  info: o
140
141
  }, null, 8, ["id", "info"])
141
142
  ]),
142
- s(n(B), {
143
+ s(n(w), {
143
144
  color: "#f1f1f1",
144
145
  size: "20"
145
146
  }, {
@@ -149,14 +150,14 @@ const re = { class: "yahee-operation-log" }, de = { class: "d-flex jc-end" }, ce
149
150
  _: 1
150
151
  })
151
152
  ]),
152
- l("div", ue, p(n(b)(o.CreatedOnStr).format("YYYY-MM-DD HH: mm: ss")), 1)
153
+ l("div", pe, p(n(U)(o.CreatedOnStr).format("YYYY-MM-DD HH: mm: ss")), 1)
153
154
  ]),
154
- l("div", pe, p(o.CreatedName), 1)
155
+ l("div", fe, p(o.CreatedName), 1)
155
156
  ], 64)) : (c(), u(y, { key: 1 }, [
156
- l("div", fe, p(o.CreatedName), 1),
157
+ l("div", me, p(o.CreatedName), 1),
157
158
  l("div", null, [
158
- l("div", me, [
159
- s(n(B), {
159
+ l("div", ge, [
160
+ s(n(w), {
160
161
  color: "#ccc",
161
162
  size: "20"
162
163
  }, {
@@ -165,23 +166,23 @@ const re = { class: "yahee-operation-log" }, de = { class: "d-flex jc-end" }, ce
165
166
  ]),
166
167
  _: 1
167
168
  }),
168
- l("div", ge, [
169
- s(U, {
169
+ l("div", ve, [
170
+ s(B, {
170
171
  id: i.LoginId,
171
172
  info: o
172
173
  }, null, 8, ["id", "info"])
173
174
  ])
174
175
  ]),
175
- l("div", ve, p(n(b)(o.CreatedOnStr).format("YYYY-MM-DD HH:mm:ss")), 1)
176
+ l("div", he, p(n(U)(o.CreatedOnStr).format("YYYY-MM-DD HH:mm:ss")), 1)
176
177
  ])
177
178
  ], 64))
178
179
  ], 2))), 128)),
179
180
  s(n(ie), {
180
181
  distance: 10,
181
- onInfinite: V
182
+ onInfinite: D
182
183
  }),
183
- m.value ? (c(), u("div", he, p(n(r)("加载中...")), 1)) : w("", !0),
184
- C.value ? (c(), u("div", _e, p(n(r)("没有更多了!")), 1)) : w("", !0)
184
+ m.value ? (c(), u("div", _e, p(n(r)("加载中...")), 1)) : k("", !0),
185
+ L.value ? (c(), u("div", xe, p(n(r)("没有更多了!")), 1)) : k("", !0)
185
186
  ]),
186
187
  _: 1
187
188
  }, 8, ["style"]),
@@ -193,10 +194,10 @@ const re = { class: "yahee-operation-log" }, de = { class: "d-flex jc-end" }, ce
193
194
  placeholder: n(r)("可通过 Ctrl+V 直接上传图片/文件"),
194
195
  contenteditable: "true",
195
196
  onPaste: Y
196
- }, null, 40, xe), [
197
+ }, null, 40, Ie), [
197
198
  [q, g.value]
198
199
  ]),
199
- l("div", Ie, [
200
+ l("div", ye, [
200
201
  s(le, {
201
202
  modelValue: v.value,
202
203
  "onUpdate:modelValue": t[1] || (t[1] = (o) => v.value = o),
@@ -220,12 +221,12 @@ const re = { class: "yahee-operation-log" }, de = { class: "d-flex jc-end" }, ce
220
221
  s(se, {
221
222
  modelValue: _.value,
222
223
  "onUpdate:modelValue": t[3] || (t[3] = (o) => _.value = o),
223
- "doc-info": D.value,
224
+ "doc-info": C.value,
224
225
  onConfirmUpload: F
225
226
  }, null, 8, ["modelValue", "doc-info"])
226
227
  ]));
227
228
  }
228
229
  });
229
230
  export {
230
- Ye as default
231
+ He as default
231
232
  };
@@ -0,0 +1,15 @@
1
+ import { post as t } from "../log-server.js";
2
+ function e(o) {
3
+ return t("Common/GetGlobalNotesUsers", o);
4
+ }
5
+ function r(o) {
6
+ return t("Common/FindGlobalNotes", o);
7
+ }
8
+ function s(o) {
9
+ return t("Common/Insertglobalnotes", o);
10
+ }
11
+ export {
12
+ r as findGlobalNotes,
13
+ e as getGlobalNotesUsers,
14
+ s as insertGlobalnotes
15
+ };
@@ -1,4 +1,4 @@
1
- import n from "../../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/axios.js";
1
+ import i from "../../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/axios.js";
2
2
  import { storage as m } from "../../../utils/storage.js";
3
3
  import { ElMessageBox as s } from "element-plus";
4
4
  import "element-plus/theme-chalk/src/base.scss";
@@ -6,24 +6,24 @@ import "element-plus/theme-chalk/src/message-box.scss";
6
6
  import "element-plus/theme-chalk/src/button.scss";
7
7
  import "element-plus/theme-chalk/src/input.scss";
8
8
  import "element-plus/theme-chalk/src/overlay.scss";
9
- const c = "https://newerp.yaheecloud.com/PMS/Latest/", r = n.create({
9
+ const c = "https://newerp.yaheecloud.com/PMS/Latest/", r = i.create({
10
10
  baseURL: c,
11
11
  timeout: 3e4,
12
12
  withCredentials: !0
13
13
  });
14
14
  r.interceptors.request.use(
15
- (t) => {
16
- const e = m.get("token");
17
- return e && (t.headers.token = e), t;
15
+ (e) => {
16
+ const t = m.get("token");
17
+ return t && (e.headers.token = t), e;
18
18
  },
19
- (t) => Promise.reject(t)
19
+ (e) => Promise.reject(e)
20
20
  );
21
- const a = localStorage.getItem("isTimeOutAlert");
21
+ const o = localStorage.getItem("isTimeOutAlert");
22
22
  r.interceptors.response.use(
23
- (t) => t.status === 200 && t.data ? Promise.resolve(t.data) : t,
24
- (t) => {
25
- if (t.response)
26
- switch (t.response.status) {
23
+ (e) => e.status === 200 && e.data ? Promise.resolve(e.data) : e,
24
+ (e) => {
25
+ if (e.response)
26
+ switch (e.response.status) {
27
27
  case 404:
28
28
  s.alert("网络请求地址不存在!");
29
29
  break;
@@ -34,21 +34,17 @@ r.interceptors.response.use(
34
34
  s.alert("服务器错误!");
35
35
  break;
36
36
  default:
37
- console.error(t.response.status, t.message);
37
+ console.error(e.response.status, e.message);
38
38
  break;
39
39
  }
40
- return t.code === "ECONNABORTED" && a && a === "0" && (s.alert("请求超时,‌请检查您的网络连接或稍后重试。‌"), localStorage.setItem("isTimeOutAlert", "1")), Promise.reject(t);
40
+ return e.code === "ECONNABORTED" && o && o === "0" && (s.alert("请求超时,‌请检查您的网络连接或稍后重试。‌"), localStorage.setItem("isTimeOutAlert", "1")), Promise.reject(e);
41
41
  }
42
42
  );
43
- const O = async (t, e, o) => {
44
- const i = Object.assign({}, o, {
45
- headers: {
46
- "Content-Type": "multipart/form-data"
47
- }
48
- });
49
- return r.post(t, e, i);
43
+ const b = async (e, t, a) => r.post(e, t, a), h = (e) => {
44
+ r.defaults.baseURL = e;
50
45
  };
51
46
  export {
52
47
  r as default,
53
- O as upload
48
+ b as post,
49
+ h as setLogBaseUrl
54
50
  };
@@ -0,0 +1,19 @@
1
+ import t from "../../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/axios.js";
2
+ import { handleChangeRequestHeader as a, handleConfigureAuth as s, handleAuthError as n, handleGeneralError as o, handleNetworkError as u } from "./tool.js";
3
+ t.interceptors.request.use((e) => {
4
+ let r = a(e);
5
+ return r = s(r), r;
6
+ });
7
+ t.defaults.withCredentials = !0;
8
+ t.interceptors.response.use(
9
+ (e) => e.status !== 200 ? Promise.reject(e.data) : (n(e.data.errno), o(e.data.status, e.data.msg), e),
10
+ (e) => {
11
+ u(e.response.status), Promise.reject(e.response);
12
+ }
13
+ );
14
+ const l = (e) => {
15
+ t.defaults.baseURL = e;
16
+ };
17
+ export {
18
+ l as setBaseUrl
19
+ };
@@ -0,0 +1,57 @@
1
+ import { ElMessage as t } from "element-plus";
2
+ import "element-plus/theme-chalk/src/base.scss";
3
+ import "element-plus/theme-chalk/src/badge.scss";
4
+ import "element-plus/theme-chalk/src/message.scss";
5
+ import { AxiosHeaders as a } from "../../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/index.js";
6
+ const s = "https://plmerp.yaheecloud.com/api/plm/product-dev/", m = (e) => ({
7
+ ...e,
8
+ baseURL: s,
9
+ timeout: 2e4
10
+ }), c = (e) => {
11
+ const o = new a(e.headers);
12
+ return {
13
+ ...e,
14
+ headers: o
15
+ };
16
+ }, u = (e) => {
17
+ const o = {
18
+ 400: "错误的请求",
19
+ // token 失效
20
+ 401: "未授权,请重新登录",
21
+ 403: "拒绝访问",
22
+ 404: "请求错误,未找到该资源",
23
+ 405: "请求方法未允许",
24
+ 408: "请求超时",
25
+ 500: "服务器端出错",
26
+ 501: "网络未实现",
27
+ 502: "网络错误",
28
+ 503: "服务不可用",
29
+ 504: "网络超时",
30
+ 505: "http版本不支持该请求"
31
+ };
32
+ if (e) {
33
+ t.error(o[e] ?? `其他连接错误 --${e}`);
34
+ return;
35
+ }
36
+ t.error("无法连接到服务器!");
37
+ };
38
+ var n = /* @__PURE__ */ ((e) => (e[e.AuthInvalid = 10031] = "AuthInvalid", e[e.AuthTooLong = 10032] = "AuthTooLong", e[e.UserHasNoRole = 10033] = "UserHasNoRole", e[e.UserNotRegistered = 10034] = "UserNotRegistered", e[e.ThirdPlatformUser = 10035] = "ThirdPlatformUser", e[e.NoRelatedEmployee = 10036] = "NoRelatedEmployee", e[e.CountInvalid = 10037] = "CountInvalid", e[e.CountNotFound = 10038] = "CountNotFound", e))(n || {});
39
+ const f = (e) => e in {
40
+ 10031: "登录失效,需要重新登录",
41
+ // token 失效
42
+ 10032: "您太久没登录,请重新登录~",
43
+ // token 过期
44
+ 10033: "账户未绑定角色,请联系管理员绑定角色",
45
+ 10034: "该用户未注册,请联系管理员注册用户",
46
+ 10035: "code 无法获取对应第三方平台用户",
47
+ 10036: "该账户未关联员工,请联系管理员做关联",
48
+ 10037: "账号已无效",
49
+ 10038: "账号未找到"
50
+ } ? (t.error(n[e]), !1) : !0, N = (e, o) => e !== 0 && o !== "OK" ? (t.error(o), !1) : !0;
51
+ export {
52
+ f as handleAuthError,
53
+ m as handleChangeRequestHeader,
54
+ c as handleConfigureAuth,
55
+ N as handleGeneralError,
56
+ u as handleNetworkError
57
+ };
@@ -1,25 +1,25 @@
1
1
  import i from "../../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/axios.js";
2
- import { storage as m } from "../../../utils/storage.js";
2
+ import { storage as l } from "../../../utils/storage.js";
3
3
  import { ElMessageBox as a } from "element-plus";
4
4
  import "element-plus/theme-chalk/src/base.scss";
5
5
  import "element-plus/theme-chalk/src/message-box.scss";
6
6
  import "element-plus/theme-chalk/src/button.scss";
7
7
  import "element-plus/theme-chalk/src/input.scss";
8
8
  import "element-plus/theme-chalk/src/overlay.scss";
9
- const l = "https://erptools.yaheecloud.com/", s = i.create({
10
- baseURL: l,
9
+ const m = "https://erptools.yaheecloud.com/", r = i.create({
10
+ baseURL: m,
11
11
  timeout: 3e4,
12
12
  withCredentials: !0
13
13
  });
14
- s.interceptors.request.use(
14
+ r.interceptors.request.use(
15
15
  (t) => {
16
- const e = m.get("token");
16
+ const e = l.get("token");
17
17
  return e && (t.headers.token = e), t;
18
18
  },
19
19
  (t) => Promise.reject(t)
20
20
  );
21
21
  const o = localStorage.getItem("isTimeOutAlert");
22
- s.interceptors.response.use(
22
+ r.interceptors.response.use(
23
23
  (t) => {
24
24
  if (t.status === 200 && t.data) {
25
25
  const e = t.data.code || 0;
@@ -51,12 +51,15 @@ s.interceptors.response.use(
51
51
  return t.code === "ECONNABORTED" && o && o == "0" && (a.alert("请求超时,‌请检查您的网络连接或稍后重试。‌"), localStorage.setItem("isTimeOutAlert", "1")), Promise.reject(t);
52
52
  }
53
53
  );
54
- const k = async (t, e, r) => (r = Object.assign(r, {
54
+ const h = async (t, e, s) => (s = Object.assign(s, {
55
55
  headers: {
56
56
  "Content-Type": "multipart/form-data"
57
57
  }
58
- }), s.post(t, e, r));
58
+ }), r.post(t, e, s)), k = (t) => {
59
+ r.defaults.baseURL = t;
60
+ };
59
61
  export {
60
- s as default,
61
- k as upload
62
+ r as default,
63
+ k as setUploadBaseUrl,
64
+ h as upload
62
65
  };
@@ -1,24 +1,26 @@
1
- import { ref as s, unref as u } from "vue";
2
- function f(c = {}) {
3
- const n = s(!1), { navigator: t = window.navigator, source: r, copiedDuring: a = 1500 } = c, i = !!(t && "clipboard" in t);
4
- async function l(e = u(r)) {
1
+ import { ref as s, unref as c } from "vue";
2
+ function f(d) {
3
+ const t = s(!1);
4
+ let n, r, i = 1500;
5
+ const u = !!n;
6
+ async function l(e = c(r)) {
5
7
  if (e != null) {
6
- if (i)
7
- await t.clipboard.writeText(e);
8
+ if (u)
9
+ await n.clipboard.writeText(e);
8
10
  else
9
11
  return;
10
- n.value = !0, setTimeout(() => {
11
- n.value = !1;
12
- }, a);
12
+ t.value = !0, setTimeout(() => {
13
+ t.value = !1;
14
+ }, i);
13
15
  }
14
16
  }
15
- function p(e = u(r)) {
16
- let d = e, o = document.createElement("input");
17
- o.value = d, document.body.appendChild(o), o.select(), document.execCommand("Copy"), o.remove();
17
+ function p(e = c(r)) {
18
+ const a = e, o = document.createElement("input");
19
+ o.value = a, document.body.appendChild(o), o.select(), document.execCommand("Copy"), o.remove();
18
20
  }
19
21
  return {
20
- isSupported: i,
21
- copied: n,
22
+ isSupported: u,
23
+ copied: t,
22
24
  copy: l,
23
25
  copyUrl: p
24
26
  };
@@ -1,4 +1,4 @@
1
- import { upload as m } from "../api/log-server.js";
1
+ import { upload as p } from "../api/upload-server.js";
2
2
  import { ElMessageBox as n, ElMessage as l } from "element-plus";
3
3
  import "element-plus/theme-chalk/src/base.scss";
4
4
  import "element-plus/theme-chalk/src/badge.scss";
@@ -7,25 +7,27 @@ import "element-plus/theme-chalk/src/message-box.scss";
7
7
  import "element-plus/theme-chalk/src/button.scss";
8
8
  import "element-plus/theme-chalk/src/input.scss";
9
9
  import "element-plus/theme-chalk/src/overlay.scss";
10
- const M = (s = "168", r, a = new Function()) => new Promise((i, t) => {
11
- if (!r) {
12
- t("文件不能为空!");
10
+ const D = (t, a) => new Promise((i, r) => {
11
+ if (!t) {
12
+ r(new Error("文件不能为空!"));
13
13
  return;
14
14
  }
15
15
  const e = new FormData();
16
- e.append("uploadFile", r), m("file/project/import", e, {
16
+ e.append("uploadFile", t), p("file/project/import", e, {
17
17
  onUploadProgress(o) {
18
18
  if (o.lengthComputable) {
19
- const p = o.loaded / o.total * 100 | 0;
20
- a({ percent: p });
19
+ const m = o.loaded / o.total * 100 || 0;
20
+ a({ percent: m });
21
21
  }
22
22
  }
23
- }).then((o) => {
24
- o.status == 0 ? (o.data.haveError ? n.alert("部分数据导入失败,请下载并修改后重新导入") : l.success("全部导入成功,请下载文件"), i(o.data)) : t(`导入文件失败${o.msg}`);
25
- }).catch((o) => {
26
- console.error(`导入文件失败!${o}`), t("导入文件失败!");
23
+ }).then(
24
+ (o) => {
25
+ o.status === 0 ? (o.data.haveError ? n.alert("部分数据导入失败,请下载并修改后重新导入") : l.success("全部导入成功,请下载文件"), i(o.data)) : r(new Error(`导入文件失败${o.msg}`));
26
+ }
27
+ ).catch((o) => {
28
+ console.error(`导入文件失败!${o}`), r(new Error("导入文件失败!"));
27
29
  });
28
30
  });
29
31
  export {
30
- M as useImport
32
+ D as useImport
31
33
  };
@@ -1,24 +1,24 @@
1
- import { upload as c } from "../api/requestTools.js";
2
- const s = (o) => ["image/jpeg", "image/jpg", "image/gif", "image/png"].includes(o.type), d = (o = "105", n, t = new Function()) => new Promise((p, a) => {
1
+ import { upload as m } from "../api/upload-server.js";
2
+ const f = (o) => ["image/jpeg", "image/jpg", "image/gif", "image/png"].includes(o.type), d = (o = "105", n, t) => new Promise((p, a) => {
3
3
  if (!n) {
4
- a("文件不能为空!");
4
+ a(new Error("文件不能为空!"));
5
5
  return;
6
6
  }
7
7
  const i = new FormData();
8
- i.append("fileType", o), i.append("file", n), c("api/common/uploadFile", i, {
8
+ i.append("fileType", o), i.append("file", n), m("api/common/uploadFile", i, {
9
9
  onUploadProgress(e) {
10
10
  if (e.lengthComputable) {
11
- const l = e.loaded / e.total * 100 | 0;
12
- t({ percent: l });
11
+ const r = e.loaded / e.total * 100 || 0;
12
+ t && t({ percent: r });
13
13
  }
14
14
  }
15
15
  }).then((e) => {
16
- e.code == 200 ? p(e.data) : a(`上传文件失败${e.msg}`);
16
+ e.code === 200 ? p(e.data) : a(new Error(`上传文件失败${e.msg}`));
17
17
  }).catch((e) => {
18
- console.error(`上传文件失败!${e}`), a("上传文件失败!");
18
+ console.error(`上传文件失败!${e}`), a(new Error("上传文件失败!"));
19
19
  });
20
20
  });
21
21
  export {
22
- s as useIsImg,
22
+ f as useIsImg,
23
23
  d as useUpload
24
24
  };
@@ -0,0 +1,4 @@
1
+ var N = /* @__PURE__ */ ((r) => (r.EN = "en", r.CN = "zh-CN", r))(N || {});
2
+ export {
3
+ N as i18nType
4
+ };