征求意见的查看附件

This commit is contained in:
shenyanpei
2021-09-09 18:39:19 +08:00
parent 31a6fa4e4a
commit d42da3d955
3 changed files with 1276 additions and 1182 deletions
File diff suppressed because it is too large Load Diff
@@ -334,6 +334,7 @@ export default {
standType: '',
standId: '',
fjList: [],
fjListName: '',
fjListId: ''
},
formRules: {
@@ -438,7 +439,11 @@ export default {
this.fzlistModel = true
},
handleSelection2 (data) {
this.addFjList = data
if(data.length > 5) {
this.$message.warning('最多选择5条附件')
} else {
this.addFjList = data
}
},
closeDrawer2 () {
this.fzlistModel = false
@@ -447,11 +452,14 @@ export default {
enterDrawer2 () {
this.fzlistModel = false
this.form.fjList = this.addFjList
let idList
this.addFjList.forEach( item => {
idList += item.id + ','
let idList = []
let nameList = []
this.addFjList.forEach(item => {
idList.push(item.id)
nameList.push(item.fileName)
})
this.form.fjListId = idList
this.form.fjListName = nameList.join(',')
this.form.fjListId = idList.join(',')
},
// 点击查看
handlePreview (item) {
@@ -633,6 +641,8 @@ export default {
if (res.ok) {
var json = Object.assign(this.form, this.roleForm)
json.commentText = this.commentText
json.filesId = this.addFjList
json.filesName = this.form.fjListName
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskId: res.data,