dlzn-ui 2.0.28 → 2.0.31
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/package.json +1 -1
- package/views/index.mjs +2 -0
- package/views/monitor/logininfor/index.mjs +32 -32
- package/views/monitor/online/index.mjs +82 -0
- package/views/monitor/online/index.vue.d.ts +3 -0
- package/views/monitor/operlog/index.mjs +46 -46
- package/views/monitor/server/index.mjs +216 -0
- package/views/monitor/server/index.vue.d.ts +3 -0
- package/views/system/config/index.mjs +47 -46
- package/views/system/notice/index.mjs +41 -40
package/package.json
CHANGED
package/views/index.mjs
CHANGED
|
@@ -2,7 +2,9 @@ import e from "virtual:dlzn-ui/app-params";
|
|
|
2
2
|
var t = {
|
|
3
3
|
.../* @__PURE__ */ Object.assign({
|
|
4
4
|
"./monitor/logininfor/index.vue": () => import("./monitor/logininfor/index.mjs"),
|
|
5
|
+
"./monitor/online/index.vue": () => import("./monitor/online/index.mjs"),
|
|
5
6
|
"./monitor/operlog/index.vue": () => import("./monitor/operlog/index.mjs"),
|
|
7
|
+
"./monitor/server/index.vue": () => import("./monitor/server/index.mjs"),
|
|
6
8
|
"./system/config/index.vue": () => import("./system/config/index.mjs"),
|
|
7
9
|
"./system/dept/index.vue": () => import("./system/dept/index.mjs"),
|
|
8
10
|
"./system/dict/index.vue": () => import("./system/dict/index.mjs"),
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { S as e } from "../../../chunks/provider-BhFm5rvy.mjs";
|
|
2
|
+
import { t } from "../../../chunks/page-list-DUYDkWcj.mjs";
|
|
3
|
+
import "../../../components/page-list/index.mjs";
|
|
4
|
+
import { createBlock as n, defineComponent as r, mergeProps as i, openBlock as a, reactive as o, ref as s, unref as c, useTemplateRef as l } from "vue";
|
|
2
5
|
//#endregion
|
|
3
6
|
//#region ../../packages/dlzn-ui/views/monitor/logininfor/index.vue
|
|
4
|
-
var
|
|
7
|
+
var u = /* @__PURE__ */ r({
|
|
5
8
|
__name: "index",
|
|
6
|
-
setup(
|
|
7
|
-
let
|
|
9
|
+
setup(r) {
|
|
10
|
+
let u = l("pageListRef"), d = s({
|
|
8
11
|
descending: !0,
|
|
9
12
|
sortBy: "loginTime"
|
|
10
|
-
}),
|
|
13
|
+
}), f = {
|
|
11
14
|
dateRange: {
|
|
12
15
|
_class: "col-span-2",
|
|
13
16
|
_label: "登录时间",
|
|
@@ -31,7 +34,7 @@ var a = /* @__PURE__ */ t({
|
|
|
31
34
|
component: "TInput",
|
|
32
35
|
model: "userName"
|
|
33
36
|
}
|
|
34
|
-
},
|
|
37
|
+
}, p = {
|
|
35
38
|
apis: {
|
|
36
39
|
delete: {
|
|
37
40
|
method: "monitor/logininfor",
|
|
@@ -42,14 +45,14 @@ var a = /* @__PURE__ */ t({
|
|
|
42
45
|
method: "monitor/logininfor/export",
|
|
43
46
|
permission: "monitor:logininfor:export"
|
|
44
47
|
},
|
|
45
|
-
list: { method: (
|
|
46
|
-
...
|
|
48
|
+
list: { method: (t) => e.Get("monitor/logininfor/list", { params: {
|
|
49
|
+
...t,
|
|
47
50
|
dateRange: void 0,
|
|
48
|
-
"params[beginTime]":
|
|
49
|
-
"params[endTime]":
|
|
50
|
-
...
|
|
51
|
-
isAsc:
|
|
52
|
-
orderByColumn:
|
|
51
|
+
"params[beginTime]": t.dateRange[0],
|
|
52
|
+
"params[endTime]": t.dateRange[1],
|
|
53
|
+
...d.value ? {
|
|
54
|
+
isAsc: d.value.descending ? "descending" : "ascending",
|
|
55
|
+
orderByColumn: d.value.sortBy
|
|
53
56
|
} : {}
|
|
54
57
|
} }) }
|
|
55
58
|
},
|
|
@@ -98,13 +101,13 @@ var a = /* @__PURE__ */ t({
|
|
|
98
101
|
},
|
|
99
102
|
{
|
|
100
103
|
cell: {
|
|
101
|
-
buttons: [({ row:
|
|
104
|
+
buttons: [({ row: t }) => ({
|
|
102
105
|
default: "解锁",
|
|
103
106
|
permission: "monitor:logininfor:unlock",
|
|
104
107
|
popconfirm: {
|
|
105
|
-
content: `是否确认解锁用户${
|
|
108
|
+
content: `是否确认解锁用户${t.userName}数据项?`,
|
|
106
109
|
onConfirm: async () => {
|
|
107
|
-
await
|
|
110
|
+
await e.Get(`monitor/logininfor/unlock/${t.userName}`, { meta: { useSuccessMsg: !0 } });
|
|
108
111
|
}
|
|
109
112
|
}
|
|
110
113
|
})],
|
|
@@ -115,10 +118,10 @@ var a = /* @__PURE__ */ t({
|
|
|
115
118
|
}
|
|
116
119
|
],
|
|
117
120
|
formItems: [
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
121
|
+
f.ipaddr,
|
|
122
|
+
f.userName,
|
|
123
|
+
f.status,
|
|
124
|
+
f.dateRange
|
|
122
125
|
],
|
|
123
126
|
operations: [{
|
|
124
127
|
default: "清空",
|
|
@@ -126,26 +129,23 @@ var a = /* @__PURE__ */ t({
|
|
|
126
129
|
popconfirm: {
|
|
127
130
|
content: "是否确认清空所有登录日志数据项?",
|
|
128
131
|
onConfirm: async () => {
|
|
129
|
-
await
|
|
132
|
+
await e.Delete("monitor/logininfor/clean", void 0, { meta: { useSuccessMsg: !0 } }), u.value.reset();
|
|
130
133
|
}
|
|
131
134
|
}
|
|
132
135
|
}],
|
|
133
|
-
tableOtherProps:
|
|
136
|
+
tableOtherProps: o({
|
|
134
137
|
onSortChange: (e) => {
|
|
135
|
-
|
|
138
|
+
d.value = e, u.value.query();
|
|
136
139
|
},
|
|
137
140
|
rowKey: "infoId",
|
|
138
|
-
sort:
|
|
141
|
+
sort: d
|
|
139
142
|
})
|
|
140
143
|
};
|
|
141
|
-
return (
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
ref: a
|
|
146
|
-
}, c), null, 16);
|
|
147
|
-
};
|
|
144
|
+
return (e, r) => (a(), n(c(t), i({
|
|
145
|
+
ref_key: "pageListRef",
|
|
146
|
+
ref: u
|
|
147
|
+
}, p), null, 16));
|
|
148
148
|
}
|
|
149
149
|
});
|
|
150
150
|
//#endregion
|
|
151
|
-
export {
|
|
151
|
+
export { u as default };
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { S as e } from "../../../chunks/provider-BhFm5rvy.mjs";
|
|
2
|
+
import { t } from "../../../chunks/page-list-DUYDkWcj.mjs";
|
|
3
|
+
import "../../../components/page-list/index.mjs";
|
|
4
|
+
import { createBlock as n, defineComponent as r, mergeProps as i, openBlock as a, unref as o, useTemplateRef as s } from "vue";
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region ../../packages/dlzn-ui/views/monitor/online/index.vue
|
|
7
|
+
var c = /* @__PURE__ */ r({
|
|
8
|
+
__name: "index",
|
|
9
|
+
setup(r) {
|
|
10
|
+
let c = s("pageListRef"), l = {
|
|
11
|
+
ipaddr: {
|
|
12
|
+
_label: "登录地址",
|
|
13
|
+
component: "TInput",
|
|
14
|
+
model: "ipaddr"
|
|
15
|
+
},
|
|
16
|
+
userName: {
|
|
17
|
+
_label: "用户名称",
|
|
18
|
+
component: "TInput",
|
|
19
|
+
model: "userName"
|
|
20
|
+
}
|
|
21
|
+
}, u = {
|
|
22
|
+
apis: { list: { method: "monitor/online/list" } },
|
|
23
|
+
columns: [
|
|
24
|
+
{
|
|
25
|
+
colKey: "tokenId",
|
|
26
|
+
title: "会话编号"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
colKey: "userName",
|
|
30
|
+
title: "登录名称"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
colKey: "deptName",
|
|
34
|
+
title: "所属部门"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
colKey: "ipaddr",
|
|
38
|
+
title: "主机"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
colKey: "loginLocation",
|
|
42
|
+
title: "登录地点"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
colKey: "os",
|
|
46
|
+
title: "操作系统"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
colKey: "browser",
|
|
50
|
+
title: "浏览器"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
colKey: "loginTime",
|
|
54
|
+
title: "登录时间"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
cell: {
|
|
58
|
+
buttons: [({ row: t }) => ({
|
|
59
|
+
default: "强退",
|
|
60
|
+
popconfirm: {
|
|
61
|
+
content: `是否确认强退名称为${t.userName}的用户?`,
|
|
62
|
+
onConfirm: async () => {
|
|
63
|
+
await e.Delete(`monitor/online/${t.tokenId}`, void 0, { meta: { useSuccessMsg: !0 } }), c.value.query();
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
})],
|
|
67
|
+
component: "Buttons"
|
|
68
|
+
},
|
|
69
|
+
colKey: "_operation",
|
|
70
|
+
title: "操作"
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
formItems: [l.ipaddr, l.userName]
|
|
74
|
+
};
|
|
75
|
+
return (e, r) => (a(), n(o(t), i({
|
|
76
|
+
ref_key: "pageListRef",
|
|
77
|
+
ref: c
|
|
78
|
+
}, u), null, 16));
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
//#endregion
|
|
82
|
+
export { c as default };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { I as e, S as t, o as n } from "../../../chunks/provider-BhFm5rvy.mjs";
|
|
2
|
+
import { t as r } from "../../../chunks/page-list-DUYDkWcj.mjs";
|
|
3
|
+
import "../../../components/page-list/index.mjs";
|
|
4
|
+
import { createBlock as i, defineComponent as a, h as o, mergeProps as s, openBlock as c, reactive as l, ref as u, unref as d, useTemplateRef as f, watch as p } from "vue";
|
|
2
5
|
//#endregion
|
|
3
6
|
//#region ../../packages/dlzn-ui/views/monitor/operlog/index.vue
|
|
4
|
-
var
|
|
7
|
+
var m = /* @__PURE__ */ a({
|
|
5
8
|
__name: "index",
|
|
6
|
-
setup(
|
|
7
|
-
let
|
|
9
|
+
setup(a) {
|
|
10
|
+
let m = f("pageListRef"), h = u({
|
|
8
11
|
descending: !0,
|
|
9
12
|
sortBy: "operTime"
|
|
10
|
-
}),
|
|
13
|
+
}), g = {
|
|
11
14
|
businessType: {
|
|
12
15
|
_label: "操作类型",
|
|
13
16
|
component: "TSelect",
|
|
@@ -84,7 +87,7 @@ var a = /* @__PURE__ */ t({
|
|
|
84
87
|
component: "TInput",
|
|
85
88
|
model: "title"
|
|
86
89
|
}
|
|
87
|
-
},
|
|
90
|
+
}, _ = {
|
|
88
91
|
apis: {
|
|
89
92
|
delete: {
|
|
90
93
|
method: "monitor/operlog",
|
|
@@ -95,14 +98,14 @@ var a = /* @__PURE__ */ t({
|
|
|
95
98
|
method: "monitor/operlog/export",
|
|
96
99
|
permission: "monitor:operlog:export"
|
|
97
100
|
},
|
|
98
|
-
list: { method: (e) =>
|
|
101
|
+
list: { method: (e) => t.Get("monitor/operlog/list", { params: {
|
|
99
102
|
...e,
|
|
100
103
|
dateRange: void 0,
|
|
101
104
|
"params[beginTime]": e.dateRange[0],
|
|
102
105
|
"params[endTime]": e.dateRange[1],
|
|
103
|
-
...
|
|
104
|
-
isAsc:
|
|
105
|
-
orderByColumn:
|
|
106
|
+
...h.value ? {
|
|
107
|
+
isAsc: h.value.descending ? "descending" : "ascending",
|
|
108
|
+
orderByColumn: h.value.sortBy
|
|
106
109
|
} : {}
|
|
107
110
|
} }) }
|
|
108
111
|
},
|
|
@@ -152,32 +155,32 @@ var a = /* @__PURE__ */ t({
|
|
|
152
155
|
},
|
|
153
156
|
{
|
|
154
157
|
cell: {
|
|
155
|
-
buttons: [({ row:
|
|
158
|
+
buttons: [({ row: t }) => ({
|
|
156
159
|
default: "详细",
|
|
157
160
|
onClick: () => {
|
|
158
|
-
let
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
}, { once: !0 }),
|
|
162
|
-
body: () =>
|
|
161
|
+
let r = u(null);
|
|
162
|
+
p(r, () => {
|
|
163
|
+
r.value.setFormData(t, { override: { loginInfo: `${t.operName}/${t.operIp}/${t.operLocation}` } });
|
|
164
|
+
}, { once: !0 }), e({
|
|
165
|
+
body: () => o(n, {
|
|
163
166
|
items: [
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
167
|
+
g.title,
|
|
168
|
+
g.businessType,
|
|
169
|
+
g.loginInfo,
|
|
170
|
+
g.operUrl,
|
|
171
|
+
g.requestMethod,
|
|
172
|
+
g.method,
|
|
173
|
+
g.operParam,
|
|
174
|
+
g.jsonResult,
|
|
175
|
+
g.status,
|
|
176
|
+
g.costTime,
|
|
177
|
+
g.operTime,
|
|
178
|
+
g.errorMsg
|
|
176
179
|
],
|
|
177
180
|
labelAlign: "right",
|
|
178
181
|
layout: "vertical",
|
|
179
182
|
readonly: !0,
|
|
180
|
-
ref:
|
|
183
|
+
ref: r
|
|
181
184
|
}),
|
|
182
185
|
cancelBtn: "关闭",
|
|
183
186
|
confirmBtn: null,
|
|
@@ -194,11 +197,11 @@ var a = /* @__PURE__ */ t({
|
|
|
194
197
|
}
|
|
195
198
|
],
|
|
196
199
|
formItems: [
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
200
|
+
g.title,
|
|
201
|
+
g.operName,
|
|
202
|
+
g.businessType,
|
|
203
|
+
g.status,
|
|
204
|
+
g.dateRange
|
|
202
205
|
],
|
|
203
206
|
operations: [{
|
|
204
207
|
default: "清空",
|
|
@@ -206,26 +209,23 @@ var a = /* @__PURE__ */ t({
|
|
|
206
209
|
popconfirm: {
|
|
207
210
|
content: "是否确认清空所有操作日志数据项?",
|
|
208
211
|
onConfirm: async () => {
|
|
209
|
-
await
|
|
212
|
+
await t.Delete("monitor/operlog/clean", void 0, { meta: { useSuccessMsg: !0 } }), m.value.reset();
|
|
210
213
|
}
|
|
211
214
|
}
|
|
212
215
|
}],
|
|
213
|
-
tableOtherProps:
|
|
216
|
+
tableOtherProps: l({
|
|
214
217
|
onSortChange: (e) => {
|
|
215
|
-
|
|
218
|
+
h.value = e, m.value.query();
|
|
216
219
|
},
|
|
217
220
|
rowKey: "operId",
|
|
218
|
-
sort:
|
|
221
|
+
sort: h
|
|
219
222
|
})
|
|
220
223
|
};
|
|
221
|
-
return (
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
ref: a
|
|
226
|
-
}, c), null, 16);
|
|
227
|
-
};
|
|
224
|
+
return (e, t) => (c(), i(d(r), s({
|
|
225
|
+
ref_key: "pageListRef",
|
|
226
|
+
ref: m
|
|
227
|
+
}, _), null, 16));
|
|
228
228
|
}
|
|
229
229
|
});
|
|
230
230
|
//#endregion
|
|
231
|
-
export {
|
|
231
|
+
export { m as default };
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import { S as e } from "../../../chunks/provider-BhFm5rvy.mjs";
|
|
2
|
+
import { t } from "../../../chunks/card-Domqu1Hz.mjs";
|
|
3
|
+
import "../../../components/card/index.mjs";
|
|
4
|
+
import { t as n } from "../../../chunks/table-CqT9HbMR.mjs";
|
|
5
|
+
import "../../../components/table/index.mjs";
|
|
6
|
+
import { computed as r, createElementBlock as i, createVNode as a, defineComponent as o, openBlock as s, unref as c, withCtx as l } from "vue";
|
|
7
|
+
import { useRequest as u } from "alova/client";
|
|
8
|
+
//#region ../../packages/dlzn-ui/views/monitor/server/index.vue?vue&type=script&setup=true&lang.ts
|
|
9
|
+
var d = { class: "grid grid-cols-3 gap-4" }, f = /* @__PURE__ */ o({
|
|
10
|
+
__name: "index",
|
|
11
|
+
setup(o) {
|
|
12
|
+
let f = [{
|
|
13
|
+
colKey: "label",
|
|
14
|
+
title: "属性"
|
|
15
|
+
}, {
|
|
16
|
+
colKey: "value",
|
|
17
|
+
title: "值"
|
|
18
|
+
}], p = [
|
|
19
|
+
{
|
|
20
|
+
colKey: "label",
|
|
21
|
+
title: "属性"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
colKey: "memory",
|
|
25
|
+
title: "内存"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
colKey: "JVM",
|
|
29
|
+
title: "JVM"
|
|
30
|
+
}
|
|
31
|
+
], m = [
|
|
32
|
+
{
|
|
33
|
+
colKey: "dirName",
|
|
34
|
+
title: "盘符路径"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
colKey: "sysTypeName",
|
|
38
|
+
title: "文件系统"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
colKey: "typeName",
|
|
42
|
+
title: "盘符类型"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
colKey: "total",
|
|
46
|
+
title: "总大小"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
colKey: "free",
|
|
50
|
+
title: "可用大小"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
colKey: "used",
|
|
54
|
+
title: "已用大小"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
align: "right",
|
|
58
|
+
cell: {
|
|
59
|
+
component: "FormatNumber",
|
|
60
|
+
config: {
|
|
61
|
+
style: "unit",
|
|
62
|
+
unit: "percent"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
colKey: "usage",
|
|
66
|
+
title: "已用百分比"
|
|
67
|
+
}
|
|
68
|
+
], { data: h, loading: g } = u(e.Get("monitor/server"), { initialData: void 0 }), _ = r(() => {
|
|
69
|
+
let e = h.value?.cpu;
|
|
70
|
+
return e ? [
|
|
71
|
+
{
|
|
72
|
+
label: "核心数",
|
|
73
|
+
value: e.cpuNum
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
label: "用户使用率",
|
|
77
|
+
value: `${e.used}%`
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
label: "系统使用率",
|
|
81
|
+
value: `${e.sys}%`
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
label: "当前空闲率",
|
|
85
|
+
value: `${e.free}%`
|
|
86
|
+
}
|
|
87
|
+
] : [];
|
|
88
|
+
}), v = r(() => {
|
|
89
|
+
let e = h.value?.jvm, t = h.value?.mem;
|
|
90
|
+
return !e || !t ? [] : [
|
|
91
|
+
{
|
|
92
|
+
JVM: `${e.total}M`,
|
|
93
|
+
label: "总内存",
|
|
94
|
+
memory: `${t.total}G`
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
JVM: `${e.used}M`,
|
|
98
|
+
label: "已用内存",
|
|
99
|
+
memory: `${t.used}G`
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
JVM: `${e.free}M`,
|
|
103
|
+
label: "剩余内存",
|
|
104
|
+
memory: `${t.free}G`
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
JVM: `${e.usage}%`,
|
|
108
|
+
label: "使用率",
|
|
109
|
+
memory: `${t.usage}%`
|
|
110
|
+
}
|
|
111
|
+
];
|
|
112
|
+
}), y = r(() => {
|
|
113
|
+
let e = h.value?.sys;
|
|
114
|
+
return e ? [
|
|
115
|
+
{
|
|
116
|
+
label: "服务器名称",
|
|
117
|
+
value: e.computerName
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
label: "操作系统",
|
|
121
|
+
value: e.osName
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
label: "服务器IP",
|
|
125
|
+
value: e.computerIp
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
label: "系统架构",
|
|
129
|
+
value: e.osArch
|
|
130
|
+
}
|
|
131
|
+
] : [];
|
|
132
|
+
}), b = r(() => {
|
|
133
|
+
let e = h.value?.jvm, t = h.value?.sys;
|
|
134
|
+
return !e || !t ? [] : [
|
|
135
|
+
{
|
|
136
|
+
label: "Java名称",
|
|
137
|
+
value: e.name
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
label: "Java版本",
|
|
141
|
+
value: e.version
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
label: "启动时间",
|
|
145
|
+
value: e.startTime
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
label: "运行时长",
|
|
149
|
+
value: e.runTime
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
label: "安装路径",
|
|
153
|
+
value: e.home
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
label: "项目路径",
|
|
157
|
+
value: t.userDir
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
label: "运行参数",
|
|
161
|
+
value: e.inputArgs
|
|
162
|
+
}
|
|
163
|
+
];
|
|
164
|
+
}), x = r(() => h.value?.sysFiles ?? []);
|
|
165
|
+
return (e, r) => (s(), i("div", d, [
|
|
166
|
+
a(c(t), { title: "CPU" }, {
|
|
167
|
+
default: l(() => [a(c(n), {
|
|
168
|
+
columns: f,
|
|
169
|
+
data: _.value,
|
|
170
|
+
loading: c(g)
|
|
171
|
+
}, null, 8, ["data", "loading"])]),
|
|
172
|
+
_: 1
|
|
173
|
+
}),
|
|
174
|
+
a(c(t), { title: "内存" }, {
|
|
175
|
+
default: l(() => [a(c(n), {
|
|
176
|
+
columns: p,
|
|
177
|
+
data: v.value,
|
|
178
|
+
loading: c(g)
|
|
179
|
+
}, null, 8, ["data", "loading"])]),
|
|
180
|
+
_: 1
|
|
181
|
+
}),
|
|
182
|
+
a(c(t), { title: "服务器信息" }, {
|
|
183
|
+
default: l(() => [a(c(n), {
|
|
184
|
+
columns: f,
|
|
185
|
+
data: y.value,
|
|
186
|
+
loading: c(g)
|
|
187
|
+
}, null, 8, ["data", "loading"])]),
|
|
188
|
+
_: 1
|
|
189
|
+
}),
|
|
190
|
+
a(c(t), {
|
|
191
|
+
class: "col-span-3",
|
|
192
|
+
title: "Java虚拟机信息"
|
|
193
|
+
}, {
|
|
194
|
+
default: l(() => [a(c(n), {
|
|
195
|
+
columns: f,
|
|
196
|
+
data: b.value,
|
|
197
|
+
loading: c(g)
|
|
198
|
+
}, null, 8, ["data", "loading"])]),
|
|
199
|
+
_: 1
|
|
200
|
+
}),
|
|
201
|
+
a(c(t), {
|
|
202
|
+
class: "col-span-3",
|
|
203
|
+
title: "磁盘状态"
|
|
204
|
+
}, {
|
|
205
|
+
default: l(() => [a(c(n), {
|
|
206
|
+
columns: m,
|
|
207
|
+
data: x.value,
|
|
208
|
+
loading: c(g)
|
|
209
|
+
}, null, 8, ["data", "loading"])]),
|
|
210
|
+
_: 1
|
|
211
|
+
})
|
|
212
|
+
]));
|
|
213
|
+
}
|
|
214
|
+
});
|
|
215
|
+
//#endregion
|
|
216
|
+
export { f as default };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { F as e, S as t, o as n } from "../../../chunks/provider-BhFm5rvy.mjs";
|
|
2
|
+
import r from "../../../plugins/autoImport/$msg/index.mjs";
|
|
3
|
+
import { t as i } from "../../../chunks/page-list-DUYDkWcj.mjs";
|
|
4
|
+
import "../../../components/page-list/index.mjs";
|
|
5
|
+
import { createBlock as a, defineComponent as o, h as s, mergeProps as c, openBlock as l, reactive as u, ref as d, unref as f, useTemplateRef as p, watch as m } from "vue";
|
|
2
6
|
//#endregion
|
|
3
7
|
//#region ../../packages/dlzn-ui/views/system/config/index.vue
|
|
4
|
-
var
|
|
8
|
+
var h = /* @__PURE__ */ o({
|
|
5
9
|
__name: "index",
|
|
6
|
-
setup(
|
|
7
|
-
let
|
|
10
|
+
setup(o) {
|
|
11
|
+
let h = p("pageListRef"), g = {
|
|
8
12
|
configKey: {
|
|
9
13
|
_label: "参数键名",
|
|
10
14
|
_required: !0,
|
|
@@ -41,7 +45,7 @@ var a = /* @__PURE__ */ t({
|
|
|
41
45
|
component: "TTextarea",
|
|
42
46
|
model: "remark"
|
|
43
47
|
}
|
|
44
|
-
},
|
|
48
|
+
}, _ = {
|
|
45
49
|
apis: {
|
|
46
50
|
delete: {
|
|
47
51
|
method: "system/config",
|
|
@@ -52,7 +56,7 @@ var a = /* @__PURE__ */ t({
|
|
|
52
56
|
method: "system/config/export",
|
|
53
57
|
permission: "system:config:export"
|
|
54
58
|
},
|
|
55
|
-
list: { method: (e) =>
|
|
59
|
+
list: { method: (e) => t.Get("system/config/list", { params: {
|
|
56
60
|
...e,
|
|
57
61
|
dateRange: void 0,
|
|
58
62
|
"params[beginTime]": e.dateRange[0],
|
|
@@ -95,31 +99,31 @@ var a = /* @__PURE__ */ t({
|
|
|
95
99
|
},
|
|
96
100
|
{
|
|
97
101
|
cell: {
|
|
98
|
-
buttons: [({ row:
|
|
102
|
+
buttons: [({ row: i }) => ({
|
|
99
103
|
default: "编辑",
|
|
100
104
|
onClick: () => {
|
|
101
|
-
let
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}, { once: !0 }),
|
|
105
|
-
body: () =>
|
|
105
|
+
let a = d(null);
|
|
106
|
+
m(a, () => {
|
|
107
|
+
a.value.setFormData(i);
|
|
108
|
+
}, { once: !0 }), e({
|
|
109
|
+
body: () => s(n, {
|
|
106
110
|
items: [
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
111
|
+
g.configName,
|
|
112
|
+
g.configKey,
|
|
113
|
+
g.configValue,
|
|
114
|
+
g.configType,
|
|
115
|
+
g.remark
|
|
112
116
|
],
|
|
113
117
|
labelAlign: "right",
|
|
114
118
|
layout: "vertical",
|
|
115
|
-
ref:
|
|
119
|
+
ref: a
|
|
116
120
|
}),
|
|
117
121
|
header: "修改参数",
|
|
118
122
|
onConfirmCallback: async () => {
|
|
119
|
-
await
|
|
120
|
-
...await
|
|
121
|
-
configId:
|
|
122
|
-
}),
|
|
123
|
+
await t.Put("system/config", {
|
|
124
|
+
...await a.value.validate(),
|
|
125
|
+
configId: i.configId
|
|
126
|
+
}), r.success("参数修改成功"), h.value.query();
|
|
123
127
|
},
|
|
124
128
|
width: 460
|
|
125
129
|
});
|
|
@@ -133,35 +137,35 @@ var a = /* @__PURE__ */ t({
|
|
|
133
137
|
}
|
|
134
138
|
],
|
|
135
139
|
formItems: [
|
|
136
|
-
|
|
137
|
-
|
|
140
|
+
g.configName,
|
|
141
|
+
g.configKey,
|
|
138
142
|
{
|
|
139
|
-
...
|
|
143
|
+
...g.configType,
|
|
140
144
|
component: "TSelect"
|
|
141
145
|
},
|
|
142
|
-
|
|
146
|
+
g.dateRange
|
|
143
147
|
],
|
|
144
148
|
operations: [{
|
|
145
149
|
default: "新增",
|
|
146
150
|
onClick: () => {
|
|
147
|
-
let
|
|
148
|
-
|
|
149
|
-
body: () =>
|
|
150
|
-
data:
|
|
151
|
+
let i = d(null);
|
|
152
|
+
e({
|
|
153
|
+
body: () => s(n, {
|
|
154
|
+
data: u({ configType: "Y" }),
|
|
151
155
|
items: [
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
156
|
+
g.configName,
|
|
157
|
+
g.configKey,
|
|
158
|
+
g.configValue,
|
|
159
|
+
g.configType,
|
|
160
|
+
g.remark
|
|
157
161
|
],
|
|
158
162
|
labelAlign: "right",
|
|
159
163
|
layout: "vertical",
|
|
160
|
-
ref:
|
|
164
|
+
ref: i
|
|
161
165
|
}),
|
|
162
166
|
header: "添加参数",
|
|
163
167
|
onConfirmCallback: async () => {
|
|
164
|
-
await
|
|
168
|
+
await t.Post("system/config", await i.value.validate()), r.success("参数添加成功"), h.value.query();
|
|
165
169
|
},
|
|
166
170
|
width: 460
|
|
167
171
|
});
|
|
@@ -173,20 +177,17 @@ var a = /* @__PURE__ */ t({
|
|
|
173
177
|
popconfirm: {
|
|
174
178
|
content: "确定要刷新缓存吗?",
|
|
175
179
|
onConfirm: async () => {
|
|
176
|
-
await
|
|
180
|
+
await t.Delete("system/config/refreshCache", void 0, { meta: { useSuccessMsg: !0 } });
|
|
177
181
|
}
|
|
178
182
|
}
|
|
179
183
|
}],
|
|
180
184
|
tableOtherProps: { rowKey: "configId" }
|
|
181
185
|
};
|
|
182
|
-
return (
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
ref: a
|
|
187
|
-
}, s), null, 16);
|
|
188
|
-
};
|
|
186
|
+
return (e, t) => (l(), a(f(i), c({
|
|
187
|
+
ref_key: "pageListRef",
|
|
188
|
+
ref: h
|
|
189
|
+
}, _), null, 16));
|
|
189
190
|
}
|
|
190
191
|
});
|
|
191
192
|
//#endregion
|
|
192
|
-
export {
|
|
193
|
+
export { h as default };
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { F as e, S as t, o as n } from "../../../chunks/provider-BhFm5rvy.mjs";
|
|
2
|
+
import r from "../../../plugins/autoImport/$msg/index.mjs";
|
|
3
|
+
import { t as i } from "../../../chunks/page-list-DUYDkWcj.mjs";
|
|
4
|
+
import "../../../components/page-list/index.mjs";
|
|
5
|
+
import { createBlock as a, defineComponent as o, h as s, mergeProps as c, openBlock as l, reactive as u, ref as d, unref as f, useTemplateRef as p, watch as m } from "vue";
|
|
2
6
|
//#endregion
|
|
3
7
|
//#region ../../packages/dlzn-ui/views/system/notice/index.vue
|
|
4
|
-
var
|
|
8
|
+
var h = /* @__PURE__ */ o({
|
|
5
9
|
__name: "index",
|
|
6
|
-
setup(
|
|
7
|
-
let
|
|
10
|
+
setup(o) {
|
|
11
|
+
let h = p("pageListRef"), g = {
|
|
8
12
|
createBy: {
|
|
9
13
|
_label: "操作人员",
|
|
10
14
|
component: "TInput",
|
|
@@ -34,12 +38,12 @@ var a = /* @__PURE__ */ t({
|
|
|
34
38
|
dicCode: "sys_notice_status",
|
|
35
39
|
model: "status"
|
|
36
40
|
}
|
|
37
|
-
},
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
],
|
|
41
|
+
}, _ = [
|
|
42
|
+
g.noticeTitle,
|
|
43
|
+
g.noticeType,
|
|
44
|
+
g.status,
|
|
45
|
+
g.noticeContent
|
|
46
|
+
], v = {
|
|
43
47
|
apis: {
|
|
44
48
|
delete: {
|
|
45
49
|
method: "system/notice",
|
|
@@ -79,25 +83,25 @@ var a = /* @__PURE__ */ t({
|
|
|
79
83
|
},
|
|
80
84
|
{
|
|
81
85
|
cell: {
|
|
82
|
-
buttons: [({ row:
|
|
86
|
+
buttons: [({ row: i }) => ({
|
|
83
87
|
default: "编辑",
|
|
84
88
|
onClick: () => {
|
|
85
|
-
let
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
}, { once: !0 }),
|
|
89
|
-
body: () =>
|
|
90
|
-
items:
|
|
89
|
+
let a = d(null);
|
|
90
|
+
m(a, () => {
|
|
91
|
+
a.value.setFormData(i);
|
|
92
|
+
}, { once: !0 }), e({
|
|
93
|
+
body: () => s(n, {
|
|
94
|
+
items: _,
|
|
91
95
|
labelAlign: "right",
|
|
92
96
|
layout: "vertical",
|
|
93
|
-
ref:
|
|
97
|
+
ref: a
|
|
94
98
|
}),
|
|
95
99
|
header: "修改公告",
|
|
96
100
|
onConfirmCallback: async () => {
|
|
97
|
-
await
|
|
98
|
-
...await
|
|
99
|
-
noticeId:
|
|
100
|
-
}),
|
|
101
|
+
await t.Put("system/notice", {
|
|
102
|
+
...await a.value.validate(),
|
|
103
|
+
noticeId: i.noticeId
|
|
104
|
+
}), r.success("公告修改成功"), h.value.query();
|
|
101
105
|
},
|
|
102
106
|
width: 460
|
|
103
107
|
});
|
|
@@ -111,25 +115,25 @@ var a = /* @__PURE__ */ t({
|
|
|
111
115
|
}
|
|
112
116
|
],
|
|
113
117
|
formItems: [
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
118
|
+
g.noticeTitle,
|
|
119
|
+
g.noticeType,
|
|
120
|
+
g.createBy
|
|
117
121
|
],
|
|
118
122
|
operations: [{
|
|
119
123
|
default: "新增",
|
|
120
124
|
onClick: () => {
|
|
121
|
-
let
|
|
122
|
-
|
|
123
|
-
body: () =>
|
|
124
|
-
data:
|
|
125
|
-
items:
|
|
125
|
+
let i = d(null);
|
|
126
|
+
e({
|
|
127
|
+
body: () => s(n, {
|
|
128
|
+
data: u({ status: "0" }),
|
|
129
|
+
items: _,
|
|
126
130
|
labelAlign: "right",
|
|
127
131
|
layout: "vertical",
|
|
128
|
-
ref:
|
|
132
|
+
ref: i
|
|
129
133
|
}),
|
|
130
134
|
header: "添加公告",
|
|
131
135
|
onConfirmCallback: async () => {
|
|
132
|
-
await
|
|
136
|
+
await t.Post("system/notice", await i.value.validate()), r.success("公告添加成功"), h.value.query();
|
|
133
137
|
},
|
|
134
138
|
width: 460
|
|
135
139
|
});
|
|
@@ -138,14 +142,11 @@ var a = /* @__PURE__ */ t({
|
|
|
138
142
|
}],
|
|
139
143
|
tableOtherProps: { rowKey: "noticeId" }
|
|
140
144
|
};
|
|
141
|
-
return (
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
ref: a
|
|
146
|
-
}, c), null, 16);
|
|
147
|
-
};
|
|
145
|
+
return (e, t) => (l(), a(f(i), c({
|
|
146
|
+
ref_key: "pageListRef",
|
|
147
|
+
ref: h
|
|
148
|
+
}, v), null, 16));
|
|
148
149
|
}
|
|
149
150
|
});
|
|
150
151
|
//#endregion
|
|
151
|
-
export {
|
|
152
|
+
export { h as default };
|