代码语言:javascript复制
addDialogCB (data) {
// 如有数据 判定点确认
if (data) {
this.showType = 'table'
var formData = new FormData()
formData.append('fileType', 0)
formData.append('remark', data.remark)
for (let i = 0; i < data.files.length; i ) {
formData.append('multipartFiles', data.files[i])
}
uploadManyOfficeDoc(formData).then(res => {
if (res.data.code === 0) {
this.tableId = res.data.data
this.getOfficeDocByPage()
} else {
this.$message({
type: 'error',
message: res.data.msg
})
}
})
}
this.dialogAddVisitVisible = false
}
代码语言:javascript复制<input type="file" style="display: none;" multiple id="uploader" @change="fileChange($event)"/>
山重水复疑无路,柳暗花明又一村