|
@@ -280,15 +280,19 @@
|
|
|
// }
|
|
// }
|
|
|
// await UpdateInformation(arr);
|
|
// await UpdateInformation(arr);
|
|
|
// }
|
|
// }
|
|
|
|
|
+ console.log(this.selectId, this.form.userId, 'this.selectId');
|
|
|
let API = !!status ? approveTaskWithVariables : rejectTask;
|
|
let API = !!status ? approveTaskWithVariables : rejectTask;
|
|
|
|
|
+ let variables = {
|
|
|
|
|
+ pass: !!status
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if(this.taskDefinitionKey === 'deptLeaderAssign') {
|
|
|
|
|
+ variables.userId = this.selectId.join(',');
|
|
|
|
|
+ }
|
|
|
await API({
|
|
await API({
|
|
|
id: this.taskId,
|
|
id: this.taskId,
|
|
|
reason: this.form.reason,
|
|
reason: this.form.reason,
|
|
|
- variables: {
|
|
|
|
|
- // userId: this.form.userId,
|
|
|
|
|
- userId: this.selectId.join(','),
|
|
|
|
|
- pass: !!status
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ variables: variables
|
|
|
});
|
|
});
|
|
|
this.$emit('handleAudit', {
|
|
this.$emit('handleAudit', {
|
|
|
status,
|
|
status,
|