待办流程添加批量办理
This commit is contained in:
+4
-1
@@ -120,6 +120,7 @@
|
|||||||
getData(data) {
|
getData(data) {
|
||||||
this.selectedRowKeys = data
|
this.selectedRowKeys = data
|
||||||
this.taskDefinitionKey = this.selectedRowKeys[0].taskDefinitionKey
|
this.taskDefinitionKey = this.selectedRowKeys[0].taskDefinitionKey
|
||||||
|
this.taskIds = []
|
||||||
this.selectedRowKeys.forEach(res=>{
|
this.selectedRowKeys.forEach(res=>{
|
||||||
if (res.taskIds.indexOf(',') != '-1'){
|
if (res.taskIds.indexOf(',') != '-1'){
|
||||||
res.taskIds = res.taskIds.slice(0,res.taskIds.indexOf(','))
|
res.taskIds = res.taskIds.slice(0,res.taskIds.indexOf(','))
|
||||||
@@ -161,11 +162,13 @@
|
|||||||
handleOk() {
|
handleOk() {
|
||||||
this.$refs.ruleForm.validate(valid => {
|
this.$refs.ruleForm.validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
let handlingTime = moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
|
||||||
let query = {
|
let query = {
|
||||||
...this.formInline,
|
...this.formInline,
|
||||||
taskIds:this.taskIds.join(','),
|
taskIds:this.taskIds.join(','),
|
||||||
userId:this.userInfo().id,
|
userId:this.userInfo().id,
|
||||||
taskDefinitionKey:this.taskDefinitionKey
|
taskDefinitionKey:this.taskDefinitionKey,
|
||||||
|
handlingTime:handlingTime
|
||||||
}
|
}
|
||||||
if (this.formInline.flag == '1'){
|
if (this.formInline.flag == '1'){
|
||||||
this.addBatch()
|
this.addBatch()
|
||||||
|
|||||||
Reference in New Issue
Block a user