duy 2 rokov pred
rodič
commit
04a96fd183
1 zmenil súbory, kde vykonal 9 pridanie a 1 odobranie
  1. 9 1
      src/views/custody/testing.vue

+ 9 - 1
src/views/custody/testing.vue

@@ -382,6 +382,7 @@ const isTimeout = ref(false)
 const setTimeoutData = async () => {
     const arr = newTabledata.value
     console.log(arr, 'arr');
+   
     if (!isTimeout.value && arr.length > 0) {
         isTimeout.value = true
         for (let i = 0; i < arr.length; i++) {
@@ -411,7 +412,14 @@ watch(() => [
         if(res === true && msgChange > 0) {
             reportApi.getCurrentExaminingInfo({ reportId: reportId.value}).then((res)=>{
                 let resdata = res.data
-                activeIndex.value = resdata.status;
+                console.log(resdata.status,'resdata.status');
+                if (resdata.status===4) {
+                       setTimeout(() => {
+                            activeIndex.value = resdata.status;
+                     }, tableData.value.length*1000);
+                }else{
+                    activeIndex.value = resdata.status;
+                }
                 reTabledata.value = resdata.detailList
                 finalUrl.value = resdata.pdfUrl||''
                 pushTable()