删除暂时无用代码
This commit is contained in:
parent
afa5b72281
commit
f9bac6886a
@ -31,10 +31,6 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
// size: {
|
|
||||||
// width: document.documentElement.clientWidth - 400,
|
|
||||||
// height: document.documentElement.clientHeight - 80
|
|
||||||
// },
|
|
||||||
maskOpen: false,
|
maskOpen: false,
|
||||||
maskWidth: 'calc(100% - 450px)',
|
maskWidth: 'calc(100% - 450px)',
|
||||||
disPlay: false
|
disPlay: false
|
||||||
@ -173,8 +169,6 @@ export default {
|
|||||||
this.clearSubscribe();
|
this.clearSubscribe();
|
||||||
}
|
}
|
||||||
this.$store.dispatch('training/over').then(() => {
|
this.$store.dispatch('training/over').then(() => {
|
||||||
EventBus.$emit('runPlanStop');
|
|
||||||
EventBus.$emit('chatSubscribeStop');
|
|
||||||
history.go(-1);
|
history.go(-1);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -189,8 +183,7 @@ export default {
|
|||||||
this.clearSubscribe();
|
this.clearSubscribe();
|
||||||
const header = { group: this.$route.query.group || '', 'X-Token': getToken() };
|
const header = { group: this.$route.query.group || '', 'X-Token': getToken() };
|
||||||
creatSubscribe(`${displayTopic}\/${this.$route.query.group}`, header);
|
creatSubscribe(`${displayTopic}\/${this.$route.query.group}`, header);
|
||||||
|
// await this.$store.dispatch('training/setHasSubscribed');
|
||||||
await this.$store.dispatch('training/setHasSubscribed');
|
|
||||||
},
|
},
|
||||||
clearSubscribe() {
|
clearSubscribe() {
|
||||||
clearSubscribe(`${displayTopic}\/${this.$route.query.group}`);
|
clearSubscribe(`${displayTopic}\/${this.$route.query.group}`);
|
||||||
|
@ -180,8 +180,6 @@ export default {
|
|||||||
this.clearSubscribe();
|
this.clearSubscribe();
|
||||||
}
|
}
|
||||||
this.$store.dispatch('training/over').then(() => {
|
this.$store.dispatch('training/over').then(() => {
|
||||||
EventBus.$emit('runPlanStop');
|
|
||||||
EventBus.$emit('chatSubscribeStop');
|
|
||||||
history.go(-1);
|
history.go(-1);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -196,8 +194,7 @@ export default {
|
|||||||
this.clearSubscribe();
|
this.clearSubscribe();
|
||||||
const header = { group: this.$route.query.group || '', 'X-Token': getToken() };
|
const header = { group: this.$route.query.group || '', 'X-Token': getToken() };
|
||||||
creatSubscribe(`${displayTopic}\/${this.$route.query.group}`, header);
|
creatSubscribe(`${displayTopic}\/${this.$route.query.group}`, header);
|
||||||
|
// await this.$store.dispatch('training/setHasSubscribed');
|
||||||
await this.$store.dispatch('training/setHasSubscribed');
|
|
||||||
},
|
},
|
||||||
clearSubscribe() {
|
clearSubscribe() {
|
||||||
clearSubscribe(`${displayTopic}\/${this.$route.query.group}`);
|
clearSubscribe(`${displayTopic}\/${this.$route.query.group}`);
|
||||||
|
@ -133,8 +133,7 @@ export default {
|
|||||||
this.clearSubscribe();
|
this.clearSubscribe();
|
||||||
const header = { group: this.group || '', 'X-Token': getToken() };
|
const header = { group: this.group || '', 'X-Token': getToken() };
|
||||||
creatSubscribe(`${displayTopic}\/${this.$route.query.group}`, header);
|
creatSubscribe(`${displayTopic}\/${this.$route.query.group}`, header);
|
||||||
|
// await this.$store.dispatch('training/setHasSubscribed');
|
||||||
await this.$store.dispatch('training/setHasSubscribed');
|
|
||||||
},
|
},
|
||||||
clearSubscribe() {
|
clearSubscribe() {
|
||||||
clearSubscribe(`${displayTopic}\/${this.group}`);
|
clearSubscribe(`${displayTopic}\/${this.group}`);
|
||||||
|
@ -281,8 +281,7 @@ export default {
|
|||||||
this.clearSubscribe();
|
this.clearSubscribe();
|
||||||
const header = { group: this.$route.query.group || '', 'X-Token': getToken() };
|
const header = { group: this.$route.query.group || '', 'X-Token': getToken() };
|
||||||
creatSubscribe(`${displayTopic}\/${this.$route.query.group}`, header);
|
creatSubscribe(`${displayTopic}\/${this.$route.query.group}`, header);
|
||||||
|
// await this.$store.dispatch('training/setHasSubscribed');
|
||||||
await this.$store.dispatch('training/setHasSubscribed');
|
|
||||||
},
|
},
|
||||||
clearSubscribe() {
|
clearSubscribe() {
|
||||||
clearSubscribe(`${displayTopic}\/${this.$route.query.group}`);
|
clearSubscribe(`${displayTopic}\/${this.$route.query.group}`);
|
||||||
|
@ -345,8 +345,7 @@ export default {
|
|||||||
this.clearSubscribe();
|
this.clearSubscribe();
|
||||||
const header = { group: this.group || '', 'X-Token': getToken() };
|
const header = { group: this.group || '', 'X-Token': getToken() };
|
||||||
creatSubscribe(`${displayTopic}\/${this.group}`, header);
|
creatSubscribe(`${displayTopic}\/${this.group}`, header);
|
||||||
|
// await this.$store.dispatch('training/setHasSubscribed');
|
||||||
await this.$store.dispatch('training/setHasSubscribed');
|
|
||||||
},
|
},
|
||||||
clearSubscribe() {
|
clearSubscribe() {
|
||||||
clearSubscribe(`${displayTopic}\/${this.group}`);
|
clearSubscribe(`${displayTopic}\/${this.group}`);
|
||||||
|
@ -381,7 +381,7 @@ export default {
|
|||||||
this.clearSubscribe();
|
this.clearSubscribe();
|
||||||
const header = { group: this.group || '', 'X-Token': getToken() };
|
const header = { group: this.group || '', 'X-Token': getToken() };
|
||||||
creatSubscribe(`${displayTopic}\/${this.group}`, header);
|
creatSubscribe(`${displayTopic}\/${this.group}`, header);
|
||||||
await this.$store.dispatch('training/setHasSubscribed');
|
// await this.$store.dispatch('training/setHasSubscribed');
|
||||||
},
|
},
|
||||||
clearSubscribe() {
|
clearSubscribe() {
|
||||||
clearSubscribe(`${displayTopic}\/${this.group}`);
|
clearSubscribe(`${displayTopic}\/${this.group}`);
|
||||||
|
@ -170,7 +170,7 @@ export default {
|
|||||||
this.clearSubscribe();
|
this.clearSubscribe();
|
||||||
const header = { group: this.$route.query.group || '', 'X-Token': getToken() };
|
const header = { group: this.$route.query.group || '', 'X-Token': getToken() };
|
||||||
creatSubscribe(`${displayTopic}\/${this.$route.query.group}`, header);
|
creatSubscribe(`${displayTopic}\/${this.$route.query.group}`, header);
|
||||||
await this.$store.dispatch('training/setHasSubscribed');
|
// await this.$store.dispatch('training/setHasSubscribed');
|
||||||
this.$store.dispatch('app/animationsClose');
|
this.$store.dispatch('app/animationsClose');
|
||||||
},
|
},
|
||||||
clearSubscribe() {
|
clearSubscribe() {
|
||||||
|
@ -161,19 +161,7 @@ export default {
|
|||||||
this.$store.dispatch('config/resize', { width, height });
|
this.$store.dispatch('config/resize', { width, height });
|
||||||
},
|
},
|
||||||
async back() {
|
async back() {
|
||||||
// if (this.group) {
|
|
||||||
// await clearSimulation(this.group);
|
|
||||||
// this.clearSubscribe();
|
|
||||||
// }
|
|
||||||
// this.$store.dispatch('map/setShowCentralizedStationCode', '');
|
|
||||||
// history.go(-1);
|
|
||||||
// await this.$store.dispatch('map/mapClear');
|
|
||||||
// if (this.group) {
|
|
||||||
// await clearSimulation(this.group);
|
|
||||||
// this.clearSubscribe();
|
|
||||||
// }
|
|
||||||
window.close();
|
window.close();
|
||||||
// Notification.closeAll();
|
|
||||||
},
|
},
|
||||||
async statusMessage(list) {
|
async statusMessage(list) {
|
||||||
await this.$store.dispatch('training/updateMapState', list);
|
await this.$store.dispatch('training/updateMapState', list);
|
||||||
@ -182,13 +170,8 @@ export default {
|
|||||||
async subscribe() {
|
async subscribe() {
|
||||||
this.clearSubscribe();
|
this.clearSubscribe();
|
||||||
const header = { group: this.group || '', 'X-Token': getToken() };
|
const header = { group: this.group || '', 'X-Token': getToken() };
|
||||||
// creatSubscribe(`${jl3dTopic}\/${this.$route.query.group}`, header);
|
|
||||||
creatSubscribe(`${displayTopic}\/${this.$route.query.group}`, header);
|
creatSubscribe(`${displayTopic}\/${this.$route.query.group}`, header);
|
||||||
// setTimeout(()=>{
|
// await this.$store.dispatch('training/setHasSubscribed');
|
||||||
|
|
||||||
// }, 500);
|
|
||||||
// });
|
|
||||||
await this.$store.dispatch('training/setHasSubscribed');
|
|
||||||
},
|
},
|
||||||
clearSubscribe() {
|
clearSubscribe() {
|
||||||
clearSubscribe(`${jl3dTopic}\/${this.group}`);
|
clearSubscribe(`${jl3dTopic}\/${this.group}`);
|
||||||
|
@ -109,7 +109,6 @@ export default {
|
|||||||
this.clearSubscribe();
|
this.clearSubscribe();
|
||||||
const header = { group: this.$route.query.group || '', 'X-Token': getToken() };
|
const header = { group: this.$route.query.group || '', 'X-Token': getToken() };
|
||||||
creatSubscribe(`${displayTopic}\/${this.$route.query.group}`, header);
|
creatSubscribe(`${displayTopic}\/${this.$route.query.group}`, header);
|
||||||
|
|
||||||
await this.$store.dispatch('training/setHasSubscribed');
|
await this.$store.dispatch('training/setHasSubscribed');
|
||||||
},
|
},
|
||||||
clearSubscribe() {
|
clearSubscribe() {
|
||||||
|
Loading…
Reference in New Issue
Block a user