Merge branch 'feature/GFRS-222【0423】续期管理-续期列表' into dev

This commit is contained in:
mengxiaolong
2020-08-14 15:23:16 +08:00
2 changed files with 10 additions and 6 deletions

View File

@@ -90,15 +90,16 @@ export default {
mounted() {
this.getDetail()
},
beforeRouteLeave(to, from, next) {
document.body.style.backgroundColor = ''
next()
},
methods: {
async getDetail() {
let contNo = this.$route.params.contNo
let payToDate = this.$route.params.payToDate
let payFlag = this.$route.params.payFlag
this.$toast.loading({
message: '加载中...',
forbidClick: true,
loadingType: 'spinner'
})
let result = await getDetail({ contNo, payToDate, payFlag })
console.dir(result)
this.renewalDTO = result

View File

@@ -90,7 +90,6 @@ export default {
}
},
created() {
this.$toast.loading('加载中...')
this.getpolicyList()
},
@@ -102,7 +101,11 @@ export default {
otherNo: this.searchVal,
payFlag: this.active
}
this.$toast.loading('加载中...')
this.$toast.loading({
message: '加载中...',
forbidClick: true,
loadingType: 'spinner'
})
let result = await getList(param)
this.list.splice(0)
this.list = result.list ? result.list : []