From 5d83cc00df6675fc8ee43f81aa710c8b196a097d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=BE=A4?= Date: Tue, 5 Sep 2023 12:41:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=99=BB=E5=BD=95=E9=80=BB?= =?UTF-8?q?=E8=BE=91=EF=BC=9B=E9=AB=98=E9=80=9F=E8=BF=90=E8=A1=8C=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=90=8C=E6=AF=94=E7=8E=AF=E6=AF=94=E8=AE=A1=E7=AE=97?= =?UTF-8?q?=EF=BC=9B=E9=AB=98=E9=80=9F=E8=AF=A6=E6=83=85=E6=9B=B4=E6=8D=A2?= =?UTF-8?q?=E4=B8=BA=E6=8E=A5=E5=8F=A3=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/highWay/runData/form.vue | 149 +++++++++++++++++--------- pages/highWay/runData/list.vue | 2 +- pages/highWay/runStatusData/form.vue | 98 ++++++----------- pages/highWay/runStatusData/list.vue | 2 +- pages/login/login.vue | 10 +- pages/railway/railwayRunData/form.vue | 1 + util/request.js | 2 +- 7 files changed, 144 insertions(+), 120 deletions(-) diff --git a/pages/highWay/runData/form.vue b/pages/highWay/runData/form.vue index 9296fea..e8c0466 100644 --- a/pages/highWay/runData/form.vue +++ b/pages/highWay/runData/form.vue @@ -39,18 +39,18 @@ - + - 收费站入口车辆数汇总环比(%) - - {{form.entranceVehicleCountMom}} + 收费站入口车辆数汇总环比(%) + + {{form.entranceVehicleCountMom === 0 ? form.entranceVehicleCountMom : form.entranceVehicleCountMom ? form.entranceVehicleCountMom.toFixed(2) : ''}} 收费站入口车辆数汇总同比(%) - {{form.entranceVehicleCountYoy}} + {{form.entranceVehicleCountYoy === 0 ? form.entranceVehicleCountYoy : form.entranceVehicleCountYoy ? form.entranceVehicleCountYoy.toFixed(2) : ''}} @@ -61,18 +61,18 @@ - + - 收费站入口车辆数汇总环比(%) - - {{form.exitVehicleCountMom}} + 收费站入口车辆数汇总环比(%) + + {{form.exitVehicleCountMom === 0 ? form.exitVehicleCountMom : form.exitVehicleCountMom ? form.exitVehicleCountMom.toFixed(2) : ''}} - 收费站入口车辆数汇总同比(%) + 收费站出口车辆数汇总同比(%) - {{form.exitVehicleCountYoy}} + {{form.exitVehicleCountYoy === 0 ? form.exitVehicleCountYoy : form.exitVehicleCountYoy ? form.exitVehicleCountYoy.toFixed(2) : ''}} @@ -108,18 +108,18 @@ - + 收费站入口车辆数环比(%) - {{form.highwaySubDataList[stationIndex].entranceVehicleCountMom}} + {{form.highwaySubDataList[stationIndex].entranceVehicleCountMom === 0 ? form.highwaySubDataList[stationIndex].entranceVehicleCountMom : form.highwaySubDataList[stationIndex].entranceVehicleCountMom ? form.highwaySubDataList[stationIndex].entranceVehicleCountMom.toFixed(2) : ''}} 收费站入口车辆数同比(%) - {{form.highwaySubDataList[stationIndex].entranceVehicleCountYoy}} + {{form.highwaySubDataList[stationIndex].entranceVehicleCountYoy === 0 ? form.highwaySubDataList[stationIndex].entranceVehicleCountYoy : form.highwaySubDataList[stationIndex].entranceVehicleCountYoy ? form.highwaySubDataList[stationIndex].entranceVehicleCountYoy.toFixed(2) : ''}} @@ -130,18 +130,18 @@ - + 收费站出口车辆数环比(%) - {{form.highwaySubDataList[stationIndex].exitVehicleCountMom}} + {{form.highwaySubDataList[stationIndex].exitVehicleCountMom === 0 ? form.highwaySubDataList[stationIndex].exitVehicleCountMom : form.highwaySubDataList[stationIndex].exitVehicleCountMom ? form.highwaySubDataList[stationIndex].exitVehicleCountMom.toFixed(2) : ''}} 收费站出口车辆数同比(%) - {{form.highwaySubDataList[stationIndex].exitVehicleCountYoy}} + {{form.highwaySubDataList[stationIndex].exitVehicleCountYoy === 0 ? form.highwaySubDataList[stationIndex].exitVehicleCountYoy : form.highwaySubDataList[stationIndex].exitVehicleCountYoy ? form.highwaySubDataList[stationIndex].exitVehicleCountYoy.toFixed(2) : ''}} @@ -182,7 +182,7 @@