mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-09 23:56:43 +08:00
自助入司分页问题修改
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="sale-list-container pb50">
|
<div class="sale-list-container pb50">
|
||||||
<van-sticky>
|
<van-sticky>
|
||||||
<van-tabs v-model="appntNode" v-if="branchType === '1'">
|
<van-tabs v-model="appntNode" v-if="branchType === '1'" @change="change">
|
||||||
<van-tab title="营业区经理" name="1"> </van-tab>
|
<van-tab title="营业区经理" name="1"> </van-tab>
|
||||||
<van-tab title="三级机构负责人" name="3"> </van-tab>
|
<van-tab title="三级机构负责人" name="3"> </van-tab>
|
||||||
<van-tab title="人员管理岗" name="5"> </van-tab>
|
<van-tab title="人员管理岗" name="5"> </van-tab>
|
||||||
@@ -89,16 +89,31 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
return this.$toast(res.resultMessage)
|
return this.$toast(res.resultMessage)
|
||||||
}
|
}
|
||||||
this.loadMore()
|
this.getOrderList({
|
||||||
|
pageNum: this.currentPage
|
||||||
|
})
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
change(tab) {
|
||||||
|
this.currentPage = 1
|
||||||
|
this.approveList = []
|
||||||
|
this.finished = false
|
||||||
|
this.loading = true
|
||||||
|
this.finishedText = ''
|
||||||
|
this.getOrderList(
|
||||||
|
{
|
||||||
|
pageNum: this.currentPage
|
||||||
|
},
|
||||||
|
tab
|
||||||
|
)
|
||||||
|
},
|
||||||
loadMore() {
|
loadMore() {
|
||||||
let pageInfo = {
|
let pageInfo = {
|
||||||
pageNum: this.currentPage
|
pageNum: this.currentPage
|
||||||
// pageSize: this.pageSize
|
// pageSize: this.pageSize
|
||||||
}
|
}
|
||||||
console.log('pageInfo==', pageInfo)
|
console.log('pageInfo==', pageInfo)
|
||||||
this.getOrderList(pageInfo)
|
this.getOrderList(pageInfo, this.appntNode)
|
||||||
},
|
},
|
||||||
//初始化审批列表
|
//初始化审批列表
|
||||||
getOrderList(pageInfo, appntNode = '1') {
|
getOrderList(pageInfo, appntNode = '1') {
|
||||||
@@ -110,6 +125,7 @@ export default {
|
|||||||
agentAddApproval(data).then(res => {
|
agentAddApproval(data).then(res => {
|
||||||
this.$toast.clear()
|
this.$toast.clear()
|
||||||
if (res.result == '0') {
|
if (res.result == '0') {
|
||||||
|
this.currentPage++
|
||||||
let resData = res.content.approveWaitPageInfo
|
let resData = res.content.approveWaitPageInfo
|
||||||
if (resData.list.length > 0) {
|
if (resData.list.length > 0) {
|
||||||
this.isSuccess = true
|
this.isSuccess = true
|
||||||
@@ -145,13 +161,17 @@ export default {
|
|||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
//审批级别变化时触发
|
//审批级别变化时触发
|
||||||
appntNode(val) {
|
// appntNode(val) {
|
||||||
let pageInfo = {
|
// this.currentPage = 1
|
||||||
pageNum: this.currentPage
|
// this.finished = false
|
||||||
}
|
// this.loading = false
|
||||||
this.approveList = []
|
// let pageInfo = {
|
||||||
this.getOrderList(pageInfo, val)
|
// pageNum: this.currentPage
|
||||||
}
|
// }
|
||||||
|
// this.approveList = []
|
||||||
|
// // this.getOrderList(pageInfo, val)
|
||||||
|
// this.loadMore()
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user