yahee-components 0.0.91 → 0.0.93

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 (67) hide show
  1. package/es/annex-upload/annex-upload.vue.js +154 -51
  2. package/es/annex-upload/annex-upload.vue2.js +2 -119
  3. package/es/annex-upload/index.js +3 -3
  4. package/es/border-wrap/border-wrap.vue.js +95 -64
  5. package/es/border-wrap/border-wrap.vue2.js +2 -46
  6. package/es/common-import/common-import.vue.js +666 -369
  7. package/es/common-import/common-import.vue2.js +2 -337
  8. package/es/common-import/index.js +3 -3
  9. package/es/complex-search/complex-search.vue.js +37 -36
  10. package/es/complex-search/complex-search.vue2.js +82 -94
  11. package/es/copy/copy.vue.js +55 -37
  12. package/es/copy/copy.vue2.js +2 -34
  13. package/es/copy/index.js +3 -3
  14. package/es/country-platform-shop-condition/country-platform-shop-condition.vue.js +213 -114
  15. package/es/country-platform-shop-condition/country-platform-shop-condition.vue2.js +2 -125
  16. package/es/drop-down-condition/drop-down-condition.vue.js +215 -115
  17. package/es/drop-down-condition/drop-down-condition.vue2.js +2 -127
  18. package/es/echart-gauge/echart-gauge.vue.js +140 -12
  19. package/es/echart-gauge/echart-gauge.vue2.js +2 -147
  20. package/es/echart-gauge/index.js +3 -3
  21. package/es/help-tag/help-tag.vue.js +66 -0
  22. package/es/help-tag/help-tag.vue2.js +4 -0
  23. package/es/help-tag/index.js +7 -0
  24. package/es/help-tag/props.js +9 -0
  25. package/es/help-tag/style/index.css +0 -0
  26. package/es/image-upload/image-upload.vue.js +170 -109
  27. package/es/image-upload/image-upload.vue2.js +2 -91
  28. package/es/image-upload/index.js +3 -3
  29. package/es/index.js +22 -18
  30. package/es/input/index.js +3 -3
  31. package/es/input/input.vue.js +38 -17
  32. package/es/input/input.vue2.js +2 -33
  33. package/es/installs.js +10 -8
  34. package/es/left-condition/index.js +3 -3
  35. package/es/left-condition/left-condition-sub.vue.js +91 -32
  36. package/es/left-condition/left-condition-sub.vue2.js +2 -76
  37. package/es/left-condition/left-condition.vue.js +218 -70
  38. package/es/left-condition/left-condition.vue2.js +2 -160
  39. package/es/left-condition-enum/index.js +3 -3
  40. package/es/left-condition-enum/left-condition-enum.vue.js +49 -20
  41. package/es/left-condition-enum/left-condition-enum.vue2.js +2 -40
  42. package/es/operation-log/operation-log-content.vue.js +92 -71
  43. package/es/operation-log/operation-log-content.vue2.js +2 -39
  44. package/es/operation-log/operation-log-dialog.vue.js +67 -45
  45. package/es/operation-log/operation-log-dialog.vue2.js +2 -38
  46. package/es/operation-log/operation-log-form.vue.js +183 -108
  47. package/es/operation-log/operation-log-form.vue2.js +2 -104
  48. package/es/operation-log/operation-log.vue.js +228 -119
  49. package/es/operation-log/operation-log.vue2.js +2 -135
  50. package/es/packages/components/api/log-server.js +6 -6
  51. package/es/packages/components/api/upload-server.js +1 -1
  52. package/es/packages/components/hooks/useEcharts.js +19 -19
  53. package/es/packages/components/hooks/useImg.js +8 -8
  54. package/es/scale-screen/index.js +4 -4
  55. package/es/scale-screen/scale-screen.vue.js +126 -19
  56. package/es/scale-screen/scale-screen.vue2.js +2 -125
  57. package/es/yahee-components.css +1 -1
  58. package/lib/help-tag/style/index.css +0 -0
  59. package/package.json +1 -1
  60. package/types/src/components.d.ts +1 -0
  61. package/types/src/help-tag/help-tag.d.ts +2 -0
  62. package/types/src/help-tag/help-tag.vue.d.ts +589 -0
  63. package/types/src/help-tag/index.d.ts +593 -0
  64. package/types/src/help-tag/props.d.ts +27 -0
  65. package/types/src/complex-search/complex-search.vue.d.ts +0 -3
  66. package/types/src/complex-search/index.d.ts +0 -7
  67. package/types/src/installs.d.ts +0 -2649
@@ -1,129 +1,238 @@
1
- import m from "./operation-log.vue2.js";
2
- import { createElementBlock as l, openBlock as a, createVNode as n, withDirectives as g, createElementVNode as t, normalizeStyle as h, withCtx as s, createCommentVNode as f, Fragment as r, renderList as _, normalizeClass as x, toDisplayString as d, vModelText as y, createTextVNode as v } from "vue";
3
- import L from "../_virtual/_plugin-vue_export-helper.js";
4
- const C = { class: "yahee-operation-log" }, w = { class: "d-flex jc-end" }, V = { class: "content text-color-secondary" }, k = { class: "date fontSize-12 pull-right text-color-a4" }, D = { class: "name" }, b = { class: "name" }, I = { class: "d-flex" }, M = { class: "content text-color-secondary" }, S = { class: "date fontSize-12 text-color-a4" }, Y = {
1
+ import { defineComponent as j, toRefs as G, ref as d, reactive as R, onMounted as A, createElementBlock as u, openBlock as f, createVNode as a, withDirectives as J, createElementVNode as i, unref as n, normalizeStyle as Q, withCtx as x, createCommentVNode as B, Fragment as b, renderList as q, normalizeClass as W, toDisplayString as m, vModelText as X, createTextVNode as Z } from "vue";
2
+ import { CaretRight as ee, CaretLeft as te } from "@element-plus/icons-vue";
3
+ import { ElScrollbar as se, ElIcon as S, ElButton as oe, ElMessage as p } from "element-plus";
4
+ import "element-plus/theme-chalk/src/base.scss";
5
+ import "element-plus/theme-chalk/src/badge.scss";
6
+ import "element-plus/theme-chalk/src/message.scss";
7
+ import "element-plus/theme-chalk/src/scrollbar.scss";
8
+ import "element-plus/theme-chalk/src/button.scss";
9
+ import { useUpload as ne } from "../packages/components/hooks/useUpload.js";
10
+ import { useFile as ae } from "../packages/components/hooks/useImg.js";
11
+ import ie from "./operation-log-form.vue.js";
12
+ import E from "./operation-log-content.vue.js";
13
+ import le from "./operation-log-dialog.vue.js";
14
+ import O from "../_virtual/dayjs.min.js";
15
+ import { M2 as r } from "../utils/translate.js";
16
+ import re from "../annex-upload/annex-upload.vue.js";
17
+ import de from "../node_modules/.pnpm/v3-infinite-loading@1.3.2/node_modules/v3-infinite-loading/lib/v3-infinite-loading.es.js";
18
+ /* empty css */
19
+ import { insertGlobalnotes as U, findGlobalNotes as ce } from "../packages/components/api/log/index.js";
20
+ const ue = { class: "yahee-operation-log" }, fe = { class: "d-flex jc-end" }, me = { class: "content text-color-secondary" }, pe = { class: "date fontSize-12 pull-right text-color-a4" }, ge = { class: "name" }, he = { class: "name" }, ve = { class: "d-flex" }, ye = { class: "content text-color-secondary" }, _e = { class: "date fontSize-12 text-color-a4" }, xe = {
5
21
  key: 0,
6
22
  class: "loading text-color-a4"
7
- }, E = {
23
+ }, be = {
8
24
  key: 1,
9
25
  class: "no-more text-color-a4"
10
- }, z = ["placeholder"], N = { class: "d-flex text-right marginT10" };
11
- function O(F, i, c, o, T, U) {
12
- return a(), l("div", C, [
13
- n(o.OperationLogForm, {
14
- ref: "logForm",
15
- class: "text-right log-form",
16
- "business-key": c.businessKey,
17
- "business-name": c.businessName,
18
- onFilterChange: o.filterChange
19
- }, null, 8, ["business-key", "business-name"]),
20
- n(o.ElScrollbar, {
21
- ref: "infiniteList",
22
- class: "infinite-list-wrapper",
23
- style: h({ height: o.boxHeight + "px" })
24
- }, {
25
- default: s(() => [
26
- (a(!0), l(r, null, _(o.dataList.List, (e) => (a(), l("div", {
27
- key: e.Id,
28
- class: x(o.dataList.LoginId == e.CreatedBy ? "list-item-right" : "list-item-left")
29
- }, [
30
- o.dataList.LoginId == e.CreatedBy ? (a(), l(r, { key: 0 }, [
31
- t("div", null, [
32
- t("div", w, [
33
- t("div", V, [
34
- n(o.OperationLogContent, {
35
- id: o.dataList.LoginId,
36
- info: e,
37
- "if-show-document": o.ifShowDocument
38
- }, null, 8, ["id", "info", "if-show-document"])
39
- ]),
40
- n(o.ElIcon, {
41
- color: "#f1f1f1",
42
- size: "20"
43
- }, {
44
- default: s(() => [
45
- n(o.CaretRight)
46
- ]),
47
- _: 1
48
- })
49
- ]),
50
- t("div", k, d(o.dayjs(e.CreatedOnStr).format("YYYY-MM-DD HH: mm: ss")), 1)
51
- ]),
52
- t("div", D, d(e.CreatedName), 1)
53
- ], 64)) : (a(), l(r, { key: 1 }, [
54
- t("div", b, d(e.CreatedName), 1),
55
- t("div", null, [
56
- t("div", I, [
57
- n(o.ElIcon, {
58
- color: "#ccc",
59
- size: "20"
60
- }, {
61
- default: s(() => [
62
- n(o.CaretLeft)
26
+ }, Le = ["placeholder"], Ie = { class: "d-flex text-right marginT10" }, $e = /* @__PURE__ */ j({
27
+ name: "YaheeOperationLog",
28
+ __name: "operation-log",
29
+ props: {
30
+ businessKey: { default: "" },
31
+ businessName: { default: "" },
32
+ topHeight: { default: 90 },
33
+ ifShowDocument: { type: Boolean, default: !0 }
34
+ },
35
+ setup(H) {
36
+ const c = H, { ifShowDocument: L } = G(c), g = d(!1), I = d(!1), _ = d(!1), N = d({}), l = R({
37
+ List: [],
38
+ LoginId: 0
39
+ }), h = d(""), v = d([]), o = {
40
+ PageIndex: -1,
41
+ StartOn: "",
42
+ EndOn: "",
43
+ Notes: "",
44
+ Mark: null,
45
+ UserIds: []
46
+ }, y = () => {
47
+ g.value = !0;
48
+ const e = new FormData();
49
+ e.append(
50
+ "filter",
51
+ JSON.stringify({
52
+ BusinessKey: c.businessKey,
53
+ BusinessName: c.businessName,
54
+ PageIndex: o.PageIndex,
55
+ StartOn: o.StartOn,
56
+ EndOn: o.EndOn,
57
+ UserIds: o.UserIds,
58
+ Notes: o.Notes,
59
+ Mark: o.Mark
60
+ })
61
+ ), ce(e).then((t) => {
62
+ var s;
63
+ l.LoginId = t.LoginId, o.PageIndex === 0 ? l.List = t.List || [] : l.List = [...l.List || [], ...t.List || []], ((s = t == null ? void 0 : t.List) == null ? void 0 : s.length) === 0 && (I.value = !0);
64
+ }).finally(() => {
65
+ g.value = !1;
66
+ });
67
+ }, w = () => {
68
+ g.value || (g.value = !0, o.PageIndex += 1, y());
69
+ }, P = (e) => {
70
+ l.List = [], o.PageIndex = 0, o.StartOn = e.timeValue ? e.timeValue[0] : "", o.EndOn = e.timeValue ? e.timeValue[1] : "", o.UserIds = e.CreatedBy ? [e.CreatedBy] : [], o.Notes = e.search, o.Mark = e.Mark, y();
71
+ }, F = () => {
72
+ v.value.length > 0 && C(v.value[0]).then(async () => {
73
+ p.success(r("上传文件成功!")), o.PageIndex = 0, v.value = [], await y(), M();
74
+ });
75
+ }, T = (e) => {
76
+ C(e).then(() => {
77
+ p.success(r("上传文件成功!")), _.value = !1, o.PageIndex = 0, y();
78
+ });
79
+ }, C = (e) => {
80
+ const t = new FormData();
81
+ return t.append("BusinessKey", c.businessKey), t.append("BusinessName", c.businessName), t.append("notes", e.fileUrl), t.append("ViewTitle", e.fileName), U(t);
82
+ }, Y = () => {
83
+ if (!h.value) {
84
+ p.info(r("备注不能为空!"));
85
+ return;
86
+ }
87
+ const e = new FormData();
88
+ e.append("BusinessKey", c.businessKey), e.append("BusinessName", c.businessName), e.append("notes", h.value), e.append("ViewTitle", "备注"), U(e).then(async () => {
89
+ p.success(r("添加备注成功!")), o.PageIndex = 0, h.value = "", await y(), M();
90
+ });
91
+ }, z = (e) => {
92
+ if (e.clipboardData || e.originalEvent) {
93
+ if (e.clipboardData.items.length === 0) {
94
+ p.error(r("复制文件到剪切板失败,请点击按钮上传!"));
95
+ return;
96
+ }
97
+ if (e.clipboardData.files.length > 0) {
98
+ _.value = !0;
99
+ for (let t = 0; t < e.clipboardData.files.length; t++) {
100
+ e.clipboardData.files[t].size / 1024 / 1024 < 100 || p.error(r("上传文件大小不能超过 100MB!"));
101
+ const { name: K } = e.clipboardData.files[t];
102
+ ne("115", e.clipboardData.files[t]).then(($) => {
103
+ N.value = {
104
+ fileName: K || "",
105
+ fileUrl: ae({ fileId: $[0] })
106
+ };
107
+ }).catch(() => {
108
+ });
109
+ }
110
+ }
111
+ }
112
+ }, D = d(null), M = () => {
113
+ D.value.scrollTo({ top: 0, behavior: "smooth" });
114
+ }, V = d(0), k = d(null);
115
+ return A(() => {
116
+ var t;
117
+ const e = (t = document.getElementsByClassName("log-form")[0]) == null ? void 0 : t.clientHeight;
118
+ V.value = window.innerHeight - e - k.value.offsetHeight - c.topHeight, w();
119
+ }), (e, t) => (f(), u("div", ue, [
120
+ a(ie, {
121
+ ref: "logForm",
122
+ class: "text-right log-form",
123
+ "business-key": e.businessKey,
124
+ "business-name": e.businessName,
125
+ onFilterChange: P
126
+ }, null, 8, ["business-key", "business-name"]),
127
+ a(n(se), {
128
+ ref_key: "infiniteList",
129
+ ref: D,
130
+ class: "infinite-list-wrapper",
131
+ style: Q({ height: V.value + "px" })
132
+ }, {
133
+ default: x(() => [
134
+ (f(!0), u(b, null, q(l.List, (s) => (f(), u("div", {
135
+ key: s.Id,
136
+ class: W(l.LoginId == s.CreatedBy ? "list-item-right" : "list-item-left")
137
+ }, [
138
+ l.LoginId == s.CreatedBy ? (f(), u(b, { key: 0 }, [
139
+ i("div", null, [
140
+ i("div", fe, [
141
+ i("div", me, [
142
+ a(E, {
143
+ id: l.LoginId,
144
+ info: s,
145
+ "if-show-document": n(L)
146
+ }, null, 8, ["id", "info", "if-show-document"])
63
147
  ]),
64
- _: 1
65
- }),
66
- t("div", M, [
67
- n(o.OperationLogContent, {
68
- id: o.dataList.LoginId,
69
- info: e,
70
- "if-show-document": o.ifShowDocument
71
- }, null, 8, ["id", "info", "if-show-document"])
72
- ])
148
+ a(n(S), {
149
+ color: "#f1f1f1",
150
+ size: "20"
151
+ }, {
152
+ default: x(() => [
153
+ a(n(ee))
154
+ ]),
155
+ _: 1
156
+ })
157
+ ]),
158
+ i("div", pe, m(n(O)(s.CreatedOnStr).format("YYYY-MM-DD HH: mm: ss")), 1)
73
159
  ]),
74
- t("div", S, d(o.dayjs(e.CreatedOnStr).format("YYYY-MM-DD HH:mm:ss")), 1)
75
- ])
76
- ], 64))
77
- ], 2))), 128)),
78
- n(o.InfiniteLoading, {
79
- distance: 10,
80
- onInfinite: o.load
81
- }),
82
- o.loading ? (a(), l("div", Y, d(o.M2("加载中...")), 1)) : f("", !0),
83
- o.noMore ? (a(), l("div", E, d(o.M2("没有更多了!")), 1)) : f("", !0)
84
- ]),
85
- _: 1
86
- }, 8, ["style"]),
87
- g(t("textarea", {
88
- ref: "logText",
89
- "onUpdate:modelValue": i[0] || (i[0] = (e) => o.textareaText = e),
90
- class: "content-div",
91
- placeholder: o.M2("可通过 Ctrl+V 直接上传图片/文件"),
92
- contenteditable: "true",
93
- onPaste: o.handlePaste
94
- }, null, 40, z), [
95
- [y, o.textareaText]
96
- ]),
97
- t("div", N, [
98
- n(o.YaheeAnnexUpload, {
99
- modelValue: o.compAnalysisFile,
100
- "onUpdate:modelValue": i[1] || (i[1] = (e) => o.compAnalysisFile = e),
101
- "show-tips": !1,
102
- "show-list": !1,
103
- accept: ".gif,.jpg,.png,.doc,.docx,.pdf,.xls,.xlsx,.ppt,.txt",
104
- onChange: o.change
105
- }, null, 8, ["modelValue"]),
106
- n(o.ElButton, {
107
- type: "success",
108
- size: "small",
109
- class: "marginL6",
110
- onClick: i[2] || (i[2] = (e) => o.sendEditQuill())
111
- }, {
112
- default: s(() => [
113
- v(d(o.M2("添加备注")), 1)
160
+ i("div", ge, m(s.CreatedName), 1)
161
+ ], 64)) : (f(), u(b, { key: 1 }, [
162
+ i("div", he, m(s.CreatedName), 1),
163
+ i("div", null, [
164
+ i("div", ve, [
165
+ a(n(S), {
166
+ color: "#ccc",
167
+ size: "20"
168
+ }, {
169
+ default: x(() => [
170
+ a(n(te))
171
+ ]),
172
+ _: 1
173
+ }),
174
+ i("div", ye, [
175
+ a(E, {
176
+ id: l.LoginId,
177
+ info: s,
178
+ "if-show-document": n(L)
179
+ }, null, 8, ["id", "info", "if-show-document"])
180
+ ])
181
+ ]),
182
+ i("div", _e, m(n(O)(s.CreatedOnStr).format("YYYY-MM-DD HH:mm:ss")), 1)
183
+ ])
184
+ ], 64))
185
+ ], 2))), 128)),
186
+ a(n(de), {
187
+ distance: 10,
188
+ onInfinite: w
189
+ }),
190
+ g.value ? (f(), u("div", xe, m(n(r)("加载中...")), 1)) : B("", !0),
191
+ I.value ? (f(), u("div", be, m(n(r)("没有更多了!")), 1)) : B("", !0)
114
192
  ]),
115
193
  _: 1
116
- })
117
- ]),
118
- n(o.OperationLogDialog, {
119
- modelValue: o.showDialog,
120
- "onUpdate:modelValue": i[3] || (i[3] = (e) => o.showDialog = e),
121
- "doc-info": o.docInfo,
122
- onConfirmUpload: o.confirmUpload
123
- }, null, 8, ["modelValue", "doc-info"])
124
- ]);
125
- }
126
- const j = /* @__PURE__ */ L(m, [["render", O], ["__file", "E:/工作/项目代码/common_componentsweb/packages/components/src/operation-log/operation-log.vue"]]);
194
+ }, 8, ["style"]),
195
+ J(i("textarea", {
196
+ ref_key: "logText",
197
+ ref: k,
198
+ "onUpdate:modelValue": t[0] || (t[0] = (s) => h.value = s),
199
+ class: "content-div",
200
+ placeholder: n(r)("可通过 Ctrl+V 直接上传图片/文件"),
201
+ contenteditable: "true",
202
+ onPaste: z
203
+ }, null, 40, Le), [
204
+ [X, h.value]
205
+ ]),
206
+ i("div", Ie, [
207
+ a(re, {
208
+ modelValue: v.value,
209
+ "onUpdate:modelValue": t[1] || (t[1] = (s) => v.value = s),
210
+ "show-tips": !1,
211
+ "show-list": !1,
212
+ accept: ".gif,.jpg,.png,.doc,.docx,.pdf,.xls,.xlsx,.ppt,.txt",
213
+ onChange: F
214
+ }, null, 8, ["modelValue"]),
215
+ a(n(oe), {
216
+ type: "success",
217
+ size: "small",
218
+ class: "marginL6",
219
+ onClick: t[2] || (t[2] = (s) => Y())
220
+ }, {
221
+ default: x(() => [
222
+ Z(m(n(r)("添加备注")), 1)
223
+ ]),
224
+ _: 1
225
+ })
226
+ ]),
227
+ a(le, {
228
+ modelValue: _.value,
229
+ "onUpdate:modelValue": t[3] || (t[3] = (s) => _.value = s),
230
+ "doc-info": N.value,
231
+ onConfirmUpload: T
232
+ }, null, 8, ["modelValue", "doc-info"])
233
+ ]));
234
+ }
235
+ });
127
236
  export {
128
- j as default
237
+ $e as default
129
238
  };
@@ -1,137 +1,4 @@
1
- import { defineComponent as _, toRefs as F, ref as o, reactive as H, onMounted as K } from "vue";
2
- import { CaretLeft as T, CaretRight as V } from "@element-plus/icons-vue";
3
- import { ElMessage as l, ElButton as k, ElIcon as q, ElScrollbar as j } from "element-plus";
4
- import "element-plus/theme-chalk/src/base.scss";
5
- import "element-plus/theme-chalk/src/badge.scss";
6
- import "element-plus/theme-chalk/src/message.scss";
7
- import "element-plus/theme-chalk/src/scrollbar.scss";
8
- import "element-plus/theme-chalk/src/button.scss";
9
- import { useUpload as A } from "../packages/components/hooks/useUpload.js";
10
- import { useFile as R } from "../packages/components/hooks/useImg.js";
11
- import Y from "./operation-log-form.vue.js";
12
- import G from "./operation-log-content.vue.js";
13
- import z from "./operation-log-dialog.vue.js";
14
- import J from "../_virtual/dayjs.min.js";
15
- import { M2 as s } from "../utils/translate.js";
16
- import Q from "../annex-upload/annex-upload.vue.js";
17
- import W from "../node_modules/.pnpm/v3-infinite-loading@1.3.2/node_modules/v3-infinite-loading/lib/v3-infinite-loading.es.js";
18
- /* empty css */
19
- import { findGlobalNotes as X, insertGlobalnotes as N } from "../packages/components/api/log/index.js";
20
- const be = /* @__PURE__ */ _({
21
- name: "YaheeOperationLog",
22
- __name: "operation-log",
23
- props: {
24
- businessKey: { type: String, required: !0, default: "" },
25
- businessName: { type: String, required: !0, default: "" },
26
- topHeight: { type: Number, required: !1, default: 90 },
27
- ifShowDocument: { type: Boolean, required: !1, default: !0 }
28
- },
29
- setup(D, { expose: E }) {
30
- E();
31
- const a = D, { ifShowDocument: M } = F(a), u = o(!1), h = o(!1), c = o(!1), b = o({}), i = H({
32
- List: [],
33
- LoginId: 0
34
- }), p = o(""), d = o([]), n = {
35
- PageIndex: -1,
36
- StartOn: "",
37
- EndOn: "",
38
- Notes: "",
39
- Mark: null,
40
- UserIds: []
41
- }, r = () => {
42
- u.value = !0;
43
- const e = new FormData();
44
- e.append(
45
- "filter",
46
- JSON.stringify({
47
- BusinessKey: a.businessKey,
48
- BusinessName: a.businessName,
49
- PageIndex: n.PageIndex,
50
- StartOn: n.StartOn,
51
- EndOn: n.EndOn,
52
- UserIds: n.UserIds,
53
- Notes: n.Notes,
54
- Mark: n.Mark
55
- })
56
- ), X(e).then((t) => {
57
- var g;
58
- i.LoginId = t.LoginId, n.PageIndex === 0 ? i.List = t.List || [] : i.List = [...i.List || [], ...t.List || []], ((g = t == null ? void 0 : t.List) == null ? void 0 : g.length) === 0 && (h.value = !0);
59
- }).finally(() => {
60
- u.value = !1;
61
- });
62
- }, L = () => {
63
- u.value || (u.value = !0, n.PageIndex += 1, r());
64
- }, O = (e) => {
65
- i.List = [], n.PageIndex = 0, n.StartOn = e.timeValue ? e.timeValue[0] : "", n.EndOn = e.timeValue ? e.timeValue[1] : "", n.UserIds = e.CreatedBy ? [e.CreatedBy] : [], n.Notes = e.search, n.Mark = e.Mark, r();
66
- }, B = () => {
67
- d.value.length > 0 && m(d.value[0]).then(async () => {
68
- l.success(s("上传文件成功!")), n.PageIndex = 0, d.value = [], await r(), f();
69
- });
70
- }, S = (e) => {
71
- m(e).then(() => {
72
- l.success(s("上传文件成功!")), c.value = !1, n.PageIndex = 0, r();
73
- });
74
- }, m = (e) => {
75
- const t = new FormData();
76
- return t.append("BusinessKey", a.businessKey), t.append("BusinessName", a.businessName), t.append("notes", e.fileUrl), t.append("ViewTitle", e.fileName), N(t);
77
- }, w = () => {
78
- if (!p.value) {
79
- l.info(s("备注不能为空!"));
80
- return;
81
- }
82
- const e = new FormData();
83
- e.append("BusinessKey", a.businessKey), e.append("BusinessName", a.businessName), e.append("notes", p.value), e.append("ViewTitle", "备注"), N(e).then(async () => {
84
- l.success(s("添加备注成功!")), n.PageIndex = 0, p.value = "", await r(), f();
85
- });
86
- }, P = (e) => {
87
- if (e.clipboardData || e.originalEvent) {
88
- if (e.clipboardData.items.length === 0) {
89
- l.error(s("复制文件到剪切板失败,请点击按钮上传!"));
90
- return;
91
- }
92
- if (e.clipboardData.files.length > 0) {
93
- c.value = !0;
94
- for (let t = 0; t < e.clipboardData.files.length; t++) {
95
- e.clipboardData.files[t].size / 1024 / 1024 < 100 || l.error(s("上传文件大小不能超过 100MB!"));
96
- const { name: C } = e.clipboardData.files[t];
97
- A("115", e.clipboardData.files[t]).then((U) => {
98
- b.value = {
99
- fileName: C || "",
100
- fileUrl: R({ fileId: U[0] })
101
- };
102
- }).catch(() => {
103
- });
104
- }
105
- }
106
- }
107
- }, y = o(null), f = () => {
108
- y.value.scrollTo({ top: 0, behavior: "smooth" });
109
- }, v = o(0), I = o(null);
110
- K(() => {
111
- var t;
112
- const e = (t = document.getElementsByClassName("log-form")[0]) == null ? void 0 : t.clientHeight;
113
- v.value = window.innerHeight - e - I.value.offsetHeight - a.topHeight, L();
114
- });
115
- const x = { props: a, ifShowDocument: M, loading: u, noMore: h, showDialog: c, docInfo: b, dataList: i, textareaText: p, compAnalysisFile: d, params: n, getLogMessage: r, load: L, filterChange: O, change: B, confirmUpload: S, uploadFile: m, sendEditQuill: w, handlePaste: P, infiniteList: y, scrollTop: f, boxHeight: v, logText: I, get CaretRight() {
116
- return V;
117
- }, get CaretLeft() {
118
- return T;
119
- }, get ElScrollbar() {
120
- return j;
121
- }, get ElIcon() {
122
- return q;
123
- }, get ElButton() {
124
- return k;
125
- }, OperationLogForm: Y, OperationLogContent: G, OperationLogDialog: z, get dayjs() {
126
- return J;
127
- }, get M2() {
128
- return s;
129
- }, YaheeAnnexUpload: Q, get InfiniteLoading() {
130
- return W;
131
- } };
132
- return Object.defineProperty(x, "__isScriptSetup", { enumerable: !1, value: !0 }), x;
133
- }
134
- });
1
+ import f from "./operation-log.vue.js";
135
2
  export {
136
- be as default
3
+ f as default
137
4
  };
@@ -1,5 +1,5 @@
1
1
  import "../../../node_modules/.pnpm/axios@1.10.0/node_modules/axios/index.js";
2
- import { storage as o } from "../../../utils/storage.js";
2
+ import { storage as a } from "../../../utils/storage.js";
3
3
  import { ElMessageBox as r } from "element-plus";
4
4
  import "element-plus/theme-chalk/src/base.scss";
5
5
  import "element-plus/theme-chalk/src/message-box.scss";
@@ -7,19 +7,19 @@ 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
9
  import n from "../../../node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/axios.js";
10
- const c = "http://qas-newerp.yahee.com.cn:8088/PMS/Latest/", s = n.create({
10
+ const c = "https://newerp.yaheecloud.com/PMS/Latest/", s = n.create({
11
11
  baseURL: c,
12
12
  timeout: 3e4,
13
13
  withCredentials: !0
14
14
  });
15
15
  s.interceptors.request.use(
16
16
  (t) => {
17
- const e = o.get("token");
17
+ const e = a.get("token");
18
18
  return e && (t.headers.token = e), t;
19
19
  },
20
20
  (t) => Promise.reject(t)
21
21
  );
22
- const i = o.get("isTimeOutAlert");
22
+ const i = a.get("isTimeOutAlert");
23
23
  s.interceptors.response.use(
24
24
  (t) => t.status === 200 && t.data ? Promise.resolve(t.data) : t,
25
25
  (t) => {
@@ -38,10 +38,10 @@ s.interceptors.response.use(
38
38
  console.error(t.response.status, t.message);
39
39
  break;
40
40
  }
41
- return t.code === "ECONNABORTED" && i && i === "0" && (r.alert("请求超时,‌请检查您的网络连接或稍后重试。‌"), o.set("isTimeOutAlert", "1")), Promise.reject(t);
41
+ return t.code === "ECONNABORTED" && i && i === "0" && (r.alert("请求超时,‌请检查您的网络连接或稍后重试。‌"), a.set("isTimeOutAlert", "1")), Promise.reject(t);
42
42
  }
43
43
  );
44
- const h = async (t, e, a) => s.get(t, { params: e, ...a }), O = async (t, e, a) => s.post(t, e, a), T = (t) => {
44
+ const h = async (t, e, o) => s.get(t, { params: e, ...o }), O = async (t, e, o) => s.post(t, e, o), T = (t) => {
45
45
  s.defaults.baseURL = t;
46
46
  };
47
47
  export {
@@ -7,7 +7,7 @@ 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
9
  import m from "../../../node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/axios.js";
10
- const u = "http://api-tools-test.yahee.com.cn:81/", s = m.create({
10
+ const u = "https://erptools.yaheecloud.com/", s = m.create({
11
11
  baseURL: u,
12
12
  timeout: 3e4,
13
13
  withCredentials: !0
@@ -1,10 +1,10 @@
1
- import { useResizeObserver as w } from "../../../node_modules/.pnpm/@vueuse_core@11.3.0_vue@3.5.17_typescript@5.8.3_/node_modules/@vueuse/core/index.js";
1
+ import { useResizeObserver as z } from "../../../node_modules/.pnpm/@vueuse_core@11.3.0_vue@3.5.17_typescript@5.8.3_/node_modules/@vueuse/core/index.js";
2
2
  import "../../../node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/index.js";
3
- import { ref as C, onMounted as L, watch as R, onUnmounted as x } from "vue";
4
- import { init as y } from "../../../node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/core/echarts.js";
5
- const J = function(s, S, u) {
3
+ import { ref as w, onMounted as C, watch as L, onUnmounted as R } from "vue";
4
+ import { init as x } from "../../../node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/core/echarts.js";
5
+ const J = function(s, y, S) {
6
6
  const {
7
- resize: d = !0,
7
+ resize: u = !0,
8
8
  showLoading: r = !0,
9
9
  loadingOption: c = {
10
10
  text: "",
@@ -25,13 +25,13 @@ const J = function(s, S, u) {
25
25
  fontSize: 14,
26
26
  zlevel: 0
27
27
  },
28
- defaultOption: p,
29
- theme: h = "shine"
30
- } = u || {}, t = C(p);
28
+ defaultOption: d,
29
+ theme: p = "shine"
30
+ } = {}, t = w(d);
31
31
  let e;
32
- L(() => {
33
- e = y(s.value, h), i(), t.value && (e.setOption(t.value), n());
34
- }), R(t, () => {
32
+ C(() => {
33
+ e = x(s.value, p), i(), t.value && (e.setOption(t.value), n());
34
+ }), L(t, () => {
35
35
  e && (t.value && Object.keys(t.value).some((o) => /^[a-z]/.test(o)) ? t.value.series[0] && t.value.series[0].data && JSON.stringify(t.value.series[0].data) == "[]" ? i(f) : (e.setOption(t.value, !0), n()) : i());
36
36
  });
37
37
  function i(o = c) {
@@ -40,22 +40,22 @@ const J = function(s, S, u) {
40
40
  function n() {
41
41
  r && e.hideLoading();
42
42
  }
43
- function v(o) {
43
+ function h(o) {
44
44
  t.value = o;
45
45
  }
46
46
  let a = () => {
47
47
  };
48
- if (d) {
48
+ if (u) {
49
49
  let o = !1;
50
- const { stop: m } = w(s, (O) => {
51
- const l = O[0], { width: g, height: z } = l.contentRect;
52
- g && z && e && !o && (o = !0, e.resize(l.contentRect), o = !1);
50
+ const { stop: v } = z(s, (m) => {
51
+ const l = m[0], { width: O, height: g } = l.contentRect;
52
+ O && g && e && !o && (o = !0, e.resize(l.contentRect), o = !1);
53
53
  });
54
- a = m;
54
+ a = v;
55
55
  }
56
- return x(() => {
56
+ return R(() => {
57
57
  a(), e == null || e.dispose();
58
- }), { echartsOption: t, setOption: v, showCharLoading: i, hideCharLoading: n, noDataOption: f };
58
+ }), { echartsOption: t, setOption: h, showCharLoading: i, hideCharLoading: n, noDataOption: f };
59
59
  };
60
60
  export {
61
61
  J as useEcharts
@@ -1,15 +1,15 @@
1
- function s(e, c = !1) {
1
+ function u(e, r = !1) {
2
2
  if (!e) return "";
3
3
  const t = /_[BOSGM]/;
4
4
  if (t.test(e)) {
5
- let r = "";
6
- return c ? r = e.replace(t, "_B") : r = e.replace(t, "_S"), `http://qas-service.yahee.com.cn:8088/FMSService/Latest/${r}`;
7
- } else return c ? `http://qas-service.yahee.com.cn:8088/FMSService/Latest/${e}` : `http://qas-service.yahee.com.cn:8088/FMSService/Latest/Small/${e}`;
5
+ let s = "";
6
+ return r ? s = e.replace(t, "_B") : s = e.replace(t, "_S"), `https://imgs.yaheecloud.com/${s}`;
7
+ } else return r ? `https://imgs.yaheecloud.com/${e}` : `https://imgs.yaheecloud.com/Small/${e}`;
8
8
  }
9
- function a(e) {
10
- return e && e.fileId ? `http://qas-service.yahee.com.cn:8088/FMSService/Latest/${e.fileId}` : "";
9
+ function c(e) {
10
+ return e && e.fileId ? `https://imgs.yaheecloud.com/${e.fileId}` : "";
11
11
  }
12
12
  export {
13
- s as default,
14
- a as useFile
13
+ u as default,
14
+ c as useFile
15
15
  };