yahee-components 0.0.55 → 0.0.56

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 (42) hide show
  1. package/es/annex-upload/annex-upload.vue.js +154 -69
  2. package/es/annex-upload/annex-upload.vue2.js +2 -119
  3. package/es/annex-upload/index.js +3 -3
  4. package/es/api/tool.js +1 -1
  5. package/es/complex-search/complex-search.vue.js +320 -240
  6. package/es/complex-search/complex-search.vue2.js +2 -154
  7. package/es/complex-search/index.js +5 -5
  8. package/es/copy/copy.vue.js +55 -39
  9. package/es/copy/copy.vue2.js +2 -34
  10. package/es/copy/index.js +3 -3
  11. package/es/country-platform-shop-condition/country-platform-shop-condition.vue.js +204 -158
  12. package/es/country-platform-shop-condition/country-platform-shop-condition.vue2.js +2 -125
  13. package/es/drop-down-condition/drop-down-condition.vue.js +211 -193
  14. package/es/drop-down-condition/drop-down-condition.vue2.js +2 -127
  15. package/es/image-upload/image-upload.vue.js +113 -76
  16. package/es/image-upload/image-upload.vue2.js +2 -91
  17. package/es/image-upload/index.js +3 -3
  18. package/es/input/index.js +3 -3
  19. package/es/input/input.vue.js +38 -17
  20. package/es/input/input.vue2.js +2 -33
  21. package/es/left-condition/index.js +5 -5
  22. package/es/left-condition/left-condition-sub.vue.js +86 -55
  23. package/es/left-condition/left-condition-sub.vue2.js +2 -76
  24. package/es/left-condition/left-condition.vue.js +211 -92
  25. package/es/left-condition/left-condition.vue2.js +2 -153
  26. package/es/left-condition-enum/index.js +3 -3
  27. package/es/left-condition-enum/left-condition-enum.vue.js +77 -19
  28. package/es/left-condition-enum/left-condition-enum.vue2.js +2 -69
  29. package/es/operation-log/operation-log-content.vue.js +92 -78
  30. package/es/operation-log/operation-log-content.vue2.js +2 -39
  31. package/es/operation-log/operation-log-dialog.vue.js +68 -57
  32. package/es/operation-log/operation-log-dialog.vue2.js +2 -38
  33. package/es/operation-log/operation-log-form.vue.js +183 -132
  34. package/es/operation-log/operation-log-form.vue2.js +2 -104
  35. package/es/operation-log/operation-log.vue.js +227 -186
  36. package/es/operation-log/operation-log.vue2.js +2 -135
  37. package/es/packages/components/api/log-server.js +5 -5
  38. package/es/packages/components/api/upload-server.js +1 -1
  39. package/es/packages/components/hooks/useImg.js +8 -8
  40. package/es/utils/translate.js +19 -19
  41. package/package.json +1 -1
  42. package/es/_virtual/_plugin-vue_export-helper.js +0 -9
@@ -1,197 +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 u, normalizeClass as _, toDisplayString as d, vModelText as x, createTextVNode as C } from "vue";
3
- import v from "../_virtual/_plugin-vue_export-helper.js";
4
- const y = { class: "yahee-operation-log" }, E = { class: "d-flex jc-end" }, L = { class: "content text-color-secondary" }, F = { class: "date fontSize-12 pull-right text-color-a4" }, D = { class: "name" }, w = { class: "name" }, V = { class: "d-flex" }, k = { class: "content text-color-secondary" }, b = { class: "date fontSize-12 text-color-a4" }, A = {
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
- }, I = {
23
+ }, be = {
8
24
  key: 1,
9
25
  class: "no-more text-color-a4"
10
- }, M = ["placeholder"], S = { class: "d-flex text-right marginT10" };
11
- function Y(z, i, c, o, N, O) {
12
- return a(), l("div", y, [
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(
27
- r,
28
- null,
29
- u(o.dataList.List, (e) => (a(), l(
30
- "div",
31
- {
32
- key: e.Id,
33
- class: _(o.dataList.LoginId == e.CreatedBy ? "list-item-right" : "list-item-left")
34
- },
35
- [
36
- o.dataList.LoginId == e.CreatedBy ? (a(), l(
37
- r,
38
- { key: 0 },
39
- [
40
- t("div", null, [
41
- t("div", E, [
42
- t("div", L, [
43
- n(o.OperationLogContent, {
44
- id: o.dataList.LoginId,
45
- info: e,
46
- "if-show-document": o.ifShowDocument
47
- }, null, 8, ["id", "info", "if-show-document"])
48
- ]),
49
- n(o.ElIcon, {
50
- color: "#f1f1f1",
51
- size: "20"
52
- }, {
53
- default: s(() => [
54
- n(o.CaretRight)
55
- ]),
56
- _: 1
57
- /* STABLE */
58
- })
59
- ]),
60
- t(
61
- "div",
62
- F,
63
- d(o.dayjs(e.CreatedOnStr).format("YYYY-MM-DD HH: mm: ss")),
64
- 1
65
- /* TEXT */
66
- )
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"])
67
147
  ]),
68
- t(
69
- "div",
70
- D,
71
- d(e.CreatedName),
72
- 1
73
- /* TEXT */
74
- )
75
- ],
76
- 64
77
- /* STABLE_FRAGMENT */
78
- )) : (a(), l(
79
- r,
80
- { key: 1 },
81
- [
82
- t(
83
- "div",
84
- w,
85
- d(e.CreatedName),
86
- 1
87
- /* TEXT */
88
- ),
89
- t("div", null, [
90
- t("div", V, [
91
- n(o.ElIcon, {
92
- color: "#ccc",
93
- size: "20"
94
- }, {
95
- default: s(() => [
96
- n(o.CaretLeft)
97
- ]),
98
- _: 1
99
- /* STABLE */
100
- }),
101
- t("div", k, [
102
- n(o.OperationLogContent, {
103
- id: o.dataList.LoginId,
104
- info: e,
105
- "if-show-document": o.ifShowDocument
106
- }, null, 8, ["id", "info", "if-show-document"])
107
- ])
148
+ a(n(S), {
149
+ color: "#f1f1f1",
150
+ size: "20"
151
+ }, {
152
+ default: x(() => [
153
+ a(n(ee))
108
154
  ]),
109
- t(
110
- "div",
111
- b,
112
- d(o.dayjs(e.CreatedOnStr).format("YYYY-MM-DD HH:mm:ss")),
113
- 1
114
- /* TEXT */
115
- )
155
+ _: 1
156
+ })
157
+ ]),
158
+ i("div", pe, m(n(O)(s.CreatedOnStr).format("YYYY-MM-DD HH: mm: ss")), 1)
159
+ ]),
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"])
116
180
  ])
117
- ],
118
- 64
119
- /* STABLE_FRAGMENT */
120
- ))
121
- ],
122
- 2
123
- /* CLASS */
124
- ))),
125
- 128
126
- /* KEYED_FRAGMENT */
127
- )),
128
- n(o.InfiniteLoading, {
129
- distance: 10,
130
- onInfinite: o.load
131
- }),
132
- o.loading ? (a(), l(
133
- "div",
134
- A,
135
- d(o.M2("加载中...")),
136
- 1
137
- /* TEXT */
138
- )) : f("v-if", !0),
139
- o.noMore ? (a(), l(
140
- "div",
141
- I,
142
- d(o.M2("没有更多了!")),
143
- 1
144
- /* TEXT */
145
- )) : f("v-if", !0)
146
- ]),
147
- _: 1
148
- /* STABLE */
149
- }, 8, ["style"]),
150
- g(t("textarea", {
151
- ref: "logText",
152
- "onUpdate:modelValue": i[0] || (i[0] = (e) => o.textareaText = e),
153
- class: "content-div",
154
- placeholder: o.M2("可通过 Ctrl+V 直接上传图片/文件"),
155
- contenteditable: "true",
156
- onPaste: o.handlePaste
157
- }, null, 40, M), [
158
- [x, o.textareaText]
159
- ]),
160
- t("div", S, [
161
- n(o.YaheeAnnexUpload, {
162
- modelValue: o.compAnalysisFile,
163
- "onUpdate:modelValue": i[1] || (i[1] = (e) => o.compAnalysisFile = e),
164
- "show-tips": !1,
165
- "show-list": !1,
166
- accept: ".gif,.jpg,.png,.doc,.docx,.pdf,.xls,.xlsx,.ppt,.txt",
167
- onChange: o.change
168
- }, null, 8, ["modelValue"]),
169
- n(o.ElButton, {
170
- type: "success",
171
- size: "small",
172
- class: "marginL6",
173
- onClick: i[2] || (i[2] = (e) => o.sendEditQuill())
174
- }, {
175
- default: s(() => [
176
- C(
177
- d(o.M2("添加备注")),
178
- 1
179
- /* TEXT */
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)
181
192
  ]),
182
193
  _: 1
183
- /* STABLE */
184
- })
185
- ]),
186
- n(o.OperationLogDialog, {
187
- modelValue: o.showDialog,
188
- "onUpdate:modelValue": i[3] || (i[3] = (e) => o.showDialog = e),
189
- "doc-info": o.docInfo,
190
- onConfirmUpload: o.confirmUpload
191
- }, null, 8, ["modelValue", "doc-info"])
192
- ]);
193
- }
194
- const H = /* @__PURE__ */ v(m, [["render", Y], ["__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
+ });
195
236
  export {
196
- H as default
237
+ $e as default
197
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
  };
@@ -7,8 +7,8 @@ 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.8.4/node_modules/axios/lib/axios.js";
10
- const n = "http://qas-newerp.yahee.com.cn:8088/PMS/Latest/", r = m.create({
11
- baseURL: n,
10
+ const c = "https://newerp.yaheecloud.com/PMS/Latest/", r = m.create({
11
+ baseURL: c,
12
12
  timeout: 3e4,
13
13
  withCredentials: !0
14
14
  });
@@ -19,7 +19,7 @@ r.interceptors.request.use(
19
19
  },
20
20
  (e) => Promise.reject(e)
21
21
  );
22
- const a = localStorage.getItem("isTimeOutAlert");
22
+ const o = localStorage.getItem("isTimeOutAlert");
23
23
  r.interceptors.response.use(
24
24
  (e) => e.status === 200 && e.data ? Promise.resolve(e.data) : e,
25
25
  (e) => {
@@ -38,10 +38,10 @@ r.interceptors.response.use(
38
38
  console.error(e.response.status, e.message);
39
39
  break;
40
40
  }
41
- return e.code === "ECONNABORTED" && a && a === "0" && (s.alert("请求超时,‌请检查您的网络连接或稍后重试。‌"), localStorage.setItem("isTimeOutAlert", "1")), Promise.reject(e);
41
+ return e.code === "ECONNABORTED" && o && o === "0" && (s.alert("请求超时,‌请检查您的网络连接或稍后重试。‌"), localStorage.setItem("isTimeOutAlert", "1")), Promise.reject(e);
42
42
  }
43
43
  );
44
- const h = async (e, t, o) => r.post(e, t, o), O = (e) => {
44
+ const h = async (e, t, a) => r.post(e, t, a), O = (e) => {
45
45
  r.defaults.baseURL = e;
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.8.4/node_modules/axios/lib/axios.js";
10
- const l = "http://api-tools-test.yahee.com.cn:81/", r = m.create({
10
+ const l = "https://erptools.yaheecloud.com/", r = m.create({
11
11
  baseURL: l,
12
12
  timeout: 3e4,
13
13
  withCredentials: !0
@@ -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
  };