浏览代码

序号问题

jiawuxian 2 年之前
父节点
当前提交
d3db23b907
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5 5
      src/views/resumption/plan/index.vue

+ 5 - 5
src/views/resumption/plan/index.vue

@@ -166,10 +166,10 @@
           :tree-props="{ children: 'children' }"
         >
           <el-table-column
-            type="index"
+            prop="index"
             label="序号"
-            v-if="columns[0].visible"
-            :tree-props="{ children: 'children', hasChildren: 'hasChildren' }"
+            width="80px"
+            v-if="columns[0].visible"            
           ></el-table-column>
           <el-table-column
             prop="planName"
@@ -420,8 +420,8 @@ export default {
       api
         .list(this.queryParams)
         .then((response) => {
-          this.pageData = response.data.records;
-          this.total = response.data.total;
+          this.pageData = response.rows;
+          this.total = response.total;
           this.loading = false;
         })
         .catch(() => {