Bladeren bron

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

李志伟 3 jaren geleden
bovenliggende
commit
b22cd80701
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 2
    2
      lib/widgets/Jianbian/index.dart

+ 2
- 2
lib/widgets/Jianbian/index.dart Bestand weergeven

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