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 @@