|
@@ -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)
|
|
|
}
|