|
|
|
|
@ -222,8 +222,16 @@
|
|
|
|
|
},
|
|
|
|
|
accept: ".rar,.zip,.doc,.docx,.pdf,.jpg,.png,.gif,.xls,.xlsx",
|
|
|
|
|
"on-success": (response, file, fileList) => {
|
|
|
|
|
if (response.errcode) {
|
|
|
|
|
this.fileList = [];
|
|
|
|
|
this.$message({
|
|
|
|
|
type: "warning",
|
|
|
|
|
message: "上传文件失败!",
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
this.fileList = fileList;
|
|
|
|
|
form.file = response?.id;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"before-upload": (file) => {
|
|
|
|
|
if (file.size / 1000 > 50 * 1024) {
|
|
|
|
|
@ -300,7 +308,7 @@
|
|
|
|
|
this.detail.attachment_list = [
|
|
|
|
|
...this.detail.attachment?.map((i) => {
|
|
|
|
|
return {
|
|
|
|
|
file: i.file.id,
|
|
|
|
|
file: i.file?.id,
|
|
|
|
|
content: i.content,
|
|
|
|
|
date: i.date
|
|
|
|
|
};
|
|
|
|
|
|