yahee-components 0.0.81 → 0.0.84
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.
- package/es/annex-upload/annex-upload.vue.js +154 -51
- package/es/annex-upload/annex-upload.vue2.js +2 -119
- package/es/annex-upload/index.js +3 -3
- package/es/api/tool.js +1 -1
- package/es/border-wrap/border-wrap.vue.js +95 -64
- package/es/border-wrap/border-wrap.vue2.js +2 -46
- package/es/common-import/common-import.vue.js +663 -369
- package/es/common-import/common-import.vue2.js +2 -328
- package/es/common-import/index.js +3 -3
- package/es/complex-search/complex-search.vue.js +15 -15
- package/es/copy/copy.vue.js +55 -37
- package/es/copy/copy.vue2.js +2 -34
- package/es/copy/index.js +3 -3
- package/es/country-platform-shop-condition/country-platform-shop-condition.vue.js +213 -114
- package/es/country-platform-shop-condition/country-platform-shop-condition.vue2.js +2 -125
- package/es/drop-down-condition/drop-down-condition.vue.js +213 -113
- package/es/drop-down-condition/drop-down-condition.vue2.js +2 -127
- package/es/echart-gauge/echart-gauge.vue.js +140 -12
- package/es/echart-gauge/echart-gauge.vue2.js +2 -147
- package/es/echart-gauge/index.js +3 -3
- package/es/image-upload/image-upload.vue.js +170 -109
- package/es/image-upload/image-upload.vue2.js +2 -91
- package/es/image-upload/index.js +3 -3
- package/es/input/index.js +3 -3
- package/es/input/input.vue.js +38 -17
- package/es/input/input.vue2.js +2 -33
- package/es/left-condition/index.js +3 -3
- package/es/left-condition/left-condition-sub.vue.js +91 -32
- package/es/left-condition/left-condition-sub.vue2.js +2 -76
- package/es/left-condition/left-condition.vue.js +218 -70
- package/es/left-condition/left-condition.vue2.js +2 -160
- package/es/left-condition-enum/index.js +3 -3
- package/es/left-condition-enum/left-condition-enum.vue.js +49 -20
- package/es/left-condition-enum/left-condition-enum.vue2.js +2 -40
- package/es/operation-log/operation-log-content.vue.js +92 -71
- package/es/operation-log/operation-log-content.vue2.js +2 -39
- package/es/operation-log/operation-log-dialog.vue.js +68 -46
- package/es/operation-log/operation-log-dialog.vue2.js +2 -38
- package/es/operation-log/operation-log-form.vue.js +183 -108
- package/es/operation-log/operation-log-form.vue2.js +2 -104
- package/es/operation-log/operation-log.vue.js +228 -119
- package/es/operation-log/operation-log.vue2.js +2 -135
- package/es/packages/components/api/log-server.js +6 -6
- package/es/packages/components/api/upload-server.js +1 -1
- package/es/packages/components/hooks/useEcharts.js +19 -19
- package/es/packages/components/hooks/useImg.js +8 -8
- package/es/scale-screen/index.js +4 -4
- package/es/scale-screen/scale-screen.vue.js +126 -19
- package/es/scale-screen/scale-screen.vue2.js +2 -125
- package/es/utils/translate.js +16 -16
- package/package.json +46 -46
- package/readme.md +249 -249
- package/types/src/common-import/common-import.vue.d.ts +2 -0
- package/types/src/common-import/index.d.ts +5 -0
- package/types/src/installs.d.ts +5 -0
|
@@ -1,129 +1,238 @@
|
|
|
1
|
-
import m from "
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
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
|
-
},
|
|
23
|
+
}, be = {
|
|
8
24
|
key: 1,
|
|
9
25
|
class: "no-more text-color-a4"
|
|
10
|
-
},
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
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
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
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
|
-
|
|
75
|
-
])
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
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
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
}
|
|
126
|
-
|
|
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
|
-
|
|
237
|
+
$e as default
|
|
129
238
|
};
|
|
@@ -1,137 +1,4 @@
|
|
|
1
|
-
import
|
|
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
|
-
|
|
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
|
|
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 = "
|
|
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 =
|
|
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 =
|
|
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("请求超时,请检查您的网络连接或稍后重试。"),
|
|
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,
|
|
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 = "
|
|
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
|
|
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
|
|
4
|
-
import { init as
|
|
5
|
-
const J = function(s,
|
|
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:
|
|
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:
|
|
29
|
-
theme:
|
|
30
|
-
} =
|
|
28
|
+
defaultOption: d,
|
|
29
|
+
theme: p = "shine"
|
|
30
|
+
} = {}, t = w(d);
|
|
31
31
|
let e;
|
|
32
|
-
|
|
33
|
-
e =
|
|
34
|
-
}),
|
|
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
|
|
43
|
+
function h(o) {
|
|
44
44
|
t.value = o;
|
|
45
45
|
}
|
|
46
46
|
let a = () => {
|
|
47
47
|
};
|
|
48
|
-
if (
|
|
48
|
+
if (u) {
|
|
49
49
|
let o = !1;
|
|
50
|
-
const { stop:
|
|
51
|
-
const l =
|
|
52
|
-
|
|
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 =
|
|
54
|
+
a = v;
|
|
55
55
|
}
|
|
56
|
-
return
|
|
56
|
+
return R(() => {
|
|
57
57
|
a(), e == null || e.dispose();
|
|
58
|
-
}), { echartsOption: t, setOption:
|
|
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
|
|
1
|
+
function u(e, r = !1) {
|
|
2
2
|
if (!e) return "";
|
|
3
3
|
const t = /_[BOSGM]/;
|
|
4
4
|
if (t.test(e)) {
|
|
5
|
-
let
|
|
6
|
-
return
|
|
7
|
-
} else return
|
|
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
|
|
10
|
-
return e && e.fileId ? `
|
|
9
|
+
function c(e) {
|
|
10
|
+
return e && e.fileId ? `https://imgs.yaheecloud.com/${e.fileId}` : "";
|
|
11
11
|
}
|
|
12
12
|
export {
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
u as default,
|
|
14
|
+
c as useFile
|
|
15
15
|
};
|