feat:修改logo,修改页面resize的报错 以及asset列的长度
This commit is contained in:
BIN
nezha-fronted/src/assets/img/logo1-2.png
Normal file
BIN
nezha-fronted/src/assets/img/logo1-2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
@@ -183,6 +183,7 @@
|
|||||||
label: this.$t("project.endpoint.host"),
|
label: this.$t("project.endpoint.host"),
|
||||||
prop: 'host',
|
prop: 'host',
|
||||||
show: true,
|
show: true,
|
||||||
|
width:200,
|
||||||
},{
|
},{
|
||||||
label: this.$t("project.endpoint.port"),
|
label: this.$t("project.endpoint.port"),
|
||||||
prop: 'port',
|
prop: 'port',
|
||||||
@@ -192,14 +193,17 @@
|
|||||||
label: this.$t("overall.type"),
|
label: this.$t("overall.type"),
|
||||||
prop: 'type',
|
prop: 'type',
|
||||||
show: false,
|
show: false,
|
||||||
|
width:200,
|
||||||
},{
|
},{
|
||||||
label: this.$t("project.endpoint.param"),
|
label: this.$t("project.endpoint.param"),
|
||||||
prop: 'param',
|
prop: 'param',
|
||||||
show: true,
|
show: true,
|
||||||
|
width:200,
|
||||||
},{
|
},{
|
||||||
label: this.$t("project.endpoint.path"),
|
label: this.$t("project.endpoint.path"),
|
||||||
prop: 'path',
|
prop: 'path',
|
||||||
show: true,
|
show: true,
|
||||||
|
width:200,
|
||||||
},{
|
},{
|
||||||
label: this.$t("alert.list.state"),
|
label: this.$t("alert.list.state"),
|
||||||
prop: 'state',
|
prop: 'state',
|
||||||
@@ -209,6 +213,7 @@
|
|||||||
label: this.$t("project.endpoint.alerts"),
|
label: this.$t("project.endpoint.alerts"),
|
||||||
prop: 'alerts',
|
prop: 'alerts',
|
||||||
show: true,
|
show: true,
|
||||||
|
width:150,
|
||||||
},
|
},
|
||||||
/*{
|
/*{
|
||||||
label: this.$t("project.endpoint.lastUpdate"),
|
label: this.$t("project.endpoint.lastUpdate"),
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<div class="logo link" @click="jumpTo('/overview')"><img height="45" src="../../assets/img/logo.png"/></div>
|
<div class="logo link" @click="jumpTo('/overview')">
|
||||||
|
<img height="28" src="../../assets/img/logo1-2.png"/>
|
||||||
|
<span class="header-system-name">{{systemName&&systemName != 'undefined'&&systemName != null?systemName: $t('dashboard.overview.contentTitle')}}</span>
|
||||||
|
</div>
|
||||||
<el-menu
|
<el-menu
|
||||||
class="nz-menu float-right"
|
class="nz-menu float-right"
|
||||||
mode="horizontal"
|
mode="horizontal"
|
||||||
@@ -192,7 +195,7 @@
|
|||||||
activeItemIndex: '',
|
activeItemIndex: '',
|
||||||
activeItemIndexes: [],
|
activeItemIndexes: [],
|
||||||
hoverItemIndex: '',
|
hoverItemIndex: '',
|
||||||
|
systemName: localStorage.getItem('nz-sys-name'),
|
||||||
dc: {
|
dc: {
|
||||||
id: '',
|
id: '',
|
||||||
name: '',
|
name: '',
|
||||||
@@ -532,7 +535,7 @@
|
|||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.logo {
|
.logo {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 5px;
|
top: 9px;
|
||||||
left: 18px;
|
left: 18px;
|
||||||
}
|
}
|
||||||
.header {
|
.header {
|
||||||
@@ -829,6 +832,15 @@
|
|||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
.header-system-name{
|
||||||
|
font-size: 20px;
|
||||||
|
font-weight: 400;
|
||||||
|
color: #fff;
|
||||||
|
vertical-align: bottom;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
display: inline-block;
|
||||||
|
letter-spacing: 2px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
<style>
|
<style>
|
||||||
.nz-submenu .menu-edit {
|
.nz-submenu .menu-edit {
|
||||||
|
|||||||
@@ -778,7 +778,7 @@
|
|||||||
//resize时刷新左侧列表滚动条
|
//resize时刷新左侧列表滚动条
|
||||||
let vm = this;
|
let vm = this;
|
||||||
window.onresize = function () {
|
window.onresize = function () {
|
||||||
vm.$refs.leftScrollbar.update();
|
// vm.$refs.leftScrollbar.update();
|
||||||
el._ps_.update();
|
el._ps_.update();
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -233,6 +233,7 @@
|
|||||||
label: this.$t("project.endpoint.host"),
|
label: this.$t("project.endpoint.host"),
|
||||||
prop: 'host',
|
prop: 'host',
|
||||||
show: true,
|
show: true,
|
||||||
|
width:200,
|
||||||
},{
|
},{
|
||||||
label: this.$t("project.endpoint.port"),
|
label: this.$t("project.endpoint.port"),
|
||||||
prop: 'port',
|
prop: 'port',
|
||||||
@@ -242,14 +243,17 @@
|
|||||||
label: this.$t("overall.type"),
|
label: this.$t("overall.type"),
|
||||||
prop: 'type',
|
prop: 'type',
|
||||||
show: false,
|
show: false,
|
||||||
|
width:200,
|
||||||
},{
|
},{
|
||||||
label: this.$t("project.endpoint.param"),
|
label: this.$t("project.endpoint.param"),
|
||||||
prop: 'param',
|
prop: 'param',
|
||||||
show: true,
|
show: true,
|
||||||
|
width:200,
|
||||||
},{
|
},{
|
||||||
label: this.$t("project.endpoint.path"),
|
label: this.$t("project.endpoint.path"),
|
||||||
prop: 'path',
|
prop: 'path',
|
||||||
show: true,
|
show: true,
|
||||||
|
width:200,
|
||||||
},{
|
},{
|
||||||
label: this.$t("alert.list.state"),
|
label: this.$t("alert.list.state"),
|
||||||
prop: 'state',
|
prop: 'state',
|
||||||
@@ -259,6 +263,7 @@
|
|||||||
label: this.$t("project.endpoint.alerts"),
|
label: this.$t("project.endpoint.alerts"),
|
||||||
prop: 'alerts',
|
prop: 'alerts',
|
||||||
show: true,
|
show: true,
|
||||||
|
width:150,
|
||||||
},
|
},
|
||||||
// {
|
// {
|
||||||
// label: this.$t("project.endpoint.lastUpdate"),
|
// label: this.$t("project.endpoint.lastUpdate"),
|
||||||
|
|||||||
Reference in New Issue
Block a user