代码调整

This commit is contained in:
joylink_cuiweidong 2019-11-18 15:42:05 +08:00
parent 5a9099aa35
commit f68cb84648

View File

@ -112,6 +112,9 @@ export default {
handlePlanEffectiveCheck() { handlePlanEffectiveCheck() {
const planId = this.$route.query.planId; const planId = this.$route.query.planId;
if (planId) { if (planId) {
if (/^\/plan\/usertool/.test(this.$route.fullPath)) {
this.$messageBox(' 功能待完善');
} else {
planEffectiveCheck(planId).then(resp => { planEffectiveCheck(planId).then(resp => {
this.$emit('dispatchDialog', { this.$emit('dispatchDialog', {
name: 'systermOut', name: 'systermOut',
@ -123,6 +126,8 @@ export default {
}).catch(error => { }).catch(error => {
this.$messageBox(error.message + ' ' + this.$t('tip.runGraphVerificationFailed')); this.$messageBox(error.message + ' ' + this.$t('tip.runGraphVerificationFailed'));
}); });
}
} else { } else {
this.$messageBox(this.$t('tip.selectARunGraphFirst')); this.$messageBox(this.$t('tip.selectARunGraphFirst'));
} }
@ -130,6 +135,9 @@ export default {
// //
async handleTestRunPlan() { async handleTestRunPlan() {
const data = { planId: this.$route.query.planId }; const data = { planId: this.$route.query.planId };
if (/^\/plan\/usertool/.test(this.$route.fullPath)) {
this.$messageBox(' 功能待完善');
} else {
runPlanNotify(data).then(resp => { runPlanNotify(data).then(resp => {
if (resp.data) { if (resp.data) {
const query = { const query = {
@ -144,6 +152,8 @@ export default {
this.$messageBox(this.$t('tip.createSimulationFaild') + this.$t('global.colon') + error.message); this.$messageBox(this.$t('tip.createSimulationFaild') + this.$t('global.colon') + error.message);
}); });
} }
}
} }
}; };
</script> </script>