Browse Source

'农机列表状态显示问题'

李志伟 3 years ago
parent
commit
b22cd80701
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      lib/widgets/Jianbian/index.dart

+ 2
- 2
lib/widgets/Jianbian/index.dart View File

25
     return type == 'machinery'
25
     return type == 'machinery'
26
         ? (status == 0
26
         ? (status == 0
27
             ? '维修中'
27
             ? '维修中'
28
-            : (value == null || value == 3)
28
+            : (value == null || value == '3')
29
                 ? '空闲中'
29
                 ? '空闲中'
30
                 : '使用中')
30
                 : '使用中')
31
         : (status == 0
31
         : (status == 0
42
         //是农机列表卡片??要改
42
         //是农机列表卡片??要改
43
         ? (status == 0
43
         ? (status == 0
44
             ? colors[0]
44
             ? colors[0]
45
-            : (value == null || value == 3)
45
+            : (value == null || value == '3')
46
                 ? colors[1]
46
                 ? colors[1]
47
                 : colors[2])
47
                 : colors[2])
48
         : (status == 0
48
         : (status == 0