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

修复筛选页面的样品等级不回显问题

mq 1 год назад
Родитель
Сommit
f56b6f2473
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      lib/page/filter/filter_page.dart

+ 1 - 1
lib/page/filter/filter_page.dart

@@ -64,7 +64,7 @@ class _FilterPageState extends BaseState<FilterPage> {
64
     ypdjList.value = (DictService.getDictList(DictType.ypdj) ?? []).map((e) => CardMenuData(e.label, e.value)).toList();
64
     ypdjList.value = (DictService.getDictList(DictType.ypdj) ?? []).map((e) => CardMenuData(e.label, e.value)).toList();
65
     if (vm.reqList.first.ypdj == null) return;
65
     if (vm.reqList.first.ypdj == null) return;
66
     for (var item in ypdjList.value) {
66
     for (var item in ypdjList.value) {
67
-      if (vm.reqList.first.ypdj == item.value) {
67
+      if (vm.reqList.first.ypdj == int.parse(item.value)) {
68
         ypdj.value = item;
68
         ypdj.value = item;
69
         break;
69
         break;
70
       }
70
       }