From 4f0efb703448427f2a2c0c86182ace458e09fd57 Mon Sep 17 00:00:00 2001 From: Sliverber <2622874537@qq.com> Date: Sat, 20 Jul 2024 16:48:45 +0800 Subject: [PATCH] 11 --- src/api/system/area.js | 9 +- src/views/index.vue | 646 +++++++++++++++++++++++++++++---- src/views/statistics/index.vue | 46 ++- 3 files changed, 618 insertions(+), 83 deletions(-) diff --git a/src/api/system/area.js b/src/api/system/area.js index b2e4b34..a6dc97f 100644 --- a/src/api/system/area.js +++ b/src/api/system/area.js @@ -38,7 +38,14 @@ export function getArealist() { }) } - +// 获取首页统计 +export function getAdminStatistics() { + return request({ + url: '/index/admim/statistics', + method: 'get', + + }) +} // 修改运营区 export function updateArea(data) { return request({ diff --git a/src/views/index.vue b/src/views/index.vue index 7c6804b..bf2dd06 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -1,99 +1,621 @@ - diff --git a/src/views/statistics/index.vue b/src/views/statistics/index.vue index d4c8f46..963a45a 100644 --- a/src/views/statistics/index.vue +++ b/src/views/statistics/index.vue @@ -60,7 +60,7 @@
-
代付款订单数
+
付款订单数
{{StatisticsInfo.unpaidOrderCount}}
待付款订单金额:{{StatisticsInfo.unpaidOrderFee}}
@@ -117,12 +117,14 @@
营收统计
-
+
-
车辆统计
-
+ +
仓库中的车辆: {{StatisticsInfo.vehicleVo.inStashNum}}
+
投放中:{{StatisticsInfo.vehicleVo.inOperation}} (含离线 {{StatisticsInfo.vehicleVo.offlineNum}})
+
@@ -185,18 +187,18 @@
- 离线(辆) + 禁用中(辆)
- {{StatisticsInfo.vehicleVo.offlineNum}} + {{StatisticsInfo.vehicleVo.disabledNum}}
- 仓库中(辆) + 车辆总数(辆)
- {{StatisticsInfo.vehicleVo.inStashNum}} + {{StatisticsInfo.vehicleVo.allNum}}
@@ -307,7 +309,7 @@ export default { this.StatisticsInfo.incomeVoList.reverse(); setTimeout(() => { this.drawLine() - }, 800); + }, 1000); console.log("areaOptions", this.areaOptions); }); @@ -317,7 +319,7 @@ export default { // 设置图表的配置项和数据 myChart.setOption({ grid: { - left: 50, + left: 60, right: 50, top: 10, bottom: 20, @@ -344,7 +346,7 @@ export default { } }, axisLabel: { - formatter: '{value} K' + formatter: '{value} 元' } }, { @@ -487,7 +489,9 @@ export default { height: 23.17rem; background: #FFFFFF; border-radius: 0rem 0rem 0rem 0rem; - + .echarts_cont{ + width: 100%; + } .tit { font-weight: 500; font-size: 1.33rem; @@ -510,14 +514,15 @@ export default { } .info_li { + margin-top: 1.25rem; display: flex; flex-wrap: nowrap; width: 100%; - + // height: 30%; .info_cont { width: 33%; - + margin-top: 1rem; .info_cont_top { img { width: 1.33rem; @@ -527,7 +532,7 @@ export default { display: flex; flex-wrap: nowrap; - justify-content: center; + // justify-content: center; align-items: center; width: 100%; font-weight: 500; @@ -536,9 +541,9 @@ export default { } .info_cont_txt { - margin-top: 0.33rem; + margin-top: 0.53rem; width: 100%; - text-align: center; + // text-align: center; font-weight: 500; font-size: 2rem; color: #3D3D3D; @@ -692,13 +697,14 @@ export default { .tops_right_bot_cont_left { .tit { - font-weight: 500; + font-weight: 700; font-size: 1.33rem; color: #1D252F; } .txt { - font-weight: 500; + margin-top: 0.5rem; + font-weight:500; font-size: 2rem; color: #1D2129; }