From 8c6b771ee9d1f17cc150caa7e3cff0a262ffda69 Mon Sep 17 00:00:00 2001 From: zhangsir Date: Mon, 8 Apr 2024 13:55:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/evaluation/evaluationUpload.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/views/evaluation/evaluationUpload.vue b/src/views/evaluation/evaluationUpload.vue index 31464468..b8bc9a7c 100644 --- a/src/views/evaluation/evaluationUpload.vue +++ b/src/views/evaluation/evaluationUpload.vue @@ -1151,7 +1151,9 @@ import {timeoutUpload} from "@/api/configPublic"; state.tableLoading = true state.uploadDownLoad = true if(state.valueAll.length != 0 && !state.loadData&&state.loadNewDown){ + state.totalNumber.failedEntisTrue = '0' if(state.valueAll.length >1){ + state.totalNumber.failedEntisTrue = state.totalNumber.failedEntries == 0 ? '0' : '1' state.bg_results = true } state.valueAll.forEach((item)=>{ @@ -1159,7 +1161,6 @@ import {timeoutUpload} from "@/api/configPublic"; item.createId = userInfo.value.userId } }) - state.totalNumber.failedEntisTrue = state.totalNumber.failedEntries == 0 ? '0' : '1' // 保存上传文件 await boeRequest('/activityApi/evaluation/detail/saveEvaluationDetail post',{ evaluationDetailListlist:state.valueAll, @@ -1192,7 +1193,10 @@ import {timeoutUpload} from "@/api/configPublic"; }) } if(state.uploadStatus||state.btShow){ - state.totalNumber.failedEntisTrue = state.totalNumber.failedEntries == 0 ? '0' : '1' + state.totalNumber.failedEntisTrue = '0' + if(state.valueAll.length >1){ + state.totalNumber.failedEntisTrue = state.totalNumber.failedEntries == 0 ? '0' : '1' + } await boeRequest('/activityApi/evaluation/save post',{ isUpload: state.totalNumber.failedEntisTrue, id: state.uploadDownId,