yahee-components 0.0.30 → 0.0.32

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