From d4e701a7bd5eef6e31b42956d38d9619ed649410 Mon Sep 17 00:00:00 2001 From: liudianxin Date: Thu, 16 Jul 2020 13:50:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=80=E5=A0=86=E9=9C=80=E6=B1=82=E8=B0=83?= =?UTF-8?q?=E6=95=B4+=E6=95=B0=E6=8D=AE=E5=88=86=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 9 +- src/components/e-charts/bar-chart.vue | 4 +- src/components/e-charts/dashboard.vue | 12 +- src/components/e-charts/water-polo.vue | 26 ++--- src/components/order-list/order-list-com.vue | 4 +- .../service-list/commodity-list.vue | 4 +- src/components/table/table-um.vue | 4 +- src/pages/data-analysis/my-application.vue | 105 ++++++++++-------- src/pages/data-analysis/my-service.vue | 4 +- src/pages/user/order/order_detail.vue | 12 +- src/pages/workbench/fwzc_fwcs.vue | 2 +- src/request/api/service_shop.js | 2 +- 12 files changed, 104 insertions(+), 84 deletions(-) diff --git a/src/App.vue b/src/App.vue index efc5e64..6e16045 100644 --- a/src/App.vue +++ b/src/App.vue @@ -10,7 +10,7 @@ import bdMenu from "./components/menu"; export default { data: () => ({}), components: { - bdMenu, + bdMenu }, methods: { getCurrentUser() { @@ -20,15 +20,18 @@ export default { console.log(data.data); console.log("--- --- ---"); this.$store.commit("userInfofun", data.data); + if (data.data.is_admin == 1 || data.data.is_admin == 2) { + this.$router.push({ name: "workPlace" }); + } } else { console.log(data.errMsg); } }); - }, + } }, created() { this.getCurrentUser(); - }, + } }; diff --git a/src/components/e-charts/bar-chart.vue b/src/components/e-charts/bar-chart.vue index 1bc083d..6087dd6 100644 --- a/src/components/e-charts/bar-chart.vue +++ b/src/components/e-charts/bar-chart.vue @@ -16,8 +16,8 @@ export default { } }, bar_width: { - type: String, - default: "12px" + type: Number, + default: 12 }, colors: { type: Array, diff --git a/src/components/e-charts/dashboard.vue b/src/components/e-charts/dashboard.vue index 9fb8922..53690c7 100644 --- a/src/components/e-charts/dashboard.vue +++ b/src/components/e-charts/dashboard.vue @@ -100,9 +100,9 @@ export default { self.data.data > 75 ? "#00beb2" //green : self.data.data > 50 - ? "#ff7200" //yellow + ? "#38aef9" //blue : self.data.data > 25 - ? "#da4251" //red + ? "#ff7200" //yellow : "#da4251" //red } } @@ -167,9 +167,9 @@ export default { : self.data.data > 75 ? "#d5f7e8" : self.data.data > 50 - ? "#ffd98f" + ? "#e5f4fe" : self.data.data > 25 - ? "#f7f1d5" + ? "#ffd98f" : "#f7f1d5" }, { @@ -186,9 +186,9 @@ export default { : self.data.data > 75 ? "#00beb2" //green : self.data.data > 50 - ? "#ff7200" //yellow + ? "#38aef9" //blue : self.data.data > 25 - ? "#da4251" //red + ? "#ff7200" //yellow : "#da4251" //red } ]) diff --git a/src/components/e-charts/water-polo.vue b/src/components/e-charts/water-polo.vue index 6d03bee..60442ff 100644 --- a/src/components/e-charts/water-polo.vue +++ b/src/components/e-charts/water-polo.vue @@ -56,12 +56,12 @@ export default { } ], radius: "50%", - center: ["50%", "25%"], + center: ["50%", "20%"], outline: { - borderDistance: 5, + borderDistance: 2, itemStyle: { - borderWidth: 5, - borderColor: "#e56600", + borderWidth: 3, + borderColor: "#274fee", shadowBlur: 0 } }, @@ -79,14 +79,14 @@ export default { colorStops: [ { offset: 1, - color: ["#e6ebfe"] // 0% 处的颜色 + color: ["#c9d3fc"] }, { offset: 0, - color: ["#515fe7"] // 100% 处的颜色 + color: ["#515fe7"] } ], - global: false // 缺省为 false + global: false }, opacity: 1, shadowBlur: 0 @@ -114,11 +114,11 @@ export default { } ], radius: "50%", - center: ["50%", "75%"], + center: ["50%", "70%"], outline: { - borderDistance: 5, + borderDistance: 2, itemStyle: { - borderWidth: 5, + borderWidth: 3, borderColor: "#e56600", shadowBlur: 0 } @@ -137,14 +137,14 @@ export default { colorStops: [ { offset: 1, - color: ["#e6ebfe"] // 0% 处的颜色 + color: ["#f9ddba"] }, { offset: 0, - color: ["#515fe7"] // 100% 处的颜色 + color: ["#ef9433"] } ], - global: false // 缺省为 false + global: false }, opacity: 1, shadowBlur: 0 diff --git a/src/components/order-list/order-list-com.vue b/src/components/order-list/order-list-com.vue index f26ff3f..f3637c1 100644 --- a/src/components/order-list/order-list-com.vue +++ b/src/components/order-list/order-list-com.vue @@ -60,7 +60,7 @@ :disabled="pagination.page == 1" >   第{{ pagination.page }}页 / 共{{ - Math.floor(pagination.total / pagination.rowsPerPage) + 1 + Math.cell((pagination.total == 0 ? 1 : pagination.total) / pagination.rowsPerPage) }}页 diff --git a/src/components/service-list/commodity-list.vue b/src/components/service-list/commodity-list.vue index 1174eeb..a86ea53 100644 --- a/src/components/service-list/commodity-list.vue +++ b/src/components/service-list/commodity-list.vue @@ -47,7 +47,7 @@ :disabled="pagination.page == 1" >   第{{ pagination.page }}页 / 共{{ - Math.floor(pagination.total / pagination.rowsPerPage) + 1 + Math.cell((pagination.total == 0 ? 1 : pagination.total) / pagination.rowsPerPage) }}页 diff --git a/src/components/table/table-um.vue b/src/components/table/table-um.vue index 7587329..793fbd7 100644 --- a/src/components/table/table-um.vue +++ b/src/components/table/table-um.vue @@ -236,7 +236,7 @@ :disabled="pagination.page == 1" >   第{{ pagination.page }}页 / 共{{ - Math.floor(pagination.total / pagination.rowsPerPage) + 1 + Math.cell((pagination.total == 0 ? 1 : pagination.total) / pagination.rowsPerPage) }}页 diff --git a/src/pages/data-analysis/my-application.vue b/src/pages/data-analysis/my-application.vue index 575a99f..c8a099f 100644 --- a/src/pages/data-analysis/my-application.vue +++ b/src/pages/data-analysis/my-application.vue @@ -16,29 +16,35 @@
服务总数
-
2222
+
4
月环比 - - {{ Math.abs(overview.month_chain) }} + + {{ Math.abs(overview.month_chain) }}% 周环比 - {{ Math.abs(overview.week_chain) }} + {{ Math.abs(overview.week_chain) }}%
-
日均被部署次数12432(次)
+
+ 日均被部署次数 + 12432(次) +
- +
@@ -58,7 +64,7 @@ @@ -69,15 +75,25 @@ - - - + + + + +