案例展示调整

This commit is contained in:
joylink_cuiweidong 2019-11-28 12:42:33 +08:00
parent f410a7be67
commit e9f0364b7e

View File

@ -1,16 +1,14 @@
<template>
<div style="display:inline-block">
<div class="avatar-container" style="display:inline-block;margin-right:10px">
<el-menu-item v-for="item in entryList" v-show="!item.hidden" :key="item.name" class="avatar-wrapper" :index="$route.fullPath" @click="item.handle">
<el-menu-item v-for="item in entryList" v-show="!item.hidden" :key="item.name" class="avatar-wrapper" :index="$route.fullPath" :style="item.style" @click="item.handle">
<el-tooltip v-if="item.tip" effect="dark" :content="$t('login.clickSwitchLanguage')" placement="bottom-end">
<span style="color: white;">{{ item.name }}</span>
</el-tooltip>
<span v-else style="color: white;">{{ $t(item.name) }}</span>
</el-menu-item>
<el-dropdown v-if="isShown" class="avatar-container" trigger="hover" :show-timeout="100" style="height:58px">
<el-dropdown v-else-if="isShown && item.isHelp" class="avatar-container" trigger="hover" :show-timeout="100" style="height:58px">
<div class="avatar-wrapper">
<span style="color: white;">
{{ $t('global.caseShow') }}
{{ $t(item.name) }}
</span>
<i class="el-icon-caret-bottom" style="color: #909399;" />
</div>
@ -20,6 +18,8 @@
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
<span v-else style="color: white;">{{ $t(item.name) }}</span>
</el-menu-item>
<deomon-list ref="deomonList" />
<qcode ref="qcode" />
</div>
@ -52,6 +52,12 @@ export default {
handle: this.goToTraining,
hidden: !getSessionStorage('project').startsWith('design')
},
{
name: 'global.caseShow',
handle: this.goToCaseShow,
isHelp:true,
style:'padding-right:0px;'
},
{
name: 'global.scan',
handle: this.qcodeEntry,
@ -62,18 +68,14 @@ export default {
handle: this.quickEntry,
hidden: getSessionStorage('project').startsWith('design')
},
{
name: 'global.help',
handle: this.goToHelp
},
// {
// name: 'global.caseShow',
// handle: this.goToCaseShow
// },
{
name: LangStorage.getLang('zh') === 'zh' ? 'English' : '中文',
handle: this.switchLanguage,
tip: true
},
{
name: 'global.help',
handle: this.goToHelp
}
],