gds-plus-design-vue 1.1.2 → 1.1.7
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/lib/chartbi.48631362.mjs +44076 -0
- package/lib/chartbi.afd83839.js +80 -0
- package/lib/element-theme-chalk.ae828c17.js +2 -0
- package/lib/gd-initial.js +34 -0
- package/lib/gd-initial.mjs +80300 -16
- package/lib/main.60763eae.js +1 -0
- package/lib/main.f2b00b70.mjs +939 -0
- package/lib/messages.083c4ede.js +9 -0
- package/lib/messages.7e85146d.mjs +5802 -0
- package/lib/style.css +2 -2
- package/lib/system.account.65b2f7d4.js +216 -0
- package/lib/system.account.93b7df36.mjs +2536 -0
- package/lib/system.config.327aded6.js +1 -0
- package/lib/system.config.9c46f279.mjs +373 -0
- package/lib/system.datasource.4b0951ba.mjs +511 -0
- package/lib/system.datasource.8a0c7e0f.js +1 -0
- package/lib/system.dict.65f25e4e.mjs +996 -0
- package/lib/system.dict.72594c98.js +1 -0
- package/lib/system.duplicatechecking.0d47a5ca.js +1 -0
- package/lib/system.duplicatechecking.ad111272.mjs +2130 -0
- package/lib/system.email.54722948.js +41 -0
- package/lib/system.email.923697c6.mjs +7432 -0
- package/lib/system.fieldsecurity.7de4ee1d.mjs +1745 -0
- package/lib/system.fieldsecurity.d57edb47.js +1 -0
- package/lib/system.file.b3558a8b.js +1 -0
- package/lib/system.file.f152d4fe.mjs +489 -0
- package/lib/system.log.30e5157c.mjs +1450 -0
- package/lib/system.log.f243e7d0.js +1 -0
- package/lib/system.machine.325b256e.mjs +94 -0
- package/lib/system.machine.332fb31c.js +1 -0
- package/lib/system.notice.93c4691c.js +1 -0
- package/lib/system.notice.e0b84103.mjs +636 -0
- package/lib/system.noticereceived.a28ba643.js +1 -0
- package/lib/system.noticereceived.c0a19336.mjs +158 -0
- package/lib/system.onlineuser.90c08aef.mjs +184 -0
- package/lib/system.onlineuser.e0c261ed.js +1 -0
- package/lib/system.org.65452f67.js +1 -0
- package/lib/system.org.b8d59e5d.mjs +421 -0
- package/lib/system.permissions.b8a5f79d.mjs +212 -0
- package/lib/system.permissions.c34f44a3.js +9 -0
- package/lib/system.plugin.07b3c38e.js +1 -0
- package/lib/system.plugin.4911a33d.mjs +946 -0
- package/lib/system.pos.6ed35c39.js +1 -0
- package/lib/system.pos.c274f13c.mjs +312 -0
- package/lib/system.promptmanagement.5a4930b1.js +1 -0
- package/lib/system.promptmanagement.fe8b0913.mjs +789 -0
- package/lib/system.role.ceb5ed2d.mjs +1509 -0
- package/lib/system.role.daedd959.js +1 -0
- package/lib/system.timers.69f1792a.mjs +3160 -0
- package/lib/system.timers.ef6b6796.js +38 -0
- package/lib/system.translation.6351f189.mjs +661 -0
- package/lib/system.translation.8905eb73.js +1 -0
- package/lib/system.user.12a4e490.mjs +1425 -0
- package/lib/system.user.d668538b.js +14 -0
- package/lib/system.useraffiliation.b8be03db.js +1 -0
- package/lib/system.useraffiliation.c272e688.mjs +1025 -0
- package/lib/system.webresource.5049d97b.js +1 -0
- package/lib/system.webresource.e9518d87.mjs +723 -0
- package/lib/system.welcome.3f1cce96.mjs +45 -0
- package/lib/system.welcome.b109df88.js +1 -0
- package/locale/en_US.js +258 -18
- package/locale/id_ID.js +257 -18
- package/locale/vi_VN.js +256 -16
- package/locale/zh_CN.js +267 -25
- package/package.json +105 -110
- package/lib/gd-initial.umd.js +0 -440
- package/lib/index.d50ecf4b.mjs +0 -143931
- package/lib/main.305313fd.mjs +0 -919
|
@@ -0,0 +1,1450 @@
|
|
|
1
|
+
import { m as o, n } from "./chartbi.48631362.mjs";
|
|
2
|
+
import { t as i } from "./messages.7e85146d.mjs";
|
|
3
|
+
function f(t) {
|
|
4
|
+
return window.axios({
|
|
5
|
+
url: "/sysVisLog/page",
|
|
6
|
+
method: "get",
|
|
7
|
+
params: t
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
function y(t) {
|
|
11
|
+
return window.axios({
|
|
12
|
+
url: "/sysOpLog/page",
|
|
13
|
+
method: "get",
|
|
14
|
+
params: t
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
function h(t) {
|
|
18
|
+
return window.axios({
|
|
19
|
+
url: "/sysExLog/page",
|
|
20
|
+
method: "get",
|
|
21
|
+
params: t
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
function b(t) {
|
|
25
|
+
return window.axios({
|
|
26
|
+
url: "/sysEvtLog/page",
|
|
27
|
+
method: "get",
|
|
28
|
+
params: t
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
function w(t) {
|
|
32
|
+
return window.axios({
|
|
33
|
+
url: "/sysVisLog/delete",
|
|
34
|
+
method: "post",
|
|
35
|
+
data: t
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
function T(t) {
|
|
39
|
+
return window.axios({
|
|
40
|
+
url: "/sysOpLog/delete",
|
|
41
|
+
method: "post",
|
|
42
|
+
data: t
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
function K(t) {
|
|
46
|
+
return window.axios({
|
|
47
|
+
url: "/sysExLog/delete",
|
|
48
|
+
method: "post",
|
|
49
|
+
data: t
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
function v(t) {
|
|
53
|
+
return window.axios({
|
|
54
|
+
url: "/sysEvtLog/delete",
|
|
55
|
+
method: "post",
|
|
56
|
+
data: t
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
function C(t) {
|
|
60
|
+
return window.axios({
|
|
61
|
+
url: "/sysAuditLog/page",
|
|
62
|
+
method: "get",
|
|
63
|
+
params: t
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
function $(t) {
|
|
67
|
+
return window.axios({
|
|
68
|
+
url: "/sysAuditLog/delete",
|
|
69
|
+
method: "post",
|
|
70
|
+
data: t
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
const x = {
|
|
74
|
+
data() {
|
|
75
|
+
return {
|
|
76
|
+
tableColumns: [
|
|
77
|
+
{
|
|
78
|
+
type: "selection",
|
|
79
|
+
width: "60",
|
|
80
|
+
fixed: !0
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
transKey: "gd.log.tableName",
|
|
84
|
+
prop: "tableName",
|
|
85
|
+
label: "\u8868\u540D",
|
|
86
|
+
align: "left",
|
|
87
|
+
renderHeader: (t, ...e) => this.renderHeader(t, ...e, {
|
|
88
|
+
effectType: "input"
|
|
89
|
+
})
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
transKey: "gd.log.fieldName",
|
|
93
|
+
prop: "fieldName",
|
|
94
|
+
label: "\u5B57\u6BB5\u540D",
|
|
95
|
+
align: "left"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
transKey: "gd.log.operate",
|
|
99
|
+
prop: "operate",
|
|
100
|
+
label: "\u64CD\u4F5C",
|
|
101
|
+
align: "left"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
transKey: "gd.log.operatorName",
|
|
105
|
+
prop: "operateUserName",
|
|
106
|
+
label: "\u64CD\u4F5C\u4EBA",
|
|
107
|
+
align: "left"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
transKey: "gd.log.createdTime",
|
|
111
|
+
prop: "createdTime",
|
|
112
|
+
width: "200",
|
|
113
|
+
label: "\u64CD\u4F5C\u65F6\u95F4",
|
|
114
|
+
align: "center"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
transKey: "gd.log.oldValue",
|
|
118
|
+
prop: "oldValue",
|
|
119
|
+
label: "\u65E7\u503C",
|
|
120
|
+
align: "left"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
transKey: "gd.log.newValue",
|
|
124
|
+
prop: "newValue",
|
|
125
|
+
label: "\u65B0\u503C",
|
|
126
|
+
align: "left"
|
|
127
|
+
}
|
|
128
|
+
],
|
|
129
|
+
formColumns: [],
|
|
130
|
+
tableButtons: [{
|
|
131
|
+
displayName: "\u6E05\u7A7A\u65E5\u5FD7",
|
|
132
|
+
functionName: "clearLog",
|
|
133
|
+
show: !0,
|
|
134
|
+
transKey: "gd.btn.clearLog",
|
|
135
|
+
icon: "el-icon-delete",
|
|
136
|
+
name: "sysAuditLog:delete",
|
|
137
|
+
btnType: "danger"
|
|
138
|
+
}],
|
|
139
|
+
tableQueries: [{
|
|
140
|
+
transKey: "gd.log.tableName",
|
|
141
|
+
prop: "tablename",
|
|
142
|
+
label: "\u8868\u540D",
|
|
143
|
+
effectType: "input",
|
|
144
|
+
rules: []
|
|
145
|
+
}, {
|
|
146
|
+
transKey: "gd.log.fieldName",
|
|
147
|
+
prop: "fieldname",
|
|
148
|
+
label: "\u5B57\u6BB5\u540D",
|
|
149
|
+
effectType: "input",
|
|
150
|
+
rules: []
|
|
151
|
+
}, {
|
|
152
|
+
transKey: "gd.log.executionTime",
|
|
153
|
+
prop: "dates",
|
|
154
|
+
label: "\u6267\u884C\u65F6\u95F4",
|
|
155
|
+
effectType: "datepicker",
|
|
156
|
+
options: {
|
|
157
|
+
displayStyle: 0
|
|
158
|
+
},
|
|
159
|
+
rules: []
|
|
160
|
+
}]
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
}, _ = {
|
|
164
|
+
name: "GdAuditlog",
|
|
165
|
+
props: {
|
|
166
|
+
height: {
|
|
167
|
+
type: Number,
|
|
168
|
+
default: 100
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
mixins: [i, x],
|
|
172
|
+
data() {
|
|
173
|
+
return {
|
|
174
|
+
transKey: "gd.btn.add",
|
|
175
|
+
queryParam: {},
|
|
176
|
+
selectedRowKeys: [],
|
|
177
|
+
selectedRows: [],
|
|
178
|
+
loadData: (t) => C(Object.assign(t, this.switchingDate())).then((e) => e.data),
|
|
179
|
+
eventStateDict: [],
|
|
180
|
+
eventTypeDict: []
|
|
181
|
+
};
|
|
182
|
+
},
|
|
183
|
+
computed: {
|
|
184
|
+
getHeight() {
|
|
185
|
+
return this.height;
|
|
186
|
+
},
|
|
187
|
+
...o(["tablePageSize", "tableSize", "labelPosition", "formMode"])
|
|
188
|
+
},
|
|
189
|
+
methods: {
|
|
190
|
+
onSelectChange(t, e) {
|
|
191
|
+
this.selectedRowKeys = t, this.selectedRows = e;
|
|
192
|
+
},
|
|
193
|
+
saveQueries(t) {
|
|
194
|
+
this.queryParam = {
|
|
195
|
+
...t
|
|
196
|
+
}, this.refresh();
|
|
197
|
+
},
|
|
198
|
+
switchingDate() {
|
|
199
|
+
let t = /* @__PURE__ */ new Map();
|
|
200
|
+
for (let e in this.queryParam)
|
|
201
|
+
if (this.queryParam[e] && e === "dates") {
|
|
202
|
+
if (this.queryParam[e].length > 0) {
|
|
203
|
+
let a = this.queryParam[e], s = a[0].split(" ")[0], r = a[1].split(" ")[0];
|
|
204
|
+
t.set(`${e}Start`, `${s} 00:00:00`), t.set(`${e}End`, `${r} 23:59:59`);
|
|
205
|
+
}
|
|
206
|
+
} else
|
|
207
|
+
t.set(e, this.queryParam[e]);
|
|
208
|
+
return Object.fromEntries(t);
|
|
209
|
+
},
|
|
210
|
+
refresh() {
|
|
211
|
+
this.$refs.table.refresh();
|
|
212
|
+
},
|
|
213
|
+
doEvent(t) {
|
|
214
|
+
let e = t.item.functionName;
|
|
215
|
+
this[e] && this[e]();
|
|
216
|
+
},
|
|
217
|
+
clearLog() {
|
|
218
|
+
let t = this;
|
|
219
|
+
t.$confirm(t.$i18nt("gd.https.emptyContent", "\u662F\u5426\u6E05\u7A7A\u6570\u636E?"), t.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
|
|
220
|
+
confirmButtonText: t.$i18nt("gd.https.emptyOk", "\u786E\u8BA4\u6E05\u7A7A"),
|
|
221
|
+
cancelButtonText: t.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
222
|
+
showClose: !1,
|
|
223
|
+
confirmButtonLoading: !1,
|
|
224
|
+
cancelButtonLoading: !1,
|
|
225
|
+
closeOnClickModal: !1,
|
|
226
|
+
type: "warning",
|
|
227
|
+
confirmButtonClass: "el-button--danger",
|
|
228
|
+
customClass: "custom-alert",
|
|
229
|
+
callback: () => {
|
|
230
|
+
},
|
|
231
|
+
beforeClose: (e, a, s) => {
|
|
232
|
+
if (e !== "confirm") {
|
|
233
|
+
s();
|
|
234
|
+
return;
|
|
235
|
+
}
|
|
236
|
+
a.confirmButtonLoading = !0, a.cancelButtonLoading = !0, a.showCancelButton = !1, $().then((r) => {
|
|
237
|
+
r.success ? (t.$message.success(t.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), t.$refs.table.refresh(!0)) : t.$message.error(t.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + r.message), a.confirmButtonLoading = !1, a.cancelButtonLoading = !1, a.showCancelButton = !0, s();
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
};
|
|
244
|
+
var k = function() {
|
|
245
|
+
var e = this, a = e._self._c;
|
|
246
|
+
return a("div", { staticClass: "gd-page-view" }, [a("div", { staticClass: "page-view-list", staticStyle: { padding: "0px" } }, [a("gd-tables", { ref: "table", attrs: { dataSource: e.loadData, size: e.tableSize, pageSize: e.tablePageSize, columns: e.tableColumns, selectedRowKeys: e.selectedRowKeys, height: e.getHeight, filtering: !0 }, on: { onChange: e.onSelectChange }, scopedSlots: e._u([{ key: "operator", fn: function() {
|
|
247
|
+
return [a("div", { staticClass: "gd-table-operator" }, [a("div", { staticClass: "gd-table-operatorl" }, [a("el-input", { staticClass: "table-operator-input", attrs: { placeholder: e.$i18nt("gd.log.tableName", "\u8868\u540D"), clearable: "" }, nativeOn: { keyup: function(s) {
|
|
248
|
+
return !s.type.indexOf("key") && e._k(s.keyCode, "enter", 13, s.key, "Enter") ? null : e.refresh.apply(null, arguments);
|
|
249
|
+
} }, model: { value: e.queryParam.tablename, callback: function(s) {
|
|
250
|
+
e.$set(e.queryParam, "tablename", s);
|
|
251
|
+
}, expression: "queryParam.tablename" } }), a("div", { staticClass: "table-operator-search", on: { click: e.refresh } }, [a("i", { staticClass: "el-input__icon el-icon-search" })])], 1), a("div", { staticClass: "gd-table-operatorr" }, [a("gd-btn-list", { attrs: { sysViewButtons: e.tableButtons }, on: { functionName: e.doEvent } })], 1)])];
|
|
252
|
+
}, proxy: !0 }, { key: "filtering", fn: function({ colse: s, visible: r }) {
|
|
253
|
+
return [a("gd-table-queries-field", { attrs: { columns: e.tableQueries, height: e.getHeight, queryParam: e.queryParam, colse: s, visible: r }, on: { save: e.saveQueries } })];
|
|
254
|
+
} }]) })], 1)]);
|
|
255
|
+
}, P = [], q = /* @__PURE__ */ n(
|
|
256
|
+
_,
|
|
257
|
+
k,
|
|
258
|
+
P,
|
|
259
|
+
!1,
|
|
260
|
+
null,
|
|
261
|
+
null,
|
|
262
|
+
null,
|
|
263
|
+
null
|
|
264
|
+
);
|
|
265
|
+
const d = q.exports;
|
|
266
|
+
d.install = function(t) {
|
|
267
|
+
t.component(d.name, d);
|
|
268
|
+
};
|
|
269
|
+
const N = {
|
|
270
|
+
data() {
|
|
271
|
+
return {
|
|
272
|
+
tableColumns: [{
|
|
273
|
+
type: "selection",
|
|
274
|
+
width: "60",
|
|
275
|
+
fixed: !0
|
|
276
|
+
}, {
|
|
277
|
+
transKey: "gd.log.methodName",
|
|
278
|
+
prop: "methodName",
|
|
279
|
+
label: "\u65B9\u6CD5\u540D",
|
|
280
|
+
type: "slot",
|
|
281
|
+
slotType: "methodName",
|
|
282
|
+
align: "left",
|
|
283
|
+
fixed: !0,
|
|
284
|
+
renderHeader: (t, ...e) => this.renderHeader(t, ...e, {
|
|
285
|
+
effectType: "input"
|
|
286
|
+
}),
|
|
287
|
+
showOverflowTooltip: !0
|
|
288
|
+
}, {
|
|
289
|
+
transKey: "gd.org.className",
|
|
290
|
+
prop: "className",
|
|
291
|
+
type: "slot",
|
|
292
|
+
slotType: "className",
|
|
293
|
+
label: "\u7C7B\u540D",
|
|
294
|
+
align: "left"
|
|
295
|
+
}, {
|
|
296
|
+
transKey: "gd.org.exceptionName",
|
|
297
|
+
prop: "exceptionName",
|
|
298
|
+
type: "slot",
|
|
299
|
+
slotType: "exceptionName",
|
|
300
|
+
label: "\u5F02\u5E38\u540D\u79F0",
|
|
301
|
+
align: "left"
|
|
302
|
+
}, {
|
|
303
|
+
transKey: "gd.org.exceptionMsg",
|
|
304
|
+
prop: "exceptionMsg",
|
|
305
|
+
type: "slot",
|
|
306
|
+
slotType: "exceptionMsg",
|
|
307
|
+
label: "\u5F02\u5E38\u4FE1\u606F",
|
|
308
|
+
align: "left"
|
|
309
|
+
}, {
|
|
310
|
+
transKey: "gd.org.exceptionTime",
|
|
311
|
+
prop: "exceptionTime",
|
|
312
|
+
type: "slot",
|
|
313
|
+
slotType: "exceptionTime",
|
|
314
|
+
label: "\u5F02\u5E38\u65F6\u95F4",
|
|
315
|
+
align: "left"
|
|
316
|
+
}, {
|
|
317
|
+
transKey: "gd.org.operatorName",
|
|
318
|
+
prop: "name",
|
|
319
|
+
label: "\u64CD\u4F5C\u4EBA",
|
|
320
|
+
align: "left"
|
|
321
|
+
}],
|
|
322
|
+
formColumns: [{
|
|
323
|
+
transKey: "gd.log.methodName",
|
|
324
|
+
prop: "methodname",
|
|
325
|
+
effectType: "input",
|
|
326
|
+
label: "\u65B9\u6CD5\u540D",
|
|
327
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
328
|
+
placeholderTransKey: "gd.placeholder.input",
|
|
329
|
+
rules: [{
|
|
330
|
+
required: !1,
|
|
331
|
+
message: "\u8BF7\u8F93\u5165",
|
|
332
|
+
transKey: "gd.placeholder.input",
|
|
333
|
+
trigger: "change"
|
|
334
|
+
}]
|
|
335
|
+
}, {
|
|
336
|
+
transKey: "gd.log.className",
|
|
337
|
+
prop: "classname",
|
|
338
|
+
effectType: "input",
|
|
339
|
+
label: "\u7C7B\u540D",
|
|
340
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
341
|
+
placeholderTransKey: "gd.placeholder.input",
|
|
342
|
+
rules: [{
|
|
343
|
+
required: !1,
|
|
344
|
+
message: "\u8BF7\u8F93\u5165",
|
|
345
|
+
transKey: "gd.placeholder.input",
|
|
346
|
+
trigger: "change"
|
|
347
|
+
}]
|
|
348
|
+
}, {
|
|
349
|
+
transKey: "gd.log.exceptionName",
|
|
350
|
+
prop: "exceptionname",
|
|
351
|
+
effectType: "input",
|
|
352
|
+
label: "\u5F02\u5E38\u540D\u79F0",
|
|
353
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
354
|
+
placeholderTransKey: "gd.placeholder.input",
|
|
355
|
+
rules: [{
|
|
356
|
+
required: !1,
|
|
357
|
+
message: "\u8BF7\u8F93\u5165",
|
|
358
|
+
transKey: "gd.placeholder.input",
|
|
359
|
+
trigger: "change"
|
|
360
|
+
}]
|
|
361
|
+
}, {
|
|
362
|
+
transKey: "gd.log.exceptionMsg",
|
|
363
|
+
prop: "exceptionmsg",
|
|
364
|
+
effectType: "textarea",
|
|
365
|
+
label: "\u5F02\u5E38\u4FE1\u606F",
|
|
366
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
367
|
+
placeholderTransKey: "gd.placeholder.input",
|
|
368
|
+
rules: [],
|
|
369
|
+
autosize: {
|
|
370
|
+
minRows: 4,
|
|
371
|
+
maxRows: 6
|
|
372
|
+
}
|
|
373
|
+
}],
|
|
374
|
+
tableButtons: [{
|
|
375
|
+
displayName: "\u6E05\u7A7A\u65E5\u5FD7",
|
|
376
|
+
functionName: "clearLog",
|
|
377
|
+
show: !0,
|
|
378
|
+
transKey: "gd.btn.clearLog",
|
|
379
|
+
icon: "el-icon-delete",
|
|
380
|
+
name: "sysExLog:delete",
|
|
381
|
+
btnType: "danger"
|
|
382
|
+
}],
|
|
383
|
+
tableQueries: [{
|
|
384
|
+
transKey: "gd.log.methodName",
|
|
385
|
+
prop: "methodName",
|
|
386
|
+
label: "\u65B9\u6CD5\u540D",
|
|
387
|
+
effectType: "input",
|
|
388
|
+
rules: []
|
|
389
|
+
}, {
|
|
390
|
+
transKey: "gd.log.className",
|
|
391
|
+
prop: "className",
|
|
392
|
+
label: "\u7C7B\u540D",
|
|
393
|
+
effectType: "input",
|
|
394
|
+
rules: []
|
|
395
|
+
}, {
|
|
396
|
+
transKey: "gd.log.exceptionMsg",
|
|
397
|
+
prop: "exceptionMsg",
|
|
398
|
+
label: "\u5F02\u5E38\u4FE1\u606F",
|
|
399
|
+
effectType: "textarea",
|
|
400
|
+
rules: []
|
|
401
|
+
}, {
|
|
402
|
+
transKey: "gd.log.operatorName",
|
|
403
|
+
prop: "name",
|
|
404
|
+
label: "\u64CD\u4F5C\u4EBA",
|
|
405
|
+
effectType: "input",
|
|
406
|
+
rules: []
|
|
407
|
+
}, {
|
|
408
|
+
transKey: "gd.log.opTime",
|
|
409
|
+
prop: "search",
|
|
410
|
+
label: "\u5F02\u5E38\u65F6\u95F4",
|
|
411
|
+
effectType: "datepicker",
|
|
412
|
+
options: {
|
|
413
|
+
displayStyle: 0
|
|
414
|
+
},
|
|
415
|
+
rules: []
|
|
416
|
+
}]
|
|
417
|
+
};
|
|
418
|
+
}
|
|
419
|
+
}, S = {
|
|
420
|
+
name: "GdExlog",
|
|
421
|
+
props: {
|
|
422
|
+
height: {
|
|
423
|
+
type: Number,
|
|
424
|
+
default: 100
|
|
425
|
+
}
|
|
426
|
+
},
|
|
427
|
+
mixins: [i, N],
|
|
428
|
+
data() {
|
|
429
|
+
return {
|
|
430
|
+
transKey: "gd.btn.add",
|
|
431
|
+
queryParam: {},
|
|
432
|
+
selectedRowKeys: [],
|
|
433
|
+
selectedRows: [],
|
|
434
|
+
loadData: (t) => h(Object.assign(t, this.switchingDate())).then((e) => e.data)
|
|
435
|
+
};
|
|
436
|
+
},
|
|
437
|
+
computed: {
|
|
438
|
+
getHeight() {
|
|
439
|
+
return this.height;
|
|
440
|
+
},
|
|
441
|
+
...o(["tablePageSize", "tableSize", "labelPosition", "formMode"])
|
|
442
|
+
},
|
|
443
|
+
mounted() {
|
|
444
|
+
},
|
|
445
|
+
methods: {
|
|
446
|
+
onSelectChange(t, e) {
|
|
447
|
+
this.selectedRowKeys = t, this.selectedRows = e;
|
|
448
|
+
},
|
|
449
|
+
editForm(t) {
|
|
450
|
+
this.transKey = "gd.log.detail", this.$refs.editForm.open(
|
|
451
|
+
Object.assign({
|
|
452
|
+
...t
|
|
453
|
+
})
|
|
454
|
+
);
|
|
455
|
+
},
|
|
456
|
+
saveQueries(t) {
|
|
457
|
+
console.log(t), this.queryParam = {
|
|
458
|
+
...t
|
|
459
|
+
}, this.refresh();
|
|
460
|
+
},
|
|
461
|
+
switchingDate() {
|
|
462
|
+
let t = /* @__PURE__ */ new Map();
|
|
463
|
+
for (let e in this.queryParam)
|
|
464
|
+
if (this.queryParam[e] && e === "createdTime") {
|
|
465
|
+
if (this.queryParam[e].length > 0) {
|
|
466
|
+
let a = this.queryParam[e], s = a[0].split(" ")[0], r = a[1].split(" ")[0];
|
|
467
|
+
t.set(`${e}BeginTime`, `${s} 00:00:00`), t.set(`${e}EndTime`, `${r} 23:59:59`);
|
|
468
|
+
}
|
|
469
|
+
} else
|
|
470
|
+
t.set(e, this.queryParam[e]);
|
|
471
|
+
return Object.fromEntries(t);
|
|
472
|
+
},
|
|
473
|
+
refresh() {
|
|
474
|
+
this.$refs.table.refresh();
|
|
475
|
+
},
|
|
476
|
+
doEvent(t) {
|
|
477
|
+
let e = t.item.functionName;
|
|
478
|
+
this[e] && this[e]();
|
|
479
|
+
},
|
|
480
|
+
clearLog() {
|
|
481
|
+
let t = this;
|
|
482
|
+
t.$confirm(t.$i18nt("gd.https.emptyContent", "\u662F\u5426\u6E05\u7A7A\u6570\u636E?"), t.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
|
|
483
|
+
confirmButtonText: t.$i18nt("gd.https.emptyOk", "\u786E\u8BA4\u6E05\u7A7A"),
|
|
484
|
+
cancelButtonText: t.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
485
|
+
showClose: !1,
|
|
486
|
+
confirmButtonLoading: !1,
|
|
487
|
+
cancelButtonLoading: !1,
|
|
488
|
+
closeOnClickModal: !1,
|
|
489
|
+
type: "warning",
|
|
490
|
+
confirmButtonClass: "el-button--danger",
|
|
491
|
+
customClass: "custom-alert",
|
|
492
|
+
callback: () => {
|
|
493
|
+
},
|
|
494
|
+
beforeClose: (e, a, s) => {
|
|
495
|
+
if (e !== "confirm")
|
|
496
|
+
s();
|
|
497
|
+
else
|
|
498
|
+
return new Promise((r, c) => {
|
|
499
|
+
K().then((l) => {
|
|
500
|
+
l.success ? (t.$message.success(t.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), t.$refs.table.refresh(!0)) : t.$message.error(t.$i18nt("gd.https.operateFail") + l.message), r(), s();
|
|
501
|
+
}).catch((l) => {
|
|
502
|
+
t.$message.error(t.$i18nt("gd.error.error") + l.message);
|
|
503
|
+
});
|
|
504
|
+
}).catch(() => console.log("Oops errors!"));
|
|
505
|
+
}
|
|
506
|
+
});
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
};
|
|
510
|
+
var L = function() {
|
|
511
|
+
var e = this, a = e._self._c;
|
|
512
|
+
return a("div", { staticClass: "gd-page-view" }, [a("div", { staticClass: "page-view-list", staticStyle: { padding: "0px" } }, [a("gd-tables", { ref: "table", attrs: { dataSource: e.loadData, size: e.tableSize, pageSize: e.tablePageSize, columns: e.tableColumns, selectedRowKeys: e.selectedRowKeys, height: e.getHeight, filtering: !0 }, on: { onChange: e.onSelectChange }, scopedSlots: e._u([{ key: "methodName", fn: function({ column: s, row: r }) {
|
|
513
|
+
return [a("gd-tooltip", { attrs: { rowKey: "methodname", row: r, highlight: "" }, on: { click: e.editForm } })];
|
|
514
|
+
} }, { key: "className", fn: function({ column: s, row: r }) {
|
|
515
|
+
return [a("gd-tooltip", { attrs: { rowKey: "classname", row: r } })];
|
|
516
|
+
} }, { key: "exceptionName", fn: function({ column: s, row: r }) {
|
|
517
|
+
return [a("gd-tooltip", { attrs: { rowKey: "exceptionname", row: r } })];
|
|
518
|
+
} }, { key: "exceptionMsg", fn: function({ column: s, row: r }) {
|
|
519
|
+
return [a("gd-tooltip", { attrs: { rowKey: "exceptionmsg", row: r } })];
|
|
520
|
+
} }, { key: "exceptionTime", fn: function({ column: s, row: r }) {
|
|
521
|
+
return [a("gd-tooltip", { attrs: { rowKey: "exceptiontime", row: r } })];
|
|
522
|
+
} }, { key: "operator", fn: function() {
|
|
523
|
+
return [a("div", { staticClass: "gd-table-operator" }, [a("div", { staticClass: "gd-table-operatorl" }, [a("el-input", { staticClass: "table-operator-input", attrs: { placeholder: e.$i18nt("gd.log.methodName", "\u65B9\u6CD5\u540D"), clearable: "" }, nativeOn: { keyup: function(s) {
|
|
524
|
+
return !s.type.indexOf("key") && e._k(s.keyCode, "enter", 13, s.key, "Enter") ? null : e.refresh.apply(null, arguments);
|
|
525
|
+
} }, model: { value: e.queryParam.methodName, callback: function(s) {
|
|
526
|
+
e.$set(e.queryParam, "methodName", s);
|
|
527
|
+
}, expression: "queryParam.methodName" } }), a("div", { staticClass: "table-operator-search", on: { click: e.refresh } }, [a("i", { staticClass: "el-input__icon el-icon-search" })])], 1), a("div", { staticClass: "gd-table-operatorr" }, [a("gd-btn-list", { attrs: { sysViewButtons: e.tableButtons }, on: { functionName: e.doEvent } })], 1)])];
|
|
528
|
+
}, proxy: !0 }, { key: "filtering", fn: function({ colse: s, visible: r }) {
|
|
529
|
+
return [a("gd-table-queries-field", { attrs: { columns: e.tableQueries, height: e.getHeight, queryParam: e.queryParam, colse: s, visible: r }, on: { save: e.saveQueries } })];
|
|
530
|
+
} }]) })], 1), a("gd-edit-form", { ref: "editForm", attrs: { formItemWidth: "90%", transKey: e.transKey, columns: e.formColumns, labelPosition: e.labelPosition, formMode: e.formMode } })], 1);
|
|
531
|
+
}, D = [], O = /* @__PURE__ */ n(
|
|
532
|
+
S,
|
|
533
|
+
L,
|
|
534
|
+
D,
|
|
535
|
+
!1,
|
|
536
|
+
null,
|
|
537
|
+
null,
|
|
538
|
+
null,
|
|
539
|
+
null
|
|
540
|
+
);
|
|
541
|
+
const p = O.exports;
|
|
542
|
+
p.install = function(t) {
|
|
543
|
+
t.component(p.name, p);
|
|
544
|
+
};
|
|
545
|
+
const B = {
|
|
546
|
+
data() {
|
|
547
|
+
return {
|
|
548
|
+
tableColumns: [
|
|
549
|
+
{
|
|
550
|
+
type: "selection",
|
|
551
|
+
width: "60",
|
|
552
|
+
fixed: !0
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
transKey: "gd.log.logName",
|
|
556
|
+
prop: "name",
|
|
557
|
+
label: "\u65E5\u5FD7\u540D\u79F0",
|
|
558
|
+
type: "slot",
|
|
559
|
+
slotType: "name",
|
|
560
|
+
align: "left",
|
|
561
|
+
fixed: !0,
|
|
562
|
+
renderHeader: (t, ...e) => this.renderHeader(t, ...e, {
|
|
563
|
+
effectType: "input"
|
|
564
|
+
}),
|
|
565
|
+
showOverflowTooltip: !0
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
transKey: "gd.org.accessType",
|
|
569
|
+
prop: "visType",
|
|
570
|
+
type: "slot",
|
|
571
|
+
slotType: "visType",
|
|
572
|
+
label: "\u8BBF\u95EE\u7C7B\u578B ",
|
|
573
|
+
align: "left",
|
|
574
|
+
showOverflowTooltip: !0
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
transKey: "gd.org.whether",
|
|
578
|
+
prop: "success",
|
|
579
|
+
type: "slot",
|
|
580
|
+
slotType: "success",
|
|
581
|
+
label: "\u662F\u5426\u6210\u529F",
|
|
582
|
+
align: "left"
|
|
583
|
+
},
|
|
584
|
+
{
|
|
585
|
+
transKey: "gd.org.ip",
|
|
586
|
+
prop: "ip",
|
|
587
|
+
label: "ip\u5730\u5740",
|
|
588
|
+
align: "left"
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
transKey: "gd.org.browser",
|
|
592
|
+
prop: "browser",
|
|
593
|
+
label: "\u6D4F\u89C8\u5668",
|
|
594
|
+
align: "left"
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
transKey: "gd.org.visTime",
|
|
598
|
+
prop: "vistime",
|
|
599
|
+
label: "\u8BBF\u95EE\u65F6\u95F4",
|
|
600
|
+
align: "center"
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
transKey: "gd.org.visitor",
|
|
604
|
+
prop: "account",
|
|
605
|
+
label: "\u8BBF\u95EE\u8005",
|
|
606
|
+
align: "left"
|
|
607
|
+
}
|
|
608
|
+
],
|
|
609
|
+
formColumns: [{
|
|
610
|
+
transKey: "gd.log.concreteMessage",
|
|
611
|
+
prop: "message",
|
|
612
|
+
effectType: "input",
|
|
613
|
+
label: "\u5177\u4F53\u6D88\u606F",
|
|
614
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
615
|
+
placeholderTransKey: "gd.placeholder.input",
|
|
616
|
+
rules: [{
|
|
617
|
+
required: !1,
|
|
618
|
+
message: "\u8BF7\u8F93\u5165",
|
|
619
|
+
transKey: "gd.placeholder.input",
|
|
620
|
+
trigger: "change"
|
|
621
|
+
}]
|
|
622
|
+
}],
|
|
623
|
+
tableButtons: [{
|
|
624
|
+
displayName: "\u6E05\u7A7A\u65E5\u5FD7",
|
|
625
|
+
functionName: "clearLog",
|
|
626
|
+
show: !0,
|
|
627
|
+
transKey: "gd.btn.clearLog",
|
|
628
|
+
icon: "el-icon-delete",
|
|
629
|
+
name: "sysVisLog:delete",
|
|
630
|
+
btnType: "danger"
|
|
631
|
+
}],
|
|
632
|
+
tableQueries: [{
|
|
633
|
+
transKey: "gd.log.logName",
|
|
634
|
+
prop: "name",
|
|
635
|
+
label: "\u65E5\u5FD7\u540D\u79F0",
|
|
636
|
+
effectType: "input",
|
|
637
|
+
rules: []
|
|
638
|
+
}, {
|
|
639
|
+
transKey: "gd.log.visType",
|
|
640
|
+
prop: "visType",
|
|
641
|
+
label: "\u8BBF\u95EE\u7C7B\u578B",
|
|
642
|
+
effectType: "select",
|
|
643
|
+
dictTypeCode: "visType",
|
|
644
|
+
rules: []
|
|
645
|
+
}, {
|
|
646
|
+
transKey: "gd.log.whether",
|
|
647
|
+
prop: "success",
|
|
648
|
+
label: "\u662F\u5426\u6210\u529F",
|
|
649
|
+
effectType: "select",
|
|
650
|
+
dictTypeCode: "success",
|
|
651
|
+
rules: []
|
|
652
|
+
}, {
|
|
653
|
+
transKey: "gd.log.visTime",
|
|
654
|
+
prop: "visTime",
|
|
655
|
+
label: "\u8BBF\u95EE\u65F6\u95F4",
|
|
656
|
+
effectType: "datepicker",
|
|
657
|
+
options: {
|
|
658
|
+
displayStyle: 0
|
|
659
|
+
},
|
|
660
|
+
rules: []
|
|
661
|
+
}]
|
|
662
|
+
};
|
|
663
|
+
}
|
|
664
|
+
}, R = {
|
|
665
|
+
name: "GdVislog",
|
|
666
|
+
props: {
|
|
667
|
+
height: {
|
|
668
|
+
type: Number,
|
|
669
|
+
default: 100
|
|
670
|
+
}
|
|
671
|
+
},
|
|
672
|
+
mixins: [i, B],
|
|
673
|
+
data() {
|
|
674
|
+
return {
|
|
675
|
+
transKey: "gd.btn.add",
|
|
676
|
+
queryParam: {},
|
|
677
|
+
selectedRowKeys: [],
|
|
678
|
+
selectedRows: [],
|
|
679
|
+
loadData: (t) => f(Object.assign(t, this.switchingDate())).then((e) => e.data)
|
|
680
|
+
};
|
|
681
|
+
},
|
|
682
|
+
computed: {
|
|
683
|
+
visTypeDict() {
|
|
684
|
+
return this.getDictionary("LoginType");
|
|
685
|
+
},
|
|
686
|
+
successDict() {
|
|
687
|
+
return this.getDictionary("YesOrNot");
|
|
688
|
+
},
|
|
689
|
+
getHeight() {
|
|
690
|
+
return this.height;
|
|
691
|
+
},
|
|
692
|
+
...o(["tablePageSize", "tableSize", "labelPosition", "formMode"])
|
|
693
|
+
},
|
|
694
|
+
mounted() {
|
|
695
|
+
},
|
|
696
|
+
methods: {
|
|
697
|
+
onSelectChange(t, e) {
|
|
698
|
+
this.selectedRowKeys = t, this.selectedRows = e;
|
|
699
|
+
},
|
|
700
|
+
editForm(t) {
|
|
701
|
+
this.transKey = "gd.log.detail", this.$refs.editForm.open(
|
|
702
|
+
Object.assign({
|
|
703
|
+
...t
|
|
704
|
+
})
|
|
705
|
+
);
|
|
706
|
+
},
|
|
707
|
+
saveQueries(t) {
|
|
708
|
+
console.log(t), this.queryParam = {
|
|
709
|
+
...t
|
|
710
|
+
}, this.refresh();
|
|
711
|
+
},
|
|
712
|
+
refresh() {
|
|
713
|
+
this.$refs.table.refresh();
|
|
714
|
+
},
|
|
715
|
+
doEvent(t) {
|
|
716
|
+
let e = t.item.functionName;
|
|
717
|
+
this[e] && this[e]();
|
|
718
|
+
},
|
|
719
|
+
clearLog() {
|
|
720
|
+
let t = this;
|
|
721
|
+
t.$confirm(t.$i18nt("gd.https.emptyContent", "\u662F\u5426\u6E05\u7A7A\u6570\u636E?"), t.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
|
|
722
|
+
confirmButtonText: t.$i18nt("gd.https.emptyOk", "\u786E\u8BA4\u6E05\u7A7A"),
|
|
723
|
+
cancelButtonText: t.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
724
|
+
showClose: !1,
|
|
725
|
+
confirmButtonLoading: !1,
|
|
726
|
+
cancelButtonLoading: !1,
|
|
727
|
+
closeOnClickModal: !1,
|
|
728
|
+
type: "warning",
|
|
729
|
+
confirmButtonClass: "el-button--danger",
|
|
730
|
+
customClass: "custom-alert",
|
|
731
|
+
callback: () => {
|
|
732
|
+
},
|
|
733
|
+
beforeClose: (e, a, s) => {
|
|
734
|
+
if (e !== "confirm")
|
|
735
|
+
s();
|
|
736
|
+
else
|
|
737
|
+
return new Promise((r, c) => {
|
|
738
|
+
w().then((l) => {
|
|
739
|
+
l.success ? (t.$message.success(t.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), t.$refs.table.refresh(!0)) : t.$message.error(t.$i18nt("gd.https.operateFail") + l.message), r(), s();
|
|
740
|
+
}).catch((l) => {
|
|
741
|
+
t.$message.error(t.$i18nt("gd.error.error") + l.message);
|
|
742
|
+
});
|
|
743
|
+
}).catch(() => console.log("Oops errors!"));
|
|
744
|
+
}
|
|
745
|
+
});
|
|
746
|
+
},
|
|
747
|
+
switchingDate() {
|
|
748
|
+
let t = /* @__PURE__ */ new Map();
|
|
749
|
+
for (let e in this.queryParam)
|
|
750
|
+
if (this.queryParam[e] && e === "visTime") {
|
|
751
|
+
if (this.queryParam[e].length > 0) {
|
|
752
|
+
let a = this.queryParam[e], s = a[0].split(" ")[0], r = a[1].split(" ")[0];
|
|
753
|
+
t.set(`${e}Start`, `${s} 00:00:00`), t.set(`${e}End`, `${r} 23:59:59`);
|
|
754
|
+
}
|
|
755
|
+
} else
|
|
756
|
+
t.set(e, this.queryParam[e]);
|
|
757
|
+
return Object.fromEntries(t);
|
|
758
|
+
},
|
|
759
|
+
visTypeFilter(t) {
|
|
760
|
+
const e = this.visTypeDict.filter((a) => a.code == t);
|
|
761
|
+
if (e.length > 0)
|
|
762
|
+
return e[0].value;
|
|
763
|
+
},
|
|
764
|
+
successFilter(t) {
|
|
765
|
+
const e = this.successDict.filter((a) => a.code == t);
|
|
766
|
+
if (e.length > 0)
|
|
767
|
+
return e[0].value;
|
|
768
|
+
},
|
|
769
|
+
getDictionary(t) {
|
|
770
|
+
return this.$options.filters.dictData(t);
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
};
|
|
774
|
+
var M = function() {
|
|
775
|
+
var e = this, a = e._self._c;
|
|
776
|
+
return a("div", { staticClass: "gd-page-view" }, [a("div", { staticClass: "page-view-list", staticStyle: { padding: "0px" } }, [a("gd-tables", { ref: "table", attrs: { dataSource: e.loadData, size: e.tableSize, pageSize: e.tablePageSize, columns: e.tableColumns, selectedRowKeys: e.selectedRowKeys, height: e.getHeight, filtering: !0 }, on: { onChange: e.onSelectChange }, scopedSlots: e._u([{ key: "name", fn: function({ column: s, row: r }) {
|
|
777
|
+
return [a("gd-tooltip", { attrs: { rowKey: "name", row: r, highlight: "" }, on: { click: e.editForm } })];
|
|
778
|
+
} }, { key: "visType", fn: function(s) {
|
|
779
|
+
return [a("span", [e._v(e._s(e.visTypeFilter(s.row.vistype)))])];
|
|
780
|
+
} }, { key: "success", fn: function(s) {
|
|
781
|
+
return [a("span", [e._v(e._s(e.successFilter(s.row.success)))])];
|
|
782
|
+
} }, { key: "visTime", fn: function({ column: s, row: r }) {
|
|
783
|
+
return [a("gd-tooltip", { attrs: { rowKey: "vistime", row: r } })];
|
|
784
|
+
} }, { key: "operator", fn: function() {
|
|
785
|
+
return [a("div", { staticClass: "gd-table-operator" }, [a("div", { staticClass: "gd-table-operatorl" }, [a("el-input", { staticClass: "table-operator-input", attrs: { placeholder: e.$i18nt("gd.log.logName", "\u65E5\u5FD7\u540D\u79F0"), clearable: "" }, nativeOn: { keyup: function(s) {
|
|
786
|
+
return !s.type.indexOf("key") && e._k(s.keyCode, "enter", 13, s.key, "Enter") ? null : e.refresh.apply(null, arguments);
|
|
787
|
+
} }, model: { value: e.queryParam.name, callback: function(s) {
|
|
788
|
+
e.$set(e.queryParam, "name", s);
|
|
789
|
+
}, expression: "queryParam.name" } }), a("div", { staticClass: "table-operator-search", on: { click: e.refresh } }, [a("i", { staticClass: "el-input__icon el-icon-search" })])], 1), a("div", { staticClass: "gd-table-operatorr" }, [a("gd-btn-list", { attrs: { sysViewButtons: e.tableButtons }, on: { functionName: e.doEvent } })], 1)])];
|
|
790
|
+
}, proxy: !0 }, { key: "filtering", fn: function({ colse: s, visible: r }) {
|
|
791
|
+
return [a("gd-table-queries-field", { attrs: { columns: e.tableQueries, height: e.getHeight, queryParam: e.queryParam, colse: s, visible: r }, on: { save: e.saveQueries } })];
|
|
792
|
+
} }]) })], 1), a("gd-edit-form", { ref: "editForm", attrs: { formItemWidth: "90%", transKey: e.transKey, columns: e.formColumns, labelPosition: e.labelPosition, formMode: e.formMode } })], 1);
|
|
793
|
+
}, E = [], z = /* @__PURE__ */ n(
|
|
794
|
+
R,
|
|
795
|
+
M,
|
|
796
|
+
E,
|
|
797
|
+
!1,
|
|
798
|
+
null,
|
|
799
|
+
null,
|
|
800
|
+
null,
|
|
801
|
+
null
|
|
802
|
+
);
|
|
803
|
+
const u = z.exports;
|
|
804
|
+
u.install = function(t) {
|
|
805
|
+
t.component(u.name, u);
|
|
806
|
+
};
|
|
807
|
+
const F = {
|
|
808
|
+
data() {
|
|
809
|
+
return {
|
|
810
|
+
tableColumns: [
|
|
811
|
+
{
|
|
812
|
+
type: "selection",
|
|
813
|
+
width: "60",
|
|
814
|
+
fixed: !0
|
|
815
|
+
},
|
|
816
|
+
{
|
|
817
|
+
transKey: "gd.log.operatorName",
|
|
818
|
+
prop: "name",
|
|
819
|
+
label: "\u65E5\u5FD7\u540D\u79F0",
|
|
820
|
+
type: "slot",
|
|
821
|
+
slotType: "name",
|
|
822
|
+
align: "left",
|
|
823
|
+
fixed: !0,
|
|
824
|
+
showOverflowTooltip: !0
|
|
825
|
+
},
|
|
826
|
+
{
|
|
827
|
+
transKey: "gd.org.operatorAccount",
|
|
828
|
+
prop: "account",
|
|
829
|
+
type: "slot",
|
|
830
|
+
slotType: "account",
|
|
831
|
+
label: "\u64CD\u4F5C\u4EBA\u5E10\u53F7 ",
|
|
832
|
+
align: "left",
|
|
833
|
+
showOverflowTooltip: !0
|
|
834
|
+
},
|
|
835
|
+
{
|
|
836
|
+
transKey: "gd.org.requestMethod",
|
|
837
|
+
prop: "reqMethod",
|
|
838
|
+
type: "slot",
|
|
839
|
+
slotType: "reqMethod",
|
|
840
|
+
label: "\u8BF7\u6C42\u65B9\u5F0F",
|
|
841
|
+
align: "left"
|
|
842
|
+
},
|
|
843
|
+
{
|
|
844
|
+
transKey: "gd.org.resultsExecution",
|
|
845
|
+
prop: "success",
|
|
846
|
+
type: "slot",
|
|
847
|
+
slotType: "success",
|
|
848
|
+
label: "\u6267\u884C\u7ED3\u679C",
|
|
849
|
+
align: "left"
|
|
850
|
+
},
|
|
851
|
+
{
|
|
852
|
+
transKey: "gd.org.ip",
|
|
853
|
+
prop: "ip",
|
|
854
|
+
label: "ip",
|
|
855
|
+
align: "left"
|
|
856
|
+
},
|
|
857
|
+
{
|
|
858
|
+
transKey: "gd.org.requestAddress",
|
|
859
|
+
prop: "url",
|
|
860
|
+
label: "\u8BF7\u6C42\u5730\u5740",
|
|
861
|
+
align: "center"
|
|
862
|
+
},
|
|
863
|
+
{
|
|
864
|
+
transKey: "gd.org.operationTime",
|
|
865
|
+
prop: "opTime",
|
|
866
|
+
slotType: "opTime",
|
|
867
|
+
label: "\u64CD\u4F5C\u65F6\u95F4",
|
|
868
|
+
align: "center"
|
|
869
|
+
}
|
|
870
|
+
],
|
|
871
|
+
formColumns: [{
|
|
872
|
+
transKey: "gd.log.methodName",
|
|
873
|
+
prop: "methodname",
|
|
874
|
+
effectType: "input",
|
|
875
|
+
label: "\u65B9\u6CD5\u540D\u79F0",
|
|
876
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
877
|
+
placeholderTransKey: "gd.placeholder.input",
|
|
878
|
+
rules: [{
|
|
879
|
+
required: !1,
|
|
880
|
+
message: "\u8BF7\u8F93\u5165",
|
|
881
|
+
transKey: "gd.placeholder.input",
|
|
882
|
+
trigger: "change"
|
|
883
|
+
}]
|
|
884
|
+
}, {
|
|
885
|
+
transKey: "gd.log.address",
|
|
886
|
+
prop: "location",
|
|
887
|
+
effectType: "input",
|
|
888
|
+
label: "\u5730\u5740",
|
|
889
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
890
|
+
placeholderTransKey: "gd.placeholder.input",
|
|
891
|
+
rules: [{
|
|
892
|
+
required: !1,
|
|
893
|
+
message: "\u8BF7\u8F93\u5165",
|
|
894
|
+
transKey: "gd.placeholder.input",
|
|
895
|
+
trigger: "change"
|
|
896
|
+
}]
|
|
897
|
+
}, {
|
|
898
|
+
transKey: "gd.log.browser",
|
|
899
|
+
prop: "browser",
|
|
900
|
+
effectType: "input",
|
|
901
|
+
label: "\u6D4F\u89C8\u5668",
|
|
902
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
903
|
+
placeholderTransKey: "gd.placeholder.input",
|
|
904
|
+
rules: [{
|
|
905
|
+
required: !1,
|
|
906
|
+
message: "\u8BF7\u8F93\u5165",
|
|
907
|
+
transKey: "gd.placeholder.input",
|
|
908
|
+
trigger: "change"
|
|
909
|
+
}]
|
|
910
|
+
}, {
|
|
911
|
+
transKey: "gd.log.operatingSystem",
|
|
912
|
+
prop: "os",
|
|
913
|
+
effectType: "input",
|
|
914
|
+
label: "\u64CD\u4F5C\u7CFB\u7EDF",
|
|
915
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
916
|
+
placeholderTransKey: "gd.placeholder.input",
|
|
917
|
+
rules: [{
|
|
918
|
+
required: !1,
|
|
919
|
+
message: "\u8BF7\u8F93\u5165",
|
|
920
|
+
transKey: "gd.placeholder.input",
|
|
921
|
+
trigger: "change"
|
|
922
|
+
}]
|
|
923
|
+
}, {
|
|
924
|
+
transKey: "gd.log.className",
|
|
925
|
+
prop: "classname",
|
|
926
|
+
effectType: "input",
|
|
927
|
+
label: "\u7C7B\u540D\u79F0",
|
|
928
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
929
|
+
placeholderTransKey: "gd.placeholder.input",
|
|
930
|
+
rules: [{
|
|
931
|
+
required: !1,
|
|
932
|
+
message: "\u8BF7\u8F93\u5165",
|
|
933
|
+
transKey: "gd.placeholder.input",
|
|
934
|
+
trigger: "change"
|
|
935
|
+
}]
|
|
936
|
+
}, {
|
|
937
|
+
transKey: "gd.log.concreteMessage",
|
|
938
|
+
prop: "message",
|
|
939
|
+
effectType: "input",
|
|
940
|
+
label: "\u5177\u4F53\u6D88\u606F",
|
|
941
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
942
|
+
placeholderTransKey: "gd.placeholder.input",
|
|
943
|
+
rules: [{
|
|
944
|
+
required: !1,
|
|
945
|
+
message: "\u8BF7\u8F93\u5165",
|
|
946
|
+
transKey: "gd.placeholder.input",
|
|
947
|
+
trigger: "change"
|
|
948
|
+
}]
|
|
949
|
+
}, {
|
|
950
|
+
transKey: "gd.log.requestParameters",
|
|
951
|
+
prop: "param",
|
|
952
|
+
effectType: "textarea",
|
|
953
|
+
label: "\u8BF7\u6C42\u53C2\u6570",
|
|
954
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
955
|
+
placeholderTransKey: "gd.placeholder.input",
|
|
956
|
+
rules: [],
|
|
957
|
+
autosize: {
|
|
958
|
+
minRows: 4,
|
|
959
|
+
maxRows: 6
|
|
960
|
+
}
|
|
961
|
+
}, {
|
|
962
|
+
transKey: "gd.log.returnResults",
|
|
963
|
+
prop: "result",
|
|
964
|
+
effectType: "textarea",
|
|
965
|
+
label: "\u8FD4\u56DE\u7ED3\u679C",
|
|
966
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
967
|
+
placeholderTransKey: "gd.placeholder.input",
|
|
968
|
+
rules: [],
|
|
969
|
+
autosize: {
|
|
970
|
+
minRows: 4,
|
|
971
|
+
maxRows: 6
|
|
972
|
+
}
|
|
973
|
+
}],
|
|
974
|
+
tableButtons: [{
|
|
975
|
+
displayName: "\u6E05\u7A7A\u65E5\u5FD7",
|
|
976
|
+
functionName: "clearLog",
|
|
977
|
+
show: !0,
|
|
978
|
+
transKey: "gd.btn.clearLog",
|
|
979
|
+
icon: "el-icon-delete",
|
|
980
|
+
name: "sysOpLog:delete",
|
|
981
|
+
btnType: "danger"
|
|
982
|
+
}],
|
|
983
|
+
tableQueries: [{
|
|
984
|
+
transKey: "gd.log.logName",
|
|
985
|
+
prop: "name",
|
|
986
|
+
label: "\u65E5\u5FD7\u540D\u79F0",
|
|
987
|
+
effectType: "input",
|
|
988
|
+
rules: []
|
|
989
|
+
}, {
|
|
990
|
+
transKey: "gd.log.requestMethod",
|
|
991
|
+
prop: "reqMethod",
|
|
992
|
+
label: "\u8BF7\u6C42\u65B9\u5F0F",
|
|
993
|
+
effectType: "select",
|
|
994
|
+
dictTypeCode: "reqMethod",
|
|
995
|
+
rules: []
|
|
996
|
+
}, {
|
|
997
|
+
transKey: "gd.log.whether",
|
|
998
|
+
prop: "success",
|
|
999
|
+
label: "\u6267\u884C\u7ED3\u679C",
|
|
1000
|
+
effectType: "select",
|
|
1001
|
+
dictTypeCode: "success",
|
|
1002
|
+
rules: []
|
|
1003
|
+
}, {
|
|
1004
|
+
transKey: "gd.log.opTime",
|
|
1005
|
+
prop: "search",
|
|
1006
|
+
label: "\u64CD\u4F5C\u65F6\u95F4",
|
|
1007
|
+
effectType: "datepicker",
|
|
1008
|
+
options: {
|
|
1009
|
+
displayStyle: 0
|
|
1010
|
+
},
|
|
1011
|
+
rules: []
|
|
1012
|
+
}]
|
|
1013
|
+
};
|
|
1014
|
+
}
|
|
1015
|
+
}, H = {
|
|
1016
|
+
name: "GdOplog",
|
|
1017
|
+
props: {
|
|
1018
|
+
height: {
|
|
1019
|
+
type: Number,
|
|
1020
|
+
default: 100
|
|
1021
|
+
}
|
|
1022
|
+
},
|
|
1023
|
+
mixins: [i, F],
|
|
1024
|
+
data() {
|
|
1025
|
+
return {
|
|
1026
|
+
transKey: "gd.btn.add",
|
|
1027
|
+
queryParam: {},
|
|
1028
|
+
selectedRowKeys: [],
|
|
1029
|
+
selectedRows: [],
|
|
1030
|
+
isShow: !1,
|
|
1031
|
+
loadData: (t) => y(Object.assign(t, this.switchingDate())).then((e) => e.data)
|
|
1032
|
+
};
|
|
1033
|
+
},
|
|
1034
|
+
computed: {
|
|
1035
|
+
reqMethodDict() {
|
|
1036
|
+
return this.getDictionary("HttpMethod");
|
|
1037
|
+
},
|
|
1038
|
+
successDict() {
|
|
1039
|
+
return this.getDictionary("YesOrNot");
|
|
1040
|
+
},
|
|
1041
|
+
getHeight() {
|
|
1042
|
+
return this.height;
|
|
1043
|
+
},
|
|
1044
|
+
...o(["tablePageSize", "tableSize", "labelPosition", "formMode"])
|
|
1045
|
+
},
|
|
1046
|
+
methods: {
|
|
1047
|
+
onSelectChange(t, e) {
|
|
1048
|
+
this.selectedRowKeys = t, this.selectedRows = e;
|
|
1049
|
+
},
|
|
1050
|
+
editForm(t) {
|
|
1051
|
+
this.transKey = "gd.log.detail", this.$refs.editForm.open(
|
|
1052
|
+
Object.assign({
|
|
1053
|
+
...t
|
|
1054
|
+
})
|
|
1055
|
+
);
|
|
1056
|
+
},
|
|
1057
|
+
saveQueries(t) {
|
|
1058
|
+
console.log(t), this.queryParam = {
|
|
1059
|
+
...t
|
|
1060
|
+
}, this.refresh();
|
|
1061
|
+
},
|
|
1062
|
+
refresh() {
|
|
1063
|
+
this.$refs.table.refresh();
|
|
1064
|
+
},
|
|
1065
|
+
doEvent(t) {
|
|
1066
|
+
let e = t.item.functionName;
|
|
1067
|
+
this[e] && this[e]();
|
|
1068
|
+
},
|
|
1069
|
+
clearLog() {
|
|
1070
|
+
let t = this;
|
|
1071
|
+
t.$confirm(t.$i18nt("gd.https.emptyContent", "\u662F\u5426\u6E05\u7A7A\u6570\u636E?"), t.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
|
|
1072
|
+
confirmButtonText: t.$i18nt("gd.https.emptyOk", "\u786E\u8BA4\u6E05\u7A7A"),
|
|
1073
|
+
cancelButtonText: t.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
1074
|
+
showClose: !1,
|
|
1075
|
+
confirmButtonLoading: !1,
|
|
1076
|
+
cancelButtonLoading: !1,
|
|
1077
|
+
closeOnClickModal: !1,
|
|
1078
|
+
type: "warning",
|
|
1079
|
+
confirmButtonClass: "el-button--danger",
|
|
1080
|
+
customClass: "custom-alert",
|
|
1081
|
+
callback: () => {
|
|
1082
|
+
},
|
|
1083
|
+
beforeClose: (e, a, s) => {
|
|
1084
|
+
if (e !== "confirm")
|
|
1085
|
+
s();
|
|
1086
|
+
else
|
|
1087
|
+
return new Promise((r, c) => {
|
|
1088
|
+
T().then((l) => {
|
|
1089
|
+
l.success ? (t.$message.success(t.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), t.$refs.table.refresh(!0)) : t.$message.error(t.$i18nt("gd.https.operateFail") + l.message), r(), s();
|
|
1090
|
+
}).catch((l) => {
|
|
1091
|
+
t.$message.error(t.$i18nt("gd.error.error") + l.message);
|
|
1092
|
+
});
|
|
1093
|
+
}).catch(() => console.log("Oops errors!"));
|
|
1094
|
+
}
|
|
1095
|
+
});
|
|
1096
|
+
},
|
|
1097
|
+
switchingDate() {
|
|
1098
|
+
let t = /* @__PURE__ */ new Map();
|
|
1099
|
+
for (let e in this.queryParam)
|
|
1100
|
+
if (this.queryParam[e] && e === "createdTime") {
|
|
1101
|
+
if (this.queryParam[e].length > 0) {
|
|
1102
|
+
let a = this.queryParam[e], s = a[0].split(" ")[0], r = a[1].split(" ")[0];
|
|
1103
|
+
t.set(`${e}BeginTime`, `${s} 00:00:00`), t.set(`${e}EndTime`, `${r} 23:59:59`);
|
|
1104
|
+
}
|
|
1105
|
+
} else
|
|
1106
|
+
t.set(e, this.queryParam[e]);
|
|
1107
|
+
return Object.fromEntries(t);
|
|
1108
|
+
},
|
|
1109
|
+
successFilter(t) {
|
|
1110
|
+
const e = this.successDict.filter((a) => a.code == t);
|
|
1111
|
+
if (e.length > 0)
|
|
1112
|
+
return e[0].value;
|
|
1113
|
+
},
|
|
1114
|
+
getDictionary(t) {
|
|
1115
|
+
return this.$options.filters.dictData(t);
|
|
1116
|
+
}
|
|
1117
|
+
}
|
|
1118
|
+
};
|
|
1119
|
+
var Q = function() {
|
|
1120
|
+
var e = this, a = e._self._c;
|
|
1121
|
+
return a("div", { staticClass: "gd-page-view" }, [a("div", { staticClass: "page-view-list", staticStyle: { padding: "0px" } }, [a("gd-tables", { ref: "table", attrs: { dataSource: e.loadData, size: e.tableSize, pageSize: e.tablePageSize, columns: e.tableColumns, selectedRowKeys: e.selectedRowKeys, height: e.getHeight, filtering: !1 }, on: { onChange: e.onSelectChange }, scopedSlots: e._u([{ key: "name", fn: function({ column: s, row: r }) {
|
|
1122
|
+
return [a("gd-tooltip", { attrs: { rowKey: "name", row: r, highlight: "" }, on: { click: e.editForm } })];
|
|
1123
|
+
} }, { key: "url", fn: function({ column: s, row: r }) {
|
|
1124
|
+
return [a("gd-tooltip", { attrs: { rowKey: "url", row: r } })];
|
|
1125
|
+
} }, { key: "opTime", fn: function({ column: s, row: r }) {
|
|
1126
|
+
return [a("gd-tooltip", { attrs: { rowKey: "optime", row: r } })];
|
|
1127
|
+
} }, { key: "success", fn: function(s) {
|
|
1128
|
+
return [a("span", [e._v(e._s(e.successFilter(s.row.success)))])];
|
|
1129
|
+
} }, { key: "operator", fn: function() {
|
|
1130
|
+
return [a("div", { staticClass: "gd-table-operator" }, [a("div", { staticClass: "gd-table-operatorr" }, [a("gd-btn-list", { attrs: { sysViewButtons: e.tableButtons }, on: { functionName: e.doEvent } })], 1)])];
|
|
1131
|
+
}, proxy: !0 }, e.isShow ? { key: "filtering", fn: function({ colse: s, visible: r }) {
|
|
1132
|
+
return [a("gd-table-queries-field", { attrs: { columns: e.tableQueries, height: e.getHeight, queryParam: e.queryParam, colse: s, visible: r }, on: { save: e.saveQueries } })];
|
|
1133
|
+
} } : null], null, !0) })], 1), a("gd-edit-form", { ref: "editForm", attrs: { formItemWidth: "90%", transKey: e.transKey, columns: e.formColumns, labelPosition: e.labelPosition, formMode: e.formMode } })], 1);
|
|
1134
|
+
}, j = [], V = /* @__PURE__ */ n(
|
|
1135
|
+
H,
|
|
1136
|
+
Q,
|
|
1137
|
+
j,
|
|
1138
|
+
!1,
|
|
1139
|
+
null,
|
|
1140
|
+
null,
|
|
1141
|
+
null,
|
|
1142
|
+
null
|
|
1143
|
+
);
|
|
1144
|
+
const g = V.exports;
|
|
1145
|
+
g.install = function(t) {
|
|
1146
|
+
t.component(g.name, g);
|
|
1147
|
+
};
|
|
1148
|
+
const G = {
|
|
1149
|
+
data() {
|
|
1150
|
+
return {
|
|
1151
|
+
tableColumns: [
|
|
1152
|
+
{
|
|
1153
|
+
type: "selection",
|
|
1154
|
+
width: "60",
|
|
1155
|
+
fixed: !0
|
|
1156
|
+
},
|
|
1157
|
+
{
|
|
1158
|
+
transKey: "gd.log.eventid",
|
|
1159
|
+
prop: "eventid",
|
|
1160
|
+
label: "\u4E8B\u4EF6id",
|
|
1161
|
+
width: "240",
|
|
1162
|
+
align: "left",
|
|
1163
|
+
renderHeader: (t, ...e) => this.renderHeader(t, ...e, {
|
|
1164
|
+
effectType: "input"
|
|
1165
|
+
})
|
|
1166
|
+
},
|
|
1167
|
+
{
|
|
1168
|
+
transKey: "gd.org.state",
|
|
1169
|
+
prop: "state",
|
|
1170
|
+
width: "120",
|
|
1171
|
+
type: "slot",
|
|
1172
|
+
slotType: "state",
|
|
1173
|
+
label: "\u72B6\u6001",
|
|
1174
|
+
align: "left"
|
|
1175
|
+
},
|
|
1176
|
+
{
|
|
1177
|
+
transKey: "gd.org.payload",
|
|
1178
|
+
prop: "payload",
|
|
1179
|
+
label: "\u8BF7\u6C42\u5185\u5BB9",
|
|
1180
|
+
type: "slot",
|
|
1181
|
+
slotType: "payload",
|
|
1182
|
+
align: "left",
|
|
1183
|
+
width: "300",
|
|
1184
|
+
showTooltip: !1
|
|
1185
|
+
},
|
|
1186
|
+
{
|
|
1187
|
+
transKey: "gd.org.message",
|
|
1188
|
+
prop: "message",
|
|
1189
|
+
type: "slot",
|
|
1190
|
+
slotType: "message",
|
|
1191
|
+
width: "200",
|
|
1192
|
+
label: "\u8FD4\u56DE\u6D88\u606F",
|
|
1193
|
+
align: "left",
|
|
1194
|
+
showTooltip: !1
|
|
1195
|
+
},
|
|
1196
|
+
{
|
|
1197
|
+
transKey: "gd.org.stackTrace",
|
|
1198
|
+
prop: "stacktrace",
|
|
1199
|
+
type: "slot",
|
|
1200
|
+
slotType: "stacktrace",
|
|
1201
|
+
width: "200",
|
|
1202
|
+
label: "\u9519\u8BEF\u8DDF\u8E2A",
|
|
1203
|
+
align: "left",
|
|
1204
|
+
showTooltip: !1
|
|
1205
|
+
},
|
|
1206
|
+
{
|
|
1207
|
+
transKey: "gd.org.createdTime",
|
|
1208
|
+
prop: "createdTime",
|
|
1209
|
+
width: "200",
|
|
1210
|
+
type: "slot",
|
|
1211
|
+
slotType: "createdTime",
|
|
1212
|
+
label: "\u521B\u5EFA\u65F6\u95F4",
|
|
1213
|
+
align: "left"
|
|
1214
|
+
},
|
|
1215
|
+
{
|
|
1216
|
+
transKey: "gd.org.endedTime",
|
|
1217
|
+
prop: "endedTime",
|
|
1218
|
+
width: "200",
|
|
1219
|
+
type: "slot",
|
|
1220
|
+
slotType: "endedTime",
|
|
1221
|
+
label: "\u7ED3\u675F\u65F6\u95F4",
|
|
1222
|
+
align: "left"
|
|
1223
|
+
}
|
|
1224
|
+
],
|
|
1225
|
+
formColumns: [{
|
|
1226
|
+
transKey: "gd.log.methodName",
|
|
1227
|
+
prop: "methodName",
|
|
1228
|
+
effectType: "input",
|
|
1229
|
+
label: "\u65B9\u6CD5\u540D",
|
|
1230
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
1231
|
+
placeholderTransKey: "gd.placeholder.input",
|
|
1232
|
+
rules: [{
|
|
1233
|
+
required: !1,
|
|
1234
|
+
message: "\u8BF7\u8F93\u5165",
|
|
1235
|
+
transKey: "gd.placeholder.input",
|
|
1236
|
+
trigger: "change"
|
|
1237
|
+
}]
|
|
1238
|
+
}, {
|
|
1239
|
+
transKey: "gd.log.className",
|
|
1240
|
+
prop: "className",
|
|
1241
|
+
effectType: "input",
|
|
1242
|
+
label: "\u7C7B\u540D",
|
|
1243
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
1244
|
+
placeholderTransKey: "gd.placeholder.input",
|
|
1245
|
+
rules: [{
|
|
1246
|
+
required: !1,
|
|
1247
|
+
message: "\u8BF7\u8F93\u5165",
|
|
1248
|
+
transKey: "gd.placeholder.input",
|
|
1249
|
+
trigger: "change"
|
|
1250
|
+
}]
|
|
1251
|
+
}, {
|
|
1252
|
+
transKey: "gd.log.exceptionName",
|
|
1253
|
+
prop: "exceptionName",
|
|
1254
|
+
effectType: "input",
|
|
1255
|
+
label: "\u5F02\u5E38\u540D\u79F0",
|
|
1256
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
1257
|
+
placeholderTransKey: "gd.placeholder.input",
|
|
1258
|
+
rules: [{
|
|
1259
|
+
required: !1,
|
|
1260
|
+
message: "\u8BF7\u8F93\u5165",
|
|
1261
|
+
transKey: "gd.placeholder.input",
|
|
1262
|
+
trigger: "change"
|
|
1263
|
+
}]
|
|
1264
|
+
}, {
|
|
1265
|
+
transKey: "gd.log.exceptionMsg",
|
|
1266
|
+
prop: "exceptionMsg",
|
|
1267
|
+
effectType: "textarea",
|
|
1268
|
+
label: "\u5F02\u5E38\u4FE1\u606F",
|
|
1269
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
1270
|
+
placeholderTransKey: "gd.placeholder.input",
|
|
1271
|
+
rules: [],
|
|
1272
|
+
autosize: {
|
|
1273
|
+
minRows: 4,
|
|
1274
|
+
maxRows: 6
|
|
1275
|
+
}
|
|
1276
|
+
}],
|
|
1277
|
+
tableButtons: [{
|
|
1278
|
+
displayName: "\u6E05\u7A7A\u65E5\u5FD7",
|
|
1279
|
+
functionName: "clearLog",
|
|
1280
|
+
show: !0,
|
|
1281
|
+
transKey: "gd.btn.clearLog",
|
|
1282
|
+
icon: "el-icon-delete",
|
|
1283
|
+
name: "sysEvtLog:delete",
|
|
1284
|
+
btnType: "danger"
|
|
1285
|
+
}],
|
|
1286
|
+
tableQueries: [
|
|
1287
|
+
{
|
|
1288
|
+
transKey: "gd.log.eventid",
|
|
1289
|
+
prop: "eventId",
|
|
1290
|
+
label: "\u4E8B\u4EF6id",
|
|
1291
|
+
effectType: "input",
|
|
1292
|
+
rules: []
|
|
1293
|
+
},
|
|
1294
|
+
{
|
|
1295
|
+
transKey: "gd.log.state",
|
|
1296
|
+
prop: "state",
|
|
1297
|
+
label: "\u72B6\u6001",
|
|
1298
|
+
effectType: "select",
|
|
1299
|
+
dictTypeCode: "event_status",
|
|
1300
|
+
rules: []
|
|
1301
|
+
},
|
|
1302
|
+
{
|
|
1303
|
+
transKey: "gd.log.startTime",
|
|
1304
|
+
prop: "CreateTime",
|
|
1305
|
+
label: "\u5F00\u59CB\u65F6\u95F4",
|
|
1306
|
+
effectType: "datepicker",
|
|
1307
|
+
options: {
|
|
1308
|
+
displayStyle: 0
|
|
1309
|
+
},
|
|
1310
|
+
rules: []
|
|
1311
|
+
}
|
|
1312
|
+
]
|
|
1313
|
+
};
|
|
1314
|
+
}
|
|
1315
|
+
}, A = {
|
|
1316
|
+
name: "GdEvtlog",
|
|
1317
|
+
props: {
|
|
1318
|
+
height: {
|
|
1319
|
+
type: Number,
|
|
1320
|
+
default: 100
|
|
1321
|
+
}
|
|
1322
|
+
},
|
|
1323
|
+
mixins: [i, G],
|
|
1324
|
+
data() {
|
|
1325
|
+
return {
|
|
1326
|
+
transKey: "gd.btn.add",
|
|
1327
|
+
queryParam: {},
|
|
1328
|
+
selectedRowKeys: [],
|
|
1329
|
+
selectedRows: [],
|
|
1330
|
+
loadData: (t) => b(Object.assign(t, this.switchingDate())).then((e) => e.data)
|
|
1331
|
+
};
|
|
1332
|
+
},
|
|
1333
|
+
computed: {
|
|
1334
|
+
getHeight() {
|
|
1335
|
+
return this.height;
|
|
1336
|
+
},
|
|
1337
|
+
...o(["tablePageSize", "tableSize", "labelPosition", "formMode"])
|
|
1338
|
+
},
|
|
1339
|
+
methods: {
|
|
1340
|
+
onSelectChange(t, e) {
|
|
1341
|
+
this.selectedRowKeys = t, this.selectedRows = e;
|
|
1342
|
+
},
|
|
1343
|
+
editForm(t) {
|
|
1344
|
+
this.transKey = "gd.log.detail", this.$refs.editForm.open(
|
|
1345
|
+
Object.assign({
|
|
1346
|
+
...t
|
|
1347
|
+
})
|
|
1348
|
+
);
|
|
1349
|
+
},
|
|
1350
|
+
saveQueries(t) {
|
|
1351
|
+
this.queryParam = {
|
|
1352
|
+
...t
|
|
1353
|
+
}, this.refresh();
|
|
1354
|
+
},
|
|
1355
|
+
switchingDate() {
|
|
1356
|
+
let t = /* @__PURE__ */ new Map();
|
|
1357
|
+
for (let e in this.queryParam)
|
|
1358
|
+
if (this.queryParam[e] && e === "createdTime") {
|
|
1359
|
+
if (this.queryParam[e].length > 0) {
|
|
1360
|
+
let a = this.queryParam[e], s = a[0].split(" ")[0], r = a[1].split(" ")[0];
|
|
1361
|
+
t.set(`${e}Start`, `${s} 00:00:00`), t.set(`${e}End`, `${r} 23:59:59`);
|
|
1362
|
+
}
|
|
1363
|
+
} else
|
|
1364
|
+
t.set(e, this.queryParam[e]);
|
|
1365
|
+
return Object.fromEntries(t);
|
|
1366
|
+
},
|
|
1367
|
+
refresh() {
|
|
1368
|
+
this.$refs.table.refresh();
|
|
1369
|
+
},
|
|
1370
|
+
doEvent(t) {
|
|
1371
|
+
let e = t.item.functionName;
|
|
1372
|
+
this[e] && this[e]();
|
|
1373
|
+
},
|
|
1374
|
+
clearLog() {
|
|
1375
|
+
let t = this;
|
|
1376
|
+
t.$confirm(t.$i18nt("gd.https.emptyContent", "\u662F\u5426\u6E05\u7A7A\u6570\u636E?"), t.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
|
|
1377
|
+
confirmButtonText: t.$i18nt("gd.https.emptyOk", "\u786E\u8BA4\u6E05\u7A7A"),
|
|
1378
|
+
cancelButtonText: t.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
1379
|
+
showClose: !1,
|
|
1380
|
+
confirmButtonLoading: !1,
|
|
1381
|
+
cancelButtonLoading: !1,
|
|
1382
|
+
closeOnClickModal: !1,
|
|
1383
|
+
type: "warning",
|
|
1384
|
+
confirmButtonClass: "el-button--danger",
|
|
1385
|
+
customClass: "custom-alert",
|
|
1386
|
+
callback: () => {
|
|
1387
|
+
},
|
|
1388
|
+
beforeClose: (e, a, s) => {
|
|
1389
|
+
if (e !== "confirm")
|
|
1390
|
+
s();
|
|
1391
|
+
else
|
|
1392
|
+
return new Promise((r, c) => {
|
|
1393
|
+
v().then((l) => {
|
|
1394
|
+
l.success ? (t.$message.success(t.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), t.$refs.table.refresh(!0)) : t.$message.error(t.$i18nt("gd.https.operateFail") + l.message), r(), s();
|
|
1395
|
+
}).catch((l) => {
|
|
1396
|
+
t.$message.error(t.$i18nt("gd.error.error") + l.message);
|
|
1397
|
+
});
|
|
1398
|
+
}).catch(() => console.log("Oops errors!"));
|
|
1399
|
+
}
|
|
1400
|
+
});
|
|
1401
|
+
},
|
|
1402
|
+
getDictionary(t) {
|
|
1403
|
+
return this.$options.filters.dictData(t);
|
|
1404
|
+
}
|
|
1405
|
+
}
|
|
1406
|
+
};
|
|
1407
|
+
var I = function() {
|
|
1408
|
+
var e = this, a = e._self._c;
|
|
1409
|
+
return a("div", { staticClass: "gd-page-view" }, [a("div", { staticClass: "page-view-list", staticStyle: { padding: "0px" } }, [a("gd-tables", { ref: "table", attrs: { dataSource: e.loadData, size: e.tableSize, pageSize: e.tablePageSize, columns: e.tableColumns, selectedRowKeys: e.selectedRowKeys, height: e.getHeight, filtering: !0 }, on: { onChange: e.onSelectChange }, scopedSlots: e._u([{ key: "state", fn: function(s) {
|
|
1410
|
+
return [a("span", [e._v(" " + e._s(e._f("dictType")("event_status", s.row.state)) + " ")])];
|
|
1411
|
+
} }, { key: "message", fn: function({ column: s, row: r }) {
|
|
1412
|
+
return [a("gd-tooltip", { attrs: { rowKey: "message", row: r, disabled: !1 } })];
|
|
1413
|
+
} }, { key: "payload", fn: function({ column: s, row: r }) {
|
|
1414
|
+
return [a("gd-tooltip", { attrs: { rowKey: "payload", align: "left", row: r, disabled: !1 } })];
|
|
1415
|
+
} }, { key: "stacktrace", fn: function({ column: s, row: r }) {
|
|
1416
|
+
return [a("gd-tooltip", { attrs: { rowKey: "stacktrace", row: r, disabled: !1 } })];
|
|
1417
|
+
} }, { key: "createdTime", fn: function({ column: s, row: r }) {
|
|
1418
|
+
return [a("gd-tooltip", { attrs: { rowKey: "createdtime", row: r } })];
|
|
1419
|
+
} }, { key: "endedTime", fn: function({ column: s, row: r }) {
|
|
1420
|
+
return [a("gd-tooltip", { attrs: { rowKey: "endedtime", row: r } })];
|
|
1421
|
+
} }, { key: "operator", fn: function() {
|
|
1422
|
+
return [a("div", { staticClass: "gd-table-operator" }, [a("div", { staticClass: "gd-table-operatorl" }, [a("el-input", { staticClass: "table-operator-input", attrs: { placeholder: e.$i18nt("gd.log.eventId", "\u4E8B\u4EF6id"), clearable: "" }, nativeOn: { keyup: function(s) {
|
|
1423
|
+
return !s.type.indexOf("key") && e._k(s.keyCode, "enter", 13, s.key, "Enter") ? null : e.refresh.apply(null, arguments);
|
|
1424
|
+
} }, model: { value: e.queryParam.eventid, callback: function(s) {
|
|
1425
|
+
e.$set(e.queryParam, "eventid", s);
|
|
1426
|
+
}, expression: "queryParam.eventid" } }), a("div", { staticClass: "table-operator-search", on: { click: e.refresh } }, [a("i", { staticClass: "el-input__icon el-icon-search" })])], 1), a("div", { staticClass: "gd-table-operatorr" }, [a("gd-btn-list", { attrs: { sysViewButtons: e.tableButtons }, on: { functionName: e.doEvent } })], 1)])];
|
|
1427
|
+
}, proxy: !0 }, { key: "filtering", fn: function({ colse: s, visible: r }) {
|
|
1428
|
+
return [a("gd-table-queries-field", { attrs: { columns: e.tableQueries, height: e.getHeight, queryParam: e.queryParam, colse: s, visible: r }, on: { save: e.saveQueries } })];
|
|
1429
|
+
} }]) })], 1)]);
|
|
1430
|
+
}, W = [], Y = /* @__PURE__ */ n(
|
|
1431
|
+
A,
|
|
1432
|
+
I,
|
|
1433
|
+
W,
|
|
1434
|
+
!1,
|
|
1435
|
+
null,
|
|
1436
|
+
null,
|
|
1437
|
+
null,
|
|
1438
|
+
null
|
|
1439
|
+
);
|
|
1440
|
+
const m = Y.exports;
|
|
1441
|
+
m.install = function(t) {
|
|
1442
|
+
t.component(m.name, m);
|
|
1443
|
+
};
|
|
1444
|
+
export {
|
|
1445
|
+
d as G,
|
|
1446
|
+
p as a,
|
|
1447
|
+
u as b,
|
|
1448
|
+
g as c,
|
|
1449
|
+
m as d
|
|
1450
|
+
};
|