设备跳转运行图等(未完)

This commit is contained in:
fan 2020-08-13 11:23:07 +08:00
parent a97c1fcb74
commit cc0803630c
4 changed files with 48 additions and 3 deletions

View File

@ -353,6 +353,11 @@ export const publicAsyncRoute = [
hidden: true
}
]
},
{
path: '/device/runPlan',
component: PlanMonitorDetail,
hidden: true
}
];
// 城市轨道项目

View File

@ -351,11 +351,9 @@ export default {
this.$router.push({ path: `/design/home` });
},
changeCurrentSystem() {
this.$router.push({
query:merge(this.$route.query, {'currentSystem':this.currentSystem})
});
}
}
};

View File

@ -460,7 +460,7 @@ export default {
float: left;
transition: all 0.5s;
overflow: hidden;
margin-left: -500px;
margin-left: -700px;
// transform: translateX(0px);
}
}

View File

@ -16,6 +16,9 @@
<el-button v-if="isAdmin && !noQrcodeList.includes(project)" type="primary" size="small" @click="generateQrCode">生成二维码</el-button>
<el-button v-if="isAdmin" size="small" @click="memberManage">成员管理</el-button>
<el-button v-if="isAdmin && isProject" size="small" @click="handleEquipment">设备管理</el-button>
<el-button v-if="isDeviceLogin" size="small" @click="handleTeach">教学系统</el-button>
<el-button v-if="isDeviceLogin" size="small" @click="handleExam">考试系统</el-button>
<el-button v-if="isDeviceLogin" size="small" @click="handleRunPlan">运行图编制</el-button>
</el-button-group>
</div>
<div class="display-draft" :class="{'display-type-hb': lineCode == '07' && $store.state.training.prdType=='01', 'haerbin_btn_box': lineCode == '07'}" :style="{bottom: offsetBottom + 'px'}">
@ -150,6 +153,10 @@ export default {
num++;
}
return num > 0;
},
isDeviceLogin() {
const typeList = ['IM', 'LW', 'CW'];
return typeList.includes(this.$route.query.type);
}
},
watch: {
@ -426,6 +433,41 @@ export default {
} else {
this.btnWidth = 0;
}
},
handleTeach() {
const routeData = this.$router.resolve({
path:'/jlmap3d/passengerflow',
query:{
mapid:this.mapId,
group:this.group,
project: this.project,
noPreLogout: true
}
});
window.open(routeData.href, '_blank', 'noopener noreferrer');
},
handleExam() {
const routeData = this.$router.resolve({
path:'/jlmap3d/passengerflow',
query:{
mapid:this.mapId,
group:this.group,
project: this.project,
noPreLogout: true
}
});
window.open(routeData.href, '_blank', 'noopener noreferrer');
},
handleRunPlan() {
const routeData = this.$router.resolve({
path:'/device/runPlan',
query:{
lineCode:this.$route.query.lineCode,
madId: this.mapId,
noPreLogout: true
}
});
window.open(routeData.href, '_blank', 'noopener noreferrer');
}
}
};