From fc4730662706fbdc37f5be69ba2e088ae016e8e1 Mon Sep 17 00:00:00 2001 From: zhanghouying Date: Fri, 1 Nov 2019 14:54:04 +0800 Subject: [PATCH 01/64] =?UTF-8?q?=E4=B8=B0=E5=AF=8C=E9=A6=96=E9=A1=B5Echar?= =?UTF-8?q?ts=E5=9B=BE=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + src/views/dashboard/Category.vue | 438 ++++++++++++++++++ src/views/dashboard/Funnel.vue | 120 +++++ src/views/dashboard/Gauge.vue | 74 +++ src/views/dashboard/Graph.vue | 101 ++++ src/views/dashboard/HeatMap.vue | 105 +++++ src/views/dashboard/Line3D.vue | 96 ++++ src/views/dashboard/Point.vue | 149 ++++++ .../{RaddarChart.vue => RadarChart.vue} | 0 src/views/dashboard/Rich.vue | 149 ++++++ src/views/dashboard/Sankey.vue | 100 ++++ src/views/dashboard/Scatter.vue | 143 ++++++ src/views/dashboard/Sunburst.vue | 107 +++++ src/views/dashboard/ThemeRiver.vue | 148 ++++++ src/views/home.vue | 104 ++++- 15 files changed, 1828 insertions(+), 7 deletions(-) create mode 100644 src/views/dashboard/Category.vue create mode 100644 src/views/dashboard/Funnel.vue create mode 100644 src/views/dashboard/Gauge.vue create mode 100644 src/views/dashboard/Graph.vue create mode 100644 src/views/dashboard/HeatMap.vue create mode 100644 src/views/dashboard/Line3D.vue create mode 100644 src/views/dashboard/Point.vue rename src/views/dashboard/{RaddarChart.vue => RadarChart.vue} (100%) create mode 100644 src/views/dashboard/Rich.vue create mode 100644 src/views/dashboard/Sankey.vue create mode 100644 src/views/dashboard/Scatter.vue create mode 100644 src/views/dashboard/Sunburst.vue create mode 100644 src/views/dashboard/ThemeRiver.vue diff --git a/package.json b/package.json index 4c6f09f..82a1928 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,7 @@ "codemirror": "^5.38.0", "connect": "3.6.6", "echarts": "^4.1.0", + "echarts-gl": "^1.1.1", "element-ui": "^2.12.0", "file-saver": "1.3.8", "js-cookie": "2.2.0", diff --git a/src/views/dashboard/Category.vue b/src/views/dashboard/Category.vue new file mode 100644 index 0000000..767b981 --- /dev/null +++ b/src/views/dashboard/Category.vue @@ -0,0 +1,438 @@ + + + diff --git a/src/views/dashboard/Funnel.vue b/src/views/dashboard/Funnel.vue new file mode 100644 index 0000000..f8c7de3 --- /dev/null +++ b/src/views/dashboard/Funnel.vue @@ -0,0 +1,120 @@ + + + diff --git a/src/views/dashboard/Gauge.vue b/src/views/dashboard/Gauge.vue new file mode 100644 index 0000000..b5030ce --- /dev/null +++ b/src/views/dashboard/Gauge.vue @@ -0,0 +1,74 @@ + + + diff --git a/src/views/dashboard/Graph.vue b/src/views/dashboard/Graph.vue new file mode 100644 index 0000000..72397ee --- /dev/null +++ b/src/views/dashboard/Graph.vue @@ -0,0 +1,101 @@ + + + diff --git a/src/views/dashboard/HeatMap.vue b/src/views/dashboard/HeatMap.vue new file mode 100644 index 0000000..c1a6db6 --- /dev/null +++ b/src/views/dashboard/HeatMap.vue @@ -0,0 +1,105 @@ + + + diff --git a/src/views/dashboard/Line3D.vue b/src/views/dashboard/Line3D.vue new file mode 100644 index 0000000..3277f92 --- /dev/null +++ b/src/views/dashboard/Line3D.vue @@ -0,0 +1,96 @@ + + + diff --git a/src/views/dashboard/Point.vue b/src/views/dashboard/Point.vue new file mode 100644 index 0000000..a0e292d --- /dev/null +++ b/src/views/dashboard/Point.vue @@ -0,0 +1,149 @@ + + + diff --git a/src/views/dashboard/RaddarChart.vue b/src/views/dashboard/RadarChart.vue similarity index 100% rename from src/views/dashboard/RaddarChart.vue rename to src/views/dashboard/RadarChart.vue diff --git a/src/views/dashboard/Rich.vue b/src/views/dashboard/Rich.vue new file mode 100644 index 0000000..f7c87e4 --- /dev/null +++ b/src/views/dashboard/Rich.vue @@ -0,0 +1,149 @@ + + + diff --git a/src/views/dashboard/Sankey.vue b/src/views/dashboard/Sankey.vue new file mode 100644 index 0000000..208c4b7 --- /dev/null +++ b/src/views/dashboard/Sankey.vue @@ -0,0 +1,100 @@ + + + diff --git a/src/views/dashboard/Scatter.vue b/src/views/dashboard/Scatter.vue new file mode 100644 index 0000000..b91112e --- /dev/null +++ b/src/views/dashboard/Scatter.vue @@ -0,0 +1,143 @@ + + + diff --git a/src/views/dashboard/Sunburst.vue b/src/views/dashboard/Sunburst.vue new file mode 100644 index 0000000..a61aa51 --- /dev/null +++ b/src/views/dashboard/Sunburst.vue @@ -0,0 +1,107 @@ + + + diff --git a/src/views/dashboard/ThemeRiver.vue b/src/views/dashboard/ThemeRiver.vue new file mode 100644 index 0000000..73147d7 --- /dev/null +++ b/src/views/dashboard/ThemeRiver.vue @@ -0,0 +1,148 @@ + + + diff --git a/src/views/home.vue b/src/views/home.vue index bf2cad1..d7e04b3 100644 --- a/src/views/home.vue +++ b/src/views/home.vue @@ -2,15 +2,13 @@
- -
- +
@@ -24,6 +22,72 @@
+ + + + + +
+ +
+
+ +
+ +
+
+ +
+ +
+
+
+ + +
+ +
+
+ +
+ +
+
+
+ + +
+ +
+
+ +
+ +
+
+ +
+ +
+
+
+ + +
+ +
+
+ +
+ +
+
+
+ +
+ +
+
@@ -32,24 +96,50 @@ import { mapGetters } from 'vuex' import PanelGroup from './dashboard/PanelGroup' import LineChart from './dashboard/LineChart' -import RaddarChart from './dashboard/RaddarChart' +import RadarChart from './dashboard/RadarChart' import PieChart from './dashboard/PieChart' import BarChart from './dashboard/BarChart' import { count } from '@/api/visits' +import HeatMap from './dashboard/HeatMap' +import Funnel from './dashboard/Funnel' +import Gauge from './dashboard/Gauge' +import Rich from './dashboard/Rich' +import ThemeRiver from './dashboard/ThemeRiver' +import Sunburst from './dashboard/Sunburst' +import Graph from './dashboard/Graph' +import Sankey from './dashboard/Sankey' +import Scatter from './dashboard/Scatter' +import Line3D from './dashboard/Line3D' +import Category from './dashboard/Category' +import Point from './dashboard/Point' /** * 记录访问,只有页面刷新或者第一次加载才会记录 */ -count().then(res => {}) +count().then(res => { +}) export default { name: 'Dashboard', components: { + Point, + Category, + Graph, + HeatMap, PanelGroup, LineChart, - RaddarChart, + RadarChart, PieChart, - BarChart }, + Funnel, + Sunburst, + Gauge, + Rich, + ThemeRiver, + Sankey, + Line3D, + Scatter, + BarChart + }, computed: { ...mapGetters([ 'roles' From a3c32d4f83ab7cb586973263b5e17ba0a78ca82d Mon Sep 17 00:00:00 2001 From: zhanghouying Date: Tue, 5 Nov 2019 13:49:01 +0800 Subject: [PATCH 02/64] =?UTF-8?q?=E7=AC=AC=E4=B8=80=E7=89=88=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E5=99=A8=E7=9B=91=E6=8E=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/monitor/server/form.vue | 131 +++++++++++++++++++ src/views/monitor/server/index.vue | 201 +++++++++++++++++++++++++++++ 2 files changed, 332 insertions(+) create mode 100644 src/views/monitor/server/form.vue create mode 100644 src/views/monitor/server/index.vue diff --git a/src/views/monitor/server/form.vue b/src/views/monitor/server/form.vue new file mode 100644 index 0000000..191b6ba --- /dev/null +++ b/src/views/monitor/server/form.vue @@ -0,0 +1,131 @@ + + + + + diff --git a/src/views/monitor/server/index.vue b/src/views/monitor/server/index.vue new file mode 100644 index 0000000..e7c19f2 --- /dev/null +++ b/src/views/monitor/server/index.vue @@ -0,0 +1,201 @@ + + + + + From f82afb0929b91d7d6eea8ee717f91d98cfae704a Mon Sep 17 00:00:00 2001 From: dqjdda <201507802@qq.com> Date: Thu, 7 Nov 2019 11:12:21 +0800 Subject: [PATCH 03/64] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=AA=E4=BA=BA?= =?UTF-8?q?=E4=B8=AD=E5=BF=83=E9=A1=B5=E9=9D=A2=E7=9A=84=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E5=88=B7=E6=96=B0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/user/center.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/system/user/center.vue b/src/views/system/user/center.vue index 5f69ea3..4bb0c9c 100644 --- a/src/views/system/user/center.vue +++ b/src/views/system/user/center.vue @@ -143,7 +143,7 @@ export default { }, refresh() { this.ico = 'el-icon-loading' - this.$refs.log.init() + this.init() setTimeout(() => { this.ico = 'el-icon-refresh' }, 300) From a7b2209950508383b3f40e49f24407ce31fe0a70 Mon Sep 17 00:00:00 2001 From: dqjdda <201507802@qq.com> Date: Thu, 7 Nov 2019 13:14:48 +0800 Subject: [PATCH 04/64] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= =?UTF-8?q?=EF=BC=8C=E5=8A=A0=E5=85=A5server.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/server.js | 24 ++++++ src/views/home.vue | 132 ++++++++++++++--------------- src/views/monitor/server/index.vue | 1 + 3 files changed, 91 insertions(+), 66 deletions(-) create mode 100644 src/api/server.js diff --git a/src/api/server.js b/src/api/server.js new file mode 100644 index 0000000..e68a22c --- /dev/null +++ b/src/api/server.js @@ -0,0 +1,24 @@ +import request from '@/utils/request' + +export function add(data) { + return request({ + url: 'api/server', + method: 'post', + data + }) +} + +export function del(id) { + return request({ + url: 'api/server/' + id, + method: 'delete' + }) +} + +export function edit(data) { + return request({ + url: 'api/server', + method: 'put', + data + }) +} diff --git a/src/views/home.vue b/src/views/home.vue index d7e04b3..7e55a6b 100644 --- a/src/views/home.vue +++ b/src/views/home.vue @@ -5,32 +5,32 @@ + + + + + + + + + + + + + + + + + + + +
- -
- -
-
- -
- -
-
-
- - - - - -
- -
-
@@ -42,52 +42,52 @@
- - -
- -
-
- -
- -
-
-
- - -
- -
-
- -
- -
-
- -
- -
-
-
- - -
- -
-
- -
- -
-
-
- -
- -
-
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/monitor/server/index.vue b/src/views/monitor/server/index.vue index e7c19f2..0bf6400 100644 --- a/src/views/monitor/server/index.vue +++ b/src/views/monitor/server/index.vue @@ -86,6 +86,7 @@ import initData from '@/mixins/initData' import { del } from '@/api/server' import eForm from './form' export default { + name: 'ServerMonitor', components: { eForm }, mixins: [initData], data() { From 752d9c84785aee3dcf8ed602ff736acb5b4899b5 Mon Sep 17 00:00:00 2001 From: zhanghouying Date: Fri, 8 Nov 2019 15:59:48 +0800 Subject: [PATCH 05/64] =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E5=99=A8=E7=9B=91?= =?UTF-8?q?=E6=8E=A7=E9=A1=B5=E9=9D=A2=E9=83=A8=E5=88=86=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E8=BF=9B=E5=BA=A6=E6=9D=A1=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/monitor/server/index.vue | 98 ++++++++++++++++++++++-------- 1 file changed, 74 insertions(+), 24 deletions(-) diff --git a/src/views/monitor/server/index.vue b/src/views/monitor/server/index.vue index 0bf6400..ffd4d1c 100644 --- a/src/views/monitor/server/index.vue +++ b/src/views/monitor/server/index.vue @@ -26,17 +26,15 @@ class="filter-item" type="warning" icon="el-icon-refresh" - @click="refresh">刷新 + @click="refresh">刷新 + - - - - + - - - - - + + + + + + + + + + + + + +