浏览代码

bug修复

chenrui 4 年之前
父节点
当前提交
82087329dd
共有 1 个文件被更改,包括 5 次插入14 次删除
  1. 5 14
      src/views/cleanManage/notCleanNetwork.vue

+ 5 - 14
src/views/cleanManage/notCleanNetwork.vue

@@ -316,21 +316,12 @@ export default {
               const _item = res.data.list[i]
               //  找出可回收垃圾库存量最大的值
               const arr = [_item.clothes, _item.paper, _item.plastic, _item.metal, _item.metPla, _item.glass, _item.recycling]
-              //         if (arr) {
-				  // const maxVal = Math.max(...arr)
-              //         	arr.some(item => {
-              //         		const isTrue = item === 0
-              //             console.log(isTrue)
-				  // if (isTrue == false) {
-              //               // const maxVal = Math.max(...arr)
-              //               _item.maxVal = maxVal
-				  // } else {
-              //               _item.maxVal = ''
-				  // }
-              //         	})
-              //         }
               const maxVal = Math.max(...arr)
-              _item.maxVal = maxVal
+              if (maxVal == 0) {
+                _item.maxVal = null
+              } else {
+                _item.maxVal = maxVal
+              }
             }
             this.orderTotal = res.data.count || 0
             this.getTotal()