bug修复
This commit is contained in:
parent
2b9db20a67
commit
99c18849ea
@ -205,10 +205,10 @@ const SyncFiles = async () => {
|
||||
for (const Name of fileList.value) {
|
||||
const fName = Name as UploadUserFile & {page?: number,lodTxt?: String};
|
||||
fName.lodTxt="10%"
|
||||
// if (fName.page==100){
|
||||
// fName.lodTxt="完成"
|
||||
// continue
|
||||
// }
|
||||
if (fName.page==100){
|
||||
fName.lodTxt="完成"
|
||||
continue
|
||||
}
|
||||
//判断是否全部上传
|
||||
await delay(100);
|
||||
fName.page = 20;
|
||||
@ -440,9 +440,11 @@ const handleFileSuccess: UploadProps['onSuccess'] = (res: any): void => {
|
||||
if (uploadList.value.length == uploadNumber.value) {
|
||||
fileList.value.push(...uploadList.value)
|
||||
MysqlUrl.value.push(...uploadList.value)
|
||||
const updatedFileStatus = [...props.fileStatus];
|
||||
updatedFileStatus.push(10);
|
||||
emit('update:fileStatus', updatedFileStatus);
|
||||
if (props.fileStatus){
|
||||
const updatedFileStatus = [...props.fileStatus];
|
||||
updatedFileStatus.push(0);
|
||||
emit('update:fileStatus', updatedFileStatus);
|
||||
}
|
||||
// console.log("updatedFileStatus",updatedFileStatus)
|
||||
// console.log("fileList.value",fileList.value)
|
||||
// console.log("MysqlUrl.value",MysqlUrl.value)
|
||||
@ -574,7 +576,9 @@ watch(
|
||||
}
|
||||
val.forEach((item, index) => {
|
||||
fileList.value[index].page = item
|
||||
if (item == 10 ){
|
||||
if (item == 0 ){
|
||||
fileList.value[index].lodTxt = "未同步"
|
||||
}else if (item == 10){
|
||||
fileList.value[index].lodTxt = "错误"
|
||||
}else{
|
||||
fileList.value[index].lodTxt = "完成"
|
||||
|
Loading…
Reference in New Issue
Block a user