瀏覽代碼

判断问题修复

liukai 4 月之前
父節點
當前提交
ba11d7a131
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/cpt_labour/lib/modules/labour_request_add/labour_request_add_page.dart

+ 1 - 1
packages/cpt_labour/lib/modules/labour_request_add/labour_request_add_page.dart

@@ -111,7 +111,7 @@ class _LabourRequestAddState extends BaseState<LabourRequestAddPage, LabourReque
                           mainAxisAlignment: MainAxisAlignment.start,
                           children: [
                             MyTextView(
-                              state.selectedTemplateId == null || state.selectedTemplateId != "0"
+                              state.selectedTemplateId == null || state.selectedTemplateId == "0"
                                   ? ""
                                   : state.labReqOption!.templateList
                                           .firstWhere((element) => element.value.toString() == state.selectedTemplateId,