From fa7380f8ad9b3ce4485fddf799ef1c62108b0462 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Fri, 18 Dec 2020 17:51:54 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=90=E8=A1=8C=E5=9B=BE=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/planMonitor/detail.vue | 6 +++++- src/views/planMonitor/editTool/menuBar.vue | 6 +++++- .../editTool/routingoperate/routeConfig.vue | 13 +++++++------ 3 files changed, 17 insertions(+), 8 deletions(-) diff --git a/src/views/planMonitor/detail.vue b/src/views/planMonitor/detail.vue index a537dee71..8308e2891 100644 --- a/src/views/planMonitor/detail.vue +++ b/src/views/planMonitor/detail.vue @@ -250,7 +250,11 @@ export default { }).then(() => { if (this.hasRelease) { publishRunPlan(row.id, {runPlanName: name}).then(resp => { - this.$message.success(this.$t('tip.publishRunPlanSuccess')); + if (resp.data.length <= 0) { + this.$message.success(this.$t('tip.publishRunPlanSuccess')); + } else { + this.$messageBox(`${this.$t('tip.publishRunPlanFail')}: ${resp.data[0]}`); + } this.refresh(); }).catch(() => { this.$messageBox(this.$t('tip.publishRunPlanFail')); diff --git a/src/views/planMonitor/editTool/menuBar.vue b/src/views/planMonitor/editTool/menuBar.vue index a20557791..24075a0ec 100644 --- a/src/views/planMonitor/editTool/menuBar.vue +++ b/src/views/planMonitor/editTool/menuBar.vue @@ -612,7 +612,11 @@ export default { type: 'warning' }).then(() => { publishRunPlan(param.planId, {runPlanName: param.planName}).then(resp => { - this.$message.success(this.$t('tip.publishRunPlanSuccess')); + if (resp.data.length <= 0) { + this.$message.success(this.$t('tip.publishRunPlanSuccess')); + } else { + this.$messageBox(`${this.$t('tip.publishRunPlanFail')}: ${resp.data[0]}`); + } }).catch(() => { this.$messageBox(this.$t('tip.publishRunPlanFail')); }); diff --git a/src/views/planMonitor/editTool/routingoperate/routeConfig.vue b/src/views/planMonitor/editTool/routingoperate/routeConfig.vue index 97524b3c8..afe856e72 100644 --- a/src/views/planMonitor/editTool/routingoperate/routeConfig.vue +++ b/src/views/planMonitor/editTool/routingoperate/routeConfig.vue @@ -11,7 +11,7 @@ - + - {{ $t('map.activate') }} + >{{ $t('map.activate') }} --> @@ -40,7 +40,8 @@ >{{ $t('map.activate') }} - + + - {{ $t('map.activate') }} + >{{ $t('map.activate') }} -->