task#11371,返回数据tab优化
This commit is contained in:
@ -71,10 +71,9 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async mounted() {
|
async mounted() {
|
||||||
|
this.activeIndex = (this.$route.params.type - 1) || this.activeIndex
|
||||||
await this.getCount();
|
await this.getCount();
|
||||||
await this.getList()
|
await this.getList()
|
||||||
// console.log("***",this.$route.params.type)
|
|
||||||
this.activeIndex = (this.$route.params.type - 1) || this.activeIndex
|
|
||||||
},
|
},
|
||||||
computed:{
|
computed:{
|
||||||
show() {
|
show() {
|
||||||
@ -117,7 +116,7 @@ export default {
|
|||||||
let res=await reimburseBatchList({
|
let res=await reimburseBatchList({
|
||||||
pageNum:this.pageNum,
|
pageNum:this.pageNum,
|
||||||
pageSize:this.pageSize,
|
pageSize:this.pageSize,
|
||||||
type: this.activeIndex+1
|
type:this.activeIndex == 0 ? 1 : 2
|
||||||
})
|
})
|
||||||
this.total=res.total
|
this.total=res.total
|
||||||
if(this.pageNum == 1){// 第一页直接赋值
|
if(this.pageNum == 1){// 第一页直接赋值
|
||||||
|
Reference in New Issue
Block a user