|
@@ -105,35 +105,35 @@
|
|
|
</template>
|
|
|
<!-- 废旧衣物 -->
|
|
|
<template slot="clothes" slot-scope="text,record">
|
|
|
- <span :style="{ color: record.maxVal==record.clothes ? 'red' : '' }">{{ record.clothes ? (record.clothes/1000).toFixed(2) : '0.00' }}</span>
|
|
|
+ <span :style="{ color: record.maxVal==record.clothes ? 'red' : '' }">{{ record.clothes ? (record.clothes/1000).toFixed(3) : '0.00' }}</span>
|
|
|
</template>
|
|
|
<!-- 废旧纸张 -->
|
|
|
<template slot="paper" slot-scope="text,record">
|
|
|
- <span :style="{ color: record.maxVal==record.paper ? 'red' : '' }">{{ record.paper ? (record.paper/1000).toFixed(2) : '0.00' }}</span>
|
|
|
+ <span :style="{ color: record.maxVal==record.paper ? 'red' : '' }">{{ record.paper ? (record.paper/1000).toFixed(3) : '0.00' }}</span>
|
|
|
</template>
|
|
|
<!-- 废旧塑料 -->
|
|
|
<template slot="plastic" slot-scope="text,record">
|
|
|
- <span :style="{ color: record.maxVal==record.plastic ? 'red' : '' }">{{ record.plastic ? (record.plastic/1000).toFixed(2) : '0.00' }}</span>
|
|
|
+ <span :style="{ color: record.maxVal==record.plastic ? 'red' : '' }">{{ record.plastic ? (record.plastic/1000).toFixed(3) : '0.000' }}</span>
|
|
|
</template>
|
|
|
<!-- 废旧金属 -->
|
|
|
<template slot="metal" slot-scope="text,record">
|
|
|
- <span :style="{ color: record.maxVal==record.metal ? 'red' : '' }">{{ record.metal ? (record.metal/1000).toFixed(2) : '0.00' }}</span>
|
|
|
+ <span :style="{ color: record.maxVal==record.metal ? 'red' : '' }">{{ record.metal ? (record.metal/1000).toFixed(3) : '0.000' }}</span>
|
|
|
</template>
|
|
|
<!-- 废旧金属/塑料 -->
|
|
|
<template slot="plaMet" slot-scope="text,record">
|
|
|
- <span :style="{ color: record.maxVal==record.plaMet ? 'red' : '' }">{{ record.plaMet ? (record.plaMet/1000).toFixed(2) : '0.00' }}</span>
|
|
|
+ <span :style="{ color: record.maxVal==record.plaMet ? 'red' : '' }">{{ record.plaMet ? (record.plaMet/1000).toFixed(3) : '0.000' }}</span>
|
|
|
</template>
|
|
|
<!-- 废旧玻璃 -->
|
|
|
<template slot="glass" slot-scope="text,record">
|
|
|
- <span :style="{ color: record.maxVal==record.glass ? 'red' : '' }">{{ record.glass ? (record.glass/1000).toFixed(2) : '0.00' }}</span>
|
|
|
+ <span :style="{ color: record.maxVal==record.glass ? 'red' : '' }">{{ record.glass ? (record.glass/1000).toFixed(3) : '0.000' }}</span>
|
|
|
</template>
|
|
|
<!-- 可回收物 -->
|
|
|
<template slot="recycling" slot-scope="text,record">
|
|
|
- <span :style="{ color: record.maxVal==record.recycling ? 'red' : '' }">{{ record.recycling ? (record.recycling/1000).toFixed(2) : '0.00' }}</span>
|
|
|
+ <span :style="{ color: record.maxVal==record.recycling ? 'red' : '' }">{{ record.recycling ? (record.recycling/1000).toFixed(3) : '0.000' }}</span>
|
|
|
</template>
|
|
|
<!-- 可回收物小计 -->
|
|
|
<template slot="totalWeight" slot-scope="text,record">
|
|
|
- <span >{{ record.totalWeight ? (record.totalWeight/1000).toFixed(2) : '0.00' }}</span>
|
|
|
+ <span >{{ record.totalWeight ? (record.totalWeight/1000).toFixed(3) : '0.000' }}</span>
|
|
|
</template>
|
|
|
<!-- 操作 -->
|
|
|
<span slot="action" slot-scope="text,record">
|
|
@@ -357,14 +357,14 @@ export default {
|
|
|
getCleanStationSum(params).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
if (res.data) {
|
|
|
- this.recyclableWasteTotal = res.data.totalWeight ? (res.data.totalWeight / 1000).toFixed(2) : '0.00'
|
|
|
- this.wastePaper = res.data.paper ? (res.data.paper / 1000).toFixed(2) : '0.00'
|
|
|
- this.wasteClothes = res.data.clothes ? (res.data.clothes / 1000).toFixed(2) : '0.00'
|
|
|
- this.wasteMetal = res.data.metal ? (res.data.metal / 1000).toFixed(2) : '0.00'
|
|
|
- this.wastePlastics = res.data.plastic ? (res.data.plastic / 1000).toFixed(2) : '0.00'
|
|
|
- this.wasteMetalPlastic = res.data.plaMet ? (res.data.plaMet / 1000).toFixed(2) : '0.00'
|
|
|
- this.wasteGlass = res.data.glass ? (res.data.glass / 1000).toFixed(2) : '0.00'
|
|
|
- this.recyclable = res.data.recycling ? (res.data.recycling / 1000).toFixed(2) : '0.00'
|
|
|
+ this.recyclableWasteTotal = res.data.totalWeight ? (res.data.totalWeight / 1000).toFixed(3) : '0.000'
|
|
|
+ this.wastePaper = res.data.paper ? (res.data.paper / 1000).toFixed(3) : '0.000'
|
|
|
+ this.wasteClothes = res.data.clothes ? (res.data.clothes / 1000).toFixed(3) : '0.000'
|
|
|
+ this.wasteMetal = res.data.metal ? (res.data.metal / 1000).toFixed(3) : '0.000'
|
|
|
+ this.wastePlastics = res.data.plastic ? (res.data.plastic / 1000).toFixed(3) : '0.000'
|
|
|
+ this.wasteMetalPlastic = res.data.plaMet ? (res.data.plaMet / 1000).toFixed(3) : '0.000'
|
|
|
+ this.wasteGlass = res.data.glass ? (res.data.glass / 1000).toFixed(3) : '0.000'
|
|
|
+ this.recyclable = res.data.recycling ? (res.data.recycling / 1000).toFixed(3) : '0.000'
|
|
|
} else {
|
|
|
this.recyclableWasteTotal = 0
|
|
|
this.wasteClothes = 0
|