task#11371,返回数据tab优化

This commit is contained in:
2024-02-26 18:00:45 +08:00
parent 74b2782525
commit 4701ee491d

View File

@ -71,10 +71,9 @@ export default {
}
},
async mounted() {
this.activeIndex = (this.$route.params.type - 1) || this.activeIndex
await this.getCount();
await this.getList()
// console.log("***",this.$route.params.type)
this.activeIndex = (this.$route.params.type - 1) || this.activeIndex
},
computed:{
show() {
@ -117,7 +116,7 @@ export default {
let res=await reimburseBatchList({
pageNum:this.pageNum,
pageSize:this.pageSize,
type: this.activeIndex+1
type:this.activeIndex == 0 ? 1 : 2
})
this.total=res.total
if(this.pageNum == 1){// 第一页直接赋值