This commit is contained in:
zhutianqi
2021-12-31 11:30:38 +08:00
parent fbb75e14b4
commit 1dc6865c38
@@ -223,7 +223,7 @@
drag
:action="fileUrl"
ref="importfile"
:file-list="fileList"
:file-list="form.fileList"
name="file"
accept=".ZIP, .zip, .docx, .DOCX, .xls, .xlsx, .pdf, .PDF"
:before-upload="beginImportFile"
@@ -251,7 +251,6 @@
name: "bzdyStep3",
data() {
return {
fileList: [],
commentText3: '',
newDocUser: '',
drawerModal: false,
@@ -267,6 +266,7 @@
acceptShow: false,
todoId: '',
form: {
fileList: [],
dyhz: '',
title: '', // 调研标题
date: '', // 完成时间
@@ -356,7 +356,7 @@
},
importFileRemove (file, fileList) {
if (fileList) {
this.fileList = []
this.form.fileList = []
}
this.form.fileId = ''
this.form.fileName = ''
@@ -389,11 +389,11 @@
// 导入标准数据成功后执行
importFileSuccess (response, file) {
if (response.ok) {
this.fileList = []
this.form.fileList = []
this.fileMadel = false
this.form.fileId = response.data.id
this.form.fileName = response.data.name
this.fileList.push(response.data)
this.form.fileList.push(response.data)
this.$message({
showClose: true,
message: response.message,
@@ -469,6 +469,7 @@
pId: this.pId
}).then(res => {
let data = JSON.parse(res.mesg)
console.log(data);
let commitStatus = res.commitStatus
if(commitStatus && commitStatus > 0){
this.acceptShow = true
@@ -490,6 +491,7 @@
this.form.fileId = data.form ? data.form.fileId : ''
this.form.dyhz = data.form ? data.form.dyhz : ''
this.newDocUser = data.form ? data.form.docUser : data.docUser
this.form.fileList = data.form ? data.form.fileList : []
}).catch(e => {
})
})