iscs退出仿真调整&iscs绘制地图调整
Some checks failed
local-test分支构建发布到本地服务器 / Build-Publish (push) Has been cancelled

This commit is contained in:
fan 2024-04-19 22:25:43 +08:00
parent 98662ec177
commit ce8d3f4531
3 changed files with 23 additions and 19 deletions

View File

@ -58,7 +58,7 @@ export default {
mapPublishList: [],
pageTreeMap: {
'01': [],
'49': [
'63': [
{
// 线 线 线 线
name: '电力监控系统',

View File

@ -86,7 +86,7 @@ import { getByGroupStationList } from '@/api/jmap/map';
import { getToken } from '@/utils/auth';
// import { getSessionStorage } from '@/utils/auth';
import { creatSubscribe, clearSubscribe, displayTopic} from '@/utils/stomp';
import { clearSimulation } from '@/api/simulation';
import { destroySimulationByAdmin } from '@/api/simulation';
import alarmConfig from './stationConfig/dialog/alarm';
import incidentConfig from './stationConfig/dialog/incident';
@ -492,13 +492,16 @@ export default {
this.$store.dispatch('LogOut').then(() => {
location.reload();
});
} else {
clearSimulation(this.$route.query.group).then(resp => {
this.$router.push({ path: `/trainingPlatform` });
} else if(this.$store.state.training.simulationCreator){
destroySimulationByAdmin(this.$route.query.group).then(resp => {
history.go(-1);
}).catch(()=> {
this.$message.error('清除仿真失败!');
});
}
} else {
history.go(-1);
}
},
quit() {
window.close();

View File

@ -82,6 +82,7 @@ import iscs_icon7 from '@/assets/iscs_system/iscs_icon7.png';
import alarmConfig from './stationConfig/dialog/alarm';
import incidentConfig from './stationConfig/dialog/incident';
import malfunction from './stationConfig/dialog/malfunction';
import { destroySimulationByAdmin } from '@/api/simulation';
export default {
name:'StationNav',
components: {
@ -402,19 +403,19 @@ export default {
this.$refs.malfunction.doShow('CANCEL');
},
back() {
history.go(-1);
// this.clearSubscribe();
// if (this.projectDevice) {
// this.$store.dispatch('LogOut').then(() => {
// location.reload();
// });
// } else {
// clearSimulation(this.$route.query.group).then(resp => {
// this.$router.push({ path: `/trainingPlatform` });
// }).catch(()=> {
// this.$message.error('仿');
// });
// }
if (this.projectDevice) {
this.$store.dispatch('LogOut').then(() => {
location.reload();
});
} else if(this.$store.state.training.simulationCreator){
destroySimulationByAdmin(this.$route.query.group).then(resp => {
history.go(-1);
}).catch(()=> {
this.$message.error('清除仿真失败!');
});
} else {
history.go(-1);
}
}
}
};