From f68cb84648da62badce8fc8367aae4cad64c6dad Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Mon, 18 Nov 2019 15:42:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/planMonitor/editTool/statusBar.vue | 56 ++++++++++++-------- 1 file changed, 33 insertions(+), 23 deletions(-) diff --git a/src/views/planMonitor/editTool/statusBar.vue b/src/views/planMonitor/editTool/statusBar.vue index c83a16410..77aa19f11 100644 --- a/src/views/planMonitor/editTool/statusBar.vue +++ b/src/views/planMonitor/editTool/statusBar.vue @@ -112,17 +112,22 @@ export default { handlePlanEffectiveCheck() { const planId = this.$route.query.planId; if (planId) { - planEffectiveCheck(planId).then(resp => { - this.$emit('dispatchDialog', { - name: 'systermOut', - params: { - width: 600, - contextList: resp.data.length > 0 ? resp.data : ['检查成功'] - } + if (/^\/plan\/usertool/.test(this.$route.fullPath)) { + this.$messageBox(' 功能待完善'); + } else { + planEffectiveCheck(planId).then(resp => { + this.$emit('dispatchDialog', { + name: 'systermOut', + params: { + width: 600, + contextList: resp.data.length > 0 ? resp.data : ['检查成功'] + } + }); + }).catch(error => { + this.$messageBox(error.message + ' ' + this.$t('tip.runGraphVerificationFailed')); }); - }).catch(error => { - this.$messageBox(error.message + ' ' + this.$t('tip.runGraphVerificationFailed')); - }); + } + } else { this.$messageBox(this.$t('tip.selectARunGraphFirst')); } @@ -130,19 +135,24 @@ export default { // 测试运行图 async handleTestRunPlan() { const data = { planId: this.$route.query.planId }; - runPlanNotify(data).then(resp => { - if (resp.data) { - const query = { - prdType: '01', group: resp.data, mapId: this.$route.query.mapId, planId: this.$route.query.planId - }; - this.$router.push({ path: `${UrlConfig.display}/plan`, query: query }); - launchFullscreen(); - } else { - this.$messageBox(this.$t('error.checkTheValidityFirst')); - } - }).catch(error => { - this.$messageBox(this.$t('tip.createSimulationFaild') + this.$t('global.colon') + error.message); - }); + if (/^\/plan\/usertool/.test(this.$route.fullPath)) { + this.$messageBox(' 功能待完善'); + } else { + runPlanNotify(data).then(resp => { + if (resp.data) { + const query = { + prdType: '01', group: resp.data, mapId: this.$route.query.mapId, planId: this.$route.query.planId + }; + this.$router.push({ path: `${UrlConfig.display}/plan`, query: query }); + launchFullscreen(); + } else { + this.$messageBox(this.$t('error.checkTheValidityFirst')); + } + }).catch(error => { + this.$messageBox(this.$t('tip.createSimulationFaild') + this.$t('global.colon') + error.message); + }); + } + } } };