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