From 1601472c2651754e7e53084db6a923584f7dce9b Mon Sep 17 00:00:00 2001 From: zhangsir Date: Thu, 11 Apr 2024 18:12:07 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=B5=8B=E8=AF=84=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=8A=E4=BC=A0=E9=80=BB=E8=BE=91=E4=B8=8E?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E4=BF=A1=E6=81=AF=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/evaluation/evaluationUpload.vue | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/views/evaluation/evaluationUpload.vue b/src/views/evaluation/evaluationUpload.vue index 969e27be..ba633ac8 100644 --- a/src/views/evaluation/evaluationUpload.vue +++ b/src/views/evaluation/evaluationUpload.vue @@ -703,7 +703,6 @@ import {timeoutUpload} from "@/api/configPublic"; const userInfo = computed(() => store.state.userInfo); const router = useRouter(); const state = reactive({ - uploadTypes: true, saveNotUpload: true, stateUpload: true, uploadParameters: {}, @@ -1142,7 +1141,6 @@ import {timeoutUpload} from "@/api/configPublic"; window.open(`/activityApi/evaluation/download?id=${record.id}`); } const of_exit = () => { - state.uploadTypes = true state.bg_check = false; state.errorMessage = '' state.saveNotUpload = true @@ -1314,9 +1312,6 @@ import {timeoutUpload} from "@/api/configPublic"; // } } const handleChange = ({file, fileList,event}) => { - if(!state.uploadTypes){ - return - } if(file.response && file.response.code === 200){ state.totalNumber = file.response.data state.sussessIds = file.response.data.successId.split(',') @@ -1331,7 +1326,6 @@ import {timeoutUpload} from "@/api/configPublic"; }; const uploadRef = ref() const delUploadList = (i) => { - state.uploadTypes = false state.uploadDownLoad = false state.sussessIds = null state.failedId = '' From a69ba0de66ddb27884c6e1a28b3283d4c9850a9d Mon Sep 17 00:00:00 2001 From: zhangsir Date: Thu, 11 Apr 2024 18:17:01 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=B5=8B=E8=AF=84=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=8A=E4=BC=A0=E9=80=BB=E8=BE=91=E4=B8=8E?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E4=BF=A1=E6=81=AF=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/evaluation/evaluationUpload.vue | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/views/evaluation/evaluationUpload.vue b/src/views/evaluation/evaluationUpload.vue index ba633ac8..a39cf489 100644 --- a/src/views/evaluation/evaluationUpload.vue +++ b/src/views/evaluation/evaluationUpload.vue @@ -703,6 +703,7 @@ import {timeoutUpload} from "@/api/configPublic"; const userInfo = computed(() => store.state.userInfo); const router = useRouter(); const state = reactive({ + uploadTypes: true, saveNotUpload: true, stateUpload: true, uploadParameters: {}, @@ -1141,6 +1142,7 @@ import {timeoutUpload} from "@/api/configPublic"; window.open(`/activityApi/evaluation/download?id=${record.id}`); } const of_exit = () => { + state.uploadTypes = true state.bg_check = false; state.errorMessage = '' state.saveNotUpload = true @@ -1311,7 +1313,13 @@ import {timeoutUpload} from "@/api/configPublic"; // return false; // } } + watch(()=>state.uploadList.length,()=>{ + state.uploadTypes = true + }) const handleChange = ({file, fileList,event}) => { + if(!state.uploadTypes){ + return + } if(file.response && file.response.code === 200){ state.totalNumber = file.response.data state.sussessIds = file.response.data.successId.split(',') @@ -1326,6 +1334,7 @@ import {timeoutUpload} from "@/api/configPublic"; }; const uploadRef = ref() const delUploadList = (i) => { + state.uploadTypes = false state.uploadDownLoad = false state.sussessIds = null state.failedId = ''