代码调整
This commit is contained in:
parent
5a9099aa35
commit
f68cb84648
@ -112,17 +112,22 @@ export default {
|
|||||||
handlePlanEffectiveCheck() {
|
handlePlanEffectiveCheck() {
|
||||||
const planId = this.$route.query.planId;
|
const planId = this.$route.query.planId;
|
||||||
if (planId) {
|
if (planId) {
|
||||||
planEffectiveCheck(planId).then(resp => {
|
if (/^\/plan\/usertool/.test(this.$route.fullPath)) {
|
||||||
this.$emit('dispatchDialog', {
|
this.$messageBox(' 功能待完善');
|
||||||
name: 'systermOut',
|
} else {
|
||||||
params: {
|
planEffectiveCheck(planId).then(resp => {
|
||||||
width: 600,
|
this.$emit('dispatchDialog', {
|
||||||
contextList: resp.data.length > 0 ? resp.data : ['检查成功']
|
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 {
|
} else {
|
||||||
this.$messageBox(this.$t('tip.selectARunGraphFirst'));
|
this.$messageBox(this.$t('tip.selectARunGraphFirst'));
|
||||||
}
|
}
|
||||||
@ -130,19 +135,24 @@ export default {
|
|||||||
// 测试运行图
|
// 测试运行图
|
||||||
async handleTestRunPlan() {
|
async handleTestRunPlan() {
|
||||||
const data = { planId: this.$route.query.planId };
|
const data = { planId: this.$route.query.planId };
|
||||||
runPlanNotify(data).then(resp => {
|
if (/^\/plan\/usertool/.test(this.$route.fullPath)) {
|
||||||
if (resp.data) {
|
this.$messageBox(' 功能待完善');
|
||||||
const query = {
|
} else {
|
||||||
prdType: '01', group: resp.data, mapId: this.$route.query.mapId, planId: this.$route.query.planId
|
runPlanNotify(data).then(resp => {
|
||||||
};
|
if (resp.data) {
|
||||||
this.$router.push({ path: `${UrlConfig.display}/plan`, query: query });
|
const query = {
|
||||||
launchFullscreen();
|
prdType: '01', group: resp.data, mapId: this.$route.query.mapId, planId: this.$route.query.planId
|
||||||
} else {
|
};
|
||||||
this.$messageBox(this.$t('error.checkTheValidityFirst'));
|
this.$router.push({ path: `${UrlConfig.display}/plan`, query: query });
|
||||||
}
|
launchFullscreen();
|
||||||
}).catch(error => {
|
} else {
|
||||||
this.$messageBox(this.$t('tip.createSimulationFaild') + this.$t('global.colon') + error.message);
|
this.$messageBox(this.$t('error.checkTheValidityFirst'));
|
||||||
});
|
}
|
||||||
|
}).catch(error => {
|
||||||
|
this.$messageBox(this.$t('tip.createSimulationFaild') + this.$t('global.colon') + error.message);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user