wyh 1 年之前
父節點
當前提交
821d4bf3ff
共有 1 個文件被更改,包括 13 次插入12 次删除
  1. 13 12
      src/views/module_ems/baseSpace/baseSpaceList.vue

+ 13 - 12
src/views/module_ems/baseSpace/baseSpaceList.vue

@@ -52,7 +52,7 @@
         :scroll="{x:true}"
         :columns="columns"
         :dataSource="dataSource"
-        :pagination="ipagination"
+        :pagination="false"
         :loading="loading"
         :expandedRowKeys="expandedRowKeys"
         @change="handleTableChange"
@@ -177,8 +177,8 @@
           }
         ],
         url: {
-          list: "/space/space/rootList",
-          // list: "/space/space/list",
+          // list: "/space/space/rootList",
+          list: "/space/space/treeList",
           childList: "/space/space/childList",
           getChildListBatch: "/space/space/getChildListBatch",
           delete: "/space/space/delete",
@@ -222,15 +222,16 @@
         params.hasQuery = 'true'
         getAction(this.url.list,params).then(res=>{
           if(res.success){
-            let result = res.result
-            if(Number(result.total)>0){
-              this.ipagination.total = Number(result.total)
-              this.dataSource = this.getDataByResult(res.result.records)
-              return this.loadDataByExpandedRows(this.dataSource)
-            }else{
-              this.ipagination.total=0
-              this.dataSource=[]
-            }
+            this.dataSource = res.result;
+            // let result = res.result
+            // if(Number(result.total)>0){
+            //   this.ipagination.total = Number(result.total)
+            //   this.dataSource = this.getDataByResult(res.result.records)
+            //   return this.loadDataByExpandedRows(this.dataSource)
+            // }else{
+            //   this.ipagination.total=0
+            //   this.dataSource=[]
+            // }
           }else{
             this.$message.warning(res.message)
           }