实训客户端切换调整
This commit is contained in:
parent
d5e515fbfa
commit
2d1558b011
@ -57,23 +57,20 @@ export default {
|
||||
const clientIdList = this.$store.state.training.domConfig ? this.$store.state.training.domConfig.clientList : [];
|
||||
if (!clientIdList || !clientIdList.length) {
|
||||
this.initTerminalList();
|
||||
if (!this.$store.state.trainingNew.trainingDetail || !this.$store.state.trainingNew.trainingDetail.client) {
|
||||
if (this.$route.query.client && !this.nowTerminal) {
|
||||
this.changeQueryClient();
|
||||
} else {
|
||||
this.initPictureShow();
|
||||
if (this.$store.state.trainingNew.trainingDetail && this.$store.state.trainingNew.trainingDetail.client) {
|
||||
const client = this.findTerminalFromMap(this.$store.state.trainingNew.trainingDetail.client);
|
||||
if (client) {
|
||||
this.changePictureShow(client);
|
||||
}
|
||||
} else if (this.$route.query.client && !this.nowTerminal) {
|
||||
this.changeQueryClient();
|
||||
} else {
|
||||
this.initPictureShow();
|
||||
}
|
||||
} else if (!this.terminalList.length) {
|
||||
this.initTerminalList();
|
||||
this.changeQueryClient();
|
||||
}
|
||||
},
|
||||
'$store.state.trainingNew.trainingDetail': function(val) {
|
||||
if (val.client) {
|
||||
const client = this.findTerminalFromMap(val.client);
|
||||
this.changePictureShow(client);
|
||||
}
|
||||
}
|
||||
},
|
||||
methods:{
|
||||
|
Loading…
Reference in New Issue
Block a user