Commit 97197855 authored by 王晓铜's avatar 王晓铜

Merge branch 'master' into xiaotong

parents a3920436 cdc13c25
...@@ -151,7 +151,11 @@ export default { ...@@ -151,7 +151,11 @@ export default {
}, },
sendFormRules: { sendFormRules: {
progress: [ progress: [
{ required: true, message: '请输入测试进度百分比,不需要%', trigger: 'blur' } {
required: true,
message: '请输入测试进度百分比,不需要%',
trigger: 'blur'
}
] ]
} }
} }
...@@ -237,12 +241,18 @@ export default { ...@@ -237,12 +241,18 @@ export default {
this.sendScheduleData.progress = this.sendScheduleForm.progress + '%' this.sendScheduleData.progress = this.sendScheduleForm.progress + '%'
this.sendScheduleData.risk = this.sendScheduleForm.risk this.sendScheduleData.risk = this.sendScheduleForm.risk
this.sendScheduleData.webhook = this.sendProjectRobot.dingUrl this.sendScheduleData.webhook = this.sendProjectRobot.dingUrl
sendScheduleReport(this.sendScheduleData).then((resp) => { this.$refs.sendFormRef.validate((valid) => {
if (resp.data.data === true) { if (!valid) {
this.sendScheduleDialogVisible = false return false
return this.$message.success('发送成功!') } else {
} else if (resp.data.data === false) { sendScheduleReport(this.sendScheduleData).then((resp) => {
return this.$message.error('发送失败!') if (resp.data.data === true) {
this.sendScheduleDialogVisible = false
return this.$message.success('发送成功!')
} else if (resp.data.data === false) {
return this.$message.error('发送失败!')
}
})
} }
}) })
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment