iscs退出仿真调整&iscs绘制地图调整
master分支构建发布到公网服务器 / Build-Publish (push) Successful in 14m22s
Details
master分支构建发布到公网服务器 / Build-Publish (push) Successful in 14m22s
Details
This commit is contained in:
parent
d5eb68ea1c
commit
3fc31777a2
|
@ -58,7 +58,7 @@ export default {
|
|||
mapPublishList: [],
|
||||
pageTreeMap: {
|
||||
'01': [],
|
||||
'49': [
|
||||
'63': [
|
||||
{
|
||||
// 牵引降压混合变电所主接线图 变电所接线图 降压变电所主接线图 解除网图 混合变电所主接线图
|
||||
name: '电力监控系统',
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue