新窗口ibp展示添加退出按钮

This commit is contained in:
fan 2020-12-14 15:51:14 +08:00
parent 62cba757e6
commit 383287fe56
2 changed files with 5 additions and 1 deletions

View File

@ -59,7 +59,7 @@ class StationStand extends Group {
const model = this.model;
const style = this.style;
// // 站台所有的绘图元素 曾取红花和雪无,不知腼洗儿时面。蔷薇新瓣浸醍醐,颉眼容光忆见初。
// // 站台所有的绘图元素
const elementTypeList = {
'solidStand':ESolidStand, // 矩形实心站台 (普通站台样式)
'hollowStand':EHollowStand, // 矩形空心站台 (西安二号线站台样式)

View File

@ -2,6 +2,7 @@
<div>
<div :id="ibpId" v-loading="loading" :style="{ width: canvasWidth+'px', height: canvasHeight +'px',background:'#000' }" class="ibp-canvas" />
<el-button v-if="showBackButton" class="ibp-button" type="primary" @click="back">{{ $t('global.back') }}</el-button>
<el-button v-if="$route.query.noPreLogout" class="ibp-button" type="primary" @click="quit">退出</el-button>
<audio id="buzzer" controls loop="loop">
<source :src="buzzerAudio" type="audio/mpeg">
</audio>
@ -264,6 +265,9 @@ export default {
}
});
},
quit() {
window.close();
},
ibpDestroy() {
if (this.$ibp) {
this.$ibp.dispose();