From e9bd5cccce3deb7f9da0d1fce05f0dc4e51b690c Mon Sep 17 00:00:00 2001 From: zhangsir Date: Thu, 11 Apr 2024 19:28:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=84=E4=B8=8A=E4=BC=A0=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E4=B8=8B=E8=BD=BD=E7=A9=BA=E7=99=BD=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/evaluation/evaluationUpload.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/views/evaluation/evaluationUpload.vue b/src/views/evaluation/evaluationUpload.vue index 80d7e505..4c372ca3 100644 --- a/src/views/evaluation/evaluationUpload.vue +++ b/src/views/evaluation/evaluationUpload.vue @@ -703,7 +703,7 @@ import {timeoutUpload} from "@/api/configPublic"; const userInfo = computed(() => store.state.userInfo); const router = useRouter(); const state = reactive({ - fileLists: [], + uploadTypes: true, saveNotUpload: true, stateUpload: true, uploadParameters: {}, @@ -1250,7 +1250,7 @@ import {timeoutUpload} from "@/api/configPublic"; return false; }; const beforeUpload3 = async (file) => { - console.log('bbbbb') + state.uploadTypes = true if(file.type === "application/pdf"){ const pattern = /^([0-9\u4e00-\u9fa5\a-z\A-Z]+-){2}[0-9\u4e00-\u9fa5\a-z\A-Z]+\.\w*$/; if (!pattern.test(file.name)) { @@ -1317,7 +1317,9 @@ import {timeoutUpload} from "@/api/configPublic"; // } } const handleChange = ({file, fileList,event}) => { - state.fileLists = fileList + if(!state.uploadTypes){ + return + } if(file.response && file.response.code === 200){ state.totalNumber = file.response.data state.sussessIds = file.response.data?.successId @@ -1332,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 = ''