ZYZ 1 жил өмнө
parent
commit
ce1ea780b5

+ 4 - 0
zkqy-ui/src/views/asEditor/layout/home/index.vue

@@ -97,6 +97,7 @@
           {{ scope.row.pageJson | truncateJson }}
         </template>
       </el-table-column>
+      <el-table-column label="首页类型" align="center" :formatter="formatIndexType"></el-table-column>
       <el-table-column
         label="操作"
         align="center"
@@ -238,6 +239,9 @@ export default {
     this.getList();
   },
   methods: {
+    formatIndexType(row) {
+      return row.isIndex ? '首页' : '非首页';
+    },
     // 是否为首页
     isPageHome(row) {
       console.log(row);

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

@@ -454,7 +454,7 @@ export default {
           return r;
         });
         return {
-          tableName,
+          tableName: optionConditions[0].tableName,
           selectDataKey: optionConditions[0].selectDataKey,
           label: optionConditions[0].label,
           value: optionConditions[0].value,