Просмотр исходного кода

更多设备返回字段修改

yunxing 4 лет назад
Родитель
Сommit
a984258ddb
1 измененных файлов с 3 добавлено и 4 удалено
  1. 3 4
      src/views/equipmentFacilities/index.vue

+ 3 - 4
src/views/equipmentFacilities/index.vue

@@ -648,8 +648,7 @@ export default {
             }
             let moreCardList = res.data
             moreCardList.map((item) => {
-                // item.total = item.sl // card 第二行台数
-                item.total = item.asset_num || item.sl // card 第二行台数
+                item.total = item.asset_num // card 第二行台数
                 item.name = item.category_name //card 第一行名称
                 // 设备卡片单位处理
                 if (item.name === '屋面logo') {
@@ -665,11 +664,11 @@ export default {
                 // 默认正常
                 item.type = 1
                 item.number = 0
-                if (item.is_exception || item.is_exception_num) {
+                if (item.is_exception_num) {
                     // 有异常
                     item.type = 3
                     item.number = item.is_exception_num
-                } else if (item.is_detecting || item.is_detecting_num) {
+                } else if (item.is_detecting_num) {
                     // 检测中
                     item.type = 2
                     item.number = item.is_detecting_num