|
@@ -17,6 +17,7 @@ const listMyApplyFor = ref([])
|
|
|
const loadingMyApplyFor = ref(false)
|
|
|
const finishedMyApplyFor = ref(false)
|
|
|
let pageMyApplyFor = 1
|
|
|
+let immediateMyAuditFor = $ref(true);
|
|
|
function onLoadMyApplyFor() {
|
|
|
loadingMyApplyFor.value = true
|
|
|
request({
|
|
@@ -65,8 +66,9 @@ function auditConfirm() {
|
|
|
}).then(res => {
|
|
|
if (res.code == '1') {
|
|
|
showToast(res.msg);
|
|
|
- // onLoadMyApplyFor();
|
|
|
- auditShow = false;
|
|
|
+ listMyApplyFor.value = []
|
|
|
+ pageMyApplyFor = 1
|
|
|
+ onLoadMyApplyFor()
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -97,7 +99,7 @@ function cancel() {
|
|
|
</script>
|
|
|
|
|
|
<template>
|
|
|
- <van-list v-model:loading="loadingMyApplyFor" :finished="finishedMyApplyFor" finished-text="没有更多了"
|
|
|
+ <van-list v-model:loading="loadingMyApplyFor" :finished="finishedMyApplyFor" :immediate-check="immediateMyAuditFor" finished-text="没有更多了"
|
|
|
@load="onLoadMyApplyFor">
|
|
|
<van-cell v-for="(item, index) in listMyApplyFor" :key="item" class="items-center">
|
|
|
<template #title>
|