|
|
@ -200,6 +200,7 @@ |
|
|
|
<el-dialog |
|
|
|
:title="title" |
|
|
|
:visible.sync="open" |
|
|
|
@close="close" |
|
|
|
width="1000px" |
|
|
|
append-to-body |
|
|
|
style="margin-top: 0" |
|
|
@ -361,6 +362,7 @@ import { |
|
|
|
exportApproval, |
|
|
|
} from "@/api/earlyStage/approval"; |
|
|
|
import { getToken } from "@/utils/auth"; |
|
|
|
import { getFileStream } from "@/api/system/upload"; |
|
|
|
|
|
|
|
export default { |
|
|
|
props: ["proNo"], |
|
|
@ -467,11 +469,7 @@ export default { |
|
|
|
categoryFormat(row, column) { |
|
|
|
return this.selectDictLabel(this.categoryOptions, row.category); |
|
|
|
}, |
|
|
|
// 取消按钮 |
|
|
|
cancel() { |
|
|
|
this.open = false; |
|
|
|
this.reset(); |
|
|
|
}, |
|
|
|
|
|
|
|
// 表单重置 |
|
|
|
reset() { |
|
|
|
this.form = { |
|
|
@ -494,6 +492,11 @@ export default { |
|
|
|
remark: null, |
|
|
|
}; |
|
|
|
this.resetForm("form"); |
|
|
|
// 重置存储文件的数组 |
|
|
|
// this.projectFileList.length = 0; |
|
|
|
// this.opinionFileList.length = 0; |
|
|
|
this.projectFileList.splice(0, this.projectFileList.length); |
|
|
|
this.opinionFileList.splice(0, this.opinionFileList.length); |
|
|
|
}, |
|
|
|
// 查询表单重置 |
|
|
|
resetQueryForm() { |
|
|
@ -540,17 +543,14 @@ export default { |
|
|
|
}, |
|
|
|
/** 新增按钮操作 */ |
|
|
|
handleAdd() { |
|
|
|
this.reset(); |
|
|
|
this.open = true; |
|
|
|
this.title = "添加专题项目报批任务书信息"; |
|
|
|
}, |
|
|
|
/** 修改按钮操作 */ |
|
|
|
handleUpdate(row) { |
|
|
|
this.reset(); |
|
|
|
const id = row.id || this.ids; |
|
|
|
getApproval(id).then((response) => { |
|
|
|
this.form = response.data; |
|
|
|
console.log(response.data); |
|
|
|
// 附件信息 |
|
|
|
if (response.data.projectAttachment) { |
|
|
|
this.projectFileList = JSON.parse(response.data.projectAttachment); |
|
|
@ -562,10 +562,6 @@ export default { |
|
|
|
this.title = "修改专题项目报批任务书信息"; |
|
|
|
}); |
|
|
|
}, |
|
|
|
// 打开表单 |
|
|
|
openForm() { |
|
|
|
this.open = true; |
|
|
|
}, |
|
|
|
/** 提交按钮 */ |
|
|
|
submitForm() { |
|
|
|
this.$refs["form"].validate((valid) => { |
|
|
@ -592,11 +588,16 @@ export default { |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
// 重置存储文件的数组 |
|
|
|
this.projectFileList.length = 0; |
|
|
|
this.opinionFileList.length = 0; |
|
|
|
}); |
|
|
|
}, |
|
|
|
// 取消按钮 |
|
|
|
cancel() { |
|
|
|
this.open = false; |
|
|
|
}, |
|
|
|
// 关闭弹窗 |
|
|
|
close() { |
|
|
|
this.reset(); |
|
|
|
}, |
|
|
|
/** 删除按钮操作 */ |
|
|
|
handleDelete(row) { |
|
|
|
const ids = row.id || this.ids; |
|
|
@ -623,8 +624,9 @@ export default { |
|
|
|
console.log("fileList", fileList); |
|
|
|
this.projectFileList.push({ |
|
|
|
name: fileList.name, |
|
|
|
fileName: fileList.response.fileName, |
|
|
|
url: fileList.response.url, |
|
|
|
fileList: fileList, |
|
|
|
uid: fileList.uid, |
|
|
|
}); |
|
|
|
}, |
|
|
|
handleProjectRemove(file, fileList) { |
|
|
@ -636,7 +638,8 @@ export default { |
|
|
|
this.projectFileList.splice(index, 1); |
|
|
|
}, |
|
|
|
handleProjectPreview(file) { |
|
|
|
console.log(file); |
|
|
|
console.log(file.fileName); |
|
|
|
getFileStream({ fileName: file.fileName }); |
|
|
|
}, |
|
|
|
handleProjectExceed(files, fileList) { |
|
|
|
this.$message.warning( |
|
|
@ -653,6 +656,7 @@ export default { |
|
|
|
console.log("fileList", fileList); |
|
|
|
this.opinionFileList.push({ |
|
|
|
name: fileList.name, |
|
|
|
fileName: fileList.response.fileName, |
|
|
|
url: fileList.response.url, |
|
|
|
uid: fileList.uid, |
|
|
|
// fileList: fileList, |
|
|
|