From f6664c3869a0125ea02061fd5c86552fc78dfe99 Mon Sep 17 00:00:00 2001 From: fengshuonan Date: Sat, 6 Mar 2021 10:28:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E7=9B=91=E6=8E=A7=E7=95=8C?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../webapp/assets/common/js/echartInit.js | 171 -------------- .../pages/modular/system/monitor/jvmInfo.html | 223 ------------------ .../modular/system/monitor/logbackInfo.html | 94 -------- .../system/monitor/performanceInfo.html | 134 ----------- .../modular/system/monitor/tomcatInfo.html | 187 --------------- 5 files changed, 809 deletions(-) delete mode 100644 src/main/webapp/assets/common/js/echartInit.js delete mode 100644 src/main/webapp/pages/modular/system/monitor/jvmInfo.html delete mode 100644 src/main/webapp/pages/modular/system/monitor/logbackInfo.html delete mode 100644 src/main/webapp/pages/modular/system/monitor/performanceInfo.html delete mode 100644 src/main/webapp/pages/modular/system/monitor/tomcatInfo.html diff --git a/src/main/webapp/assets/common/js/echartInit.js b/src/main/webapp/assets/common/js/echartInit.js deleted file mode 100644 index 6eb5e7e3..00000000 --- a/src/main/webapp/assets/common/js/echartInit.js +++ /dev/null @@ -1,171 +0,0 @@ -function initGraph(params){ - const paramsId = echarts.init(document.getElementById(params.id), myEchartsTheme); - let metricData = params.metric; - const option = { - title: { - text: params.id, - x: 'center' - }, - tooltip: { - trigger: 'axis', - formatter: function (datas){ - let res; - datas.map(function (e,i) { - if (res == undefined){ - let datetime = new Date(e.value[0]*1000); - res = datetime.getUTCFullYear().toString()+'-'+datetime.getUTCMonth().toString()+'-'+datetime.getUTCDate().toString()+' '+datetime.getHours().toString()+':'+ datetime.getMinutes().toString() + ':' + datetime.getSeconds().toString() + '
' - } - if (params.unit === 'MB' && e.value[1]>0){ - res += e.marker +" " + e.seriesName + ' : ' + (e.value[1]/1000/1000).toFixed(2) + params.unit + '
' - } else { - res += e.marker +" " + e.seriesName + ' : ' + e.value[1] + '
' - } - }) - return res; - } - }, - xAxis: { - type: 'time', - axisLabel: { - formatter: function(value,index){ - let datetime = new Date(value*1000) - return datetime.getHours().toString()+':'+ datetime.getMinutes().toString() - } - } - }, - yAxis: { - name: params.unit, - type: 'value', - scale: true, - axisLabel: { - formatter: function(value,index){ - if (params.unit == 'MB' && value>0){ - return value/1000/1000 - } else { - return value - } - } - } - }, - series: [{type : 'line', - smooth: true, - animationDuration: 2000, - animationEasing: 'quadraticOut', - name : params.id, - data: metricData, - areaStyle: { // 折现下是否填充 - color: this.color, - opacity: 0.6 - }, - showSymbol: false}], - }; - paramsId.setOption(option); -} - -// 初始化三个数据指标 -function initMultiGraph(multiParams){ - const multiParamsId = echarts.init(document.getElementById(multiParams.id), myEchartsTheme); - let metricData = multiParams.metric; - const option = { - title: { text: multiParams.title, x: 'center' }, - tooltip: { - trigger: 'axis', - formatter: function (datas){ - let res; - datas.map(function (e,i) { - if (res == undefined){ - let datetime = new Date(e.value[0]*1000); - res = datetime.getUTCFullYear().toString()+'-'+datetime.getUTCMonth().toString()+'-'+datetime.getUTCDate().toString()+' '+datetime.getHours().toString()+':'+ datetime.getMinutes().toString() + ':' + datetime.getSeconds().toString() + '
' - } - if (multiParams.unit === 'MB' && e.value[1]>0){ - res += e.marker +" " + e.seriesName + ' : ' + (e.value[1]/1000/1000).toFixed(2) + multiParams.unit + '
' - } else { - res += e.marker +" " + e.seriesName + ' : ' + e.value[1] + '
' - } - }) - return res; - } - }, - legend: { - top:"8%", - formatter: function (name) { - return name; - } - }, - xAxis: { - type: 'time', - axisLabel: { - formatter: function(value,index){ - let datetime = new Date(value*1000) - return datetime.getHours().toString()+':'+ datetime.getMinutes().toString() - } - } - }, - yAxis: { - name: multiParams.unit, - type: 'value', - scale: true, - axisLabel: { - formatter: function(value,index){ - if (multiParams.unit == 'MB' && value>0){ - return value/1000/1000 - } else { - return value - } - } - } - }, - series: [{type : 'line', - smooth: true, - lineStyle : { - color: '#63BAC9', - width : 2, - type : 'solid', - }, - animationDuration: 2000, - animationEasing: 'quadraticOut', - name: metricData.metric1.name, - data: metricData.metric1.value, - areaStyle: { - color: '#1D292D', - opacity: 0.2 - }, - smoothMonotone: 'x', - showSymbol: false}, - {type : 'line', - smooth: true, - lineStyle : { - color: '#B29943', - width : 2, - type : 'solid', - }, - animationDuration: 2000, - animationEasing: 'quadraticOut', - name: metricData.metric2.name, - data: metricData.metric2.value, - areaStyle: { - color: '#313830', - opacity: 0.2 - }, - smoothMonotone: 'x', - showSymbol: false}, - {type : 'line', - smooth: true, - lineStyle : { - color: '#7CA76D', - width : 2, - type : 'solid', - }, - animationDuration: 2000, - animationEasing: 'quadraticOut', - name: metricData.metric3.name, - data: metricData.metric3.value, - areaStyle: { - color: '#394437', - opacity: 0.2 - }, - smoothMonotone: 'x', - showSymbol: false}] - }; - multiParamsId.setOption(option); -} \ No newline at end of file diff --git a/src/main/webapp/pages/modular/system/monitor/jvmInfo.html b/src/main/webapp/pages/modular/system/monitor/jvmInfo.html deleted file mode 100644 index b4897d42..00000000 --- a/src/main/webapp/pages/modular/system/monitor/jvmInfo.html +++ /dev/null @@ -1,223 +0,0 @@ - - - - - - - ${constants.getSystemName()} - - - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -@/* 加入contextPath属性和session超时的配置 */ - - - - - - - - - \ No newline at end of file diff --git a/src/main/webapp/pages/modular/system/monitor/logbackInfo.html b/src/main/webapp/pages/modular/system/monitor/logbackInfo.html deleted file mode 100644 index f1904efe..00000000 --- a/src/main/webapp/pages/modular/system/monitor/logbackInfo.html +++ /dev/null @@ -1,94 +0,0 @@ - - - - - - - ${constants.getSystemName()} - - - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -@/* 加入contextPath属性和session超时的配置 */ - - - - - - - - - \ No newline at end of file diff --git a/src/main/webapp/pages/modular/system/monitor/performanceInfo.html b/src/main/webapp/pages/modular/system/monitor/performanceInfo.html deleted file mode 100644 index 8bf2fe82..00000000 --- a/src/main/webapp/pages/modular/system/monitor/performanceInfo.html +++ /dev/null @@ -1,134 +0,0 @@ - - - - - - - ${constants.getSystemName()} - - - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -@/* 加入contextPath属性和session超时的配置 */ - - - - - - - - - \ No newline at end of file diff --git a/src/main/webapp/pages/modular/system/monitor/tomcatInfo.html b/src/main/webapp/pages/modular/system/monitor/tomcatInfo.html deleted file mode 100644 index b45d0cc2..00000000 --- a/src/main/webapp/pages/modular/system/monitor/tomcatInfo.html +++ /dev/null @@ -1,187 +0,0 @@ - - - - - - - ${constants.getSystemName()} - - - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - @/* 加入contextPath属性和session超时的配置 */ - - - - - - - - - \ No newline at end of file