代码调整
This commit is contained in:
parent
5a9099aa35
commit
f68cb84648
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user