2019-12-02 16:16:26 +08:00
|
|
|
|
<template>
|
|
|
|
|
|
<div class="header">
|
|
|
|
|
|
<div class="submenu">
|
|
|
|
|
|
<el-menu
|
2019-12-25 20:33:58 +08:00
|
|
|
|
class="nz-menu"
|
2019-12-02 16:16:26 +08:00
|
|
|
|
mode="horizontal"
|
2019-12-25 17:15:09 +08:00
|
|
|
|
background-color="#232f3e"
|
|
|
|
|
|
text-color="#ffffff"
|
2019-12-02 16:16:26 +08:00
|
|
|
|
unique-opened
|
|
|
|
|
|
>
|
2019-12-25 17:15:09 +08:00
|
|
|
|
<el-submenu index="0" popper-class="nz-submenu">
|
2019-12-13 17:08:35 +08:00
|
|
|
|
<template slot="title">
|
|
|
|
|
|
<div class="menu-create">
|
|
|
|
|
|
<i class="el-icon-plus"></i>
|
|
|
|
|
|
<div>{{$t('overall.create')}}</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
<template v-for="(item, index) in createMenu">
|
2019-12-20 17:18:30 +08:00
|
|
|
|
<el-menu-item :index="'0-' + index">
|
2019-12-13 17:08:35 +08:00
|
|
|
|
<div @click="createBox(item)">
|
|
|
|
|
|
<span>{{item.label}}</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</el-menu-item>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-submenu>
|
2019-12-26 13:00:22 +08:00
|
|
|
|
<el-submenu index="1" popper-class="nz-submenu">
|
|
|
|
|
|
<template slot="title">
|
|
|
|
|
|
<div @click="jumpTo('dashboard')">{{$t('overall.dashboard')}}</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
<el-menu-item index="1-0">
|
|
|
|
|
|
<div @click="jumpTo('panel')">{{$t('dashboard.panel.title')}}</div>
|
|
|
|
|
|
</el-menu-item>
|
|
|
|
|
|
<el-menu-item index="1-1">
|
|
|
|
|
|
<div @click="jumpTo('metricPreview')">{{$t('dashboard.metricPreview.title')}}</div>
|
|
|
|
|
|
</el-menu-item>
|
|
|
|
|
|
</el-submenu>
|
2019-12-25 17:15:09 +08:00
|
|
|
|
<el-submenu index="2" popper-class="nz-submenu">
|
2019-12-05 16:48:23 +08:00
|
|
|
|
<template slot="title">
|
2019-12-19 17:22:18 +08:00
|
|
|
|
<div @click="jumpToProject(projectData[0])">{{$t('overall.project')}}</div>
|
2019-12-12 17:15:33 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
<template v-for="(item, index) in projectData">
|
2019-12-20 17:18:30 +08:00
|
|
|
|
<el-menu-item :index="'2-' + index">
|
2019-12-19 17:22:18 +08:00
|
|
|
|
<div @click="jumpToProject(item)">
|
2019-12-12 17:15:33 +08:00
|
|
|
|
<span>{{item.name}}</span>
|
2019-12-25 17:15:09 +08:00
|
|
|
|
<div @click.stop="toEditProject(item)" class="menu-edit"><i style="color: inherit" class="el-icon-edit-outline"></i></div>
|
2019-12-12 17:15:33 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</el-menu-item>
|
2019-12-05 16:48:23 +08:00
|
|
|
|
</template>
|
2019-12-02 16:16:26 +08:00
|
|
|
|
</el-submenu>
|
2019-12-25 17:15:09 +08:00
|
|
|
|
<el-submenu index="3" popper-class="nz-submenu">
|
2019-12-05 16:48:23 +08:00
|
|
|
|
<template slot="title">
|
2019-12-12 17:15:33 +08:00
|
|
|
|
<div @click="jumpToAsset('asset')">{{$t('overall.asset')}}</div>
|
2019-12-05 16:48:23 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
<template v-for="(item, index) in assetData">
|
2019-12-20 17:18:30 +08:00
|
|
|
|
<el-menu-item :index="'3-' + index">
|
2019-12-12 17:15:33 +08:00
|
|
|
|
<div @click="jumpToAsset('asset',item.id)">{{item.name}}</div>
|
2019-12-05 16:48:23 +08:00
|
|
|
|
</el-menu-item>
|
|
|
|
|
|
</template>
|
2019-12-02 16:16:26 +08:00
|
|
|
|
</el-submenu>
|
2019-12-25 17:15:09 +08:00
|
|
|
|
<el-submenu index="4-0" popper-class="nz-submenu">
|
2019-12-06 17:36:33 +08:00
|
|
|
|
<template slot="title">
|
2019-12-10 17:00:28 +08:00
|
|
|
|
<div @click="jumpTo('alertList')">{{$t('overall.alert')}}</div>
|
2019-12-06 17:36:33 +08:00
|
|
|
|
</template>
|
2019-12-20 17:18:30 +08:00
|
|
|
|
<el-menu-item index="4-1">
|
2019-12-10 17:00:28 +08:00
|
|
|
|
<div @click="jumpTo('alertList')">{{$t('alert.alertList')}}</div>
|
2019-12-06 17:36:33 +08:00
|
|
|
|
</el-menu-item>
|
2019-12-20 17:18:30 +08:00
|
|
|
|
<el-menu-item index="4-2">
|
2019-12-10 17:00:28 +08:00
|
|
|
|
<div @click="jumpTo('alertConfig')">{{$t('alert.alertConfig')}}</div>
|
2019-12-06 17:36:33 +08:00
|
|
|
|
</el-menu-item>
|
|
|
|
|
|
</el-submenu>
|
2019-12-25 17:15:09 +08:00
|
|
|
|
<el-submenu index="5" popper-class="nz-submenu">
|
2019-12-05 18:07:58 +08:00
|
|
|
|
<template slot="title">
|
|
|
|
|
|
<div @click="jumpTo('account')">{{$t('overall.config')}}</div>
|
|
|
|
|
|
</template>
|
2019-12-13 17:08:35 +08:00
|
|
|
|
<el-menu-item index="5-0">
|
2019-12-05 18:07:58 +08:00
|
|
|
|
<div @click="jumpTo('account')">{{$t('config.account.account')}}</div>
|
|
|
|
|
|
</el-menu-item>
|
2019-12-13 17:08:35 +08:00
|
|
|
|
<el-menu-item index="5-1">
|
2019-12-12 17:15:33 +08:00
|
|
|
|
<div @click="jumpTo('promServer')">{{$t('config.promServer.promServerList')}}</div>
|
2019-12-05 18:07:58 +08:00
|
|
|
|
</el-menu-item>
|
2019-12-04 13:45:37 +08:00
|
|
|
|
</el-submenu>
|
2019-12-02 16:16:26 +08:00
|
|
|
|
</el-menu>
|
2019-12-05 16:48:23 +08:00
|
|
|
|
|
2019-12-02 16:16:26 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="header-right">
|
2019-12-25 20:33:58 +08:00
|
|
|
|
<el-menu
|
|
|
|
|
|
class=""
|
|
|
|
|
|
mode="horizontal"
|
|
|
|
|
|
background-color="#232f3e"
|
|
|
|
|
|
text-color="#ffffff"
|
|
|
|
|
|
unique-opened
|
|
|
|
|
|
>
|
|
|
|
|
|
<el-submenu index="6" popper-class="nz-submenu">
|
|
|
|
|
|
<template slot="title">
|
|
|
|
|
|
<div>[username]</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
<el-menu-item index="6-0">
|
|
|
|
|
|
<div :style="language=='en'?'color:#f90':''" @click="changeLocal('en')">English</div>
|
|
|
|
|
|
</el-menu-item>
|
|
|
|
|
|
<el-menu-item index="6-1">
|
|
|
|
|
|
<div :style="language=='cn'?'color:#f90':''" @click="changeLocal('cn')">中文</div>
|
|
|
|
|
|
</el-menu-item>
|
|
|
|
|
|
<el-menu-item index="6-2">
|
|
|
|
|
|
<div @click="jumpTo('')">{{$t('overall.signOut')}}</div>
|
|
|
|
|
|
</el-menu-item>
|
|
|
|
|
|
</el-submenu>
|
|
|
|
|
|
</el-menu>
|
|
|
|
|
|
<!--<div class="header-user-con">
|
2019-12-02 16:16:26 +08:00
|
|
|
|
<div class="flagselect">
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<el-popover
|
|
|
|
|
|
placement="bottom"
|
|
|
|
|
|
title=""
|
|
|
|
|
|
width="200"
|
|
|
|
|
|
trigger="hover"
|
|
|
|
|
|
>
|
|
|
|
|
|
<div class="userout">
|
|
|
|
|
|
<div :style="language!='en'?'color:#a6a6a6':''" @click="changeLocal('en')">
|
|
|
|
|
|
<p>English</p>
|
|
|
|
|
|
</div>
|
2019-12-05 16:48:23 +08:00
|
|
|
|
<div :style="language=='cn'?'':'color:#a6a6a6'" @click="changeLocal('cn')">
|
2019-12-02 16:16:26 +08:00
|
|
|
|
<p>简体</p>
|
|
|
|
|
|
</div>
|
2019-12-05 16:48:23 +08:00
|
|
|
|
<div style="cursor:no-drop;color:#a6a6a6">
|
2019-12-02 16:16:26 +08:00
|
|
|
|
<p>русский</p>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2019-12-25 17:15:09 +08:00
|
|
|
|
<div class="sign-out" @click="jumpTo('')">
|
2019-12-02 16:16:26 +08:00
|
|
|
|
退出登录
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div slot="reference" class="user-avator">
|
|
|
|
|
|
<span>用户名</span>
|
|
|
|
|
|
<i class="el-submenu__icon-arrow el-icon-arrow-down header-name-jiantou"></i>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</el-popover>
|
2019-12-25 20:33:58 +08:00
|
|
|
|
</div>-->
|
2019-12-02 16:16:26 +08:00
|
|
|
|
</div>
|
2019-12-18 17:00:44 +08:00
|
|
|
|
|
|
|
|
|
|
<project-box :project="editProject" @reload="projectReload" ref="projectBox"></project-box>
|
|
|
|
|
|
<module-box :currentProject="currentProject" :module="editModule" @reload="" ref="moduleBox"></module-box>
|
2019-12-24 17:31:51 +08:00
|
|
|
|
<add-endpoint-box :currentProject="currentProject" :currentModule="currentModule" @reload="" ref="addEndpointBox"></add-endpoint-box>
|
|
|
|
|
|
<alert-config-box :parentAlertRule="alertRule" @reload="" ref="alertConfigBox"></alert-config-box>
|
2019-12-02 16:16:26 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
export default {
|
|
|
|
|
|
name: "Header",
|
2019-12-05 16:48:23 +08:00
|
|
|
|
data() {
|
|
|
|
|
|
return {
|
|
|
|
|
|
language: localStorage.getItem("language"),
|
2019-12-12 17:15:33 +08:00
|
|
|
|
assetData: [],
|
2019-12-18 17:00:44 +08:00
|
|
|
|
projectData: [], //顶部菜单project列表中的数据
|
|
|
|
|
|
editProject: {id: '', name: '', remark: ''}, //新增/编辑的project
|
2019-12-19 17:22:18 +08:00
|
|
|
|
currentProject: {id: '', name: '', remark: ''}, //module/endpoint弹框用来回显project
|
2019-12-18 17:00:44 +08:00
|
|
|
|
editModule: {id: '', name: '', project: {}, port: '', path: '', param: '', paramObj: []}, //新增/编辑的module
|
|
|
|
|
|
currentModule: {id: '', name: '', project: {}, port: '', path: '', param: '', paramObj: []}, //endpoint弹框用来回显module,此处固定为空对象
|
|
|
|
|
|
editEndpoint: { //新增/编辑的endpoint
|
|
|
|
|
|
id: '',
|
|
|
|
|
|
host: '',
|
|
|
|
|
|
port: '',
|
|
|
|
|
|
param: '',
|
|
|
|
|
|
path: '',
|
|
|
|
|
|
asset: {id: '', name: '', host: ''},
|
|
|
|
|
|
project: {id: '', name: ''},
|
|
|
|
|
|
module: {id: '', name: '', param: '', paramObj: {}, projectId: ''},
|
|
|
|
|
|
moduleId: '',
|
|
|
|
|
|
assetId: ''
|
|
|
|
|
|
},
|
2019-12-24 17:31:51 +08:00
|
|
|
|
alertRule: {
|
|
|
|
|
|
id: '',
|
|
|
|
|
|
alertName: '',
|
|
|
|
|
|
type: '',
|
|
|
|
|
|
linkObject: {id: '', name: ''},
|
|
|
|
|
|
linkId: '',
|
|
|
|
|
|
expr: '',
|
|
|
|
|
|
last: '',
|
|
|
|
|
|
severity: '',
|
|
|
|
|
|
summary: '',
|
|
|
|
|
|
description: '',
|
|
|
|
|
|
receiver: '',
|
|
|
|
|
|
},
|
2019-12-18 17:00:44 +08:00
|
|
|
|
createMenu: [ //新增按钮内容
|
2019-12-13 17:08:35 +08:00
|
|
|
|
{
|
|
|
|
|
|
label: this.$t('project.project.createProject'),
|
|
|
|
|
|
url: 'project',
|
|
|
|
|
|
type: 1
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
label: this.$t('project.module.createModule'),
|
|
|
|
|
|
url: 'project',
|
|
|
|
|
|
type: 2
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
label: this.$t('project.endpoint.createEndpoint'),
|
|
|
|
|
|
url: 'project',
|
|
|
|
|
|
type: 3
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
label: this.$t('asset.createAsset'),
|
2019-12-13 20:41:32 +08:00
|
|
|
|
url: 'asset',
|
|
|
|
|
|
type: 4
|
2019-12-13 17:08:35 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
label: this.$t('alert.config.createAlertConfig'),
|
2019-12-13 20:41:32 +08:00
|
|
|
|
url: 'alertConfig',
|
|
|
|
|
|
type: 5
|
2019-12-13 17:08:35 +08:00
|
|
|
|
}
|
|
|
|
|
|
]
|
2019-12-02 16:16:26 +08:00
|
|
|
|
}
|
|
|
|
|
|
},
|
2019-12-05 16:48:23 +08:00
|
|
|
|
methods: {
|
2019-12-12 17:15:33 +08:00
|
|
|
|
jumpTo(data) {
|
2019-12-02 16:16:26 +08:00
|
|
|
|
this.$router.push({
|
2019-12-05 16:48:23 +08:00
|
|
|
|
path: "/" + data,
|
2019-12-02 16:16:26 +08:00
|
|
|
|
query: {
|
2019-12-05 16:48:23 +08:00
|
|
|
|
t: +new Date()
|
2019-12-02 16:16:26 +08:00
|
|
|
|
}
|
|
|
|
|
|
});
|
2019-12-13 17:08:35 +08:00
|
|
|
|
},
|
|
|
|
|
|
createBox(item) {
|
2019-12-18 17:00:44 +08:00
|
|
|
|
if (item.type == 1) {
|
|
|
|
|
|
this.$refs.projectBox.show(true);
|
|
|
|
|
|
this.editProject = {id: '', name: '', remark: ''};
|
|
|
|
|
|
} else if (item.type == 2) {
|
|
|
|
|
|
this.$refs.moduleBox.show(true);
|
2019-12-19 17:22:18 +08:00
|
|
|
|
this.editModule = {id: '', name: '', project: this.$store.state.currentProject, port: '', path: '', param: '', paramObj: []};
|
2019-12-18 17:00:44 +08:00
|
|
|
|
} else if (item.type == 3) {
|
2019-12-20 17:18:30 +08:00
|
|
|
|
this.$refs.addEndpointBox.show(true);
|
2019-12-25 17:15:09 +08:00
|
|
|
|
this.$refs.addEndpointBox.clearEndpoints();
|
2019-12-24 17:31:51 +08:00
|
|
|
|
} else if (item.type == 5) {
|
|
|
|
|
|
this.$refs.alertConfigBox.show(true, true);
|
2019-12-18 17:00:44 +08:00
|
|
|
|
}
|
2019-12-02 16:16:26 +08:00
|
|
|
|
},
|
2019-12-12 17:15:33 +08:00
|
|
|
|
jumpToAsset(data, id) {
|
|
|
|
|
|
this.$store.state.assetData.moduleData = data;
|
|
|
|
|
|
this.$store.state.assetData.selectedData = id;
|
|
|
|
|
|
this.jumpTo(data);
|
|
|
|
|
|
},
|
2019-12-19 17:22:18 +08:00
|
|
|
|
jumpToProject(p) {
|
2019-12-24 17:31:51 +08:00
|
|
|
|
this.currentProject = p;
|
2019-12-12 17:15:33 +08:00
|
|
|
|
this.$store.commit('setProject', p);
|
2019-12-19 17:22:18 +08:00
|
|
|
|
this.jumpTo('project');
|
2019-12-12 17:15:33 +08:00
|
|
|
|
},
|
2019-12-02 16:16:26 +08:00
|
|
|
|
changeLocal(lang) {
|
|
|
|
|
|
localStorage.setItem("language", lang);
|
|
|
|
|
|
window.location.reload();
|
|
|
|
|
|
},
|
2019-12-05 16:48:23 +08:00
|
|
|
|
getAssetData() {
|
|
|
|
|
|
this.$get('idc', this.pageObj).then(response => {
|
|
|
|
|
|
if (response.code == 200) {
|
|
|
|
|
|
this.assetData = response.data.list
|
|
|
|
|
|
}
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
2019-12-19 17:22:18 +08:00
|
|
|
|
getProjectList() {
|
2019-12-18 17:00:44 +08:00
|
|
|
|
this.$get('project', {}).then(response => {
|
2019-12-12 17:15:33 +08:00
|
|
|
|
if (response.code == 200) {
|
|
|
|
|
|
this.projectData = response.data.list;
|
2019-12-24 17:31:51 +08:00
|
|
|
|
let flag = false;
|
|
|
|
|
|
//如果currentProject不在新取到的数据里,说明它被删了
|
|
|
|
|
|
for (let i = 0; i < this.projectData.length; i++) {
|
|
|
|
|
|
if (this.projectData[i].id == this.currentProject.id) {
|
|
|
|
|
|
flag = true;
|
|
|
|
|
|
break;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
if (!flag && this.projectData.length > 0) {
|
|
|
|
|
|
this.currentProject = this.projectData[0];
|
|
|
|
|
|
this.$store.commit('setProject', this.currentProject);
|
|
|
|
|
|
}
|
2019-12-12 17:15:33 +08:00
|
|
|
|
}
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
|
|
|
|
|
toEditProject(p) {
|
2019-12-18 17:00:44 +08:00
|
|
|
|
this.$refs.projectBox.show(true);
|
|
|
|
|
|
this.editProject = Object.assign({}, p);
|
|
|
|
|
|
},
|
|
|
|
|
|
projectReload() {
|
2019-12-19 17:22:18 +08:00
|
|
|
|
this.getProjectList();
|
2019-12-12 17:15:33 +08:00
|
|
|
|
}
|
2019-12-05 16:48:23 +08:00
|
|
|
|
},
|
|
|
|
|
|
mounted() {
|
2019-12-12 17:15:33 +08:00
|
|
|
|
this.getAssetData();
|
2019-12-19 17:22:18 +08:00
|
|
|
|
this.getProjectList();
|
2019-12-12 17:15:33 +08:00
|
|
|
|
},
|
|
|
|
|
|
computed: {
|
2019-12-13 17:08:35 +08:00
|
|
|
|
projectListReloadWatch() {
|
2019-12-12 17:15:33 +08:00
|
|
|
|
return this.$store.state.projectListReload;
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
watch: {
|
|
|
|
|
|
projectListReloadWatch(n, o) {
|
|
|
|
|
|
if (n) {
|
2019-12-19 17:22:18 +08:00
|
|
|
|
this.getProjectList();
|
|
|
|
|
|
this.$store.commit('projectListChange', false);
|
2019-12-12 17:15:33 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
2019-12-02 16:16:26 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style>
|
2019-12-06 15:53:50 +08:00
|
|
|
|
.el-menu.el-menu--horizontal{
|
2019-12-25 17:15:09 +08:00
|
|
|
|
border-bottom: 0px;
|
2019-12-06 15:53:50 +08:00
|
|
|
|
}
|
2019-12-05 16:48:23 +08:00
|
|
|
|
.el-submenu__title .el-submenu__icon-arrow {
|
2019-12-25 17:15:09 +08:00
|
|
|
|
display: none;
|
2019-12-02 16:16:26 +08:00
|
|
|
|
}
|
2019-12-05 16:48:23 +08:00
|
|
|
|
.el-menu--horizontal>.el-menu-item.is-active{
|
2019-12-25 17:15:09 +08:00
|
|
|
|
border-bottom: 0px;
|
2019-12-05 16:48:23 +08:00
|
|
|
|
}
|
2019-12-25 17:15:09 +08:00
|
|
|
|
.el-menu--horizontal>.el-submenu.is-active .el-submenu__title,
|
|
|
|
|
|
.el-menu--horizontal>.el-menu-item.is-active,
|
|
|
|
|
|
.el-menu--horizontal .el-menu-item:not(.is-disabled):focus, .el-menu--horizontal .el-menu-item:not(.is-disabled):hover {
|
|
|
|
|
|
border-bottom: 0px;
|
|
|
|
|
|
color: white;
|
|
|
|
|
|
}
|
|
|
|
|
|
.el-menu--horizontal.nz-submenu {
|
|
|
|
|
|
border: 1px solid #bbbbbb;
|
|
|
|
|
|
border-top: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
.nz-submenu .el-menu--popup {
|
|
|
|
|
|
background-color: white !important;
|
|
|
|
|
|
}
|
|
|
|
|
|
.nz-submenu .el-menu--popup .el-menu-item {
|
|
|
|
|
|
background-color: white !important;
|
|
|
|
|
|
}
|
|
|
|
|
|
.nz-submenu .el-menu--popup-bottom-start {
|
|
|
|
|
|
margin-top: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
.nz-submenu.el-menu--horizontal .el-menu .el-menu-item {
|
|
|
|
|
|
padding: 0 20px;
|
|
|
|
|
|
color: #444444 !important;
|
|
|
|
|
|
transition: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
.nz-submenu.el-menu--horizontal .el-menu .el-menu-item:hover {
|
|
|
|
|
|
color: #ff9900 !important;
|
|
|
|
|
|
}
|
|
|
|
|
|
.el-submenu__title .el-icon-plus {
|
|
|
|
|
|
color: white;
|
|
|
|
|
|
}
|
|
|
|
|
|
.el-menu-item>div, .el-menu-item>div>div {
|
|
|
|
|
|
font-size: 15px;
|
2019-12-05 16:48:23 +08:00
|
|
|
|
}
|
2019-12-02 16:16:26 +08:00
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
2019-12-05 16:48:23 +08:00
|
|
|
|
.submenu {
|
2019-12-02 16:16:26 +08:00
|
|
|
|
padding-left: 50%;
|
2019-12-06 17:36:33 +08:00
|
|
|
|
width: 500px;
|
2019-12-02 16:16:26 +08:00
|
|
|
|
float: left;
|
|
|
|
|
|
}
|
2019-12-05 16:48:23 +08:00
|
|
|
|
|
2019-12-02 16:16:26 +08:00
|
|
|
|
.header {
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
height: 60px;
|
2019-12-25 17:15:09 +08:00
|
|
|
|
background-color: #232f3e;
|
2019-12-06 16:43:04 +08:00
|
|
|
|
z-index: 510;
|
2019-12-02 16:16:26 +08:00
|
|
|
|
}
|
2019-12-05 16:48:23 +08:00
|
|
|
|
|
2019-12-02 16:16:26 +08:00
|
|
|
|
.header-right {
|
|
|
|
|
|
float: right;
|
|
|
|
|
|
padding-right: 5px;
|
|
|
|
|
|
}
|
2019-12-05 16:48:23 +08:00
|
|
|
|
|
2019-12-02 16:16:26 +08:00
|
|
|
|
.header-user-con {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
height: 50px;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
}
|
2019-12-05 16:48:23 +08:00
|
|
|
|
|
2019-12-02 16:16:26 +08:00
|
|
|
|
.user-avator {
|
2019-12-05 16:48:23 +08:00
|
|
|
|
padding: 0 5px 3px 0;
|
2019-12-02 16:16:26 +08:00
|
|
|
|
margin-left: 20px;
|
|
|
|
|
|
line-height: 30px;
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
}
|
2019-12-05 16:48:23 +08:00
|
|
|
|
|
|
|
|
|
|
.user-avator:hover {
|
2019-12-02 16:16:26 +08:00
|
|
|
|
border-radius: 2px;
|
2019-12-05 16:48:23 +08:00
|
|
|
|
background: rgba(255, 255, 255, .3);
|
2019-12-02 16:16:26 +08:00
|
|
|
|
}
|
2019-12-05 16:48:23 +08:00
|
|
|
|
|
2019-12-02 16:16:26 +08:00
|
|
|
|
.user-avator span {
|
2019-12-25 17:15:09 +08:00
|
|
|
|
font-size: 16px;
|
|
|
|
|
|
margin: 0 5px;
|
|
|
|
|
|
color: white;
|
2019-12-02 16:16:26 +08:00
|
|
|
|
}
|
2019-12-05 16:48:23 +08:00
|
|
|
|
|
2019-12-02 16:16:26 +08:00
|
|
|
|
.user-avator i.iconfont {
|
|
|
|
|
|
color: #fff;
|
|
|
|
|
|
font-size: 25px;
|
|
|
|
|
|
transform: translateY(2.5px);
|
|
|
|
|
|
display: inline-block;
|
|
|
|
|
|
line-height: 30px;
|
|
|
|
|
|
}
|
2019-12-05 16:48:23 +08:00
|
|
|
|
|
|
|
|
|
|
.userout {
|
2019-12-02 16:16:26 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
}
|
2019-12-05 16:48:23 +08:00
|
|
|
|
|
|
|
|
|
|
.userout > div {
|
2019-12-02 16:16:26 +08:00
|
|
|
|
width: 33.3%;
|
|
|
|
|
|
color: rgba(51, 137, 185, 1);
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
}
|
2019-12-05 16:48:23 +08:00
|
|
|
|
|
2019-12-25 17:15:09 +08:00
|
|
|
|
.sign-out {
|
2019-12-02 16:16:26 +08:00
|
|
|
|
width: 100%;
|
|
|
|
|
|
height: 30px;
|
|
|
|
|
|
color: #fff;
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
line-height: 30px;
|
|
|
|
|
|
background: rgba(51, 137, 185, 1);
|
|
|
|
|
|
margin-top: 20px;
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
}
|
2019-12-05 16:48:23 +08:00
|
|
|
|
|
2019-12-25 17:15:09 +08:00
|
|
|
|
.sign-out:hover {
|
2019-12-02 16:16:26 +08:00
|
|
|
|
opacity: .8;
|
|
|
|
|
|
}
|
2019-12-05 16:48:23 +08:00
|
|
|
|
|
2019-12-25 20:33:58 +08:00
|
|
|
|
.nz-menu>li:first-of-type {
|
2019-12-13 17:08:35 +08:00
|
|
|
|
position: fixed;
|
|
|
|
|
|
left: 40%;
|
|
|
|
|
|
top: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
.menu-create {
|
|
|
|
|
|
line-height: 15px;
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
padding-top: 15px;
|
|
|
|
|
|
}
|
|
|
|
|
|
.menu-create .el-icon-plus {
|
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
line-height: 12px;
|
|
|
|
|
|
}
|
2019-12-12 17:15:33 +08:00
|
|
|
|
.menu-edit {
|
2019-12-25 17:15:09 +08:00
|
|
|
|
line-height: 36px;
|
|
|
|
|
|
float: right;
|
2019-12-12 17:15:33 +08:00
|
|
|
|
}
|
2019-12-05 18:07:58 +08:00
|
|
|
|
</style>
|