2019-12-02 16:16:26 +08:00
|
|
|
|
<template>
|
2019-12-26 16:31:53 +08:00
|
|
|
|
<div class="header">
|
2020-02-14 18:01:48 +08:00
|
|
|
|
<div class="logo"><img height="45" src="../../assets/img/logo.png"/></div>
|
2020-01-13 19:04:03 +08:00
|
|
|
|
<el-menu
|
|
|
|
|
|
class="nz-menu float-right"
|
|
|
|
|
|
mode="horizontal"
|
2020-02-17 19:37:06 +08:00
|
|
|
|
active="1"
|
2020-01-13 19:04:03 +08:00
|
|
|
|
unique-opened
|
|
|
|
|
|
>
|
|
|
|
|
|
<el-submenu index="0" popper-class="nz-submenu">
|
|
|
|
|
|
<template slot="title">
|
|
|
|
|
|
<div class="menu-create">
|
2020-01-15 15:31:41 +08:00
|
|
|
|
<div class="menu-icon-create">
|
|
|
|
|
|
<i class="nz-icon-create-square nz-icon"></i>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class='menu-create-title'>{{$t('overall.create')}}</div>
|
2020-01-13 19:04:03 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
<template v-for="(item, index) in createMenu">
|
|
|
|
|
|
<el-menu-item :index="'0-' + index">
|
|
|
|
|
|
<div @click="createBox(item)">
|
|
|
|
|
|
<span>{{item.label}}</span>
|
2019-12-26 16:31:53 +08:00
|
|
|
|
</div>
|
2019-12-26 16:40:13 +08:00
|
|
|
|
</el-menu-item>
|
2020-01-13 19:04:03 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
</el-submenu>
|
|
|
|
|
|
<el-submenu index="1" popper-class="nz-submenu">
|
|
|
|
|
|
<template slot="title">
|
2020-02-10 20:28:29 +08:00
|
|
|
|
<div @click="jumpTo('panel')" :class ="(activeIndex == 'panel' || activeIndex == 'metricPreview') ? 'menu-active' :'' " >
|
2020-02-06 17:44:07 +08:00
|
|
|
|
{{$t('overall.dashboard')}}
|
2020-01-15 09:51:52 +08:00
|
|
|
|
</div>
|
2020-01-13 19:04:03 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
<el-menu-item index="1-0">
|
2020-01-15 09:51:52 +08:00
|
|
|
|
<div @click="jumpTo('panel')" :class="{'menu-item-active' :activeIndex == 'panel'}" >{{$t('dashboard.panel.title')}}</div>
|
2020-01-13 19:04:03 +08:00
|
|
|
|
</el-menu-item>
|
|
|
|
|
|
<el-menu-item index="1-1">
|
2020-01-15 09:51:52 +08:00
|
|
|
|
<div @click="jumpTo('metricPreview')" :class="{'menu-item-active' :activeIndex == 'metricPreview'}">{{$t('dashboard.metricPreview.title')}}</div>
|
2020-01-13 19:04:03 +08:00
|
|
|
|
</el-menu-item>
|
|
|
|
|
|
</el-submenu>
|
|
|
|
|
|
|
|
|
|
|
|
<el-submenu index="2" popper-class="nz-submenu">
|
|
|
|
|
|
<template slot="title">
|
2020-01-15 22:21:19 +08:00
|
|
|
|
<div @click="jumpToProject(projectData[0], 0)" :class ="activeIndex == 'project' ? 'menu-active' :''" >{{$t('overall.project')}}</div>
|
2020-01-13 19:04:03 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
<template v-for="(item, index) in projectData">
|
|
|
|
|
|
<el-menu-item :index="'2-' + index">
|
2020-02-17 17:29:15 +08:00
|
|
|
|
<div @mouseenter="hoverItemIndex = '2-' + index" @mouseleave="hoverItemIndex = ''" @click="jumpToProject(item)" :class="{'menu-item-active' :(activeIndex == 'project' && activeItemIndex == item.id)}">
|
2020-01-19 19:34:38 +08:00
|
|
|
|
<span class="too-long-split" style="width: 135px;">{{item.name}}</span>
|
2020-02-17 17:29:15 +08:00
|
|
|
|
<div v-show="hoverItemIndex == '2-' + index" @click.stop="toEditProject(item)" class="menu-edit"><i style="color: inherit" class="nz-icon nz-icon-edit"></i></div>
|
2020-01-13 19:04:03 +08:00
|
|
|
|
</div>
|
2019-12-26 16:40:13 +08:00
|
|
|
|
</el-menu-item>
|
2020-01-13 19:04:03 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
</el-submenu>
|
|
|
|
|
|
<el-submenu index="3" popper-class="nz-submenu">
|
|
|
|
|
|
<template slot="title">
|
2020-01-15 09:51:52 +08:00
|
|
|
|
<div @click="jumpTo('asset')" :class="{'menu-active' : activeIndex == 'asset'}">{{$t('overall.asset')}}</div>
|
2020-01-13 19:04:03 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
<template v-for="(item, index) in assetData">
|
|
|
|
|
|
<el-menu-item :index="'3-' + index">
|
2020-02-17 17:29:15 +08:00
|
|
|
|
<div @mouseenter="hoverItemIndex = '3-' + index" @mouseleave="hoverItemIndex = ''" @click="jumpToAsset(item.id)" :class="{'menu-item-active' : (activeIndex == 'asset' && indOf(activeItemIndexes, item.id) > -1) }">
|
2020-01-19 19:34:38 +08:00
|
|
|
|
<span class="too-long-split" style="width: 130px;">{{item.name}}</span>
|
2020-02-12 09:48:25 +08:00
|
|
|
|
<idc-config-box :post-idc="item" ref="idcConfigBox" placement="left" @after="getIDCOptionData" :user-data="userDatas">
|
|
|
|
|
|
<template v-slot:optionZone>
|
2020-02-17 17:29:15 +08:00
|
|
|
|
<div v-show="hoverItemIndex == '3-' + index" @click="closeAllPop" class="menu-edit">
|
2020-02-12 09:48:25 +08:00
|
|
|
|
<i class="nz-icon nz-icon-edit" @click="getIDCOptionData(item.id)" style="color: inherit"></i>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</idc-config-box>
|
2020-01-13 19:04:03 +08:00
|
|
|
|
</div>
|
2019-12-26 16:31:53 +08:00
|
|
|
|
</el-menu-item>
|
2020-01-13 19:04:03 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
</el-submenu>
|
|
|
|
|
|
<el-submenu index="4-0" popper-class="nz-submenu">
|
|
|
|
|
|
<template slot="title">
|
2020-01-15 22:21:19 +08:00
|
|
|
|
<div @click="jumpTo('alertList')" :class ="activeIndex == 'alertList' || activeIndex == 'alertConfig' ? 'menu-active' :''">{{$t('overall.alert')}}</div>
|
2020-01-13 19:04:03 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
<el-menu-item index="4-1">
|
2020-01-15 22:21:19 +08:00
|
|
|
|
<div @click="jumpTo('alertList')" :class ="activeIndex == 'alertList' ? 'menu-item-active' :''">{{$t('alert.message')}}</div>
|
2020-01-13 19:04:03 +08:00
|
|
|
|
</el-menu-item>
|
|
|
|
|
|
<el-menu-item index="4-2">
|
2020-01-15 22:21:19 +08:00
|
|
|
|
<div @click="jumpTo('alertConfig')" :class ="activeIndex == 'alertConfig' ? 'menu-item-active' :''">{{$t('alert.rule')}}</div>
|
2020-01-13 19:04:03 +08:00
|
|
|
|
</el-menu-item>
|
|
|
|
|
|
</el-submenu>
|
|
|
|
|
|
<el-submenu index="5" popper-class="nz-submenu">
|
|
|
|
|
|
<template slot="title">
|
2020-01-15 22:21:19 +08:00
|
|
|
|
<div @click="jumpTo('account')" :class ="activeIndex == 'account' || activeIndex == 'promServer' ? 'menu-active' :''">{{$t('overall.config')}}</div>
|
2020-01-13 19:04:03 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
<el-menu-item index="5-0">
|
2020-01-15 09:51:52 +08:00
|
|
|
|
<div @click="jumpTo('account')" :class="{'menu-item-active' :(activeIndex == 'account' )}">{{$t('config.account.account')}}</div>
|
2020-01-13 19:04:03 +08:00
|
|
|
|
</el-menu-item>
|
|
|
|
|
|
<el-menu-item index="5-1">
|
2020-01-15 09:51:52 +08:00
|
|
|
|
<div @click="jumpTo('promServer')" :class="{'menu-item-active' :(activeIndex == 'promServer' )}">{{$t('config.promServer.promServerList')}}</div>
|
2020-01-13 19:04:03 +08:00
|
|
|
|
</el-menu-item>
|
|
|
|
|
|
</el-submenu>
|
|
|
|
|
|
<el-submenu index="6" popper-class="nz-submenu">
|
|
|
|
|
|
<template slot="title">
|
2020-01-15 15:31:41 +08:00
|
|
|
|
<div class='nz-user'>{{username}}<i class="el-icon-arrow-down"></i></div>
|
2020-01-13 19:04:03 +08:00
|
|
|
|
</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 class="nz-menu-line" @click.stop index="6-2">
|
|
|
|
|
|
<div style="height: 1px; width: 100%; background-color: #cccccc;"></div>
|
|
|
|
|
|
</el-menu-item>
|
|
|
|
|
|
<el-menu-item index="6-3">
|
|
|
|
|
|
<div @click="logout">{{$t('overall.signOut')}}</div>
|
|
|
|
|
|
</el-menu-item>
|
|
|
|
|
|
</el-submenu>
|
|
|
|
|
|
</el-menu>
|
2019-12-05 16:48:23 +08:00
|
|
|
|
|
2020-01-03 17:17:09 +08:00
|
|
|
|
<panel-box :panel="editPanel" @reload="panelListReload" @reloadForDel="" ref="panelBox"></panel-box>
|
2019-12-31 19:02:58 +08:00
|
|
|
|
<project-box :project="editProject" ref="projectBox"></project-box>
|
2019-12-26 16:31:53 +08:00
|
|
|
|
<module-box :currentProject="currentProject" :module="editModule" @reload="" ref="moduleBox"></module-box>
|
2020-02-19 16:33:01 +08:00
|
|
|
|
<asset-box :currentProject="currentProject" :currentModule="currentModule" @reload=""
|
|
|
|
|
|
ref="addEndpointBox"></asset-box>
|
2020-01-19 18:05:41 +08:00
|
|
|
|
<asset-add-unit :add-unit-show='addUnitShow' @refreshData="refreshAsset" ref="assetAddUnit"
|
|
|
|
|
|
@sendStateData="closeAsset"></asset-add-unit>
|
2019-12-26 16:31:53 +08:00
|
|
|
|
<alert-config-box :parentAlertRule="alertRule" @reload="" ref="alertConfigBox"></alert-config-box>
|
|
|
|
|
|
</div>
|
2019-12-02 16:16:26 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
2020-02-11 11:30:56 +08:00
|
|
|
|
import bus from '../../libs/bus';
|
2019-12-26 16:31:53 +08:00
|
|
|
|
export default {
|
|
|
|
|
|
name: "Header",
|
|
|
|
|
|
data() {
|
|
|
|
|
|
return {
|
|
|
|
|
|
username: sessionStorage.getItem("nz-username"),
|
2020-02-19 15:16:38 +08:00
|
|
|
|
language: '',
|
2019-12-26 16:31:53 +08:00
|
|
|
|
assetData: [],
|
2020-01-15 09:51:52 +08:00
|
|
|
|
activeIndex:'',
|
|
|
|
|
|
activeItemIndex:'',
|
2020-01-15 22:21:19 +08:00
|
|
|
|
activeItemIndexes: [],
|
2020-02-17 17:29:15 +08:00
|
|
|
|
hoverItemIndex: '',
|
2020-01-03 17:17:09 +08:00
|
|
|
|
editPanel:{//新增or编辑的panel
|
|
|
|
|
|
id:'',
|
|
|
|
|
|
name: ''
|
|
|
|
|
|
},
|
2019-12-26 16:31:53 +08:00
|
|
|
|
projectData: [], //顶部菜单project列表中的数据
|
|
|
|
|
|
editProject: {id: '', name: '', remark: ''}, //新增/编辑的project
|
|
|
|
|
|
currentProject: {id: '', name: '', remark: ''}, //module/endpoint弹框用来回显project
|
|
|
|
|
|
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-13 17:08:35 +08:00
|
|
|
|
},
|
2019-12-26 16:31:53 +08:00
|
|
|
|
alertRule: {
|
|
|
|
|
|
id: '',
|
|
|
|
|
|
alertName: '',
|
|
|
|
|
|
type: '',
|
|
|
|
|
|
linkObject: {id: '', name: ''},
|
|
|
|
|
|
linkId: '',
|
|
|
|
|
|
expr: '',
|
|
|
|
|
|
last: '',
|
|
|
|
|
|
severity: '',
|
|
|
|
|
|
summary: '',
|
|
|
|
|
|
description: '',
|
|
|
|
|
|
receiver: '',
|
2019-12-13 17:08:35 +08:00
|
|
|
|
},
|
2019-12-26 16:31:53 +08:00
|
|
|
|
createMenu: [ //新增按钮内容
|
2020-01-03 17:17:09 +08:00
|
|
|
|
{
|
2020-01-15 22:21:19 +08:00
|
|
|
|
label: this.$t('dashboard.panel.title'),
|
2020-01-03 17:17:09 +08:00
|
|
|
|
url: 'panel',
|
|
|
|
|
|
type: 0
|
|
|
|
|
|
},
|
2019-12-26 16:31:53 +08:00
|
|
|
|
{
|
2020-01-15 22:21:19 +08:00
|
|
|
|
label: this.$t('project.project.project'),
|
2019-12-26 16:31:53 +08:00
|
|
|
|
url: 'project',
|
|
|
|
|
|
type: 1
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
2020-01-15 22:21:19 +08:00
|
|
|
|
label: this.$t('project.module.module'),
|
2019-12-26 16:31:53 +08:00
|
|
|
|
url: 'project',
|
|
|
|
|
|
type: 2
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
2020-01-15 22:21:19 +08:00
|
|
|
|
label: this.$t('project.endpoint.endpoint'),
|
2019-12-26 16:31:53 +08:00
|
|
|
|
url: 'project',
|
|
|
|
|
|
type: 3
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
2020-01-15 22:21:19 +08:00
|
|
|
|
label: this.$t('asset.asset'),
|
2019-12-26 16:31:53 +08:00
|
|
|
|
url: 'asset',
|
|
|
|
|
|
type: 4
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
2020-01-15 22:21:19 +08:00
|
|
|
|
label: this.$t('alert.config.alertConfig'),
|
2019-12-26 16:31:53 +08:00
|
|
|
|
url: 'alertConfig',
|
|
|
|
|
|
type: 5
|
|
|
|
|
|
}
|
2019-12-26 17:39:30 +08:00
|
|
|
|
],
|
|
|
|
|
|
addIdcData: {
|
|
|
|
|
|
id: '',
|
|
|
|
|
|
name: '',
|
|
|
|
|
|
location: '',
|
|
|
|
|
|
principal: '',
|
|
|
|
|
|
tel: ''
|
|
|
|
|
|
},
|
|
|
|
|
|
idcUserData: '',
|
|
|
|
|
|
IDCOptionData: [],
|
2020-01-19 18:05:41 +08:00
|
|
|
|
addUnitShow: false,
|
2020-02-06 17:44:07 +08:00
|
|
|
|
userDatas:[]
|
2019-12-26 16:31:53 +08:00
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
methods: {
|
2020-01-19 18:05:41 +08:00
|
|
|
|
closeAsset() {
|
|
|
|
|
|
this.addUnitShow = false;
|
|
|
|
|
|
},
|
|
|
|
|
|
refreshAsset(flag) {
|
|
|
|
|
|
if (flag && this.$route.path == "/asset") {
|
|
|
|
|
|
window.location.reload();
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
2019-12-26 16:31:53 +08:00
|
|
|
|
jumpTo(data) {
|
2020-01-15 22:21:19 +08:00
|
|
|
|
if (data != "asset") {
|
|
|
|
|
|
this.activeItemIndexes = [];
|
|
|
|
|
|
this.$store.state.assetData = {selectedData: [], step: 0, type: -1};
|
|
|
|
|
|
}
|
2019-12-26 16:31:53 +08:00
|
|
|
|
this.$router.push({
|
|
|
|
|
|
path: "/" + data,
|
|
|
|
|
|
query: {
|
|
|
|
|
|
t: +new Date()
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|
2020-01-15 09:51:52 +08:00
|
|
|
|
this.activeIndex = data
|
2020-02-06 17:44:07 +08:00
|
|
|
|
|
2019-12-26 16:31:53 +08:00
|
|
|
|
},
|
2020-02-06 17:44:07 +08:00
|
|
|
|
|
2019-12-26 16:31:53 +08:00
|
|
|
|
createBox(item) {
|
2020-01-03 17:17:09 +08:00
|
|
|
|
if (item.type == 0) {
|
|
|
|
|
|
this.$refs.panelBox.show(true);
|
|
|
|
|
|
this.editPanel = {id: '', name: ''};
|
|
|
|
|
|
}else if (item.type == 1) {
|
2020-01-07 17:41:46 +08:00
|
|
|
|
this.$refs.projectBox.show(true,true);
|
2019-12-26 16:31:53 +08:00
|
|
|
|
this.editProject = {id: '', name: '', remark: ''};
|
|
|
|
|
|
} else if (item.type == 2) {
|
2020-01-07 17:41:46 +08:00
|
|
|
|
this.$refs.moduleBox.show(true,true);
|
2019-12-27 17:53:17 +08:00
|
|
|
|
this.editModule = {
|
|
|
|
|
|
id: '',
|
|
|
|
|
|
name: '',
|
|
|
|
|
|
project: this.$store.state.currentProject,
|
|
|
|
|
|
port: '',
|
|
|
|
|
|
path: '',
|
|
|
|
|
|
param: '',
|
|
|
|
|
|
paramObj: []
|
|
|
|
|
|
};
|
2019-12-26 16:31:53 +08:00
|
|
|
|
} else if (item.type == 3) {
|
|
|
|
|
|
this.$refs.addEndpointBox.show(true);
|
|
|
|
|
|
this.$refs.addEndpointBox.clearEndpoints();
|
|
|
|
|
|
} else if (item.type == 5) {
|
|
|
|
|
|
this.$refs.alertConfigBox.show(true, true);
|
2020-01-19 18:05:41 +08:00
|
|
|
|
} else if (item.type == 4) {
|
|
|
|
|
|
this.addUnitShow = true
|
2019-12-13 17:08:35 +08:00
|
|
|
|
}
|
2019-12-26 16:31:53 +08:00
|
|
|
|
},
|
2020-01-15 22:21:19 +08:00
|
|
|
|
jumpToAsset(id) {
|
|
|
|
|
|
let index = this.indOf(this.activeItemIndexes, id);
|
|
|
|
|
|
if (index > -1) {
|
|
|
|
|
|
this.activeItemIndexes.splice(index, 1);
|
2020-01-08 09:16:34 +08:00
|
|
|
|
} else {
|
2020-01-15 22:21:19 +08:00
|
|
|
|
this.activeItemIndexes.push(id);
|
2020-01-08 09:16:34 +08:00
|
|
|
|
}
|
2020-01-15 22:21:19 +08:00
|
|
|
|
this.$store.state.assetData = {selectedData: this.activeItemIndexes, step: this.$store.state.assetData.step+1, type: 1};
|
|
|
|
|
|
this.jumpTo('asset');
|
2019-12-26 16:31:53 +08:00
|
|
|
|
},
|
|
|
|
|
|
jumpToProject(p) {
|
|
|
|
|
|
this.currentProject = p;
|
|
|
|
|
|
this.$store.commit('setProject', p);
|
2020-01-15 22:21:19 +08:00
|
|
|
|
this.activeItemIndex = p.id;
|
2019-12-26 16:31:53 +08:00
|
|
|
|
this.jumpTo('project');
|
|
|
|
|
|
},
|
2019-12-26 17:39:30 +08:00
|
|
|
|
getUserData() {
|
|
|
|
|
|
this.$get('sys/user/list').then(response => {
|
|
|
|
|
|
if (response.code === 200) {
|
|
|
|
|
|
this.idcUserData = response.data.list
|
|
|
|
|
|
}
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
|
|
|
|
|
getIDCOptionData(data) {
|
|
|
|
|
|
this.$get('idc?id=' + data).then(response => {
|
|
|
|
|
|
if (response.code === 200) {
|
|
|
|
|
|
this.addIdcData = response.data.list[0];
|
|
|
|
|
|
this.clickFlush(this.addIdcData)
|
|
|
|
|
|
}
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
|
|
|
|
|
editData(data, Id) {
|
|
|
|
|
|
let idcData = {
|
|
|
|
|
|
id: '',
|
|
|
|
|
|
name: '',
|
|
|
|
|
|
location: '',
|
|
|
|
|
|
principal: '',
|
|
|
|
|
|
tel: ''
|
|
|
|
|
|
}
|
|
|
|
|
|
if (data === 'idc') {
|
|
|
|
|
|
idcData.id = Id
|
|
|
|
|
|
idcData.name = this.addIdcData.name
|
|
|
|
|
|
idcData.location = this.addIdcData.location
|
|
|
|
|
|
idcData.principal = this.addIdcData.principal
|
|
|
|
|
|
idcData.tel = this.addIdcData.tel
|
|
|
|
|
|
}
|
|
|
|
|
|
this.$put(data, idcData).then(res => {
|
|
|
|
|
|
const h = this.$createElement;
|
|
|
|
|
|
if (res.code === 200) {
|
|
|
|
|
|
this.$notify({
|
|
|
|
|
|
message: h('i', {style: 'color: teal'}, '修改成功'),
|
|
|
|
|
|
duration: 2000
|
|
|
|
|
|
})
|
|
|
|
|
|
this.$store.state.flushDataSign = true
|
2019-12-27 17:53:17 +08:00
|
|
|
|
} else {
|
2019-12-26 17:39:30 +08:00
|
|
|
|
this.$notify({
|
|
|
|
|
|
message: h('i', {style: 'color: teal'}, res.msg),
|
|
|
|
|
|
duration: 2000
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
|
|
|
|
|
clickFlush(itemData) {
|
|
|
|
|
|
for (let i = 0; i < this.assetData.length; i++) {
|
|
|
|
|
|
const element = this.assetData[i];
|
|
|
|
|
|
if (element.id === itemData.id) {
|
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
|
element[element.name] = true;
|
|
|
|
|
|
}, 100)
|
|
|
|
|
|
} else {
|
|
|
|
|
|
element[element.name] = false
|
|
|
|
|
|
}
|
2019-12-02 16:16:26 +08:00
|
|
|
|
}
|
2019-12-26 16:31:53 +08:00
|
|
|
|
},
|
|
|
|
|
|
getAssetData() {
|
|
|
|
|
|
this.$get('idc', this.pageObj).then(response => {
|
|
|
|
|
|
if (response.code == 200) {
|
|
|
|
|
|
this.assetData = response.data.list
|
2019-12-26 17:39:30 +08:00
|
|
|
|
this.assetData.forEach(item => {
|
|
|
|
|
|
this.$set(item, item.name, false)
|
|
|
|
|
|
})
|
2019-12-26 16:31:53 +08:00
|
|
|
|
}
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
2019-12-26 17:39:30 +08:00
|
|
|
|
changeLocal(lang) {
|
2020-02-19 15:16:38 +08:00
|
|
|
|
if (lang != localStorage.getItem("nz-language-" + this.username)) {
|
|
|
|
|
|
localStorage.setItem("nz-language-" + this.username, lang);
|
|
|
|
|
|
this.$i18n.locale = lang;
|
2019-12-26 17:39:30 +08:00
|
|
|
|
window.location.reload();
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
2020-01-10 18:16:25 +08:00
|
|
|
|
closeAllPop:function(){
|
|
|
|
|
|
this.$refs.idcConfigBox.forEach((item)=>{
|
|
|
|
|
|
item.show(false)
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
2019-12-26 16:31:53 +08:00
|
|
|
|
getProjectList() {
|
|
|
|
|
|
this.$get('project', {}).then(response => {
|
|
|
|
|
|
if (response.code == 200) {
|
|
|
|
|
|
this.projectData = response.data.list;
|
|
|
|
|
|
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];
|
2020-01-15 22:21:19 +08:00
|
|
|
|
this.activeItemIndex = this.currentProject.id;
|
2019-12-26 16:31:53 +08:00
|
|
|
|
this.$store.commit('setProject', this.currentProject);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
|
|
|
|
|
toEditProject(p) {
|
2020-01-07 18:11:54 +08:00
|
|
|
|
this.$refs.projectBox.show(true,true);
|
2019-12-26 16:31:53 +08:00
|
|
|
|
this.editProject = Object.assign({}, p);
|
|
|
|
|
|
},
|
2020-01-15 22:21:19 +08:00
|
|
|
|
indOf(a, b) {
|
|
|
|
|
|
let c = [];
|
|
|
|
|
|
for (let i = 0; i < a.length; i++) {
|
|
|
|
|
|
c.push(a[i]);
|
|
|
|
|
|
}
|
|
|
|
|
|
return c.indexOf(b);
|
|
|
|
|
|
/*if (c.indexOf(b) > -1) {
|
|
|
|
|
|
return true;
|
|
|
|
|
|
} else {
|
|
|
|
|
|
return false;
|
|
|
|
|
|
}*/
|
|
|
|
|
|
},
|
2020-01-03 17:17:09 +08:00
|
|
|
|
panelListReload(){
|
|
|
|
|
|
if(this.$route.path==='/panel'){
|
|
|
|
|
|
this.$store.commit('panelListChange',true);//新增panel之后,且当前页面为panel页面,则更新panel列表
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
2019-12-26 16:31:53 +08:00
|
|
|
|
logout() {
|
|
|
|
|
|
this.$get('logout');
|
|
|
|
|
|
this.jumpTo('login');
|
2020-02-06 17:44:07 +08:00
|
|
|
|
},
|
|
|
|
|
|
getUserData() {
|
|
|
|
|
|
this.$get('sys/user/list').then(response => {
|
|
|
|
|
|
if (response.code === 200) {
|
|
|
|
|
|
this.userDatas = response.data.list
|
|
|
|
|
|
}
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
2020-02-19 15:16:38 +08:00
|
|
|
|
refreshLang() {
|
|
|
|
|
|
this.language = localStorage.getItem("nz-language-" + this.username);
|
|
|
|
|
|
this.$i18n.locale = this.language;
|
|
|
|
|
|
}
|
2019-12-02 16:16:26 +08:00
|
|
|
|
},
|
2019-12-26 16:31:53 +08:00
|
|
|
|
created() {
|
2020-02-19 15:16:38 +08:00
|
|
|
|
/*if (!localStorage.getItem("nz-language")) {
|
2019-12-26 16:31:53 +08:00
|
|
|
|
localStorage.setItem("nz-language", "en");
|
2020-02-19 15:16:38 +08:00
|
|
|
|
}*/
|
2020-02-06 17:44:07 +08:00
|
|
|
|
this.getUserData();
|
2019-12-12 17:15:33 +08:00
|
|
|
|
},
|
2019-12-26 16:31:53 +08:00
|
|
|
|
mounted() {
|
2019-12-26 17:39:30 +08:00
|
|
|
|
this.getUserData();
|
2019-12-26 16:31:53 +08:00
|
|
|
|
this.getAssetData();
|
|
|
|
|
|
this.getProjectList();
|
2020-02-19 15:16:38 +08:00
|
|
|
|
this.refreshLang();
|
2020-01-15 15:31:41 +08:00
|
|
|
|
// 刷新后有高亮
|
2020-01-15 22:21:19 +08:00
|
|
|
|
let activePath = this.$route.path.slice(1);
|
|
|
|
|
|
this.activeIndex = activePath;
|
2020-02-11 11:30:56 +08:00
|
|
|
|
bus.$on("menu-change", (menu) => {
|
|
|
|
|
|
this.activeIndex = menu;
|
|
|
|
|
|
});
|
2020-02-19 15:16:38 +08:00
|
|
|
|
bus.$on('login', () => {
|
|
|
|
|
|
this.username = sessionStorage.getItem("nz-username");
|
|
|
|
|
|
this.refreshLang();
|
|
|
|
|
|
/*this.$nextTick(function(){
|
|
|
|
|
|
window.location.reload();
|
|
|
|
|
|
});*/
|
|
|
|
|
|
});
|
2019-12-02 16:16:26 +08:00
|
|
|
|
},
|
2019-12-26 16:31:53 +08:00
|
|
|
|
computed: {
|
|
|
|
|
|
projectListReloadWatch() {
|
2019-12-31 19:02:58 +08:00
|
|
|
|
return this.$store.state.projectListChange;
|
2019-12-27 17:08:39 +08:00
|
|
|
|
},
|
|
|
|
|
|
getIdcData() {
|
2020-01-08 10:17:31 +08:00
|
|
|
|
return this.$store.state.assetDcList;
|
2020-01-15 15:31:41 +08:00
|
|
|
|
},
|
2020-01-15 22:21:19 +08:00
|
|
|
|
getAssetDcData() {
|
2020-02-11 11:30:56 +08:00
|
|
|
|
return this.$store.state.assetData;
|
2020-02-19 15:16:38 +08:00
|
|
|
|
},
|
2019-12-05 16:48:23 +08:00
|
|
|
|
},
|
2019-12-26 16:31:53 +08:00
|
|
|
|
watch: {
|
2020-01-15 22:21:19 +08:00
|
|
|
|
getAssetDcData: {
|
|
|
|
|
|
handler(newVal) {
|
|
|
|
|
|
if (newVal.type == 0) {
|
|
|
|
|
|
this.activeItemIndexes = newVal.selectedData;
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
deep: true,
|
|
|
|
|
|
immediate: true
|
|
|
|
|
|
},
|
2019-12-27 17:53:17 +08:00
|
|
|
|
getIdcData: {
|
2019-12-27 17:08:39 +08:00
|
|
|
|
handler(newVal, oldVal) {
|
|
|
|
|
|
this.getAssetData()
|
|
|
|
|
|
},
|
|
|
|
|
|
deep: true,
|
|
|
|
|
|
},
|
2019-12-26 16:31:53 +08:00
|
|
|
|
projectListReloadWatch(n, o) {
|
2019-12-31 19:02:58 +08:00
|
|
|
|
this.getProjectList();
|
2019-12-12 17:15:33 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
2019-12-02 16:16:26 +08:00
|
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
2020-01-13 19:04:03 +08:00
|
|
|
|
<style lang="scss">
|
2020-01-21 11:48:42 +08:00
|
|
|
|
.logo {
|
|
|
|
|
|
position: absolute;
|
2020-02-14 18:01:48 +08:00
|
|
|
|
top: 5px;
|
2020-01-21 11:48:42 +08:00
|
|
|
|
left: 18px;
|
|
|
|
|
|
}
|
2020-01-13 19:04:03 +08:00
|
|
|
|
.header {
|
|
|
|
|
|
background-image: linear-gradient(180deg, #565656 0%, #3C3C3C 100%);
|
2020-01-17 18:09:54 +08:00
|
|
|
|
box-shadow: 0 2px 4px 0 rgba(0,0,0,0.30);
|
2020-01-13 19:04:03 +08:00
|
|
|
|
}
|
|
|
|
|
|
.header .el-menu {
|
|
|
|
|
|
background-color: transparent;
|
|
|
|
|
|
}
|
2020-01-15 09:51:52 +08:00
|
|
|
|
.header .el-menu--horizontal>.el-submenu .el-submenu__title .menu-active{
|
2020-01-15 22:21:19 +08:00
|
|
|
|
border-bottom: $global-text-color-active solid 2px;
|
2020-01-15 09:51:52 +08:00
|
|
|
|
border-radius: 2px;
|
2020-01-15 15:31:41 +08:00
|
|
|
|
height: 26px;
|
2020-01-15 09:51:52 +08:00
|
|
|
|
line-height: 16px;
|
|
|
|
|
|
display: inline-block;
|
|
|
|
|
|
font-size: 16px;
|
2020-01-15 15:31:41 +08:00
|
|
|
|
margin: 0 auto -8px;
|
|
|
|
|
|
font-weight: 500;
|
2020-01-15 22:21:19 +08:00
|
|
|
|
color: $header-text-color-active;
|
|
|
|
|
|
}
|
2020-01-13 19:04:03 +08:00
|
|
|
|
.header .el-menu--horizontal>.el-submenu .el-submenu__title i {
|
|
|
|
|
|
color: inherit;
|
|
|
|
|
|
}
|
2020-01-17 18:09:54 +08:00
|
|
|
|
.el-submenu__title:hover {
|
|
|
|
|
|
background-color: $header-background-color-hover !important;
|
|
|
|
|
|
}
|
2020-01-15 15:31:41 +08:00
|
|
|
|
.el-submenu__title{
|
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
|
}
|
|
|
|
|
|
.el-submenu__title .el-icon-arrow-down ,.el-submenu__title>.nz-user{
|
2020-01-13 19:04:03 +08:00
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
}
|
|
|
|
|
|
.nz-submenu .el-menu--popup {
|
2020-01-17 18:09:54 +08:00
|
|
|
|
border-radius: 4px;
|
2020-01-13 19:04:03 +08:00
|
|
|
|
}
|
|
|
|
|
|
.header .el-menu--horizontal>.el-submenu .el-submenu__title {
|
|
|
|
|
|
min-width: 120px;
|
2020-02-06 17:44:07 +08:00
|
|
|
|
text-align: center;
|
2020-01-15 15:31:41 +08:00
|
|
|
|
color:$header-text-color;
|
2020-01-13 19:04:03 +08:00
|
|
|
|
padding: 0;
|
2020-02-14 18:01:48 +08:00
|
|
|
|
height: 50px;
|
|
|
|
|
|
line-height: 50px;
|
2020-01-13 19:04:03 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2019-12-27 17:53:17 +08:00
|
|
|
|
.el-menu.el-menu--horizontal {
|
2019-12-26 16:31:53 +08:00
|
|
|
|
border-bottom: 0px;
|
|
|
|
|
|
}
|
2019-12-27 17:53:17 +08:00
|
|
|
|
|
2019-12-26 16:31:53 +08:00
|
|
|
|
.el-submenu__title .el-submenu__icon-arrow {
|
|
|
|
|
|
display: none;
|
|
|
|
|
|
}
|
2019-12-27 17:53:17 +08:00
|
|
|
|
|
|
|
|
|
|
.el-menu--horizontal > .el-menu-item.is-active {
|
2019-12-26 16:31:53 +08:00
|
|
|
|
border-bottom: 0px;
|
|
|
|
|
|
}
|
2019-12-27 17:53:17 +08:00
|
|
|
|
|
2020-01-13 19:04:03 +08:00
|
|
|
|
/* .el-menu--horizontal > .el-submenu.is-active .el-submenu__title,
|
2019-12-27 17:53:17 +08:00
|
|
|
|
.el-menu--horizontal > .el-menu-item.is-active,
|
2019-12-26 16:31:53 +08:00
|
|
|
|
.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;
|
2020-01-13 19:04:03 +08:00
|
|
|
|
}*/
|
2020-01-15 09:51:52 +08:00
|
|
|
|
.el-submenu.is-active .el-submenu__title{
|
|
|
|
|
|
border-bottom-color: transparent !important;
|
2020-02-06 17:44:07 +08:00
|
|
|
|
}
|
2020-01-15 15:31:41 +08:00
|
|
|
|
.menu-create .menu-icon-create .nz-icon:before{
|
|
|
|
|
|
height: 20px;
|
|
|
|
|
|
line-height: 20px;
|
|
|
|
|
|
display: inline-block;
|
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
|
margin-top:-4px;
|
|
|
|
|
|
margin-bottom:6px;
|
2020-02-06 17:44:07 +08:00
|
|
|
|
}
|
2020-01-15 15:31:41 +08:00
|
|
|
|
.el-submenu__icon-arrow .el-icon-arrow-down{
|
|
|
|
|
|
display: none;
|
2020-01-15 09:51:52 +08:00
|
|
|
|
}
|
2019-12-26 16:31:53 +08:00
|
|
|
|
.el-menu--horizontal.nz-submenu {
|
|
|
|
|
|
border-top: none;
|
2020-02-14 18:01:48 +08:00
|
|
|
|
top: 52px !important;
|
2020-01-17 18:09:54 +08:00
|
|
|
|
|
2019-12-26 16:31:53 +08:00
|
|
|
|
}
|
2019-12-27 17:53:17 +08:00
|
|
|
|
|
2019-12-26 16:31:53 +08:00
|
|
|
|
.nz-submenu .el-menu--popup {
|
|
|
|
|
|
background-color: white !important;
|
|
|
|
|
|
}
|
2019-12-27 17:53:17 +08:00
|
|
|
|
|
2019-12-26 16:31:53 +08:00
|
|
|
|
.nz-submenu .el-menu--popup .el-menu-item {
|
|
|
|
|
|
background-color: white !important;
|
|
|
|
|
|
}
|
|
|
|
|
|
.nz-submenu .el-menu--popup-bottom-start {
|
|
|
|
|
|
margin-top: 0;
|
2020-01-02 18:13:01 +08:00
|
|
|
|
box-shadow: 0 2px 2px 0 rgba(0,0,0,.2);
|
2019-12-26 16:31:53 +08:00
|
|
|
|
}
|
2019-12-27 17:53:17 +08:00
|
|
|
|
|
2019-12-26 16:31:53 +08:00
|
|
|
|
.nz-submenu.el-menu--horizontal .el-menu .el-menu-item {
|
|
|
|
|
|
color: #444444 !important;
|
|
|
|
|
|
transition: none;
|
|
|
|
|
|
}
|
2019-12-27 17:53:17 +08:00
|
|
|
|
|
2020-01-17 18:19:22 +08:00
|
|
|
|
.nz-submenu.el-menu--horizontal {
|
2020-01-13 21:42:14 +08:00
|
|
|
|
color: $global-text-color-active !important;
|
2019-12-26 16:31:53 +08:00
|
|
|
|
}
|
2019-12-27 17:53:17 +08:00
|
|
|
|
|
|
|
|
|
|
.el-menu-item > div, .el-menu-item > div > div {
|
2019-12-26 16:31:53 +08:00
|
|
|
|
font-size: 15px;
|
|
|
|
|
|
}
|
|
|
|
|
|
.nz-menu-line {
|
|
|
|
|
|
cursor: default;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
height: 18px !important;
|
|
|
|
|
|
}
|
2019-12-02 16:16:26 +08:00
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
2020-01-15 22:21:19 +08:00
|
|
|
|
.menu-create-title {
|
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
}
|
2019-12-26 16:31:53 +08:00
|
|
|
|
.header {
|
2019-12-02 16:16:26 +08:00
|
|
|
|
position: relative;
|
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
width: 100%;
|
2020-02-14 18:01:48 +08:00
|
|
|
|
height: 50px;
|
2019-12-25 17:15:09 +08:00
|
|
|
|
background-color: #232f3e;
|
2019-12-06 16:43:04 +08:00
|
|
|
|
z-index: 510;
|
2019-12-26 16:31:53 +08:00
|
|
|
|
}
|
2019-12-05 16:48:23 +08:00
|
|
|
|
|
2019-12-26 16:31:53 +08:00
|
|
|
|
.menu-create {
|
2020-02-14 18:01:48 +08:00
|
|
|
|
line-height: 11px;
|
2019-12-26 16:31:53 +08:00
|
|
|
|
text-align: center;
|
2020-02-14 18:01:48 +08:00
|
|
|
|
padding-top: 12px;
|
2019-12-26 16:31:53 +08:00
|
|
|
|
}
|
2019-12-27 17:53:17 +08:00
|
|
|
|
|
2019-12-26 16:31:53 +08:00
|
|
|
|
.menu-create .el-icon-plus {
|
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
line-height: 12px;
|
|
|
|
|
|
}
|
2019-12-27 17:53:17 +08:00
|
|
|
|
|
2019-12-26 17:39:30 +08:00
|
|
|
|
.pop-window-assetType-content {
|
2019-12-27 17:53:17 +08:00
|
|
|
|
padding: 1px 15px 15px 20px;
|
2019-12-26 17:39:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.pop-window {
|
2019-12-27 17:53:17 +08:00
|
|
|
|
height: 370px;
|
|
|
|
|
|
width: 400px;
|
2019-12-26 17:39:30 +08:00
|
|
|
|
}
|
2019-12-27 17:53:17 +08:00
|
|
|
|
|
2019-12-26 17:39:30 +08:00
|
|
|
|
.sidebar-pop-input {
|
2019-12-27 17:53:17 +08:00
|
|
|
|
position: absolute;
|
|
|
|
|
|
right: 50px;
|
|
|
|
|
|
width: 200px;
|
|
|
|
|
|
height: 26px;
|
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
border: 1px solid #DCDFE6;
|
|
|
|
|
|
color: #606266;
|
|
|
|
|
|
display: inline-block;
|
|
|
|
|
|
padding: 0px 15px;
|
2019-12-26 17:39:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar-pop-input-select {
|
2019-12-27 17:53:17 +08:00
|
|
|
|
position: absolute;
|
|
|
|
|
|
right: 83px;
|
|
|
|
|
|
width: 200px;
|
|
|
|
|
|
height: 26px;
|
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
border: 1px solid #DCDFE6;
|
|
|
|
|
|
color: #606266;
|
|
|
|
|
|
display: inline-block;
|
|
|
|
|
|
padding: 0px 15px;
|
2019-12-26 17:39:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.right-box-top-btn {
|
2019-12-27 17:53:17 +08:00
|
|
|
|
border-radius: 0 0 9px 9px;
|
|
|
|
|
|
float: right;
|
|
|
|
|
|
color: #656565;
|
|
|
|
|
|
height: 30px;
|
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
padding: 3px 8px 1px 8px;
|
|
|
|
|
|
border: 1px solid #aaaaaa;
|
|
|
|
|
|
border-top: none;
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
margin-left: 20px;
|
2019-12-26 17:39:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.right-box-bottom-btns {
|
2019-12-27 17:53:17 +08:00
|
|
|
|
position: absolute;
|
|
|
|
|
|
bottom: 0px;
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
text-align: center;
|
2019-12-26 17:39:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.right-box-bottom-btn-cancel {
|
2019-12-27 17:53:17 +08:00
|
|
|
|
background-color: #DADADA;
|
|
|
|
|
|
color: #656565;
|
|
|
|
|
|
width: 50%;
|
|
|
|
|
|
border-bottom-left-radius: 8px;
|
2019-12-26 17:39:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.right-box-top-btn-full {
|
2019-12-27 17:53:17 +08:00
|
|
|
|
background-color: #656565;
|
|
|
|
|
|
border: 1px solid #656565;
|
|
|
|
|
|
border-top: none;
|
|
|
|
|
|
color: white;
|
2019-12-26 17:39:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.right-box-bottom-btn-50 {
|
2019-12-27 17:53:17 +08:00
|
|
|
|
width: 50%;
|
|
|
|
|
|
float: right;
|
|
|
|
|
|
border-bottom-right-radius: 8px;
|
2019-12-26 17:39:30 +08:00
|
|
|
|
}
|
2019-12-05 18:07:58 +08:00
|
|
|
|
</style>
|
2020-01-08 09:16:34 +08:00
|
|
|
|
<style>
|
2020-01-17 18:09:54 +08:00
|
|
|
|
.nz-submenu .menu-edit {
|
2020-01-08 09:16:34 +08:00
|
|
|
|
line-height: 36px;
|
2020-01-17 18:09:54 +08:00
|
|
|
|
position: absolute;
|
|
|
|
|
|
right: 15px;
|
|
|
|
|
|
top: 0;
|
2020-01-08 09:16:34 +08:00
|
|
|
|
}
|
2020-01-17 18:19:22 +08:00
|
|
|
|
.nz-submenu .menu-edit i {
|
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
}
|
|
|
|
|
|
.el-menu-item {
|
|
|
|
|
|
padding: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
.el-menu-item>div {
|
|
|
|
|
|
padding-left: 30px;
|
|
|
|
|
|
}
|
|
|
|
|
|
.el-menu-item>div:hover {
|
|
|
|
|
|
background-color: #eee;
|
|
|
|
|
|
}
|
|
|
|
|
|
.el-menu--horizontal .el-menu .el-menu-item, .el-menu--horizontal .el-menu .el-submenu__title {
|
|
|
|
|
|
padding: 0;
|
|
|
|
|
|
}
|
2020-01-08 09:16:34 +08:00
|
|
|
|
</style>
|