diff --git a/src/components/e-charts/bar-chart.vue b/src/components/e-charts/bar-chart.vue index 3f0f3bcb27f45308571053b03e74f87f2f99d53e..41b06568865c7a501fd87743d98057765ec4e3cd 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 74fc47c07a578f49c0a77b186bbfbbd1284b9ce2..9fb89226d33a587b363725259cd0f1df61b5ed76 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 0000000000000000000000000000000000000000..1c8c341b3a7124fe727c75fe45525b4d7b8b3ea8 --- /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 2fc4f2c0143417236d4cfe49b0cb8001979e3685..a03e790b8391f75511f42809759f58e50e87bb47 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 81ecf75adecc6fafd7269afb3e6071b0dd26e547..9deb51cc27fd93d327833ee826cf170c992c59db 100644 --- a/src/pages/data-analysis/my-service.vue +++ b/src/pages/data-analysis/my-service.vue @@ -87,7 +87,15 @@ - + + + @@ -144,6 +152,7 @@ import Toplist from "@/components/e-charts/toplist"; import Starlist from "@/components/e-charts/starlist"; import commentlist from "@/components/e-charts/commentlist"; import BarChart from "@/components/e-charts/bar-chart"; +import Graph from "@/components/e-charts/graph"; export default { components: { BlockRadius, @@ -155,6 +164,7 @@ export default { Starlist, lineChart, BarChart, + Graph }, data: () => ({ navList: [], @@ -332,6 +342,23 @@ export default { unit: "个", }, ], // 服务评分 + 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() {}, methods: { @@ -350,6 +377,10 @@ export default { console.log(index); }, // 服务评价及评分 }, + changeServiceCellBtn(index) { + console.log(index); + } + } };