Browse Source

调整下拉框静态数据传参格式

lph 1 year ago
parent
commit
6d57034681
1 changed files with 4 additions and 1 deletions
  1. 4 1
      zkqy-ui/src/views/asEditor/layout/home/pageDesign.vue

+ 4 - 1
zkqy-ui/src/views/asEditor/layout/home/pageDesign.vue

@@ -478,8 +478,11 @@ export default {
         return item.type == 1 && !item.optionType;
       });
       let res = resultArr.map((item) => {
+        console.log(item.options);
         let r = {};
-        r[item.fieldKey] = item.options;
+        if (item.options?.static) {
+          r[item.fieldKey] = JSON.stringify(item.options?.static);
+        }
         return r;
       });
       return JSON.stringify(res);