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