|
@@ -335,24 +335,30 @@ class JobListEditPage extends BaseStatelessPage<JobListEditController> {
|
|
|
),
|
|
|
|
|
|
//Request Type
|
|
|
- MyTextView(
|
|
|
- "Request Type".tr,
|
|
|
- fontSize: 15,
|
|
|
- isFontRegular: true,
|
|
|
- textColor: Colors.white,
|
|
|
- marginTop: 15,
|
|
|
+ Visibility(
|
|
|
+ visible: state.editEntity?.isYY == true,
|
|
|
+ child: MyTextView(
|
|
|
+ "Request Type".tr,
|
|
|
+ fontSize: 15,
|
|
|
+ isFontRegular: true,
|
|
|
+ textColor: Colors.white,
|
|
|
+ marginTop: 15,
|
|
|
+ ),
|
|
|
),
|
|
|
|
|
|
//Request Type单选
|
|
|
- CustomRadioCheck(
|
|
|
- options: state.editEntity?.requestType.map((e) => e.txt!).toList() ?? [],
|
|
|
- onOptionSelected: (index, text) {
|
|
|
- state.selectRequestTypeId = state.editEntity!.requestType[index].value;
|
|
|
- controller.update(["position"]);
|
|
|
- },
|
|
|
- enable: state.isEditType && state.isOtherFormDisEnable,
|
|
|
- selectedPosition: state.editEntity == null ? -1 : state.editEntity!.requestType.indexWhere((e) => e.checked == "checked"),
|
|
|
- ).marginOnly(top: 10),
|
|
|
+ Visibility(
|
|
|
+ visible: state.editEntity?.isYY == true,
|
|
|
+ child: CustomRadioCheck(
|
|
|
+ options: state.editEntity?.requestType.map((e) => e.txt!).toList() ?? [],
|
|
|
+ onOptionSelected: (index, text) {
|
|
|
+ state.selectRequestTypeId = state.editEntity!.requestType[index].value;
|
|
|
+ controller.update(["position"]);
|
|
|
+ },
|
|
|
+ enable: state.isEditType && state.isOtherFormDisEnable,
|
|
|
+ selectedPosition: state.editEntity == null ? -1 : state.editEntity!.requestType.indexWhere((e) => e.checked == "checked"),
|
|
|
+ ).marginOnly(top: 10),
|
|
|
+ ),
|
|
|
|
|
|
//当 Request Type 选择 Regular 的时候,需要展示 Position 的下拉选
|
|
|
GetBuilder<JobListEditController>(
|
|
@@ -360,7 +366,7 @@ class JobListEditPage extends BaseStatelessPage<JobListEditController> {
|
|
|
init: controller,
|
|
|
builder: (controller) {
|
|
|
return Visibility(
|
|
|
- visible: state.selectRequestTypeId == "1",
|
|
|
+ visible: state.editEntity?.isYY == true && state.selectRequestTypeId == "1",
|
|
|
child: Container(
|
|
|
padding: const EdgeInsets.only(left: 16, right: 10),
|
|
|
margin: const EdgeInsets.only(top: 10),
|