| | |
| | | }; |
| | | }, |
| | | watch: { |
| | | // 'form.category'() { |
| | | // const category = func.toInt(this.form.category); |
| | | // this.$refs.crud.option.column.filter(item => { |
| | | // if (item.prop === 'path') { |
| | | // item.rules[0].required = category === 1; |
| | | // } |
| | | // if (item.prop === 'isOpen') { |
| | | // item.disabled = category === 2; |
| | | // } |
| | | // }); |
| | | // }, |
| | | 'formApprove.approve'(val) { |
| | | console.log('>>>>>>>>>>') |
| | | if (val === 'Y' && ["approveTask", 'seniorApproveTask'].includes(this.row.taskDefinitionKey)) {// 高师 |
| | | this.optionApprove.column[1].disabled = true; |
| | | this.formApprove.assignee = ''; // 如果是通过,则默认指派给自己 |
| | |
| | | this.setAssignee(this.row); |
| | | } else if(val === 'N') { |
| | | this.formApprove.assignee = '' |
| | | console.log('>>>>>>>>>>') |
| | | this.optionApprove.column[1].disabled = true; |
| | | // this.formApprove.assignee = row.variables.senior; |
| | | } |
| | | if(val === 'Y' && ['confirmIsUseableTask'].includes(this.row.taskDefinitionKey) && this.row.variables.isProcessEditionSame=='N') { |
| | | this.optionApprove.column[2].display = true; // 显示工序版次 |
| | | } else { |
| | | this.optionApprove.column[2].display = false; // 隐藏工序版次 |
| | | } |
| | | // if(val === 'Y' && ['confirmIsUseableTask'].includes(this.row.taskDefinitionKey) && this.row.variables.isProcessEditionSame=='N') { |
| | | // this.optionApprove.column[2].display = true; // 显示工序版次 |
| | | // } else { |
| | | // this.optionApprove.column[2].display = false; // 隐藏工序版次 |
| | | // } |
| | | |
| | | }, |
| | | }, |
| | |
| | | } |
| | | |
| | | .left { |
| | | width: 400px; |
| | | width: 600px; |
| | | } |
| | | |
| | | .right { |