发布信息提示

This commit is contained in:
joylink_fanyuhong 2024-06-24 18:43:00 +08:00
parent 4841ebdda7
commit 22a2e11517
2 changed files with 15 additions and 0 deletions

View File

@ -714,6 +714,14 @@ export default {
confirmPublish() { confirmPublish() {
publishRunPlanAllUser(this.loadRunPlanId, this.publishName || this.loadRunPlanName).then(resp => { publishRunPlanAllUser(this.loadRunPlanId, this.publishName || this.loadRunPlanName).then(resp => {
this.$message.success(this.$t('tip.publishRunPlanSuccess')); this.$message.success(this.$t('tip.publishRunPlanSuccess'));
if (resp.data && resp.data.length > 0) {
let message = '';
resp.data.forEach(msg => message += (msg + ';'))
this.$confirm(message, this.$t('global.tips'), {
confirmButtonText: this.$t('global.confirm'),
showCancelButton: false
})
}
this.publishVisible = false; this.publishVisible = false;
}).catch(() => { }).catch(() => {
this.$messageBox(this.$t('tip.publishRunPlanFail')); this.$messageBox(this.$t('tip.publishRunPlanFail'));

View File

@ -717,6 +717,13 @@ export default {
confirmPublish() { confirmPublish() {
publishRunPlanAllUser(this.loadRunPlanId, this.publishName || this.loadRunPlanName).then(resp => { publishRunPlanAllUser(this.loadRunPlanId, this.publishName || this.loadRunPlanName).then(resp => {
this.$message.success(this.$t('tip.publishRunPlanSuccess')); this.$message.success(this.$t('tip.publishRunPlanSuccess'));
if (resp.data && resp.data.length > 0) {
let message = '';
resp.data.forEach(msg => message += (msg + ';'))
this.$confirm(message, this.$t('global.tips'), {
confirmButtonText: this.$t('global.confirm')
})
}
this.publishVisible = false; this.publishVisible = false;
}).catch(() => { }).catch(() => {
this.$messageBox(this.$t('tip.publishRunPlanFail')); this.$messageBox(this.$t('tip.publishRunPlanFail'));