Explorar el Código

设备项目库

ZhaoJing hace 2 años
padre
commit
015505088a

+ 5 - 3
src/pages/equipmentPurchaseApply/budgetOfPlant/myAuditFor/index.vue

@@ -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>

+ 3 - 1
src/pages/equipmentPurchaseApply/equipmentItemLibrary/myPurchase/index.vue

@@ -51,7 +51,9 @@ function handleAccomplish(xm_id) {
             }).then(res => {
                 if (res.code == '1') {
                     showToast(res.msg);
-                    router.go(0);
+                    listMyApplyFor.value = []
+                    pageMyApplyFor = 1
+                    onLoadMyApplyFor()
                 }
             })
         })

+ 3 - 1
src/pages/equipmentPurchaseApply/equipmentItemLibrary/projectLibrary/index.vue

@@ -89,8 +89,10 @@ const onFinish = ({ selectedOptions }) => {
             }).then(res => {
                 if (res.code == '1') {
                     allotShow = false;
-                    router.go(0);
                     showToast(res.msg);
+                    listMyApplyFor.value = []
+                    pageMyApplyFor = 1
+                    onLoadMyApplyFor()
                 }
             })
         })