yahee-components 0.0.40 → 0.0.41

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 +294 -240
  6. package/es/complex-search/complex-search.vue2.js +2 -130
  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 +209 -91
  25. package/es/left-condition/left-condition.vue2.js +2 -152
  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 +88 -78
  30. package/es/operation-log/operation-log-content.vue2.js +2 -35
  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 +222 -183
  36. package/es/operation-log/operation-log.vue2.js +2 -133
  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,194 +1,233 @@
1
- import g from "./operation-log.vue2.js";
2
- import { createElementBlock as a, openBlock as i, createVNode as t, withDirectives as m, createElementVNode as n, normalizeStyle as _, withCtx as r, createCommentVNode as c, Fragment as s, renderList as x, normalizeClass as h, toDisplayString as d, vModelText as u, 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" }, V = { class: "name" }, k = { class: "d-flex" }, A = { class: "content text-color-secondary" }, I = { class: "date fontSize-12 text-color-a4" }, M = {
1
+ import { defineComponent as $, ref as d, reactive as j, onMounted as G, createElementBlock as c, openBlock as u, createVNode as n, withDirectives as A, createElementVNode as l, unref as a, normalizeStyle as J, withCtx as y, createCommentVNode as w, Fragment as L, renderList as Q, normalizeClass as R, toDisplayString as f, vModelText as q, createTextVNode as W } from "vue";
2
+ import { CaretRight as X, CaretLeft as Z } from "@element-plus/icons-vue";
3
+ import { ElScrollbar as ee, ElIcon as B, ElButton as te, 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 se } from "../packages/components/hooks/useUpload.js";
10
+ import { useFile as oe } from "../packages/components/hooks/useImg.js";
11
+ import ae from "./operation-log-form.vue.js";
12
+ import E from "./operation-log-content.vue.js";
13
+ import ne 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 le from "../annex-upload/annex-upload.vue.js";
17
+ import ie from "../packages/components/node_modules/v3-infinite-loading/lib/v3-infinite-loading.es.js";
18
+ /* empty css */
19
+ import { insertGlobalnotes as S, 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" }, fe = { class: "date fontSize-12 pull-right text-color-a4" }, me = { class: "name" }, pe = { class: "name" }, ge = { class: "d-flex" }, ve = { class: "content text-color-secondary" }, he = { class: "date fontSize-12 text-color-a4" }, _e = {
5
21
  key: 0,
6
22
  class: "loading text-color-a4"
7
- }, Y = {
23
+ }, xe = {
8
24
  key: 1,
9
25
  class: "no-more text-color-a4"
10
- }, w = ["placeholder"], b = { class: "d-flex text-right marginT10" };
11
- function z(O, l, f, o, S, B) {
12
- return i(), a("div", y, [
13
- t(o.OperationLogForm, {
14
- ref: "logForm",
15
- class: "text-right log-form",
16
- "business-key": f.businessKey,
17
- onFilterChange: o.filterChange
18
- }, null, 8, ["business-key"]),
19
- t(o.ElScrollbar, {
20
- ref: "infiniteList",
21
- class: "infinite-list-wrapper",
22
- style: _({ height: o.boxHeight + "px" })
23
- }, {
24
- default: r(() => [
25
- (i(!0), a(
26
- s,
27
- null,
28
- x(o.dataList.List, (e) => (i(), a(
29
- "div",
30
- {
31
- key: e.Id,
32
- class: h(o.dataList.LoginId == e.CreatedBy ? "list-item-right" : "list-item-left")
33
- },
34
- [
35
- o.dataList.LoginId == e.CreatedBy ? (i(), a(
36
- s,
37
- { key: 0 },
38
- [
39
- n("div", null, [
40
- n("div", E, [
41
- n("div", L, [
42
- t(o.OperationLogContent, {
43
- id: o.dataList.LoginId,
44
- info: e
45
- }, null, 8, ["id", "info"])
46
- ]),
47
- t(o.ElIcon, {
48
- color: "#f1f1f1",
49
- size: "20"
50
- }, {
51
- default: r(() => [
52
- t(o.CaretRight)
53
- ]),
54
- _: 1
55
- /* STABLE */
56
- })
57
- ]),
58
- n(
59
- "div",
60
- F,
61
- d(o.dayjs(e.CreatedOnStr).format("YYYY-MM-DD HH: mm: ss")),
62
- 1
63
- /* TEXT */
64
- )
26
+ }, ye = ["placeholder"], Le = { class: "d-flex text-right marginT10" }, ze = /* @__PURE__ */ $({
27
+ name: "YaheeOperationLog",
28
+ __name: "operation-log",
29
+ props: {
30
+ businessKey: { default: "" },
31
+ businessName: { default: "" }
32
+ },
33
+ setup(U) {
34
+ const m = U, g = d(!1), I = d(!1), x = d(!1), b = d({}), i = j({
35
+ List: [],
36
+ LoginId: 0
37
+ }), v = d(""), h = d([]), o = {
38
+ PageIndex: -1,
39
+ StartOn: "",
40
+ EndOn: "",
41
+ Notes: "",
42
+ Mark: null,
43
+ UserIds: []
44
+ }, _ = () => {
45
+ g.value = !0;
46
+ const e = new FormData();
47
+ e.append(
48
+ "filter",
49
+ JSON.stringify({
50
+ BusinessKey: m.businessKey,
51
+ BusinessName: m.businessName,
52
+ PageIndex: o.PageIndex,
53
+ StartOn: o.StartOn,
54
+ EndOn: o.EndOn,
55
+ UserIds: o.UserIds,
56
+ Notes: o.Notes,
57
+ Mark: o.Mark
58
+ })
59
+ ), re(e).then((t) => {
60
+ var s;
61
+ i.LoginId = t.LoginId, o.PageIndex === 0 ? i.List = t.List || [] : i.List = [...i.List || [], ...t.List || []], ((s = t == null ? void 0 : t.List) == null ? void 0 : s.length) === 0 && (I.value = !0);
62
+ }).finally(() => {
63
+ g.value = !1;
64
+ });
65
+ }, N = () => {
66
+ g.value || (g.value = !0, o.PageIndex += 1, _());
67
+ }, P = (e) => {
68
+ i.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, _();
69
+ }, F = () => {
70
+ h.value.length > 0 && C(h.value[0]).then(async () => {
71
+ p.success(r("上传文件成功!")), o.PageIndex = 0, h.value = [], await _(), V();
72
+ });
73
+ }, T = (e) => {
74
+ C(e).then(() => {
75
+ p.success(r("上传文件成功!")), x.value = !1, o.PageIndex = 0, _();
76
+ });
77
+ }, C = (e) => {
78
+ const t = new FormData();
79
+ return t.append("BusinessKey", m.businessKey), t.append("BusinessName", m.businessName), t.append("notes", e.fileUrl), t.append("ViewTitle", e.fileName), S(t);
80
+ }, Y = () => {
81
+ if (!v.value) {
82
+ p.info(r("备注不能为空!"));
83
+ return;
84
+ }
85
+ const e = new FormData();
86
+ e.append("BusinessKey", m.businessKey), e.append("BusinessName", m.businessName), e.append("notes", v.value), e.append("ViewTitle", "备注"), S(e).then(async () => {
87
+ p.success(r("添加备注成功!")), o.PageIndex = 0, v.value = "", await _(), V();
88
+ });
89
+ }, H = (e) => {
90
+ if (e.clipboardData || e.originalEvent) {
91
+ if (e.clipboardData.items.length === 0) {
92
+ p.error(r("复制文件到剪切板失败,请点击按钮上传!"));
93
+ return;
94
+ }
95
+ if (e.clipboardData.files.length > 0) {
96
+ x.value = !0;
97
+ for (let t = 0; t < e.clipboardData.files.length; t++) {
98
+ e.clipboardData.files[t].size / 1024 / 1024 < 100 || p.error(r("上传文件大小不能超过 100MB!"));
99
+ const { name: z } = e.clipboardData.files[t];
100
+ se("115", e.clipboardData.files[t]).then((K) => {
101
+ b.value = {
102
+ fileName: z || "",
103
+ fileUrl: oe({ fileId: K[0] })
104
+ };
105
+ }).catch(() => {
106
+ });
107
+ }
108
+ }
109
+ }
110
+ }, M = d(null), V = () => {
111
+ M.value.scrollTo({ top: 0, behavior: "smooth" });
112
+ }, k = d(0), D = d(null);
113
+ return G(() => {
114
+ var t;
115
+ const e = (t = document.getElementsByClassName("log-form")[0]) == null ? void 0 : t.clientHeight;
116
+ k.value = window.innerHeight - e - D.value.offsetHeight - 90, N();
117
+ }), (e, t) => (u(), c("div", de, [
118
+ n(ae, {
119
+ ref: "logForm",
120
+ class: "text-right log-form",
121
+ "business-key": e.businessKey,
122
+ onFilterChange: P
123
+ }, null, 8, ["business-key"]),
124
+ n(a(ee), {
125
+ ref_key: "infiniteList",
126
+ ref: M,
127
+ class: "infinite-list-wrapper",
128
+ style: J({ height: k.value + "px" })
129
+ }, {
130
+ default: y(() => [
131
+ (u(!0), c(L, null, Q(i.List, (s) => (u(), c("div", {
132
+ key: s.Id,
133
+ class: R(i.LoginId == s.CreatedBy ? "list-item-right" : "list-item-left")
134
+ }, [
135
+ i.LoginId == s.CreatedBy ? (u(), c(L, { key: 0 }, [
136
+ l("div", null, [
137
+ l("div", ce, [
138
+ l("div", ue, [
139
+ n(E, {
140
+ id: i.LoginId,
141
+ info: s
142
+ }, null, 8, ["id", "info"])
65
143
  ]),
66
- n(
67
- "div",
68
- D,
69
- d(e.CreatedName),
70
- 1
71
- /* TEXT */
72
- )
73
- ],
74
- 64
75
- /* STABLE_FRAGMENT */
76
- )) : (i(), a(
77
- s,
78
- { key: 1 },
79
- [
80
- n(
81
- "div",
82
- V,
83
- d(e.CreatedName),
84
- 1
85
- /* TEXT */
86
- ),
87
- n("div", null, [
88
- n("div", k, [
89
- t(o.ElIcon, {
90
- color: "#ccc",
91
- size: "20"
92
- }, {
93
- default: r(() => [
94
- t(o.CaretLeft)
95
- ]),
96
- _: 1
97
- /* STABLE */
98
- }),
99
- n("div", A, [
100
- t(o.OperationLogContent, {
101
- id: o.dataList.LoginId,
102
- info: e
103
- }, null, 8, ["id", "info"])
104
- ])
144
+ n(a(B), {
145
+ color: "#f1f1f1",
146
+ size: "20"
147
+ }, {
148
+ default: y(() => [
149
+ n(a(X))
105
150
  ]),
106
- n(
107
- "div",
108
- I,
109
- d(o.dayjs(e.CreatedOnStr).format("YYYY-MM-DD HH:mm:ss")),
110
- 1
111
- /* TEXT */
112
- )
151
+ _: 1
152
+ })
153
+ ]),
154
+ l("div", fe, f(a(O)(s.CreatedOnStr).format("YYYY-MM-DD HH: mm: ss")), 1)
155
+ ]),
156
+ l("div", me, f(s.CreatedName), 1)
157
+ ], 64)) : (u(), c(L, { key: 1 }, [
158
+ l("div", pe, f(s.CreatedName), 1),
159
+ l("div", null, [
160
+ l("div", ge, [
161
+ n(a(B), {
162
+ color: "#ccc",
163
+ size: "20"
164
+ }, {
165
+ default: y(() => [
166
+ n(a(Z))
167
+ ]),
168
+ _: 1
169
+ }),
170
+ l("div", ve, [
171
+ n(E, {
172
+ id: i.LoginId,
173
+ info: s
174
+ }, null, 8, ["id", "info"])
113
175
  ])
114
- ],
115
- 64
116
- /* STABLE_FRAGMENT */
117
- ))
118
- ],
119
- 2
120
- /* CLASS */
121
- ))),
122
- 128
123
- /* KEYED_FRAGMENT */
124
- )),
125
- t(o.InfiniteLoading, {
126
- distance: 10,
127
- onInfinite: o.load
128
- }),
129
- o.loading ? (i(), a(
130
- "div",
131
- M,
132
- d(o.M2("加载中...")),
133
- 1
134
- /* TEXT */
135
- )) : c("v-if", !0),
136
- o.noMore ? (i(), a(
137
- "div",
138
- Y,
139
- d(o.M2("没有更多了!")),
140
- 1
141
- /* TEXT */
142
- )) : c("v-if", !0)
143
- ]),
144
- _: 1
145
- /* STABLE */
146
- }, 8, ["style"]),
147
- m(n("textarea", {
148
- ref: "logText",
149
- "onUpdate:modelValue": l[0] || (l[0] = (e) => o.textareaText = e),
150
- class: "content-div",
151
- placeholder: o.M2("可通过 Ctrl+V 直接上传图片/文件"),
152
- contenteditable: "true",
153
- onPaste: o.handlePaste
154
- }, null, 40, w), [
155
- [u, o.textareaText]
156
- ]),
157
- n("div", b, [
158
- t(o.YaheeAnnexUpload, {
159
- modelValue: o.compAnalysisFile,
160
- "onUpdate:modelValue": l[1] || (l[1] = (e) => o.compAnalysisFile = e),
161
- "show-tips": !1,
162
- "show-list": !1,
163
- accept: ".gif,.jpg,.png,.doc,.docx,.pdf,.xls,.xlsx,.ppt,.txt",
164
- onChange: o.change
165
- }, null, 8, ["modelValue"]),
166
- t(o.ElButton, {
167
- type: "success",
168
- size: "small",
169
- class: "marginL6",
170
- onClick: l[2] || (l[2] = (e) => o.sendEditQuill())
171
- }, {
172
- default: r(() => [
173
- C(
174
- d(o.M2("添加备注")),
175
- 1
176
- /* TEXT */
177
- )
176
+ ]),
177
+ l("div", he, f(a(O)(s.CreatedOnStr).format("YYYY-MM-DD HH:mm:ss")), 1)
178
+ ])
179
+ ], 64))
180
+ ], 2))), 128)),
181
+ n(a(ie), {
182
+ distance: 10,
183
+ onInfinite: N
184
+ }),
185
+ g.value ? (u(), c("div", _e, f(a(r)("加载中...")), 1)) : w("", !0),
186
+ I.value ? (u(), c("div", xe, f(a(r)("没有更多了!")), 1)) : w("", !0)
178
187
  ]),
179
188
  _: 1
180
- /* STABLE */
181
- })
182
- ]),
183
- t(o.OperationLogDialog, {
184
- modelValue: o.showDialog,
185
- "onUpdate:modelValue": l[3] || (l[3] = (e) => o.showDialog = e),
186
- "doc-info": o.docInfo,
187
- onConfirmUpload: o.confirmUpload
188
- }, null, 8, ["modelValue", "doc-info"])
189
- ]);
190
- }
191
- const H = /* @__PURE__ */ v(g, [["render", z], ["__file", "E:/工作/项目代码/common_componentsweb/packages/components/src/operation-log/operation-log.vue"]]);
189
+ }, 8, ["style"]),
190
+ A(l("textarea", {
191
+ ref_key: "logText",
192
+ ref: D,
193
+ "onUpdate:modelValue": t[0] || (t[0] = (s) => v.value = s),
194
+ class: "content-div",
195
+ placeholder: a(r)("可通过 Ctrl+V 直接上传图片/文件"),
196
+ contenteditable: "true",
197
+ onPaste: H
198
+ }, null, 40, ye), [
199
+ [q, v.value]
200
+ ]),
201
+ l("div", Le, [
202
+ n(le, {
203
+ modelValue: h.value,
204
+ "onUpdate:modelValue": t[1] || (t[1] = (s) => h.value = s),
205
+ "show-tips": !1,
206
+ "show-list": !1,
207
+ accept: ".gif,.jpg,.png,.doc,.docx,.pdf,.xls,.xlsx,.ppt,.txt",
208
+ onChange: F
209
+ }, null, 8, ["modelValue"]),
210
+ n(a(te), {
211
+ type: "success",
212
+ size: "small",
213
+ class: "marginL6",
214
+ onClick: t[2] || (t[2] = (s) => Y())
215
+ }, {
216
+ default: y(() => [
217
+ W(f(a(r)("添加备注")), 1)
218
+ ]),
219
+ _: 1
220
+ })
221
+ ]),
222
+ n(ne, {
223
+ modelValue: x.value,
224
+ "onUpdate:modelValue": t[3] || (t[3] = (s) => x.value = s),
225
+ "doc-info": b.value,
226
+ onConfirmUpload: T
227
+ }, null, 8, ["modelValue", "doc-info"])
228
+ ]));
229
+ }
230
+ });
192
231
  export {
193
- H as default
232
+ ze as default
194
233
  };
@@ -1,135 +1,4 @@
1
- import { defineComponent as U, ref as a, reactive as _, onMounted as F } from "vue";
2
- import { CaretLeft as K, CaretRight as T } from "@element-plus/icons-vue";
3
- import { ElMessage as l, ElButton as V, ElIcon as k, ElScrollbar as H } 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 j } from "../packages/components/hooks/useUpload.js";
10
- import { useFile as A } from "../packages/components/hooks/useImg.js";
11
- import Y from "./operation-log-form.vue.js";
12
- import q from "./operation-log-content.vue.js";
13
- import G from "./operation-log-dialog.vue.js";
14
- import R from "../_virtual/dayjs.min.js";
15
- import { M2 as o } from "../utils/translate.js";
16
- import z from "../annex-upload/annex-upload.vue.js";
17
- import J from "../packages/components/node_modules/v3-infinite-loading/lib/v3-infinite-loading.es.js";
18
- /* empty css */
19
- import { findGlobalNotes as Q, insertGlobalnotes as N } from "../packages/components/api/log/index.js";
20
- const fe = /* @__PURE__ */ U({
21
- name: "YaheeOperationLog",
22
- __name: "operation-log",
23
- props: {
24
- businessKey: { type: String, required: !0, default: "" },
25
- businessName: { type: String, required: !0, default: "" }
26
- },
27
- setup(E, { expose: M }) {
28
- M();
29
- const s = E, u = a(!1), h = a(!1), c = a(!1), b = a({}), i = _({
30
- List: [],
31
- LoginId: 0
32
- }), p = a(""), d = a([]), n = {
33
- PageIndex: -1,
34
- StartOn: "",
35
- EndOn: "",
36
- Notes: "",
37
- Mark: null,
38
- UserIds: []
39
- }, r = () => {
40
- u.value = !0;
41
- const e = new FormData();
42
- e.append(
43
- "filter",
44
- JSON.stringify({
45
- BusinessKey: s.businessKey,
46
- BusinessName: s.businessName,
47
- PageIndex: n.PageIndex,
48
- StartOn: n.StartOn,
49
- EndOn: n.EndOn,
50
- UserIds: n.UserIds,
51
- Notes: n.Notes,
52
- Mark: n.Mark
53
- })
54
- ), Q(e).then((t) => {
55
- var f;
56
- i.LoginId = t.LoginId, n.PageIndex === 0 ? i.List = t.List || [] : i.List = [...i.List || [], ...t.List || []], ((f = t == null ? void 0 : t.List) == null ? void 0 : f.length) === 0 && (h.value = !0);
57
- }).finally(() => {
58
- u.value = !1;
59
- });
60
- }, L = () => {
61
- u.value || (u.value = !0, n.PageIndex += 1, r());
62
- }, O = (e) => {
63
- 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();
64
- }, B = () => {
65
- d.value.length > 0 && m(d.value[0]).then(async () => {
66
- l.success(o("上传文件成功!")), n.PageIndex = 0, d.value = [], await r(), g();
67
- });
68
- }, D = (e) => {
69
- m(e).then(() => {
70
- l.success(o("上传文件成功!")), c.value = !1, n.PageIndex = 0, r();
71
- });
72
- }, m = (e) => {
73
- const t = new FormData();
74
- return t.append("BusinessKey", s.businessKey), t.append("BusinessName", s.businessName), t.append("notes", e.fileUrl), t.append("ViewTitle", e.fileName), N(t);
75
- }, P = () => {
76
- if (!p.value) {
77
- l.info(o("备注不能为空!"));
78
- return;
79
- }
80
- const e = new FormData();
81
- e.append("BusinessKey", s.businessKey), e.append("BusinessName", s.businessName), e.append("notes", p.value), e.append("ViewTitle", "备注"), N(e).then(async () => {
82
- l.success(o("添加备注成功!")), n.PageIndex = 0, p.value = "", await r(), g();
83
- });
84
- }, S = (e) => {
85
- if (e.clipboardData || e.originalEvent) {
86
- if (e.clipboardData.items.length === 0) {
87
- l.error(o("复制文件到剪切板失败,请点击按钮上传!"));
88
- return;
89
- }
90
- if (e.clipboardData.files.length > 0) {
91
- c.value = !0;
92
- for (let t = 0; t < e.clipboardData.files.length; t++) {
93
- e.clipboardData.files[t].size / 1024 / 1024 < 100 || l.error(o("上传文件大小不能超过 100MB!"));
94
- const { name: w } = e.clipboardData.files[t];
95
- j("115", e.clipboardData.files[t]).then((C) => {
96
- b.value = {
97
- fileName: w || "",
98
- fileUrl: A({ fileId: C[0] })
99
- };
100
- }).catch(() => {
101
- });
102
- }
103
- }
104
- }
105
- }, v = a(null), g = () => {
106
- v.value.scrollTo({ top: 0, behavior: "smooth" });
107
- }, I = a(0), y = a(null);
108
- F(() => {
109
- var t;
110
- const e = (t = document.getElementsByClassName("log-form")[0]) == null ? void 0 : t.clientHeight;
111
- I.value = window.innerHeight - e - y.value.offsetHeight - 90, L();
112
- });
113
- const x = { props: s, 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: D, uploadFile: m, sendEditQuill: P, handlePaste: S, infiniteList: v, scrollTop: g, boxHeight: I, logText: y, get CaretRight() {
114
- return T;
115
- }, get CaretLeft() {
116
- return K;
117
- }, get ElScrollbar() {
118
- return H;
119
- }, get ElIcon() {
120
- return k;
121
- }, get ElButton() {
122
- return V;
123
- }, OperationLogForm: Y, OperationLogContent: q, OperationLogDialog: G, get dayjs() {
124
- return R;
125
- }, get M2() {
126
- return o;
127
- }, YaheeAnnexUpload: z, get InfiniteLoading() {
128
- return J;
129
- } };
130
- return Object.defineProperty(x, "__isScriptSetup", { enumerable: !1, value: !0 }), x;
131
- }
132
- });
1
+ import f from "./operation-log.vue.js";
133
2
  export {
134
- fe as default
3
+ f as default
135
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.7.9/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.7.9/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
  };