哈尔滨一号线 菜单隐藏 代码调整
This commit is contained in:
parent
c309859c2b
commit
e7ba329194
@ -6,19 +6,18 @@
|
|||||||
<span v-if="countTime" class="display-score">{{ $t('display.demon.trialTime') }} {{ countTime }}</span>
|
<span v-if="countTime" class="display-score">{{ $t('display.demon.trialTime') }} {{ countTime }}</span>
|
||||||
</el-row>
|
</el-row>
|
||||||
</div>
|
</div>
|
||||||
<div class="display_top_draft" :style="{top: offset+'px'}">
|
<div v-if="!dataError" class="display_top_draft" :style="{top: offset+'px'}">
|
||||||
<div class="btn_hover" @click="menuClick">菜单</div>
|
<div class="btn_hover" @click="menuClick">菜单</div>
|
||||||
<el-button-group ref="button_group_box" class="button_group_box" :style="`transform: translateX(-${btnWidth}px)`">
|
<el-button-group ref="button_group_box" class="button_group_box" :style="`transform: translateX(-${btnWidth}px)`">
|
||||||
<template v-if="!dataError"> <!-- 地图错误判断 -->
|
<!-- 地图错误判断 -->
|
||||||
<!-- 设备视图 -->
|
<!-- 设备视图 -->
|
||||||
<el-button v-if="isShow3dmodel && !isShowScheduling" size="small" @click="jumpjlmap3dmodel">{{ jl3dmodel }}</el-button>
|
<el-button v-if="isShow3dmodel && !isShowScheduling" size="small" @click="jumpjlmap3dmodel">{{ jl3dmodel }}</el-button>
|
||||||
<!-- 三维视图 -->
|
<!-- 三维视图 -->
|
||||||
<el-button v-if="!isShowScheduling" size="small" @click="jumpjlmap3d">{{ jl3dname }}</el-button>
|
<el-button v-if="!isShowScheduling" size="small" @click="jumpjlmap3d">{{ jl3dname }}</el-button>
|
||||||
<!-- cctv视图 -->
|
<!-- cctv视图 -->
|
||||||
<el-button v-if="!isShowScheduling" size="small" @click="jumpjl3dpassflow">{{ jl3dpassflow }}</el-button>
|
<el-button v-if="!isShowScheduling" size="small" @click="jumpjl3dpassflow">{{ jl3dpassflow }}</el-button>
|
||||||
<!-- 排班计划 -->
|
<!-- 排班计划 -->
|
||||||
<el-button v-if="isShowScheduling" type="primary" size="small" @click="jumpScheduling">{{ $t('display.demon.dispatchingPlan') }}</el-button>
|
<el-button v-if="isShowScheduling" type="primary" size="small" @click="jumpScheduling">{{ $t('display.demon.dispatchingPlan') }}</el-button>
|
||||||
</template>
|
|
||||||
</el-button-group>
|
</el-button-group>
|
||||||
</div>
|
</div>
|
||||||
<div class="display-draft" :class="{'haerbin_btn_box': $route.query.lineCode == '07'}" :style="{bottom: offsetBottom + 'px'}">
|
<div class="display-draft" :class="{'haerbin_btn_box': $route.query.lineCode == '07'}" :style="{bottom: offsetBottom + 'px'}">
|
||||||
@ -412,6 +411,7 @@ export default {
|
|||||||
height: 32px;
|
height: 32px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
padding-left: 44px;
|
padding-left: 44px;
|
||||||
|
z-index: 9;
|
||||||
.btn_hover{
|
.btn_hover{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
@ -1,20 +1,20 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<chat-box :group="group" :user-role="userRole" />
|
<chat-box :group="group" :user-role="userRole" />
|
||||||
<div class="display_top_draft" :style="{top: offset+'px'}">
|
<!-- 地图没有报错-->
|
||||||
|
<!-- 地图错误判断 -->
|
||||||
|
<div v-if="!dataError&&hasOneButton" class="display_top_draft" :style="{top: offset+'px'}">
|
||||||
<div class="btn_hover" @click="menuClick">菜单</div>
|
<div class="btn_hover" @click="menuClick">菜单</div>
|
||||||
<el-button-group ref="button_group_box" class="button_group_box" :style="`transform: translateX(-${btnWidth}px)`">
|
<el-button-group ref="button_group_box" class="button_group_box" :style="`transform: translateX(-${btnWidth}px)`">
|
||||||
<template v-if="!dataError"> <!-- 地图错误判断 -->
|
<!-- 设备视图 -->
|
||||||
<!-- 设备视图 -->
|
<el-button v-if="isShow3dmodel && isShowScheduling" size="small" @click="jumpjlmap3dmodel">{{ $t('display.demon.deviceView') }}</el-button>
|
||||||
<el-button v-if="isShow3dmodel && isShowScheduling" size="small" @click="jumpjlmap3dmodel">{{ $t('display.demon.deviceView') }}</el-button>
|
<!-- 三维视图 / 司机视角 -->
|
||||||
<!-- 三维视图 / 司机视角 -->
|
<el-button v-if="isShowScheduling || isDriver" size="small" @click="jumpjlmap3d">{{ jl3dname }}</el-button>
|
||||||
<el-button v-if="isShowScheduling || isDriver" size="small" @click="jumpjlmap3d">{{ jl3dname }}</el-button>
|
<!-- cctv视图 -->
|
||||||
<!-- cctv视图 -->
|
<el-button v-if="isShowScheduling || isStationSupervisor" size="small" @click="jumpjl3dpassflow">{{ $t('display.demon.passengerflow') }}</el-button>
|
||||||
<el-button v-if="isShowScheduling || isStationSupervisor" size="small" @click="jumpjl3dpassflow">{{ $t('display.demon.passengerflow') }}</el-button>
|
<el-button v-if="isAdmin && !noQrcodeList.includes(project)" type="primary" size="small" @click="generateQrCode">生成二维码</el-button>
|
||||||
<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" size="small" @click="memberManage">成员管理</el-button>
|
<el-button v-if="isAdmin && isProject" size="small" @click="handleEquipment">设备管理</el-button>
|
||||||
<el-button v-if="isAdmin && isProject" size="small" @click="handleEquipment">设备管理</el-button>
|
|
||||||
</template>
|
|
||||||
</el-button-group>
|
</el-button-group>
|
||||||
</div>
|
</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'}">
|
<div class="display-draft" :class="{'display-type-hb': lineCode == '07' && $store.state.training.prdType=='01', 'haerbin_btn_box': lineCode == '07'}" :style="{bottom: offsetBottom + 'px'}">
|
||||||
@ -138,6 +138,17 @@ export default {
|
|||||||
},
|
},
|
||||||
isProject() {
|
isProject() {
|
||||||
return getSessionStorage('project') != 'login' && getSessionStorage('project') != 'design';
|
return getSessionStorage('project') != 'login' && getSessionStorage('project') != 'design';
|
||||||
|
},
|
||||||
|
hasOneButton() {
|
||||||
|
let num = 0;
|
||||||
|
if ((this.isShow3dmodel && this.isShowScheduling) ||
|
||||||
|
(this.isShowScheduling || this.isDriver) ||
|
||||||
|
(this.isShowScheduling || this.isStationSupervisor) ||
|
||||||
|
(this.isAdmin && !this.noQrcodeList.includes(this.project)) ||
|
||||||
|
(this.isAdmin) || (this.isAdmin && this.isProject)) {
|
||||||
|
num++;
|
||||||
|
}
|
||||||
|
return num > 0;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
@ -516,6 +527,7 @@ export default {
|
|||||||
height: 32px;
|
height: 32px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
padding-left: 44px;
|
padding-left: 44px;
|
||||||
|
z-index: 9;
|
||||||
.btn_hover{
|
.btn_hover{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user