Bladeren bron

新版本酒店管理系统中,去掉新加坡的模版设置中的的年龄限制

liukai 2 weken geleden
bovenliggende
commit
d8066660e4

+ 1 - 1
packages/cpt_labour_sg/lib/modules/job_template_add/job_template_add_controller.dart

@@ -50,7 +50,7 @@ class JobTemplateAddController extends GetxController with DioCancelableMixin {
       state.selectedLanguageList = state.indexEntity?.languageList.where((e) => e.checked == "checked").map((e) => e.value!).toList() ?? [];
       Log.d("当前选中的语言1:${ state.selectedLanguageList}");
       state.foodCert = state.indexEntity?.withFoodCert.toString();
-      state.gender = state.indexEntity?.sexList.firstWhere((e) => e.checked == "checked").value;
+      // state.gender = state.indexEntity?.sexList.firstWhere((e) => e.checked == "checked").value;
 
       update();
     } else {

+ 19 - 19
packages/cpt_labour_sg/lib/modules/job_template_add/job_template_add_page.dart

@@ -23,7 +23,7 @@ import 'package:router/path/router_path.dart';
 
 import 'job_template_add_state.dart';
 
-/**
+/*
  * 模板的添加与编辑
  */
 class JobTemplateAddPage extends BaseStatelessPage<JobTemplateAddController> {
@@ -124,24 +124,24 @@ class JobTemplateAddPage extends BaseStatelessPage<JobTemplateAddController> {
                         selectedOptions: state.indexEntity?.ageList.where((e) => e.checked == "checked").map((e) => e.txt!).toList() ?? [],
                       ).marginOnly(left: 15, right: 15, top: 10),
 
-                      //性别
-                      MyTextView(
-                        "Gender".tr,
-                        textColor: Colors.white,
-                        fontSize: 14,
-                        isFontRegular: true,
-                        marginLeft: 15,
-                        marginTop: 15,
-                      ),
-
-                      //性别单选
-                      CustomRadioCheck(
-                        options: state.indexEntity?.sexList.map((e) => e.txt!).toList() ?? [],
-                        onOptionSelected: (index, text) {
-                          state.gender = state.indexEntity!.sexList[index].value;
-                        },
-                        selectedPosition: state.indexEntity?.sexList.indexWhere((e) => e.checked == "checked") ?? -1,
-                      ).marginOnly(left: 15, right: 15, top: 10),
+                      // //性别
+                      // MyTextView(
+                      //   "Gender".tr,
+                      //   textColor: Colors.white,
+                      //   fontSize: 14,
+                      //   isFontRegular: true,
+                      //   marginLeft: 15,
+                      //   marginTop: 15,
+                      // ),
+                      //
+                      // //性别单选
+                      // CustomRadioCheck(
+                      //   options: state.indexEntity?.sexList.map((e) => e.txt!).toList() ?? [],
+                      //   onOptionSelected: (index, text) {
+                      //     state.gender = state.indexEntity!.sexList[index].value;
+                      //   },
+                      //   selectedPosition: state.indexEntity?.sexList.indexWhere((e) => e.checked == "checked") ?? -1,
+                      // ).marginOnly(left: 15, right: 15, top: 10),
 
                       //语言
                       MyTextView(