新窗口打开客户端跳转错误处理
This commit is contained in:
parent
7aa44293f2
commit
4b3114c9b5
@ -37,7 +37,6 @@
|
||||
|
||||
<test-runplan v-if="picture=='testRunplan'" ref="testRunplan" :plan-id="loadPlanId" @pictureChange="pictureChangeAndPlan" />
|
||||
<driver-ats-work v-if="picture=='driverAtsWork'" ref="driverAtsWork" />
|
||||
<!-- driverAtsWork -->
|
||||
|
||||
<terminal-menu
|
||||
v-if="menuShow"
|
||||
|
@ -55,15 +55,14 @@ 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) {
|
||||
if ((!this.$store.state.trainingNew.trainingDetail || !this.$store.state.trainingNew.trainingDetail.client) && !this.$route.query.client) {
|
||||
this.initPictureShow();
|
||||
} else if (!this.$store.state.trainingNew.trainingDetail || !this.$store.state.trainingNew.trainingDetail.client) {
|
||||
this.changeQueryClient();
|
||||
}
|
||||
} else if (!this.terminalList.length) {
|
||||
this.initTerminalList();
|
||||
if (this.$route.query.client) {
|
||||
const terminal = this.findTerminalFromMapById(this.$route.query.client);
|
||||
this.changePictureShow(terminal);
|
||||
}
|
||||
this.changeQueryClient();
|
||||
}
|
||||
},
|
||||
'$store.state.trainingNew.trainingDetail': function(val) {
|
||||
@ -118,6 +117,12 @@ export default {
|
||||
}
|
||||
return false;
|
||||
},
|
||||
changeQueryClient() {
|
||||
if (this.$route.query.client) {
|
||||
const terminal = this.findTerminalFromMapById(this.$route.query.client);
|
||||
this.changePictureShow(terminal);
|
||||
}
|
||||
},
|
||||
// 初始化客户端数据
|
||||
initTerminalList() {
|
||||
this.terminalList = [];
|
||||
|
Loading…
Reference in New Issue
Block a user