测评上传修改上传逻辑与错误信息展示

This commit is contained in:
zhangsir
2024-04-11 18:12:07 +08:00
parent 00a5a9cfb9
commit 1601472c26

View File

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