52837 【线上】未符合项流程,批准节点,审定节点上传的文件,现在在批准节点显示的文件不全

This commit is contained in:
宋伟佳
2022-05-18 09:49:06 +08:00
parent ecb6555b1f
commit 92a8f3af98
@@ -315,17 +315,18 @@ export default {
},
// 文件上传成功
handleOnsuccess(res, file, fileList) {
console.log(res);
if (res.ok) {
if (this.fileTextList !== null) {
this.newDataList = this.fileTextList
this.newDataList.push({
id: res.data.attId,
name: res.data.standName
name: res.data.name
})
} else {
this.newDataList.push({
id: res.data.attId,
name: res.data.standName
name: res.data.name
})
}
this.fileListData.fileText = this.newDataList
@@ -460,10 +461,10 @@ export default {
// 提交按钮
handleSubmit() {
this.isSubmit = true
let flag=false
let flag = false
this.dataList.forEach(item => {
if (item.fileText.length === 0) {
flag=true
flag = true
this.isSubmit = false
}
})