소스 검색

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

lph 1 년 전
부모
커밋
6d57034681
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  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);