소스 검색

列表添加首页类型

ZYZ 1 년 전
부모
커밋
ce1ea780b5
2개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 0
      zkqy-ui/src/views/asEditor/layout/home/index.vue
  2. 1 1
      zkqy-ui/src/views/asEditor/layout/home/pageDesign.vue

+ 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,