dlzn-ui 2.0.30 → 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
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"),
|
|
@@ -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;
|
|
@@ -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;
|