| | |
| | | <template> |
| | | <div class="layout-navbars-breadcrumb-user pr15" :style="{ flex: layoutUserFlexNum }"> |
| | | <div class="logo"> |
| | | <img src="src/assets/menu/companyLogo.jpg"> |
| | | <span> | </span> |
| | | </div> |
| | | <div style="display: flex;padding-right: 5px"> |
| | | <el-dropdown :show-timeout="70" :hide-timeout="50" trigger="click" @command="onComponentSizeChange"> |
| | | <div class="layout-navbars-breadcrumb-user-icon"> |
| | | <i class="iconfont icon-ziti" :title="$t('message.user.title0')"></i> |
| | |
| | | <template #dropdown> |
| | | <el-dropdown-menu> |
| | | <el-dropdown-item command="large" :disabled="disabledSize === 'large'">{{ $t('message.user.dropdownLarge') }}</el-dropdown-item> |
| | | <el-dropdown-item command="default" :disabled="disabledSize === 'default'">{{ |
| | | $t('message.user.dropdownDefault') |
| | | }}</el-dropdown-item> |
| | | <el-dropdown-item command="default" :disabled="disabledSize === 'default'">{{ $t('message.user.dropdownDefault') }}</el-dropdown-item> |
| | | <el-dropdown-item command="small" :disabled="disabledSize === 'small'">{{ $t('message.user.dropdownSmall') }}</el-dropdown-item> |
| | | </el-dropdown-menu> |
| | | </template> |
| | | </el-dropdown> |
| | | <el-dropdown :show-timeout="70" :hide-timeout="50" trigger="click" @command="onLanguageChange"> |
| | | <div class="layout-navbars-breadcrumb-user-icon"> |
| | | <i |
| | | class="iconfont" |
| | | :class="disabledI18n === 'en' ? 'icon-fuhao-yingwen' : 'icon-fuhao-zhongwen'" |
| | | :title="$t('message.user.title1')" |
| | | ></i> |
| | | </div> |
| | | <template #dropdown> |
| | | <el-dropdown-menu> |
| | | <el-dropdown-item command="zh-cn" :disabled="disabledI18n === 'zh-cn'">简体中文</el-dropdown-item> |
| | | <el-dropdown-item command="en" :disabled="disabledI18n === 'en'">English</el-dropdown-item> |
| | | <el-dropdown-item command="zh-tw" :disabled="disabledI18n === 'zh-tw'">繁體中文</el-dropdown-item> |
| | | </el-dropdown-menu> |
| | | </template> |
| | | </el-dropdown> |
| | | <div class="layout-navbars-breadcrumb-user-icon" @click="onSearchClick"> |
| | | <el-icon :title="$t('message.user.title2')"> |
| | | <ele-Search /> |
| | | </el-icon> |
| | | </div> |
| | | <div class="layout-navbars-breadcrumb-user-icon" @click="onLayoutSetingClick"> |
| | | <i class="icon-skin iconfont" :title="$t('message.user.title3')"></i> |
| | | </div> |
| | | <div class="layout-navbars-breadcrumb-user-icon"> |
| | | <el-popover placement="bottom" trigger="click" transition="el-zoom-in-top" :width="300" :persistent="false"> |
| | | <template #reference> |
| | | <el-badge :is-dot="true"> |
| | | <el-icon :title="$t('message.user.title4')"> |
| | | <ele-Bell /> |
| | | </el-icon> |
| | | </el-badge> |
| | | </template> |
| | | <template #default> |
| | | <UserNews /> |
| | | </template> |
| | | </el-popover> |
| | | </div> |
| | | <!-- <el-dropdown :show-timeout="70" :hide-timeout="50" trigger="click" @command="onLanguageChange">--> |
| | | <!-- <div class="layout-navbars-breadcrumb-user-icon">--> |
| | | <!-- <i class="iconfont" :class="disabledI18n === 'en' ? 'icon-fuhao-yingwen' : 'icon-fuhao-zhongwen'" :title="$t('message.user.title1')"></i>--> |
| | | <!-- </div>--> |
| | | <!-- <template #dropdown>--> |
| | | <!-- <el-dropdown-menu>--> |
| | | <!-- <el-dropdown-item command="zh-cn" :disabled="disabledI18n === 'zh-cn'">简体中文</el-dropdown-item>--> |
| | | <!-- <el-dropdown-item command="en" :disabled="disabledI18n === 'en'">English</el-dropdown-item>--> |
| | | <!-- <el-dropdown-item command="zh-tw" :disabled="disabledI18n === 'zh-tw'">繁體中文</el-dropdown-item>--> |
| | | <!-- </el-dropdown-menu>--> |
| | | <!-- </template>--> |
| | | <!-- </el-dropdown>--> |
| | | <!-- <div class="layout-navbars-breadcrumb-user-icon" @click="onSearchClick">--> |
| | | <!-- <el-icon :title="$t('message.user.title2')">--> |
| | | <!-- <ele-Search />--> |
| | | <!-- </el-icon>--> |
| | | <!-- </div>--> |
| | | <!-- <div class="layout-navbars-breadcrumb-user-icon" @click="onLayoutSetingClick">--> |
| | | <!-- <i class="icon-skin iconfont" :title="$t('message.user.title3')"></i>--> |
| | | <!-- </div>--> |
| | | <!-- <div class="layout-navbars-breadcrumb-user-icon">--> |
| | | <!-- <el-popover placement="bottom" trigger="click" transition="el-zoom-in-top" :width="300" :persistent="false">--> |
| | | <!-- <template #reference>--> |
| | | <!-- <el-badge :is-dot="true">--> |
| | | <!-- <el-icon :title="$t('message.user.title4')">--> |
| | | <!-- <ele-Bell />--> |
| | | <!-- </el-icon>--> |
| | | <!-- </el-badge>--> |
| | | <!-- </template>--> |
| | | <!-- <template #default>--> |
| | | <!-- <UserNews />--> |
| | | <!-- </template>--> |
| | | <!-- </el-popover>--> |
| | | <!-- </div>--> |
| | | <div class="layout-navbars-breadcrumb-user-icon mr10" @click="onScreenfullClick"> |
| | | <i |
| | | class="iconfont" |
| | | :title="isScreenfull ? $t('message.user.title6') : $t('message.user.title5')" |
| | | :class="!isScreenfull ? 'icon-fullscreen' : 'icon-tuichuquanping'" |
| | | ></i> |
| | | <i class="iconfont" :title="isScreenfull ? $t('message.user.title6') : $t('message.user.title5')" :class="!isScreenfull ? 'icon-fullscreen' : 'icon-tuichuquanping'"></i> |
| | | </div> |
| | | <el-dropdown :show-timeout="70" :hide-timeout="50" @command="onHandleCommandClick"> |
| | | <span class="layout-navbars-breadcrumb-user-link"> |
| | |
| | | <el-dropdown-menu> |
| | | <el-dropdown-item command="/homeMenu">{{ $t('message.user.dropdown1') }}</el-dropdown-item> |
| | | <!-- <el-dropdown-item command="wareHouse">{{ $t('message.user.dropdown6') }}</el-dropdown-item>--> |
| | | <el-dropdown-item command="/personal">{{ $t('message.user.dropdown2') }}</el-dropdown-item> |
| | | <!-- <el-dropdown-item command="/personal">{{ $t('message.user.dropdown2') }}</el-dropdown-item>--> |
| | | <!-- <el-dropdown-item command="/404">{{ $t('message.user.dropdown3') }}</el-dropdown-item>--> |
| | | <!-- <el-dropdown-item command="/401">{{ $t('message.user.dropdown4') }}</el-dropdown-item>--> |
| | | <el-dropdown-item divided command="logOut">{{ $t('message.user.dropdown5') }}</el-dropdown-item> |
| | |
| | | </template> |
| | | </el-dropdown> |
| | | <Search ref="searchRef" /> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | .layout-navbars-breadcrumb-user { |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: flex-end; |
| | | justify-content: space-between; |
| | | |
| | | .logo{ |
| | | height: 50px; |
| | | padding: 5px 10px; |
| | | display: flex; |
| | | align-items: center; |
| | | overflow: hidden; |
| | | box-sizing: border-box; |
| | | img{ |
| | | height: 100%; |
| | | } |
| | | } |
| | | &-link { |
| | | height: 100%; |
| | | display: flex; |