| | |
| | | async formSubmit() { |
| | | console.log(this.time,'dataLoaded') |
| | | if (this.time + Number(this.dataForm.phaseDurationRate > 1)) { |
| | | this.$alert("当前运行时长比已超出,请重新设置") |
| | | return |
| | | } |
| | | let res = await this.$http[!this.dataForm.id ? 'post' : 'put']('/taskReliability/TaskPhase/', this.dataForm) |
| | | if (res.success) { |
| | | await this.$tip.success() |
| | | this.$refs.dialog.close() |
| | | this.$emit('refreshDataList') |
| | | this.$alert("请重新设置当前时长比分配") |
| | | }else{ |
| | | let res = await this.$http[!this.dataForm.id ? 'post' : 'put']('/taskReliability/TaskPhase/', this.dataForm) |
| | | if (res.success) { |
| | | await this.$tip.success() |
| | | this.$refs.dialog.close() |
| | | this.$emit('refreshDataList') |
| | | } |
| | | } |
| | | } |
| | | } |