Browse Source

补充提交:修改下拉框数据条件数据格式

lph 1 year ago
parent
commit
c6770bc85c

+ 1 - 1
zkqy-ui/src/views/asEditor/components/formDesign/selectEdit.vue

@@ -194,7 +194,7 @@
       <template #footer>
         <span>
           <el-button @click="cancleHandler">取消</el-button>
-          <el-button type="primary" @click="conformHandler">确认11</el-button>
+          <el-button type="primary" @click="conformHandler">确认</el-button>
         </span>
       </template>
     </el-dialog>

+ 21 - 3
zkqy-ui/src/views/asEditor/layout/home/pageDesign.vue

@@ -292,7 +292,7 @@ export default {
   },
 
   inject: {
-    reload: { value: "reload", default: null },
+    // reload: { value: "reload", default: null },
   },
   data() {
     return {
@@ -374,12 +374,30 @@ export default {
     previewHandle() {
       this.$refs.myRealTimeView.changeShowHandler();
     },
+    // 重置页面数据
+    reload() {
+      if (this.$route.query.id) {
+        this.isEdit = true;
+        this.initPageData(this.$route.query.id);
+      } else {
+        this.pageComponents = [];
+        this.pageSetup = {
+          // 页面设置属性
+          name: "页面标题", //页面名称
+          details: "", //页面描述
+          isPerson: false, // 是否显示个人中心
+          isBack: true, // 是否返回按钮
+          titleHeight: 35, // 高度
+          bgColor: "rgba(249, 249, 249, 10)", //背景颜色
+          bgImg: "", // 背景图片
+        };
+      }
+    },
     // 初始化编辑数据
     initPageData(id) {
       this.id = id;
       getmobilePageData(id).then((response) => {
         if (response.code == 200) {
-          console.log(111111111111, response.data);
           let { pageSetup, pageComponents } = JSON.parse(
             response.data.pageJson
           );
@@ -440,7 +458,7 @@ export default {
           fieldName,
           label: optionConditions.label,
           value: optionConditions.value,
-          queryCondition,
+          queryCondition: JSON.stringify(queryCondition),
         };
       });
       return JSON.stringify(res);