| | |
| | | }, |
| | | |
| | | achieveApprovalLevel(value, title) { |
| | | debugger |
| | | if (title === '新增审批层级') { |
| | | if (this.approveRuleForm.stepList.length === 0) { |
| | | value.stepSerial = 1; |
| | |
| | | this.userList = userList; |
| | | this.workTypeList = workTypeList; |
| | | this.departmentList = departmentList; |
| | | this.$nextTick(()=>{ |
| | | this.$nextTick(() =>{ |
| | | this.$refs["approveRuleFormRef"].clearValidate() |
| | | }) |
| | | if (type === '新增') { |
| | |
| | | } else { |
| | | this.$message({ |
| | | type: 'warning', |
| | | message: res.data.msg |
| | | message: res.data.message |
| | | }); |
| | | } |
| | | } else { |
| | |
| | | } else { |
| | | this.$message({ |
| | | type: 'warning', |
| | | message: res.data.msg |
| | | message: res.data.message |
| | | }); |
| | | } |
| | | } |