浏览代码

操作询问弹窗

周睿 1 年之前
父节点
当前提交
0bc1dd94b5

+ 6 - 1
app_business/lib/service/api.dart

@@ -311,5 +311,10 @@ class RuleValueBool extends RuleValue {
 
 class RuleValueArrStr extends RuleValue {
   var value = '';
-  var options = <String>[];
+  var options = <RuleValueArrStrOption>[];
+}
+
+class RuleValueArrStrOption {
+  var show = '';
+  var value = '';
 }

+ 6 - 3
app_business/lib/view/home/event_manage/dialog_settings.dart

@@ -22,8 +22,11 @@ class SettingsController extends GetxController {
                 ? (RuleValueBool()..value = e.arValue == 'true')
                 : (RuleValueArrStr()
                   ..value = e.arValue
-                  ..options =
-                      e.arValueSelectList.map((e) => e.arValueSelect).toList());
+                  ..options = e.arValueSelectList
+                      .map((e) => RuleValueArrStrOption()
+                        ..value = e.arValueSelect
+                        ..show = e.arStrSelect)
+                      .toList());
         }
       });
     });
@@ -99,7 +102,7 @@ class _RuleElem extends GetView<SettingsController> {
         mainAxisSize: MainAxisSize.min,
         children: value.options
             .map((e) => _Radio(
-                value: e,
+                value: e.show,
                 groupValue: value.value,
                 onChanged: (v) {
                   if (v != null) {

+ 1 - 1
libs/common_pub

@@ -1 +1 @@
-Subproject commit 084d5328cb2d9ff6cb3341ab77f51c0f6b47002c
+Subproject commit a649c09e1f8f9779abf5427d551f480d45e90458

+ 1 - 1
protos/app_api

@@ -1 +1 @@
-Subproject commit 60d5f158e47ba09263c61b407bf2e738cad29729
+Subproject commit b8ea8b341f1d508098cf38ef1021650a0d41e902