From b145b99800586988532fdda4d72c0fd86da4efaa Mon Sep 17 00:00:00 2001 From: bwcx_jzy Date: Thu, 18 Aug 2022 08:26:28 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BC=98=E5=8C=96=E8=8A=82=E7=82=B9?= =?UTF-8?q?=E9=A6=96=E9=A1=B5=EF=BC=9A=E6=94=AF=E6=8C=81=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E5=88=B7=E6=96=B0=E9=A2=91=E7=8E=87=E3=80=81=E5=9B=BE?= =?UTF-8?q?=E6=A0=87=E8=87=AA=E5=8A=A8=E7=BC=A9=E6=94=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 + web-vue/src/api/node-stat.js | 1 + web-vue/src/api/node.js | 6 +- web-vue/src/components/customSelect/index.vue | 14 +- .../src/pages/node/node-layout/node-top.vue | 13 +- .../src/pages/node/node-layout/welcome.vue | 137 ++++++++++++------ 6 files changed, 117 insertions(+), 55 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 40593b4ea..9f768837d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ 2. 【agent】优化检查 jps 异常,调整为实时检查(感谢[@傲梅科技](https://gitee.com/aomeitech) [Gitee issues I5MTA4](https://gitee.com/dromara/Jpom/issues/I5MTA4) ) 3. 【server】修复登录后跳转到上次使用到工作空间中问题 (感谢@木迷榖) 4. 【server】缓存日志弹窗相关操作配置 (感谢[@我已经没有头发了](https://gitee.com/christina204) [Gitee issues I5MANC](https://gitee.com/dromara/Jpom/issues/I5MANC) ) +5. 【server】优化节点首页:支持自定义刷新频率、图标自动缩放 (感谢@ccx2480) ------ diff --git a/web-vue/src/api/node-stat.js b/web-vue/src/api/node-stat.js index 1cde4f435..f48d64ead 100644 --- a/web-vue/src/api/node-stat.js +++ b/web-vue/src/api/node-stat.js @@ -195,6 +195,7 @@ export function drawChart(data, domId, parseFn) { // 绘制图表 const historyChart = echarts.init(historyChartDom); historyChart.setOption(option); + return historyChart; } export const status = { diff --git a/web-vue/src/api/node.js b/web-vue/src/api/node.js index c2777dff5..23d4919bb 100644 --- a/web-vue/src/api/node.js +++ b/web-vue/src/api/node.js @@ -210,6 +210,7 @@ export function getProcessList(data) { data: data, headers: { loading: "no", + tip: "no", }, }); } @@ -233,11 +234,14 @@ export function killPid(params) { * time: 时间段,格式:yyyy-MM-dd HH:mm:ss ~ yyyy-MM-dd HH:mm:ss * } params */ -export function nodeMonitorData(params) { +export function nodeMonitorData(params, loading) { return axios({ url: "/node/node_monitor_data.json", method: "post", data: params, + headers: { + loading: loading === false ? "no" : "", + }, }); } diff --git a/web-vue/src/components/customSelect/index.vue b/web-vue/src/components/customSelect/index.vue index 0940f30cf..c8964c78f 100644 --- a/web-vue/src/components/customSelect/index.vue +++ b/web-vue/src/components/customSelect/index.vue @@ -2,9 +2,11 @@