Browse Source

no message

xiaochan 2 years ago
parent
commit
c48b5e7339
1 changed files with 7 additions and 0 deletions
  1. 7 0
      src/views/utilities/page-editor-help/PageEditorHelp.vue

+ 7 - 0
src/views/utilities/page-editor-help/PageEditorHelp.vue

@@ -81,6 +81,12 @@ const formReset = async () => {
 
 const getPageStr = () => {
   let tempDate = JSON.parse(JSON.stringify(pageJson.value)) as componentType;
+  // 删除一些没必要的默认值
+  tempDate.header.forEach(item => {
+    if (item.name === 'ElSelectV2') {
+      item.bind.options = []
+    }
+  })
   tempDate.tableConfig.data = [];
   tempDate.queryParam = {}
   tempDate.pageConfig = {
@@ -177,6 +183,7 @@ onMounted(() => {
           <div style="display: flex; overflow-y: auto" :style="{height: height -50  - 30 +'px'}"
                v-if="currentData.id">
             <div style="flex: 1; box-sizing: border-box"
+                 v-if="pageJson.isShow"
                  :style="{width: width - 320 + 'px'}">
               <xc-query v-model:page-json="pageJson"
                         v-model:current-index="theCurrentComponent"