案例展示调整

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

View File

@ -1,25 +1,25 @@
<template> <template>
<div style="display:inline-block"> <div style="display:inline-block">
<div class="avatar-container" style="display:inline-block;margin-right:10px"> <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"> <el-tooltip v-if="item.tip" effect="dark" :content="$t('login.clickSwitchLanguage')" placement="bottom-end">
<span style="color: white;">{{ item.name }}</span> <span style="color: white;">{{ item.name }}</span>
</el-tooltip> </el-tooltip>
<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(item.name) }}
</span>
<i class="el-icon-caret-bottom" style="color: #909399;" />
</div>
<el-dropdown-menu slot="dropdown" class="user-dropdown">
<el-dropdown-item>
<span style="display:block;" @click="goToCaseShow">西安铁路职业技术学院</span>
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
<span v-else style="color: white;">{{ $t(item.name) }}</span> <span v-else style="color: white;">{{ $t(item.name) }}</span>
</el-menu-item> </el-menu-item>
<el-dropdown v-if="isShown" class="avatar-container" trigger="hover" :show-timeout="100" style="height:58px">
<div class="avatar-wrapper">
<span style="color: white;">
{{ $t('global.caseShow') }}
</span>
<i class="el-icon-caret-bottom" style="color: #909399;" />
</div>
<el-dropdown-menu slot="dropdown" class="user-dropdown">
<el-dropdown-item>
<span style="display:block;" @click="goToCaseShow">西安铁路职业技术学院</span>
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
<deomon-list ref="deomonList" /> <deomon-list ref="deomonList" />
<qcode ref="qcode" /> <qcode ref="qcode" />
</div> </div>
@ -52,6 +52,12 @@ export default {
handle: this.goToTraining, handle: this.goToTraining,
hidden: !getSessionStorage('project').startsWith('design') hidden: !getSessionStorage('project').startsWith('design')
}, },
{
name: 'global.caseShow',
handle: this.goToCaseShow,
isHelp:true,
style:'padding-right:0px;'
},
{ {
name: 'global.scan', name: 'global.scan',
handle: this.qcodeEntry, handle: this.qcodeEntry,
@ -62,18 +68,14 @@ export default {
handle: this.quickEntry, handle: this.quickEntry,
hidden: getSessionStorage('project').startsWith('design') hidden: getSessionStorage('project').startsWith('design')
}, },
{
name: 'global.help',
handle: this.goToHelp
},
// {
// name: 'global.caseShow',
// handle: this.goToCaseShow
// },
{ {
name: LangStorage.getLang('zh') === 'zh' ? 'English' : '中文', name: LangStorage.getLang('zh') === 'zh' ? 'English' : '中文',
handle: this.switchLanguage, handle: this.switchLanguage,
tip: true tip: true
},
{
name: 'global.help',
handle: this.goToHelp
} }
], ],