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