mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-07 09:56:44 +08:00
测评上传修改下载空白页
This commit is contained in:
@@ -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 = ''
|
||||
|
||||
Reference in New Issue
Block a user