文件上传修改识别 #112
@@ -783,7 +783,14 @@ export default {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
this.fileList = this.caseAttachList;
|
if (this.caseAttachList.length > 0) {
|
||||||
|
this.caseAttachListArr = this.caseAttachList
|
||||||
|
}
|
||||||
|
this.caseAttachList.forEach((item) => {
|
||||||
|
if (item.annexType == 2) {
|
||||||
|
this.fileList.push(item)
|
||||||
|
}
|
||||||
|
});
|
||||||
this.fileList.forEach((item) => {
|
this.fileList.forEach((item) => {
|
||||||
item["name"] = item.annexName;
|
item["name"] = item.annexName;
|
||||||
item["certificatePath"] = item.annexPath;
|
item["certificatePath"] = item.annexPath;
|
||||||
@@ -854,9 +861,9 @@ export default {
|
|||||||
|
|
||||||
// 文件上传成功
|
// 文件上传成功
|
||||||
handlSuccess(res, file) {
|
handlSuccess(res, file) {
|
||||||
this.caseAttachListArr.push({
|
this.caseAttachListArr.push(
|
||||||
annexId: res.data.annexId,
|
res.data,
|
||||||
});
|
);
|
||||||
},
|
},
|
||||||
// 文件超出个数限制时的钩子
|
// 文件超出个数限制时的钩子
|
||||||
handleExceed(files, fileList) {
|
handleExceed(files, fileList) {
|
||||||
@@ -870,10 +877,10 @@ export default {
|
|||||||
return this.$confirm(`确定移除 ${file.name}?`);
|
return this.$confirm(`确定移除 ${file.name}?`);
|
||||||
},
|
},
|
||||||
handleRemove(file, fileList) {
|
handleRemove(file, fileList) {
|
||||||
(this.caseAttachListArr = []),
|
// (this.caseAttachListArr = []),
|
||||||
fileList.forEach((item) => {
|
// fileList.forEach((item) => {
|
||||||
this.caseAttachListArr.push({ annexId: item.response.data.annexId });
|
// this.caseAttachListArr.push( item.response.data );
|
||||||
});
|
// });
|
||||||
},
|
},
|
||||||
// 取消
|
// 取消
|
||||||
cancel() {
|
cancel() {
|
||||||
|
|||||||
Reference in New Issue
Block a user