Bug48: 地图列表的位置锁定&仿真权限判断调整
This commit is contained in:
parent
4b95be70dd
commit
63e2a57f36
@ -170,7 +170,11 @@ export default {
|
|||||||
this.$router.push({ path: `/jointTrainingNew`, query: query });
|
this.$router.push({ path: `/jointTrainingNew`, query: query });
|
||||||
launchFullscreen();
|
launchFullscreen();
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
this.$messageBox(this.$t('error.createSimulationFailed') + error.message);
|
if (error.code == 10003) {
|
||||||
|
this.$messageBox(this.$t('error.createSimulationFailed') + ':您的仿真权限不足!');
|
||||||
|
} else {
|
||||||
|
this.$messageBox(this.$t('error.createSimulationFailed') + error.message);
|
||||||
|
}
|
||||||
this.disabled = false;
|
this.disabled = false;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -185,6 +189,11 @@ export default {
|
|||||||
this.$router.push({ path: `/displayIscs/system`, query: query });
|
this.$router.push({ path: `/displayIscs/system`, query: query });
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
if (error.code == 10003) {
|
||||||
|
this.$messageBox(this.$t('error.createSimulationFailed') + ':您的仿真权限不足!');
|
||||||
|
} else {
|
||||||
|
this.$messageBox(this.$t('error.createSimulationFailed') + error.message);
|
||||||
|
}
|
||||||
this.disabled = false;
|
this.disabled = false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -197,7 +206,11 @@ export default {
|
|||||||
}
|
}
|
||||||
this.$router.push({ path: `/displayBigScreen/${this.courseModel.mapId}`, query: query });
|
this.$router.push({ path: `/displayBigScreen/${this.courseModel.mapId}`, query: query });
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
this.$messageBox(this.$t('error.createSimulationFailed') + error.message);
|
if (error.code == 10003) {
|
||||||
|
this.$messageBox(this.$t('error.createSimulationFailed') + ':您的仿真权限不足!');
|
||||||
|
} else {
|
||||||
|
this.$messageBox(this.$t('error.createSimulationFailed') + error.message);
|
||||||
|
}
|
||||||
this.disabled = false;
|
this.disabled = false;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -217,7 +230,11 @@ export default {
|
|||||||
this.$router.push({ path: `${UrlConfig.displayNew}/demon`, query: query });
|
this.$router.push({ path: `${UrlConfig.displayNew}/demon`, query: query });
|
||||||
launchFullscreen();
|
launchFullscreen();
|
||||||
}).catch(error=>{
|
}).catch(error=>{
|
||||||
this.$messageBox(this.$t('error.createSimulationFailed') + error.message);
|
if (error.code == 10003) {
|
||||||
|
this.$messageBox(this.$t('error.createSimulationFailed') + ':您的仿真权限不足!');
|
||||||
|
} else {
|
||||||
|
this.$messageBox(this.$t('error.createSimulationFailed') + error.message);
|
||||||
|
}
|
||||||
this.disabled = false;
|
this.disabled = false;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -206,7 +206,7 @@ export default {
|
|||||||
},
|
},
|
||||||
nodeCollapse(obj, node, ele) {
|
nodeCollapse(obj, node, ele) {
|
||||||
const key = obj.key;
|
const key = obj.key;
|
||||||
this.expandList = this.expandList.filter(item => item !== key);
|
this.expandList = this.expandList.filter(item => (item !== key && !item.startsWith(`${key}-`)));
|
||||||
localStore.set('trainIngPlatformExpandList' + this.filterSelect + this.userId + this.project, this.expandList);
|
localStore.set('trainIngPlatformExpandList' + this.filterSelect + this.userId + this.project, this.expandList);
|
||||||
},
|
},
|
||||||
getExpandList(filterSelect) {
|
getExpandList(filterSelect) {
|
||||||
|
Loading…
Reference in New Issue
Block a user