待办流程添加批量办理

This commit is contained in:
范强强
2022-09-15 18:14:34 +08:00
parent 6166a92a37
commit 074eb45232
@@ -113,6 +113,7 @@
isTrue: false,
taskDefinitionKey: '',
taskIds:[],
projectLawsInventoryIds:[],
}
},
methods: {
@@ -121,11 +122,13 @@
this.selectedRowKeys = data
this.taskDefinitionKey = this.selectedRowKeys[0].taskDefinitionKey
this.taskIds = []
this.projectLawsInventoryIds = []
this.selectedRowKeys.forEach(res=>{
if (res.taskIds.indexOf(',') != '-1'){
res.taskIds = res.taskIds.slice(0,res.taskIds.indexOf(','))
}
this.taskIds.push(res.taskIds)
this.projectLawsInventoryIds.push(res.projectLawsInventoryId)
})
this.confirmLoading = false
this.visible = true
@@ -168,7 +171,8 @@
taskIds:this.taskIds.join(','),
userId:this.userInfo().id,
taskDefinitionKey:this.taskDefinitionKey,
handlingTime:handlingTime
handlingTime:handlingTime,
projectLawsInventoryIds:this.projectLawsInventoryIds.join(',')
}
if (this.formInline.flag == '1'){
this.addBatch()