From 54ffec7be94f90db0e337f61b9bb72f2bc2175fa Mon Sep 17 00:00:00 2001 From: liudianxin Date: Wed, 15 Jul 2020 15:22:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=94=E7=94=A8=E6=A1=86?= =?UTF-8?q?=E6=9E=B6=EF=BC=8C=E6=9F=B1=E7=8A=B6=E5=9B=BE=E8=B0=83=E6=95=B4?= =?UTF-8?q?=EF=BC=8C=E6=9B=B2=E7=BA=BF=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/e-charts/bar-chart.vue | 14 +- src/components/e-charts/dashboard.vue | 4 +- src/components/e-charts/graph.vue | 131 +++++++++++ src/pages/data-analysis/my-application.vue | 253 ++++++++++++++++++++- src/pages/data-analysis/my-service.vue | 34 ++- 5 files changed, 423 insertions(+), 13 deletions(-) create mode 100644 src/components/e-charts/graph.vue diff --git a/src/components/e-charts/bar-chart.vue b/src/components/e-charts/bar-chart.vue index 3f0f3bc..41b0656 100644 --- a/src/components/e-charts/bar-chart.vue +++ b/src/components/e-charts/bar-chart.vue @@ -12,7 +12,6 @@ export default { return { xaxis: [], data: [] - }; } }, @@ -37,14 +36,19 @@ export default { default: false } }, - data: () => ({ - navList: [] - }), + data: () => ({}), mounted() {}, methods: { bar() { let self = this; return { + grid: { + left: 10, + right: 10, + bottom: 25, + top: 25, + containLabel: true + }, xAxis: [ { type: "category", @@ -57,7 +61,7 @@ export default { }, interval: 0, rotate: 30, - formatter: function(value) { + formatter: function(value) { let valueTxt = ""; if (value.length > 6) { valueTxt = value.substring(0, 5) + "..."; diff --git a/src/components/e-charts/dashboard.vue b/src/components/e-charts/dashboard.vue index e18ac05..43e93c1 100644 --- a/src/components/e-charts/dashboard.vue +++ b/src/components/e-charts/dashboard.vue @@ -24,9 +24,7 @@ export default { default: false } }, - data: () => ({ - navList: [] - }), + data: () => ({}), mounted() {}, methods: { dashboard() { diff --git a/src/components/e-charts/graph.vue b/src/components/e-charts/graph.vue new file mode 100644 index 0000000..1c8c341 --- /dev/null +++ b/src/components/e-charts/graph.vue @@ -0,0 +1,131 @@ + + + + \ No newline at end of file diff --git a/src/pages/data-analysis/my-application.vue b/src/pages/data-analysis/my-application.vue index 2fc4f2c..a03e790 100644 --- a/src/pages/data-analysis/my-application.vue +++ b/src/pages/data-analysis/my-application.vue @@ -4,18 +4,265 @@ {{ $t("lang.dataAnalysis") }} {{ $t("lang.myApplicationDataAnalysis") }} + + + + + + +
+
+ +
服务总数
+
2222
+
+ +
+
+
+ + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
\ No newline at end of file diff --git a/src/pages/data-analysis/my-service.vue b/src/pages/data-analysis/my-service.vue index 3c64394..6909f71 100644 --- a/src/pages/data-analysis/my-service.vue +++ b/src/pages/data-analysis/my-service.vue @@ -70,7 +70,15 @@ - + + + @@ -108,6 +116,7 @@ import lineChart from "@/components/e-charts/line_chart"; import Toplist from "@/components/e-charts/toplist"; import Starlist from "@/components/e-charts/starlist"; import BarChart from "@/components/e-charts/bar-chart"; +import Graph from "@/components/e-charts/graph"; export default { components: { BlockRadius, @@ -117,7 +126,8 @@ export default { Toplist, Starlist, lineChart, - BarChart + BarChart, + Graph }, data: () => ({ navList: [], @@ -187,6 +197,23 @@ export default { "01-08" ], data: [100, 120, 130, 150, 160, 120, 110, 100] + }, + graph_arr: { + xaxis: [ + "01-01", + "01-02", + "01-03", + "01-04", + "01-05", + "01-06", + "01-07", + "01-08" + ], + data: [ + [1010, 120, 130, 520, 160, 1120, 110, 100], + [100, 1210, 130, 1530, 160, 120, 110, 1200] + ], + legend: ["aaa1", "bbb1"] } }), mounted() {}, @@ -196,6 +223,9 @@ export default { }, changeApplicationFieldBtn(index) { console.log(index); + }, + changeServiceCellBtn(index) { + console.log(index); } } }; -- 2.26.0