diff --git a/config/index.js b/config/index.js index 45fc349..43b70bd 100644 --- a/config/index.js +++ b/config/index.js @@ -75,7 +75,15 @@ pathRewrite: { "^/IotPc": "" //需要rewrite重写的, } - } + }, + '/serverManage': { + // 服务器 + 'target': 'http://192.168.16.254:8080', // 孙逢时 + 'changeOrigin': true, //是否跨域 + 'pathRewrite': { + '^/serverManage': '' //需要rewrite重写的, + } + }, }, // Various Dev Server settings diff --git a/config/index.js b/config/index.js index 45fc349..43b70bd 100644 --- a/config/index.js +++ b/config/index.js @@ -75,7 +75,15 @@ pathRewrite: { "^/IotPc": "" //需要rewrite重写的, } - } + }, + '/serverManage': { + // 服务器 + 'target': 'http://192.168.16.254:8080', // 孙逢时 + 'changeOrigin': true, //是否跨域 + 'pathRewrite': { + '^/serverManage': '' //需要rewrite重写的, + } + }, }, // Various Dev Server settings diff --git a/src/assets/css/common.css b/src/assets/css/common.css index 1e9d67d..e1b0809 100644 --- a/src/assets/css/common.css +++ b/src/assets/css/common.css @@ -78,6 +78,15 @@ .flex-d{ flex-direction: column; } +.table-p{ + font-size: 13px; + text-align: center; + line-height: 18px; +} +.table-p-cursor{ + color: #409EFF; + cursor: pointer; +} .page-data { display: flex; flex-direction: column; diff --git a/config/index.js b/config/index.js index 45fc349..43b70bd 100644 --- a/config/index.js +++ b/config/index.js @@ -75,7 +75,15 @@ pathRewrite: { "^/IotPc": "" //需要rewrite重写的, } - } + }, + '/serverManage': { + // 服务器 + 'target': 'http://192.168.16.254:8080', // 孙逢时 + 'changeOrigin': true, //是否跨域 + 'pathRewrite': { + '^/serverManage': '' //需要rewrite重写的, + } + }, }, // Various Dev Server settings diff --git a/src/assets/css/common.css b/src/assets/css/common.css index 1e9d67d..e1b0809 100644 --- a/src/assets/css/common.css +++ b/src/assets/css/common.css @@ -78,6 +78,15 @@ .flex-d{ flex-direction: column; } +.table-p{ + font-size: 13px; + text-align: center; + line-height: 18px; +} +.table-p-cursor{ + color: #409EFF; + cursor: pointer; +} .page-data { display: flex; flex-direction: column; diff --git a/src/components/ServiceWatch/components/applied.vue b/src/components/ServiceWatch/components/applied.vue new file mode 100644 index 0000000..f3f4edf --- /dev/null +++ b/src/components/ServiceWatch/components/applied.vue @@ -0,0 +1,257 @@ + + + + + \ No newline at end of file diff --git a/config/index.js b/config/index.js index 45fc349..43b70bd 100644 --- a/config/index.js +++ b/config/index.js @@ -75,7 +75,15 @@ pathRewrite: { "^/IotPc": "" //需要rewrite重写的, } - } + }, + '/serverManage': { + // 服务器 + 'target': 'http://192.168.16.254:8080', // 孙逢时 + 'changeOrigin': true, //是否跨域 + 'pathRewrite': { + '^/serverManage': '' //需要rewrite重写的, + } + }, }, // Various Dev Server settings diff --git a/src/assets/css/common.css b/src/assets/css/common.css index 1e9d67d..e1b0809 100644 --- a/src/assets/css/common.css +++ b/src/assets/css/common.css @@ -78,6 +78,15 @@ .flex-d{ flex-direction: column; } +.table-p{ + font-size: 13px; + text-align: center; + line-height: 18px; +} +.table-p-cursor{ + color: #409EFF; + cursor: pointer; +} .page-data { display: flex; flex-direction: column; diff --git a/src/components/ServiceWatch/components/applied.vue b/src/components/ServiceWatch/components/applied.vue new file mode 100644 index 0000000..f3f4edf --- /dev/null +++ b/src/components/ServiceWatch/components/applied.vue @@ -0,0 +1,257 @@ + + + + + \ No newline at end of file diff --git a/src/components/ServiceWatch/components/detail.vue b/src/components/ServiceWatch/components/detail.vue new file mode 100644 index 0000000..8a350a0 --- /dev/null +++ b/src/components/ServiceWatch/components/detail.vue @@ -0,0 +1,146 @@ + + + + + \ No newline at end of file diff --git a/config/index.js b/config/index.js index 45fc349..43b70bd 100644 --- a/config/index.js +++ b/config/index.js @@ -75,7 +75,15 @@ pathRewrite: { "^/IotPc": "" //需要rewrite重写的, } - } + }, + '/serverManage': { + // 服务器 + 'target': 'http://192.168.16.254:8080', // 孙逢时 + 'changeOrigin': true, //是否跨域 + 'pathRewrite': { + '^/serverManage': '' //需要rewrite重写的, + } + }, }, // Various Dev Server settings diff --git a/src/assets/css/common.css b/src/assets/css/common.css index 1e9d67d..e1b0809 100644 --- a/src/assets/css/common.css +++ b/src/assets/css/common.css @@ -78,6 +78,15 @@ .flex-d{ flex-direction: column; } +.table-p{ + font-size: 13px; + text-align: center; + line-height: 18px; +} +.table-p-cursor{ + color: #409EFF; + cursor: pointer; +} .page-data { display: flex; flex-direction: column; diff --git a/src/components/ServiceWatch/components/applied.vue b/src/components/ServiceWatch/components/applied.vue new file mode 100644 index 0000000..f3f4edf --- /dev/null +++ b/src/components/ServiceWatch/components/applied.vue @@ -0,0 +1,257 @@ + + + + + \ No newline at end of file diff --git a/src/components/ServiceWatch/components/detail.vue b/src/components/ServiceWatch/components/detail.vue new file mode 100644 index 0000000..8a350a0 --- /dev/null +++ b/src/components/ServiceWatch/components/detail.vue @@ -0,0 +1,146 @@ + + + + + \ No newline at end of file diff --git a/src/components/ServiceWatch/components/monitor.vue b/src/components/ServiceWatch/components/monitor.vue new file mode 100644 index 0000000..69123a4 --- /dev/null +++ b/src/components/ServiceWatch/components/monitor.vue @@ -0,0 +1,738 @@ + + + + + \ No newline at end of file diff --git a/config/index.js b/config/index.js index 45fc349..43b70bd 100644 --- a/config/index.js +++ b/config/index.js @@ -75,7 +75,15 @@ pathRewrite: { "^/IotPc": "" //需要rewrite重写的, } - } + }, + '/serverManage': { + // 服务器 + 'target': 'http://192.168.16.254:8080', // 孙逢时 + 'changeOrigin': true, //是否跨域 + 'pathRewrite': { + '^/serverManage': '' //需要rewrite重写的, + } + }, }, // Various Dev Server settings diff --git a/src/assets/css/common.css b/src/assets/css/common.css index 1e9d67d..e1b0809 100644 --- a/src/assets/css/common.css +++ b/src/assets/css/common.css @@ -78,6 +78,15 @@ .flex-d{ flex-direction: column; } +.table-p{ + font-size: 13px; + text-align: center; + line-height: 18px; +} +.table-p-cursor{ + color: #409EFF; + cursor: pointer; +} .page-data { display: flex; flex-direction: column; diff --git a/src/components/ServiceWatch/components/applied.vue b/src/components/ServiceWatch/components/applied.vue new file mode 100644 index 0000000..f3f4edf --- /dev/null +++ b/src/components/ServiceWatch/components/applied.vue @@ -0,0 +1,257 @@ + + + + + \ No newline at end of file diff --git a/src/components/ServiceWatch/components/detail.vue b/src/components/ServiceWatch/components/detail.vue new file mode 100644 index 0000000..8a350a0 --- /dev/null +++ b/src/components/ServiceWatch/components/detail.vue @@ -0,0 +1,146 @@ + + + + + \ No newline at end of file diff --git a/src/components/ServiceWatch/components/monitor.vue b/src/components/ServiceWatch/components/monitor.vue new file mode 100644 index 0000000..69123a4 --- /dev/null +++ b/src/components/ServiceWatch/components/monitor.vue @@ -0,0 +1,738 @@ + + + + + \ No newline at end of file diff --git a/src/components/ServiceWatch/components/monitor01.js b/src/components/ServiceWatch/components/monitor01.js new file mode 100644 index 0000000..1e4797a --- /dev/null +++ b/src/components/ServiceWatch/components/monitor01.js @@ -0,0 +1,132 @@ +export const dataAll = [ + { + name:'cpu监控', + data:[ + { + name:'cpu利用率%', + target:'CPUUsage', + unit:"%", + tip:'CPU利用率是通过CVM子机内部监控组件采集上报,数据更加精准', + echartsData:{} + }, + { + name:'基础cpu使用率%', + target:'BaseCpuUsage', + unit:"%", + tip:'基础CPU使用率通过宿主机采集上报,无须安装监控组件即可查看数据,子机高负载情况下仍可持续采集上报数据', + echartsData:{} + } + ] + }, + { + name:'系统平均负载', + data:[ + { + name:'CPU平均负载', + target:'CpuLoadavg', + unit:"", + tip:'1分钟内CPU平均负载,取 /proc/loadavg 第一列数据(windows操作系统无此指标),依赖监控组件安装采集', + echartsData:{} + } + ] + }, + { + name:'内存监控', + data:[ + { + name:'内存使用量MB', + target:'MemUsed', + unit:"MB", + tip:'使用的内存量,不包括系统缓存和缓存区占用内存,依赖监控组件安装采集', + echartsData:{} + }, + { + name:'内存利用率%', + target:'MemUsage', + unit:"%", + tip:'用户实际使用的内存量与总内存量之比,不包括缓冲区与系统缓存占用的内存', + echartsData:{} + } + ] + }, + { + name:'内网带宽监控', + data:[ + { + name:'内网出带宽Mbps', + target:'LanOuttraffic', + unit:"Mbps", + tip:'内网网卡的平均每秒出流量', + echartsData:{} + }, + { + name:'内网入带宽Mbps', + target:'LanIntraffic', + unit:"Mbps", + tip:'内网网卡的平均每秒入流量', + echartsData:{} + }, + { + name:'内网出包量个/秒', + target:'LanOutpkg', + unit:"个/秒", + tip:'内网网卡的平均每秒出包量', + echartsData:{} + }, + { + name:'内网入包量个/秒', + target:'LanInpkg', + unit:"个/秒", + tip:'内网网卡的平均每秒入包量', + echartsData:{} + }, + { + name:'TCP连接数个', + target:'TcpCurrEstab', + unit:"个", + tip:'处于 ESTABLISHED 状态的 TCP 连接数量,依赖监控组件安装采集', + echartsData:{} + }, + ] + }, + { + name:'外网带宽监控', + data:[ + { + name:'外网出带宽Mbps', + target:'WanOuttraffic', + unit:"Mbps", + tip:'外网平均每秒出流量,最小粒度数据为10秒总流量/10秒 计算得出', + echartsData:{} + }, + { + name:'外网入带宽Mbps', + target:'WanIntraffic', + unit:"Mbps", + tip:'外网平均每秒入流量', + echartsData:{} + }, + { + name:'外网出包量个/秒', + target:'WanOutpkg', + unit:"个/秒", + tip:'内网网卡的平均每秒出包量', + echartsData:{} + }, + { + name:'外网入包量个/秒', + target:'WanInpkg', + unit:"个/秒", + tip:'内网网卡的平均每秒入包量', + echartsData:{} + }, + { + name:'外网出流量MB', + target:'AccOuttraffic', + unit:"MB", + tip:'处于 ESTABLISHED 状态的 TCP 连接数量,依赖监控组件安装采集', + echartsData:{} + }, + ] + } + ] diff --git a/config/index.js b/config/index.js index 45fc349..43b70bd 100644 --- a/config/index.js +++ b/config/index.js @@ -75,7 +75,15 @@ pathRewrite: { "^/IotPc": "" //需要rewrite重写的, } - } + }, + '/serverManage': { + // 服务器 + 'target': 'http://192.168.16.254:8080', // 孙逢时 + 'changeOrigin': true, //是否跨域 + 'pathRewrite': { + '^/serverManage': '' //需要rewrite重写的, + } + }, }, // Various Dev Server settings diff --git a/src/assets/css/common.css b/src/assets/css/common.css index 1e9d67d..e1b0809 100644 --- a/src/assets/css/common.css +++ b/src/assets/css/common.css @@ -78,6 +78,15 @@ .flex-d{ flex-direction: column; } +.table-p{ + font-size: 13px; + text-align: center; + line-height: 18px; +} +.table-p-cursor{ + color: #409EFF; + cursor: pointer; +} .page-data { display: flex; flex-direction: column; diff --git a/src/components/ServiceWatch/components/applied.vue b/src/components/ServiceWatch/components/applied.vue new file mode 100644 index 0000000..f3f4edf --- /dev/null +++ b/src/components/ServiceWatch/components/applied.vue @@ -0,0 +1,257 @@ + + + + + \ No newline at end of file diff --git a/src/components/ServiceWatch/components/detail.vue b/src/components/ServiceWatch/components/detail.vue new file mode 100644 index 0000000..8a350a0 --- /dev/null +++ b/src/components/ServiceWatch/components/detail.vue @@ -0,0 +1,146 @@ + + + + + \ No newline at end of file diff --git a/src/components/ServiceWatch/components/monitor.vue b/src/components/ServiceWatch/components/monitor.vue new file mode 100644 index 0000000..69123a4 --- /dev/null +++ b/src/components/ServiceWatch/components/monitor.vue @@ -0,0 +1,738 @@ + + + + + \ No newline at end of file diff --git a/src/components/ServiceWatch/components/monitor01.js b/src/components/ServiceWatch/components/monitor01.js new file mode 100644 index 0000000..1e4797a --- /dev/null +++ b/src/components/ServiceWatch/components/monitor01.js @@ -0,0 +1,132 @@ +export const dataAll = [ + { + name:'cpu监控', + data:[ + { + name:'cpu利用率%', + target:'CPUUsage', + unit:"%", + tip:'CPU利用率是通过CVM子机内部监控组件采集上报,数据更加精准', + echartsData:{} + }, + { + name:'基础cpu使用率%', + target:'BaseCpuUsage', + unit:"%", + tip:'基础CPU使用率通过宿主机采集上报,无须安装监控组件即可查看数据,子机高负载情况下仍可持续采集上报数据', + echartsData:{} + } + ] + }, + { + name:'系统平均负载', + data:[ + { + name:'CPU平均负载', + target:'CpuLoadavg', + unit:"", + tip:'1分钟内CPU平均负载,取 /proc/loadavg 第一列数据(windows操作系统无此指标),依赖监控组件安装采集', + echartsData:{} + } + ] + }, + { + name:'内存监控', + data:[ + { + name:'内存使用量MB', + target:'MemUsed', + unit:"MB", + tip:'使用的内存量,不包括系统缓存和缓存区占用内存,依赖监控组件安装采集', + echartsData:{} + }, + { + name:'内存利用率%', + target:'MemUsage', + unit:"%", + tip:'用户实际使用的内存量与总内存量之比,不包括缓冲区与系统缓存占用的内存', + echartsData:{} + } + ] + }, + { + name:'内网带宽监控', + data:[ + { + name:'内网出带宽Mbps', + target:'LanOuttraffic', + unit:"Mbps", + tip:'内网网卡的平均每秒出流量', + echartsData:{} + }, + { + name:'内网入带宽Mbps', + target:'LanIntraffic', + unit:"Mbps", + tip:'内网网卡的平均每秒入流量', + echartsData:{} + }, + { + name:'内网出包量个/秒', + target:'LanOutpkg', + unit:"个/秒", + tip:'内网网卡的平均每秒出包量', + echartsData:{} + }, + { + name:'内网入包量个/秒', + target:'LanInpkg', + unit:"个/秒", + tip:'内网网卡的平均每秒入包量', + echartsData:{} + }, + { + name:'TCP连接数个', + target:'TcpCurrEstab', + unit:"个", + tip:'处于 ESTABLISHED 状态的 TCP 连接数量,依赖监控组件安装采集', + echartsData:{} + }, + ] + }, + { + name:'外网带宽监控', + data:[ + { + name:'外网出带宽Mbps', + target:'WanOuttraffic', + unit:"Mbps", + tip:'外网平均每秒出流量,最小粒度数据为10秒总流量/10秒 计算得出', + echartsData:{} + }, + { + name:'外网入带宽Mbps', + target:'WanIntraffic', + unit:"Mbps", + tip:'外网平均每秒入流量', + echartsData:{} + }, + { + name:'外网出包量个/秒', + target:'WanOutpkg', + unit:"个/秒", + tip:'内网网卡的平均每秒出包量', + echartsData:{} + }, + { + name:'外网入包量个/秒', + target:'WanInpkg', + unit:"个/秒", + tip:'内网网卡的平均每秒入包量', + echartsData:{} + }, + { + name:'外网出流量MB', + target:'AccOuttraffic', + unit:"MB", + tip:'处于 ESTABLISHED 状态的 TCP 连接数量,依赖监控组件安装采集', + echartsData:{} + }, + ] + } + ] diff --git a/src/components/ServiceWatch/serverDetail.vue b/src/components/ServiceWatch/serverDetail.vue new file mode 100644 index 0000000..45087b5 --- /dev/null +++ b/src/components/ServiceWatch/serverDetail.vue @@ -0,0 +1,107 @@ + + + + + \ No newline at end of file diff --git a/config/index.js b/config/index.js index 45fc349..43b70bd 100644 --- a/config/index.js +++ b/config/index.js @@ -75,7 +75,15 @@ pathRewrite: { "^/IotPc": "" //需要rewrite重写的, } - } + }, + '/serverManage': { + // 服务器 + 'target': 'http://192.168.16.254:8080', // 孙逢时 + 'changeOrigin': true, //是否跨域 + 'pathRewrite': { + '^/serverManage': '' //需要rewrite重写的, + } + }, }, // Various Dev Server settings diff --git a/src/assets/css/common.css b/src/assets/css/common.css index 1e9d67d..e1b0809 100644 --- a/src/assets/css/common.css +++ b/src/assets/css/common.css @@ -78,6 +78,15 @@ .flex-d{ flex-direction: column; } +.table-p{ + font-size: 13px; + text-align: center; + line-height: 18px; +} +.table-p-cursor{ + color: #409EFF; + cursor: pointer; +} .page-data { display: flex; flex-direction: column; diff --git a/src/components/ServiceWatch/components/applied.vue b/src/components/ServiceWatch/components/applied.vue new file mode 100644 index 0000000..f3f4edf --- /dev/null +++ b/src/components/ServiceWatch/components/applied.vue @@ -0,0 +1,257 @@ + + + + + \ No newline at end of file diff --git a/src/components/ServiceWatch/components/detail.vue b/src/components/ServiceWatch/components/detail.vue new file mode 100644 index 0000000..8a350a0 --- /dev/null +++ b/src/components/ServiceWatch/components/detail.vue @@ -0,0 +1,146 @@ + + + + + \ No newline at end of file diff --git a/src/components/ServiceWatch/components/monitor.vue b/src/components/ServiceWatch/components/monitor.vue new file mode 100644 index 0000000..69123a4 --- /dev/null +++ b/src/components/ServiceWatch/components/monitor.vue @@ -0,0 +1,738 @@ + + + + + \ No newline at end of file diff --git a/src/components/ServiceWatch/components/monitor01.js b/src/components/ServiceWatch/components/monitor01.js new file mode 100644 index 0000000..1e4797a --- /dev/null +++ b/src/components/ServiceWatch/components/monitor01.js @@ -0,0 +1,132 @@ +export const dataAll = [ + { + name:'cpu监控', + data:[ + { + name:'cpu利用率%', + target:'CPUUsage', + unit:"%", + tip:'CPU利用率是通过CVM子机内部监控组件采集上报,数据更加精准', + echartsData:{} + }, + { + name:'基础cpu使用率%', + target:'BaseCpuUsage', + unit:"%", + tip:'基础CPU使用率通过宿主机采集上报,无须安装监控组件即可查看数据,子机高负载情况下仍可持续采集上报数据', + echartsData:{} + } + ] + }, + { + name:'系统平均负载', + data:[ + { + name:'CPU平均负载', + target:'CpuLoadavg', + unit:"", + tip:'1分钟内CPU平均负载,取 /proc/loadavg 第一列数据(windows操作系统无此指标),依赖监控组件安装采集', + echartsData:{} + } + ] + }, + { + name:'内存监控', + data:[ + { + name:'内存使用量MB', + target:'MemUsed', + unit:"MB", + tip:'使用的内存量,不包括系统缓存和缓存区占用内存,依赖监控组件安装采集', + echartsData:{} + }, + { + name:'内存利用率%', + target:'MemUsage', + unit:"%", + tip:'用户实际使用的内存量与总内存量之比,不包括缓冲区与系统缓存占用的内存', + echartsData:{} + } + ] + }, + { + name:'内网带宽监控', + data:[ + { + name:'内网出带宽Mbps', + target:'LanOuttraffic', + unit:"Mbps", + tip:'内网网卡的平均每秒出流量', + echartsData:{} + }, + { + name:'内网入带宽Mbps', + target:'LanIntraffic', + unit:"Mbps", + tip:'内网网卡的平均每秒入流量', + echartsData:{} + }, + { + name:'内网出包量个/秒', + target:'LanOutpkg', + unit:"个/秒", + tip:'内网网卡的平均每秒出包量', + echartsData:{} + }, + { + name:'内网入包量个/秒', + target:'LanInpkg', + unit:"个/秒", + tip:'内网网卡的平均每秒入包量', + echartsData:{} + }, + { + name:'TCP连接数个', + target:'TcpCurrEstab', + unit:"个", + tip:'处于 ESTABLISHED 状态的 TCP 连接数量,依赖监控组件安装采集', + echartsData:{} + }, + ] + }, + { + name:'外网带宽监控', + data:[ + { + name:'外网出带宽Mbps', + target:'WanOuttraffic', + unit:"Mbps", + tip:'外网平均每秒出流量,最小粒度数据为10秒总流量/10秒 计算得出', + echartsData:{} + }, + { + name:'外网入带宽Mbps', + target:'WanIntraffic', + unit:"Mbps", + tip:'外网平均每秒入流量', + echartsData:{} + }, + { + name:'外网出包量个/秒', + target:'WanOutpkg', + unit:"个/秒", + tip:'内网网卡的平均每秒出包量', + echartsData:{} + }, + { + name:'外网入包量个/秒', + target:'WanInpkg', + unit:"个/秒", + tip:'内网网卡的平均每秒入包量', + echartsData:{} + }, + { + name:'外网出流量MB', + target:'AccOuttraffic', + unit:"MB", + tip:'处于 ESTABLISHED 状态的 TCP 连接数量,依赖监控组件安装采集', + echartsData:{} + }, + ] + } + ] diff --git a/src/components/ServiceWatch/serverDetail.vue b/src/components/ServiceWatch/serverDetail.vue new file mode 100644 index 0000000..45087b5 --- /dev/null +++ b/src/components/ServiceWatch/serverDetail.vue @@ -0,0 +1,107 @@ + + + + + \ No newline at end of file diff --git a/src/components/ServiceWatch/serverManage.vue b/src/components/ServiceWatch/serverManage.vue new file mode 100644 index 0000000..a3d5fe5 --- /dev/null +++ b/src/components/ServiceWatch/serverManage.vue @@ -0,0 +1,454 @@ + + + + + + + \ No newline at end of file diff --git a/config/index.js b/config/index.js index 45fc349..43b70bd 100644 --- a/config/index.js +++ b/config/index.js @@ -75,7 +75,15 @@ pathRewrite: { "^/IotPc": "" //需要rewrite重写的, } - } + }, + '/serverManage': { + // 服务器 + 'target': 'http://192.168.16.254:8080', // 孙逢时 + 'changeOrigin': true, //是否跨域 + 'pathRewrite': { + '^/serverManage': '' //需要rewrite重写的, + } + }, }, // Various Dev Server settings diff --git a/src/assets/css/common.css b/src/assets/css/common.css index 1e9d67d..e1b0809 100644 --- a/src/assets/css/common.css +++ b/src/assets/css/common.css @@ -78,6 +78,15 @@ .flex-d{ flex-direction: column; } +.table-p{ + font-size: 13px; + text-align: center; + line-height: 18px; +} +.table-p-cursor{ + color: #409EFF; + cursor: pointer; +} .page-data { display: flex; flex-direction: column; diff --git a/src/components/ServiceWatch/components/applied.vue b/src/components/ServiceWatch/components/applied.vue new file mode 100644 index 0000000..f3f4edf --- /dev/null +++ b/src/components/ServiceWatch/components/applied.vue @@ -0,0 +1,257 @@ + + + + + \ No newline at end of file diff --git a/src/components/ServiceWatch/components/detail.vue b/src/components/ServiceWatch/components/detail.vue new file mode 100644 index 0000000..8a350a0 --- /dev/null +++ b/src/components/ServiceWatch/components/detail.vue @@ -0,0 +1,146 @@ + + + + + \ No newline at end of file diff --git a/src/components/ServiceWatch/components/monitor.vue b/src/components/ServiceWatch/components/monitor.vue new file mode 100644 index 0000000..69123a4 --- /dev/null +++ b/src/components/ServiceWatch/components/monitor.vue @@ -0,0 +1,738 @@ + + + + + \ No newline at end of file diff --git a/src/components/ServiceWatch/components/monitor01.js b/src/components/ServiceWatch/components/monitor01.js new file mode 100644 index 0000000..1e4797a --- /dev/null +++ b/src/components/ServiceWatch/components/monitor01.js @@ -0,0 +1,132 @@ +export const dataAll = [ + { + name:'cpu监控', + data:[ + { + name:'cpu利用率%', + target:'CPUUsage', + unit:"%", + tip:'CPU利用率是通过CVM子机内部监控组件采集上报,数据更加精准', + echartsData:{} + }, + { + name:'基础cpu使用率%', + target:'BaseCpuUsage', + unit:"%", + tip:'基础CPU使用率通过宿主机采集上报,无须安装监控组件即可查看数据,子机高负载情况下仍可持续采集上报数据', + echartsData:{} + } + ] + }, + { + name:'系统平均负载', + data:[ + { + name:'CPU平均负载', + target:'CpuLoadavg', + unit:"", + tip:'1分钟内CPU平均负载,取 /proc/loadavg 第一列数据(windows操作系统无此指标),依赖监控组件安装采集', + echartsData:{} + } + ] + }, + { + name:'内存监控', + data:[ + { + name:'内存使用量MB', + target:'MemUsed', + unit:"MB", + tip:'使用的内存量,不包括系统缓存和缓存区占用内存,依赖监控组件安装采集', + echartsData:{} + }, + { + name:'内存利用率%', + target:'MemUsage', + unit:"%", + tip:'用户实际使用的内存量与总内存量之比,不包括缓冲区与系统缓存占用的内存', + echartsData:{} + } + ] + }, + { + name:'内网带宽监控', + data:[ + { + name:'内网出带宽Mbps', + target:'LanOuttraffic', + unit:"Mbps", + tip:'内网网卡的平均每秒出流量', + echartsData:{} + }, + { + name:'内网入带宽Mbps', + target:'LanIntraffic', + unit:"Mbps", + tip:'内网网卡的平均每秒入流量', + echartsData:{} + }, + { + name:'内网出包量个/秒', + target:'LanOutpkg', + unit:"个/秒", + tip:'内网网卡的平均每秒出包量', + echartsData:{} + }, + { + name:'内网入包量个/秒', + target:'LanInpkg', + unit:"个/秒", + tip:'内网网卡的平均每秒入包量', + echartsData:{} + }, + { + name:'TCP连接数个', + target:'TcpCurrEstab', + unit:"个", + tip:'处于 ESTABLISHED 状态的 TCP 连接数量,依赖监控组件安装采集', + echartsData:{} + }, + ] + }, + { + name:'外网带宽监控', + data:[ + { + name:'外网出带宽Mbps', + target:'WanOuttraffic', + unit:"Mbps", + tip:'外网平均每秒出流量,最小粒度数据为10秒总流量/10秒 计算得出', + echartsData:{} + }, + { + name:'外网入带宽Mbps', + target:'WanIntraffic', + unit:"Mbps", + tip:'外网平均每秒入流量', + echartsData:{} + }, + { + name:'外网出包量个/秒', + target:'WanOutpkg', + unit:"个/秒", + tip:'内网网卡的平均每秒出包量', + echartsData:{} + }, + { + name:'外网入包量个/秒', + target:'WanInpkg', + unit:"个/秒", + tip:'内网网卡的平均每秒入包量', + echartsData:{} + }, + { + name:'外网出流量MB', + target:'AccOuttraffic', + unit:"MB", + tip:'处于 ESTABLISHED 状态的 TCP 连接数量,依赖监控组件安装采集', + echartsData:{} + }, + ] + } + ] diff --git a/src/components/ServiceWatch/serverDetail.vue b/src/components/ServiceWatch/serverDetail.vue new file mode 100644 index 0000000..45087b5 --- /dev/null +++ b/src/components/ServiceWatch/serverDetail.vue @@ -0,0 +1,107 @@ + + + + + \ No newline at end of file diff --git a/src/components/ServiceWatch/serverManage.vue b/src/components/ServiceWatch/serverManage.vue new file mode 100644 index 0000000..a3d5fe5 --- /dev/null +++ b/src/components/ServiceWatch/serverManage.vue @@ -0,0 +1,454 @@ + + + + + + + \ No newline at end of file diff --git a/src/components/common/PageChart/line/index.vue b/src/components/common/PageChart/line/index.vue new file mode 100644 index 0000000..e750aee --- /dev/null +++ b/src/components/common/PageChart/line/index.vue @@ -0,0 +1,308 @@ + + + \ No newline at end of file diff --git a/config/index.js b/config/index.js index 45fc349..43b70bd 100644 --- a/config/index.js +++ b/config/index.js @@ -75,7 +75,15 @@ pathRewrite: { "^/IotPc": "" //需要rewrite重写的, } - } + }, + '/serverManage': { + // 服务器 + 'target': 'http://192.168.16.254:8080', // 孙逢时 + 'changeOrigin': true, //是否跨域 + 'pathRewrite': { + '^/serverManage': '' //需要rewrite重写的, + } + }, }, // Various Dev Server settings diff --git a/src/assets/css/common.css b/src/assets/css/common.css index 1e9d67d..e1b0809 100644 --- a/src/assets/css/common.css +++ b/src/assets/css/common.css @@ -78,6 +78,15 @@ .flex-d{ flex-direction: column; } +.table-p{ + font-size: 13px; + text-align: center; + line-height: 18px; +} +.table-p-cursor{ + color: #409EFF; + cursor: pointer; +} .page-data { display: flex; flex-direction: column; diff --git a/src/components/ServiceWatch/components/applied.vue b/src/components/ServiceWatch/components/applied.vue new file mode 100644 index 0000000..f3f4edf --- /dev/null +++ b/src/components/ServiceWatch/components/applied.vue @@ -0,0 +1,257 @@ + + + + + \ No newline at end of file diff --git a/src/components/ServiceWatch/components/detail.vue b/src/components/ServiceWatch/components/detail.vue new file mode 100644 index 0000000..8a350a0 --- /dev/null +++ b/src/components/ServiceWatch/components/detail.vue @@ -0,0 +1,146 @@ + + + + + \ No newline at end of file diff --git a/src/components/ServiceWatch/components/monitor.vue b/src/components/ServiceWatch/components/monitor.vue new file mode 100644 index 0000000..69123a4 --- /dev/null +++ b/src/components/ServiceWatch/components/monitor.vue @@ -0,0 +1,738 @@ + + + + + \ No newline at end of file diff --git a/src/components/ServiceWatch/components/monitor01.js b/src/components/ServiceWatch/components/monitor01.js new file mode 100644 index 0000000..1e4797a --- /dev/null +++ b/src/components/ServiceWatch/components/monitor01.js @@ -0,0 +1,132 @@ +export const dataAll = [ + { + name:'cpu监控', + data:[ + { + name:'cpu利用率%', + target:'CPUUsage', + unit:"%", + tip:'CPU利用率是通过CVM子机内部监控组件采集上报,数据更加精准', + echartsData:{} + }, + { + name:'基础cpu使用率%', + target:'BaseCpuUsage', + unit:"%", + tip:'基础CPU使用率通过宿主机采集上报,无须安装监控组件即可查看数据,子机高负载情况下仍可持续采集上报数据', + echartsData:{} + } + ] + }, + { + name:'系统平均负载', + data:[ + { + name:'CPU平均负载', + target:'CpuLoadavg', + unit:"", + tip:'1分钟内CPU平均负载,取 /proc/loadavg 第一列数据(windows操作系统无此指标),依赖监控组件安装采集', + echartsData:{} + } + ] + }, + { + name:'内存监控', + data:[ + { + name:'内存使用量MB', + target:'MemUsed', + unit:"MB", + tip:'使用的内存量,不包括系统缓存和缓存区占用内存,依赖监控组件安装采集', + echartsData:{} + }, + { + name:'内存利用率%', + target:'MemUsage', + unit:"%", + tip:'用户实际使用的内存量与总内存量之比,不包括缓冲区与系统缓存占用的内存', + echartsData:{} + } + ] + }, + { + name:'内网带宽监控', + data:[ + { + name:'内网出带宽Mbps', + target:'LanOuttraffic', + unit:"Mbps", + tip:'内网网卡的平均每秒出流量', + echartsData:{} + }, + { + name:'内网入带宽Mbps', + target:'LanIntraffic', + unit:"Mbps", + tip:'内网网卡的平均每秒入流量', + echartsData:{} + }, + { + name:'内网出包量个/秒', + target:'LanOutpkg', + unit:"个/秒", + tip:'内网网卡的平均每秒出包量', + echartsData:{} + }, + { + name:'内网入包量个/秒', + target:'LanInpkg', + unit:"个/秒", + tip:'内网网卡的平均每秒入包量', + echartsData:{} + }, + { + name:'TCP连接数个', + target:'TcpCurrEstab', + unit:"个", + tip:'处于 ESTABLISHED 状态的 TCP 连接数量,依赖监控组件安装采集', + echartsData:{} + }, + ] + }, + { + name:'外网带宽监控', + data:[ + { + name:'外网出带宽Mbps', + target:'WanOuttraffic', + unit:"Mbps", + tip:'外网平均每秒出流量,最小粒度数据为10秒总流量/10秒 计算得出', + echartsData:{} + }, + { + name:'外网入带宽Mbps', + target:'WanIntraffic', + unit:"Mbps", + tip:'外网平均每秒入流量', + echartsData:{} + }, + { + name:'外网出包量个/秒', + target:'WanOutpkg', + unit:"个/秒", + tip:'内网网卡的平均每秒出包量', + echartsData:{} + }, + { + name:'外网入包量个/秒', + target:'WanInpkg', + unit:"个/秒", + tip:'内网网卡的平均每秒入包量', + echartsData:{} + }, + { + name:'外网出流量MB', + target:'AccOuttraffic', + unit:"MB", + tip:'处于 ESTABLISHED 状态的 TCP 连接数量,依赖监控组件安装采集', + echartsData:{} + }, + ] + } + ] diff --git a/src/components/ServiceWatch/serverDetail.vue b/src/components/ServiceWatch/serverDetail.vue new file mode 100644 index 0000000..45087b5 --- /dev/null +++ b/src/components/ServiceWatch/serverDetail.vue @@ -0,0 +1,107 @@ + + + + + \ No newline at end of file diff --git a/src/components/ServiceWatch/serverManage.vue b/src/components/ServiceWatch/serverManage.vue new file mode 100644 index 0000000..a3d5fe5 --- /dev/null +++ b/src/components/ServiceWatch/serverManage.vue @@ -0,0 +1,454 @@ + + + + + + + \ No newline at end of file diff --git a/src/components/common/PageChart/line/index.vue b/src/components/common/PageChart/line/index.vue new file mode 100644 index 0000000..e750aee --- /dev/null +++ b/src/components/common/PageChart/line/index.vue @@ -0,0 +1,308 @@ + + + \ No newline at end of file diff --git a/src/components/common/PageTable/index.vue b/src/components/common/PageTable/index.vue index 1b82a2b..01ba393 100644 --- a/src/components/common/PageTable/index.vue +++ b/src/components/common/PageTable/index.vue @@ -227,6 +227,11 @@ type: { type: String, default: "all" + }, + //表格传递的参数是否同级 + isLevel: { + type: Boolean, + default: false } }, data() { @@ -274,8 +279,14 @@ // } } // 如果不需要分页,则无分页相关参数 - const dataObj = this.pagination ? { data: obj } : { data: {} }; - return this.pagination ? { ...this.listInfo.query, ...dataObj } : dataObj; + // const dataObj = this.pagination ? { data: obj } : { data: {} }; + // return this.pagination ? { ...this.listInfo.query, ...dataObj } : dataObj; + if(!this.isLevel) { + const dataObj = this.pagination ? { data: obj } : { data: {} }; + return this.pagination ? { ...this.listInfo.query, ...dataObj } : dataObj; + }else{ + return this.pagination ? { ...this.listInfo.query, ...obj } : obj + } }, //选中数据 handleSelectionChange(rows) { diff --git a/config/index.js b/config/index.js index 45fc349..43b70bd 100644 --- a/config/index.js +++ b/config/index.js @@ -75,7 +75,15 @@ pathRewrite: { "^/IotPc": "" //需要rewrite重写的, } - } + }, + '/serverManage': { + // 服务器 + 'target': 'http://192.168.16.254:8080', // 孙逢时 + 'changeOrigin': true, //是否跨域 + 'pathRewrite': { + '^/serverManage': '' //需要rewrite重写的, + } + }, }, // Various Dev Server settings diff --git a/src/assets/css/common.css b/src/assets/css/common.css index 1e9d67d..e1b0809 100644 --- a/src/assets/css/common.css +++ b/src/assets/css/common.css @@ -78,6 +78,15 @@ .flex-d{ flex-direction: column; } +.table-p{ + font-size: 13px; + text-align: center; + line-height: 18px; +} +.table-p-cursor{ + color: #409EFF; + cursor: pointer; +} .page-data { display: flex; flex-direction: column; diff --git a/src/components/ServiceWatch/components/applied.vue b/src/components/ServiceWatch/components/applied.vue new file mode 100644 index 0000000..f3f4edf --- /dev/null +++ b/src/components/ServiceWatch/components/applied.vue @@ -0,0 +1,257 @@ + + + + + \ No newline at end of file diff --git a/src/components/ServiceWatch/components/detail.vue b/src/components/ServiceWatch/components/detail.vue new file mode 100644 index 0000000..8a350a0 --- /dev/null +++ b/src/components/ServiceWatch/components/detail.vue @@ -0,0 +1,146 @@ + + + + + \ No newline at end of file diff --git a/src/components/ServiceWatch/components/monitor.vue b/src/components/ServiceWatch/components/monitor.vue new file mode 100644 index 0000000..69123a4 --- /dev/null +++ b/src/components/ServiceWatch/components/monitor.vue @@ -0,0 +1,738 @@ + + + + + \ No newline at end of file diff --git a/src/components/ServiceWatch/components/monitor01.js b/src/components/ServiceWatch/components/monitor01.js new file mode 100644 index 0000000..1e4797a --- /dev/null +++ b/src/components/ServiceWatch/components/monitor01.js @@ -0,0 +1,132 @@ +export const dataAll = [ + { + name:'cpu监控', + data:[ + { + name:'cpu利用率%', + target:'CPUUsage', + unit:"%", + tip:'CPU利用率是通过CVM子机内部监控组件采集上报,数据更加精准', + echartsData:{} + }, + { + name:'基础cpu使用率%', + target:'BaseCpuUsage', + unit:"%", + tip:'基础CPU使用率通过宿主机采集上报,无须安装监控组件即可查看数据,子机高负载情况下仍可持续采集上报数据', + echartsData:{} + } + ] + }, + { + name:'系统平均负载', + data:[ + { + name:'CPU平均负载', + target:'CpuLoadavg', + unit:"", + tip:'1分钟内CPU平均负载,取 /proc/loadavg 第一列数据(windows操作系统无此指标),依赖监控组件安装采集', + echartsData:{} + } + ] + }, + { + name:'内存监控', + data:[ + { + name:'内存使用量MB', + target:'MemUsed', + unit:"MB", + tip:'使用的内存量,不包括系统缓存和缓存区占用内存,依赖监控组件安装采集', + echartsData:{} + }, + { + name:'内存利用率%', + target:'MemUsage', + unit:"%", + tip:'用户实际使用的内存量与总内存量之比,不包括缓冲区与系统缓存占用的内存', + echartsData:{} + } + ] + }, + { + name:'内网带宽监控', + data:[ + { + name:'内网出带宽Mbps', + target:'LanOuttraffic', + unit:"Mbps", + tip:'内网网卡的平均每秒出流量', + echartsData:{} + }, + { + name:'内网入带宽Mbps', + target:'LanIntraffic', + unit:"Mbps", + tip:'内网网卡的平均每秒入流量', + echartsData:{} + }, + { + name:'内网出包量个/秒', + target:'LanOutpkg', + unit:"个/秒", + tip:'内网网卡的平均每秒出包量', + echartsData:{} + }, + { + name:'内网入包量个/秒', + target:'LanInpkg', + unit:"个/秒", + tip:'内网网卡的平均每秒入包量', + echartsData:{} + }, + { + name:'TCP连接数个', + target:'TcpCurrEstab', + unit:"个", + tip:'处于 ESTABLISHED 状态的 TCP 连接数量,依赖监控组件安装采集', + echartsData:{} + }, + ] + }, + { + name:'外网带宽监控', + data:[ + { + name:'外网出带宽Mbps', + target:'WanOuttraffic', + unit:"Mbps", + tip:'外网平均每秒出流量,最小粒度数据为10秒总流量/10秒 计算得出', + echartsData:{} + }, + { + name:'外网入带宽Mbps', + target:'WanIntraffic', + unit:"Mbps", + tip:'外网平均每秒入流量', + echartsData:{} + }, + { + name:'外网出包量个/秒', + target:'WanOutpkg', + unit:"个/秒", + tip:'内网网卡的平均每秒出包量', + echartsData:{} + }, + { + name:'外网入包量个/秒', + target:'WanInpkg', + unit:"个/秒", + tip:'内网网卡的平均每秒入包量', + echartsData:{} + }, + { + name:'外网出流量MB', + target:'AccOuttraffic', + unit:"MB", + tip:'处于 ESTABLISHED 状态的 TCP 连接数量,依赖监控组件安装采集', + echartsData:{} + }, + ] + } + ] diff --git a/src/components/ServiceWatch/serverDetail.vue b/src/components/ServiceWatch/serverDetail.vue new file mode 100644 index 0000000..45087b5 --- /dev/null +++ b/src/components/ServiceWatch/serverDetail.vue @@ -0,0 +1,107 @@ + + + + + \ No newline at end of file diff --git a/src/components/ServiceWatch/serverManage.vue b/src/components/ServiceWatch/serverManage.vue new file mode 100644 index 0000000..a3d5fe5 --- /dev/null +++ b/src/components/ServiceWatch/serverManage.vue @@ -0,0 +1,454 @@ + + + + + + + \ No newline at end of file diff --git a/src/components/common/PageChart/line/index.vue b/src/components/common/PageChart/line/index.vue new file mode 100644 index 0000000..e750aee --- /dev/null +++ b/src/components/common/PageChart/line/index.vue @@ -0,0 +1,308 @@ + + + \ No newline at end of file diff --git a/src/components/common/PageTable/index.vue b/src/components/common/PageTable/index.vue index 1b82a2b..01ba393 100644 --- a/src/components/common/PageTable/index.vue +++ b/src/components/common/PageTable/index.vue @@ -227,6 +227,11 @@ type: { type: String, default: "all" + }, + //表格传递的参数是否同级 + isLevel: { + type: Boolean, + default: false } }, data() { @@ -274,8 +279,14 @@ // } } // 如果不需要分页,则无分页相关参数 - const dataObj = this.pagination ? { data: obj } : { data: {} }; - return this.pagination ? { ...this.listInfo.query, ...dataObj } : dataObj; + // const dataObj = this.pagination ? { data: obj } : { data: {} }; + // return this.pagination ? { ...this.listInfo.query, ...dataObj } : dataObj; + if(!this.isLevel) { + const dataObj = this.pagination ? { data: obj } : { data: {} }; + return this.pagination ? { ...this.listInfo.query, ...dataObj } : dataObj; + }else{ + return this.pagination ? { ...this.listInfo.query, ...obj } : obj + } }, //选中数据 handleSelectionChange(rows) { diff --git a/src/components/index.js b/src/components/index.js index 2b2ed2a..faf7b38 100644 --- a/src/components/index.js +++ b/src/components/index.js @@ -2,10 +2,12 @@ import PageFilter from "@/components/common/PageFilter"; import PageForm from "@/components/common/PageForm"; import PageTable from "@/components/common/PageTable"; +import ChartLine from "@/components/common/PageChart/line"; export default Vue => { Vue.component("page-dialog", PageDialog); Vue.component("page-filter", PageFilter); Vue.component("page-form", PageForm); Vue.component("page-table", PageTable); + Vue.component("chart-line", ChartLine); }; diff --git a/config/index.js b/config/index.js index 45fc349..43b70bd 100644 --- a/config/index.js +++ b/config/index.js @@ -75,7 +75,15 @@ pathRewrite: { "^/IotPc": "" //需要rewrite重写的, } - } + }, + '/serverManage': { + // 服务器 + 'target': 'http://192.168.16.254:8080', // 孙逢时 + 'changeOrigin': true, //是否跨域 + 'pathRewrite': { + '^/serverManage': '' //需要rewrite重写的, + } + }, }, // Various Dev Server settings diff --git a/src/assets/css/common.css b/src/assets/css/common.css index 1e9d67d..e1b0809 100644 --- a/src/assets/css/common.css +++ b/src/assets/css/common.css @@ -78,6 +78,15 @@ .flex-d{ flex-direction: column; } +.table-p{ + font-size: 13px; + text-align: center; + line-height: 18px; +} +.table-p-cursor{ + color: #409EFF; + cursor: pointer; +} .page-data { display: flex; flex-direction: column; diff --git a/src/components/ServiceWatch/components/applied.vue b/src/components/ServiceWatch/components/applied.vue new file mode 100644 index 0000000..f3f4edf --- /dev/null +++ b/src/components/ServiceWatch/components/applied.vue @@ -0,0 +1,257 @@ + + + + + \ No newline at end of file diff --git a/src/components/ServiceWatch/components/detail.vue b/src/components/ServiceWatch/components/detail.vue new file mode 100644 index 0000000..8a350a0 --- /dev/null +++ b/src/components/ServiceWatch/components/detail.vue @@ -0,0 +1,146 @@ + + + + + \ No newline at end of file diff --git a/src/components/ServiceWatch/components/monitor.vue b/src/components/ServiceWatch/components/monitor.vue new file mode 100644 index 0000000..69123a4 --- /dev/null +++ b/src/components/ServiceWatch/components/monitor.vue @@ -0,0 +1,738 @@ + + + + + \ No newline at end of file diff --git a/src/components/ServiceWatch/components/monitor01.js b/src/components/ServiceWatch/components/monitor01.js new file mode 100644 index 0000000..1e4797a --- /dev/null +++ b/src/components/ServiceWatch/components/monitor01.js @@ -0,0 +1,132 @@ +export const dataAll = [ + { + name:'cpu监控', + data:[ + { + name:'cpu利用率%', + target:'CPUUsage', + unit:"%", + tip:'CPU利用率是通过CVM子机内部监控组件采集上报,数据更加精准', + echartsData:{} + }, + { + name:'基础cpu使用率%', + target:'BaseCpuUsage', + unit:"%", + tip:'基础CPU使用率通过宿主机采集上报,无须安装监控组件即可查看数据,子机高负载情况下仍可持续采集上报数据', + echartsData:{} + } + ] + }, + { + name:'系统平均负载', + data:[ + { + name:'CPU平均负载', + target:'CpuLoadavg', + unit:"", + tip:'1分钟内CPU平均负载,取 /proc/loadavg 第一列数据(windows操作系统无此指标),依赖监控组件安装采集', + echartsData:{} + } + ] + }, + { + name:'内存监控', + data:[ + { + name:'内存使用量MB', + target:'MemUsed', + unit:"MB", + tip:'使用的内存量,不包括系统缓存和缓存区占用内存,依赖监控组件安装采集', + echartsData:{} + }, + { + name:'内存利用率%', + target:'MemUsage', + unit:"%", + tip:'用户实际使用的内存量与总内存量之比,不包括缓冲区与系统缓存占用的内存', + echartsData:{} + } + ] + }, + { + name:'内网带宽监控', + data:[ + { + name:'内网出带宽Mbps', + target:'LanOuttraffic', + unit:"Mbps", + tip:'内网网卡的平均每秒出流量', + echartsData:{} + }, + { + name:'内网入带宽Mbps', + target:'LanIntraffic', + unit:"Mbps", + tip:'内网网卡的平均每秒入流量', + echartsData:{} + }, + { + name:'内网出包量个/秒', + target:'LanOutpkg', + unit:"个/秒", + tip:'内网网卡的平均每秒出包量', + echartsData:{} + }, + { + name:'内网入包量个/秒', + target:'LanInpkg', + unit:"个/秒", + tip:'内网网卡的平均每秒入包量', + echartsData:{} + }, + { + name:'TCP连接数个', + target:'TcpCurrEstab', + unit:"个", + tip:'处于 ESTABLISHED 状态的 TCP 连接数量,依赖监控组件安装采集', + echartsData:{} + }, + ] + }, + { + name:'外网带宽监控', + data:[ + { + name:'外网出带宽Mbps', + target:'WanOuttraffic', + unit:"Mbps", + tip:'外网平均每秒出流量,最小粒度数据为10秒总流量/10秒 计算得出', + echartsData:{} + }, + { + name:'外网入带宽Mbps', + target:'WanIntraffic', + unit:"Mbps", + tip:'外网平均每秒入流量', + echartsData:{} + }, + { + name:'外网出包量个/秒', + target:'WanOutpkg', + unit:"个/秒", + tip:'内网网卡的平均每秒出包量', + echartsData:{} + }, + { + name:'外网入包量个/秒', + target:'WanInpkg', + unit:"个/秒", + tip:'内网网卡的平均每秒入包量', + echartsData:{} + }, + { + name:'外网出流量MB', + target:'AccOuttraffic', + unit:"MB", + tip:'处于 ESTABLISHED 状态的 TCP 连接数量,依赖监控组件安装采集', + echartsData:{} + }, + ] + } + ] diff --git a/src/components/ServiceWatch/serverDetail.vue b/src/components/ServiceWatch/serverDetail.vue new file mode 100644 index 0000000..45087b5 --- /dev/null +++ b/src/components/ServiceWatch/serverDetail.vue @@ -0,0 +1,107 @@ + + + + + \ No newline at end of file diff --git a/src/components/ServiceWatch/serverManage.vue b/src/components/ServiceWatch/serverManage.vue new file mode 100644 index 0000000..a3d5fe5 --- /dev/null +++ b/src/components/ServiceWatch/serverManage.vue @@ -0,0 +1,454 @@ + + + + + + + \ No newline at end of file diff --git a/src/components/common/PageChart/line/index.vue b/src/components/common/PageChart/line/index.vue new file mode 100644 index 0000000..e750aee --- /dev/null +++ b/src/components/common/PageChart/line/index.vue @@ -0,0 +1,308 @@ + + + \ No newline at end of file diff --git a/src/components/common/PageTable/index.vue b/src/components/common/PageTable/index.vue index 1b82a2b..01ba393 100644 --- a/src/components/common/PageTable/index.vue +++ b/src/components/common/PageTable/index.vue @@ -227,6 +227,11 @@ type: { type: String, default: "all" + }, + //表格传递的参数是否同级 + isLevel: { + type: Boolean, + default: false } }, data() { @@ -274,8 +279,14 @@ // } } // 如果不需要分页,则无分页相关参数 - const dataObj = this.pagination ? { data: obj } : { data: {} }; - return this.pagination ? { ...this.listInfo.query, ...dataObj } : dataObj; + // const dataObj = this.pagination ? { data: obj } : { data: {} }; + // return this.pagination ? { ...this.listInfo.query, ...dataObj } : dataObj; + if(!this.isLevel) { + const dataObj = this.pagination ? { data: obj } : { data: {} }; + return this.pagination ? { ...this.listInfo.query, ...dataObj } : dataObj; + }else{ + return this.pagination ? { ...this.listInfo.query, ...obj } : obj + } }, //选中数据 handleSelectionChange(rows) { diff --git a/src/components/index.js b/src/components/index.js index 2b2ed2a..faf7b38 100644 --- a/src/components/index.js +++ b/src/components/index.js @@ -2,10 +2,12 @@ import PageFilter from "@/components/common/PageFilter"; import PageForm from "@/components/common/PageForm"; import PageTable from "@/components/common/PageTable"; +import ChartLine from "@/components/common/PageChart/line"; export default Vue => { Vue.component("page-dialog", PageDialog); Vue.component("page-filter", PageFilter); Vue.component("page-form", PageForm); Vue.component("page-table", PageTable); + Vue.component("chart-line", ChartLine); }; diff --git a/src/components/index.vue b/src/components/index.vue index 2610bb0..68f095b 100644 --- a/src/components/index.vue +++ b/src/components/index.vue @@ -135,7 +135,13 @@ >统计报表 - + + + 服务器管理 +