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.
- package/es/_virtual/_plugin-vue_export-helper.js +9 -0
- package/es/annex-upload/annex-upload.vue.js +69 -154
- package/es/annex-upload/annex-upload.vue2.js +119 -2
- package/es/annex-upload/index.js +3 -3
- package/es/api/tool.js +1 -1
- package/es/complex-search/complex-search.vue.js +228 -282
- package/es/complex-search/complex-search.vue2.js +130 -2
- package/es/complex-search/index.js +5 -5
- package/es/copy/copy.vue.js +39 -55
- package/es/copy/copy.vue2.js +34 -2
- package/es/copy/index.js +3 -3
- package/es/country-platform-shop-condition/country-platform-shop-condition.vue.js +158 -204
- package/es/country-platform-shop-condition/country-platform-shop-condition.vue2.js +125 -2
- package/es/country-platform-shop-condition/style/index.css +3 -4
- package/es/drop-down-condition/drop-down-condition.vue.js +193 -211
- package/es/drop-down-condition/drop-down-condition.vue2.js +127 -2
- package/es/drop-down-condition/style/index.css +21 -12
- package/es/image-upload/image-upload.vue.js +76 -113
- package/es/image-upload/image-upload.vue2.js +91 -2
- package/es/image-upload/index.js +3 -3
- package/es/input/index.js +3 -3
- package/es/input/input.vue.js +17 -38
- package/es/input/input.vue2.js +33 -2
- package/es/left-condition/index.js +5 -5
- package/es/left-condition/left-condition-sub.vue.js +55 -86
- package/es/left-condition/left-condition-sub.vue2.js +76 -2
- package/es/left-condition/left-condition.vue.js +91 -209
- package/es/left-condition/left-condition.vue2.js +152 -2
- package/es/left-condition-enum/index.js +3 -3
- package/es/left-condition-enum/left-condition-enum.vue.js +19 -77
- package/es/left-condition-enum/left-condition-enum.vue2.js +69 -2
- package/es/operation-log/operation-log-content.vue.js +78 -88
- package/es/operation-log/operation-log-content.vue2.js +35 -2
- package/es/operation-log/operation-log-dialog.vue.js +57 -68
- package/es/operation-log/operation-log-dialog.vue2.js +38 -2
- package/es/operation-log/operation-log-form.vue.js +132 -179
- package/es/operation-log/operation-log-form.vue2.js +100 -2
- package/es/operation-log/operation-log.vue.js +183 -221
- package/es/operation-log/operation-log.vue2.js +133 -2
- package/es/packages/components/api/log-server.js +4 -4
- package/es/packages/components/api/upload-server.js +5 -5
- package/es/packages/components/hooks/useImg.js +8 -8
- package/es/style.css +24 -16
- package/es/utils/translate.js +13 -13
- package/lib/country-platform-shop-condition/style/index.css +3 -4
- package/lib/drop-down-condition/style/index.css +21 -12
- package/lib/style.css +24 -16
- package/package.json +1 -1
- package/types/src/installs.d.ts +2 -1
- package/types/src/operation-log/index.d.ts +2 -1
- package/types/src/operation-log/operation-log-form.vue.d.ts +3 -3
- package/types/src/operation-log/operation-log.d.ts +2 -1
- package/types/src/operation-log/operation-log.vue.d.ts +2 -1
|
@@ -1,232 +1,194 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
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
|
-
},
|
|
7
|
+
}, Y = {
|
|
24
8
|
key: 1,
|
|
25
9
|
class: "no-more text-color-a4"
|
|
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
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
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
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
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
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
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
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
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
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
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
|
-
|
|
193
|
+
H as default
|
|
232
194
|
};
|
|
@@ -1,4 +1,135 @@
|
|
|
1
|
-
import
|
|
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
|
-
|
|
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
|
|
10
|
-
baseURL:
|
|
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),
|
|
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
|
-
|
|
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 = "
|
|
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
|
|
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)),
|
|
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
|
-
|
|
64
|
-
|
|
63
|
+
O as setUploadBaseUrl,
|
|
64
|
+
k as upload
|
|
65
65
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
function
|
|
1
|
+
function s(e, c = !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 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
|
|
10
|
-
return 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
|
-
|
|
14
|
-
|
|
13
|
+
s as default,
|
|
14
|
+
a as useFile
|
|
15
15
|
};
|