2019-12-02 16:16:26 +08:00
|
|
|
|
<template>
|
2019-12-26 16:31:53 +08:00
|
|
|
|
<div class="header">
|
2020-05-06 15:28:30 +08:00
|
|
|
|
<div class="logo link" @click="jumpTo('overview')"><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
|
2020-03-10 12:16:10 +08:00
|
|
|
|
>
|
2020-07-06 16:06:43 +08:00
|
|
|
|
<el-submenu :index="'-3'" popper-class="nz-submenu" class="icon-menu-item">
|
|
|
|
|
|
<template slot="title">
|
|
|
|
|
|
<i class="nz-icon-navmore nz-icon"></i>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
<template v-for="(item, index) in $store.state.linkData">
|
|
|
|
|
|
<el-menu-item :index="'0-' + index">
|
2020-07-07 13:43:33 +08:00
|
|
|
|
<span class="linkTitle"><a :href='item.url' class="nz-a" target="_blank" :title="item.name">{{item.name}}</a></span>
|
2020-07-06 16:06:43 +08:00
|
|
|
|
</el-menu-item>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-submenu>
|
2020-06-21 17:38:35 +08:00
|
|
|
|
<el-submenu :index="'-1'" class="icon-menu-item" popper-class="display-none">
|
|
|
|
|
|
<div slot="title" class="el-submenu__title" @click="cli()" >
|
2020-03-09 19:47:15 +08:00
|
|
|
|
<i class="nz-icon nz-icon-cli"></i>
|
2020-03-10 12:16:10 +08:00
|
|
|
|
<div class="right-tip" v-show="$store.state.consoleCount>0">{{$store.state.consoleCount<=10?$store.state.consoleCount:'10+'}}</div>
|
2020-03-09 19:47:15 +08:00
|
|
|
|
</div>
|
2020-06-21 17:38:35 +08:00
|
|
|
|
</el-submenu>
|
2020-03-10 12:16:10 +08:00
|
|
|
|
<el-submenu index="0" popper-class="nz-submenu" class="icon-menu-item">
|
2020-01-13 19:04:03 +08:00
|
|
|
|
<template slot="title">
|
2020-06-21 17:38:35 +08:00
|
|
|
|
<i class="nz-icon-create-square nz-icon"></i>
|
2020-01-13 19:04:03 +08:00
|
|
|
|
</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>
|
2020-03-11 12:27:00 +08:00
|
|
|
|
<el-menu-item :index="'-2'" >
|
2020-03-10 12:16:10 +08:00
|
|
|
|
<div class="vertical-line" ></div>
|
|
|
|
|
|
</el-menu-item>
|
2020-01-13 19:04:03 +08:00
|
|
|
|
<el-submenu index="1" popper-class="nz-submenu">
|
|
|
|
|
|
<template slot="title">
|
2020-05-11 17:27:53 +08:00
|
|
|
|
<div @click="jumpTo('overview')" :class ="(activeIndex == 'overview' ||activeIndex == 'panel' || activeIndex == 'explore') ? '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-03-17 18:45:46 +08:00
|
|
|
|
<div @click="jumpTo('overview')" :class="{'menu-item-active' :activeIndex == 'overview'}" >{{$t('dashboard.overview.title')}}</div>
|
2020-01-13 19:04:03 +08:00
|
|
|
|
</el-menu-item>
|
|
|
|
|
|
<el-menu-item index="1-1">
|
2020-03-17 18:45:46 +08:00
|
|
|
|
<div @click="jumpTo('panel')" :class="{'menu-item-active' :activeIndex == 'panel'}" >{{$t('dashboard.panel.title')}}</div>
|
|
|
|
|
|
</el-menu-item>
|
|
|
|
|
|
<el-menu-item index="1-2">
|
2020-04-22 19:45:10 +08:00
|
|
|
|
<div @click="jumpTo('explore')" :class="{'menu-item-active' :activeIndex == 'explore'}">{{$t('dashboard.metricPreview.title')}}</div>
|
|
|
|
|
|
</el-menu-item>
|
2020-01-13 19:04:03 +08:00
|
|
|
|
</el-submenu>
|
|
|
|
|
|
|
|
|
|
|
|
<el-submenu index="2" popper-class="nz-submenu">
|
|
|
|
|
|
<template slot="title">
|
2020-05-13 19:10:01 +08:00
|
|
|
|
<div v-if="projectData.length == 0">{{$t('overall.project')}}</div>
|
|
|
|
|
|
<div v-else @click="jumpToProject(projectData[0], 0)" :class ="activeIndex == 'project' ? 'menu-active' :''" >{{$t('overall.project')}}</div>
|
2020-01-13 19:04:03 +08:00
|
|
|
|
</template>
|
2020-05-13 19:10:01 +08:00
|
|
|
|
<template>
|
2020-05-14 14:44:37 +08:00
|
|
|
|
<el-menu-item v-if="projectData.length == 0" index="2-0"><div @click="createBox({type: 1})"><i class="nz-icon nz-icon-create-square header-dropdown-add"></i> {{$t("overall.createProject")}}</div></el-menu-item>
|
2020-05-13 19:10:01 +08:00
|
|
|
|
<template v-else>
|
2020-05-14 14:44:37 +08:00
|
|
|
|
<el-menu-item :index="'2-' + index" v-for="(item, index) in projectData" :key="index">
|
2020-05-13 19:10:01 +08:00
|
|
|
|
<div @mouseenter="hoverItemIndex = '2-' + index" @mouseleave="hoverItemIndex = ''" @click="jumpToProject(item)" >
|
|
|
|
|
|
<span class="too-long-split" style="width: 135px;">{{item.name}}</span>
|
2020-05-14 14:44:37 +08:00
|
|
|
|
<div v-show="hoverItemIndex == '2-' + index && item.buildIn != 1" @click.stop="toEditProject(item)" class="menu-edit"><i class="nz-icon nz-icon-edit"></i></div>
|
2020-05-13 19:10:01 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</el-menu-item>
|
|
|
|
|
|
</template>
|
2020-01-13 19:04:03 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
</el-submenu>
|
|
|
|
|
|
<el-submenu index="3" popper-class="nz-submenu">
|
|
|
|
|
|
<template slot="title">
|
2020-05-14 14:44:37 +08:00
|
|
|
|
<div v-if="assetData.length == 0">{{$t('overall.asset')}}</div>
|
2020-05-13 19:10:01 +08:00
|
|
|
|
<div v-else @click="jumpTo('asset')" :class="{'menu-active' : activeIndex == 'asset'}">{{$t('overall.asset')}}</div>
|
2020-01-13 19:04:03 +08:00
|
|
|
|
</template>
|
2020-05-13 19:10:01 +08:00
|
|
|
|
<template>
|
2020-05-14 14:44:37 +08:00
|
|
|
|
<el-menu-item v-if="assetData.length == 0" index="3-0"><div @click="createBox({type: 6})"><i class="nz-icon nz-icon-create-square header-dropdown-add"></i> {{$t("overall.createDatacenter")}}</div></el-menu-item>
|
2020-05-13 19:10:01 +08:00
|
|
|
|
<template v-else>
|
2020-05-14 14:44:37 +08:00
|
|
|
|
<el-menu-item :index="'3-' + index" v-for="(item, index) in assetData" :key="index">
|
2020-05-13 19:10:01 +08:00
|
|
|
|
<div @mouseenter="hoverItemIndex = '3-' + index" @mouseleave="hoverItemIndex = ''" @click="jumpToAsset(item.id)" >
|
|
|
|
|
|
<span class="too-long-split" style="width: 130px;">{{item.name}}</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</el-menu-item>
|
|
|
|
|
|
</template>
|
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-04-26 11:26:22 +08:00
|
|
|
|
<div @click="jumpTo('account')" :class ="activeIndex == 'account' || activeIndex == 'promServer' || activeIndex == 'dc' || activeIndex == 'model' || activeIndex == 'mib' || activeIndex == 'system' || activeIndex == 'terminallog' || activeIndex == 'operationlog' ? '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>
|
2020-02-21 17:57:19 +08:00
|
|
|
|
<el-menu-item index="5-2">
|
|
|
|
|
|
<div @click="jumpTo('dc')" :class="{'menu-item-active' :(activeIndex == 'dc' )}">{{$t('config.dc.dc')}}</div>
|
|
|
|
|
|
</el-menu-item>
|
2020-03-11 17:14:33 +08:00
|
|
|
|
<el-menu-item index="5-3">
|
|
|
|
|
|
<div @click="jumpTo('model')" :class="{'menu-item-active' :(activeIndex == 'model' )}">{{$t('config.model.model')}}</div>
|
|
|
|
|
|
</el-menu-item>
|
2020-03-26 19:58:09 +08:00
|
|
|
|
<el-menu-item index="5-4">
|
2020-04-01 20:47:19 +08:00
|
|
|
|
<div @click="jumpTo('mib')" :class="{'menu-item-active' :(activeIndex == 'mib' )}">{{$t('config.mib.mib')}}</div>
|
2020-03-26 19:58:09 +08:00
|
|
|
|
</el-menu-item>
|
2020-03-30 21:09:34 +08:00
|
|
|
|
<el-menu-item index="5-5">
|
2020-04-01 20:47:19 +08:00
|
|
|
|
<div @click="jumpTo('system')" :class="{'menu-item-active' :(activeIndex == 'system' )}">{{$t('config.system.system')}}</div>
|
2020-04-01 14:38:08 +08:00
|
|
|
|
</el-menu-item>
|
|
|
|
|
|
<el-menu-item index="5-6">
|
2020-04-01 20:47:19 +08:00
|
|
|
|
<div @click="jumpTo('terminallog')" :class="{'menu-item-active' :(activeIndex == 'terminallog' )}">{{$t('config.terminallog.terminallog')}}</div>
|
2020-03-30 21:09:34 +08:00
|
|
|
|
</el-menu-item>
|
2020-04-08 22:31:07 +08:00
|
|
|
|
<el-menu-item index="5-7">
|
|
|
|
|
|
<div @click="jumpTo('operationlog')" :class="{'menu-item-active' :(activeIndex == 'operationlog' )}">{{$t('config.operationlog.operationlog')}}</div>
|
|
|
|
|
|
</el-menu-item>
|
2020-01-13 19:04:03 +08:00
|
|
|
|
</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">
|
2020-02-21 17:14:46 +08:00
|
|
|
|
<div @click="showPwdDialog">{{$t('overall.changePwd')}}</div>
|
|
|
|
|
|
</el-menu-item>
|
|
|
|
|
|
<el-menu-item index="6-4">
|
2020-01-13 19:04:03 +08:00
|
|
|
|
<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-20 11:38:23 +08:00
|
|
|
|
<add-endpoint-box :currentProject="currentProject" :currentModule="currentModule" @reload=""
|
|
|
|
|
|
ref="addEndpointBox"></add-endpoint-box>
|
2020-02-26 16:51:32 +08:00
|
|
|
|
<!--<asset-add-unit :add-unit-show='addUnitShow' @refreshData="refreshAsset" ref="assetAddUnit"
|
|
|
|
|
|
@sendStateData="closeAsset"></asset-add-unit>-->
|
2020-07-06 19:49:04 +08:00
|
|
|
|
<asset-box :edit-unit-show='addUnitShow' @refreshData="refreshAsset" @sendStateData="closeAsset" v-if="assetBoxShow"
|
2020-02-26 16:51:32 +08:00
|
|
|
|
ref="assetAddUnit"></asset-box>
|
2020-05-14 14:44:37 +08:00
|
|
|
|
<dc-box ref="dcBox" :dc="currentDc" :user-data="userDatas" @reload="getAssetData"></dc-box>
|
2019-12-26 16:31:53 +08:00
|
|
|
|
<alert-config-box :parentAlertRule="alertRule" @reload="" ref="alertConfigBox"></alert-config-box>
|
2020-02-21 17:14:46 +08:00
|
|
|
|
<change-password :cur-user="username" :show-dialog="showChangePwd" @click="showPwdDialog" @dialogClosed="dialogClosed"></change-password>
|
2019-12-26 16:31:53 +08:00
|
|
|
|
</div>
|
2019-12-02 16:16:26 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
2020-02-11 11:30:56 +08:00
|
|
|
|
import bus from '../../libs/bus';
|
2020-02-21 17:14:46 +08:00
|
|
|
|
import changePwd from "../page/config/changePwd";
|
2019-12-26 16:31:53 +08:00
|
|
|
|
export default {
|
|
|
|
|
|
name: "Header",
|
2020-03-09 19:47:15 +08:00
|
|
|
|
components: {
|
|
|
|
|
|
'change-password':changePwd,
|
|
|
|
|
|
},
|
2019-12-26 16:31:53 +08:00
|
|
|
|
data() {
|
|
|
|
|
|
return {
|
|
|
|
|
|
username: sessionStorage.getItem("nz-username"),
|
2020-03-13 13:35:46 +08:00
|
|
|
|
language: localStorage.getItem("nz-language") ? localStorage.getItem("nz-language") : 'en',
|
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: ''
|
|
|
|
|
|
},
|
2020-05-14 14:44:37 +08:00
|
|
|
|
currentDc: {},
|
2019-12-26 16:31:53 +08:00
|
|
|
|
projectData: [], //顶部菜单project列表中的数据
|
|
|
|
|
|
editProject: {id: '', name: '', remark: ''}, //新增/编辑的project
|
|
|
|
|
|
currentProject: {id: '', name: '', remark: ''}, //module/endpoint弹框用来回显project
|
2020-04-02 20:35:13 +08:00
|
|
|
|
editModule: {id: '', type: 'http', name: '', project: {}, port: '', path: '', param: '', paramObj: []}, //新增/编辑的module
|
2019-12-26 16:31:53 +08:00
|
|
|
|
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-03-12 17:30:29 +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
|
2020-03-12 17:30:29 +08:00
|
|
|
|
},*/
|
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
|
2020-05-14 14:44:37 +08:00
|
|
|
|
},
|
2020-05-28 17:32:23 +08:00
|
|
|
|
// {
|
|
|
|
|
|
// label: this.$t('config.dc.dc'),
|
|
|
|
|
|
// url: 'dc',
|
|
|
|
|
|
// type: 6
|
|
|
|
|
|
// }
|
2019-12-26 17:39:30 +08:00
|
|
|
|
],
|
|
|
|
|
|
addIdcData: {
|
|
|
|
|
|
id: '',
|
|
|
|
|
|
name: '',
|
|
|
|
|
|
location: '',
|
|
|
|
|
|
principal: '',
|
|
|
|
|
|
tel: ''
|
|
|
|
|
|
},
|
|
|
|
|
|
IDCOptionData: [],
|
2020-01-19 18:05:41 +08:00
|
|
|
|
addUnitShow: false,
|
2020-07-06 19:49:04 +08:00
|
|
|
|
assetBoxShow: false,
|
2020-02-21 17:14:46 +08:00
|
|
|
|
userDatas:[],
|
|
|
|
|
|
showChangePwd:false,
|
2019-12-26 16:31:53 +08:00
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
methods: {
|
2020-01-19 18:05:41 +08:00
|
|
|
|
closeAsset() {
|
|
|
|
|
|
this.addUnitShow = false;
|
2020-07-06 19:49:04 +08:00
|
|
|
|
this.assetBoxShow = false;
|
2020-01-19 18:05:41 +08:00
|
|
|
|
},
|
|
|
|
|
|
refreshAsset(flag) {
|
|
|
|
|
|
if (flag && this.$route.path == "/asset") {
|
|
|
|
|
|
window.location.reload();
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
2020-03-09 19:47:15 +08:00
|
|
|
|
cli(){
|
|
|
|
|
|
this.$store.commit('openConsole');
|
|
|
|
|
|
},
|
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-04-26 11:26:22 +08:00
|
|
|
|
this.activeIndex = data;
|
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: '',
|
2020-04-01 21:21:42 +08:00
|
|
|
|
type: '',
|
|
|
|
|
|
paramObj: [],
|
2020-04-02 14:33:46 +08:00
|
|
|
|
snmpParam: '',
|
2020-04-01 21:21:42 +08:00
|
|
|
|
//snmp setting 下划线命名是因为业务需求
|
|
|
|
|
|
walk: [],
|
|
|
|
|
|
version: 2, //2/3
|
|
|
|
|
|
max_repetitions: 25,
|
|
|
|
|
|
retries: 3,
|
|
|
|
|
|
timeout: 10, //s
|
|
|
|
|
|
community: 'public',
|
|
|
|
|
|
username: '',
|
|
|
|
|
|
security_level: 'noAuthNoPriv', //noAuthNoPriv/authNoPriv/authPriv
|
|
|
|
|
|
password: '',
|
|
|
|
|
|
auth_protocol: 'MD5', //MD5/SHA
|
|
|
|
|
|
priv_protocol: 'DES', //DES/AES
|
|
|
|
|
|
priv_password: '',
|
|
|
|
|
|
context_name: ''
|
2019-12-27 17:53:17 +08:00
|
|
|
|
};
|
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) {
|
2020-07-06 19:49:04 +08:00
|
|
|
|
this.assetBoxShow = true;
|
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
|
this.addUnitShow = true;
|
|
|
|
|
|
this.$refs.assetAddUnit.resetAsset();
|
|
|
|
|
|
});
|
2020-05-14 14:44:37 +08:00
|
|
|
|
} else if (item.type == 6) {
|
|
|
|
|
|
this.currentDc = {
|
|
|
|
|
|
id: '',
|
|
|
|
|
|
name: '',
|
|
|
|
|
|
location: '',
|
|
|
|
|
|
tel: '',
|
|
|
|
|
|
principal: '',
|
|
|
|
|
|
area: {
|
|
|
|
|
|
id: '',
|
|
|
|
|
|
name: ''
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
this.$refs.dcBox.show(true, 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);
|
2020-02-26 15:38:56 +08:00
|
|
|
|
this.activeItemIndexes=[];//2020-02-25 修改为单选
|
|
|
|
|
|
this.activeItemIndexes.push(id);
|
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
|
|
|
|
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() {
|
2020-04-15 19:40:09 +08:00
|
|
|
|
this.$get('idc', {pageSize:-1}).then(response => {
|
2019-12-26 16:31:53 +08:00
|
|
|
|
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-03-13 11:06:54 +08:00
|
|
|
|
if (lang != localStorage.getItem("nz-language")) {
|
2020-03-12 18:04:04 +08:00
|
|
|
|
localStorage.setItem("nz-language", lang);
|
2020-02-19 15:16:38 +08:00
|
|
|
|
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() {
|
2020-04-15 19:40:09 +08:00
|
|
|
|
this.$get('project', {pageSize:-1}).then(response => {
|
2019-12-26 16:31:53 +08:00
|
|
|
|
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);
|
|
|
|
|
|
},
|
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() {
|
2020-03-13 11:06:54 +08:00
|
|
|
|
this.language = localStorage.getItem("nz-language");
|
2020-02-19 15:16:38 +08:00
|
|
|
|
this.$i18n.locale = this.language;
|
2020-04-06 22:11:25 +08:00
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
|
window.location.reload();
|
|
|
|
|
|
});
|
2020-02-21 17:14:46 +08:00
|
|
|
|
},
|
|
|
|
|
|
showPwdDialog:function(){
|
|
|
|
|
|
this.showChangePwd=true;
|
|
|
|
|
|
},
|
|
|
|
|
|
dialogClosed:function(){
|
|
|
|
|
|
this.showChangePwd=false;
|
2020-02-25 18:08:03 +08:00
|
|
|
|
},
|
|
|
|
|
|
cancel: function() {
|
|
|
|
|
|
this.activeIndex = this.$route.path.slice(1, this.$route.path.length);
|
|
|
|
|
|
console.info(this.activeIndex)
|
|
|
|
|
|
//this.$router.go(-1);
|
|
|
|
|
|
},
|
2020-07-06 16:06:43 +08:00
|
|
|
|
getLinkData(){
|
|
|
|
|
|
console.log('aaa');
|
|
|
|
|
|
this.$get('link').then(response=>{
|
|
|
|
|
|
console.log(response);
|
|
|
|
|
|
// this.linkData=response.data;
|
|
|
|
|
|
this.$store.commit('setLinkData',response.data);
|
|
|
|
|
|
console.log(this.$store)
|
|
|
|
|
|
});
|
|
|
|
|
|
},
|
2019-12-02 16:16:26 +08:00
|
|
|
|
},
|
2019-12-26 16:31:53 +08:00
|
|
|
|
mounted() {
|
2020-03-13 13:35:46 +08:00
|
|
|
|
this.$i18n.locale = this.language;
|
2019-12-26 17:39:30 +08:00
|
|
|
|
this.getUserData();
|
2019-12-26 16:31:53 +08:00
|
|
|
|
this.getAssetData();
|
|
|
|
|
|
this.getProjectList();
|
2020-07-06 16:06:43 +08:00
|
|
|
|
this.getLinkData();
|
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();
|
2020-04-06 22:11:25 +08:00
|
|
|
|
this.activeIndex = 'overview';
|
2020-02-19 15:16:38 +08:00
|
|
|
|
});
|
2020-02-25 18:08:03 +08:00
|
|
|
|
|
|
|
|
|
|
if (window.history && window.history.pushState) {
|
|
|
|
|
|
history.pushState(null, null, document.URL);
|
|
|
|
|
|
window.addEventListener('popstate', this.cancel, false);
|
2020-07-06 16:06:43 +08:00
|
|
|
|
};
|
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
|
|
|
|
},
|
2020-04-16 19:25:29 +08:00
|
|
|
|
currentProjectWatch(){
|
|
|
|
|
|
return this.$store.state.currentProject;
|
|
|
|
|
|
}
|
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();
|
2020-04-16 19:25:29 +08:00
|
|
|
|
},
|
|
|
|
|
|
currentProjectWatch(n,o){
|
|
|
|
|
|
this.currentProject=n;
|
|
|
|
|
|
this.activeItemIndex=n.id;
|
2020-07-06 16:06:43 +08:00
|
|
|
|
},
|
2020-02-25 18:08:03 +08:00
|
|
|
|
},
|
|
|
|
|
|
destroyed() {
|
|
|
|
|
|
window.removeEventListener('popstate', this.cancel, false);
|
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 {
|
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
|
|
|
|
}
|
2020-03-10 12:16:10 +08:00
|
|
|
|
.header .el-menu--horizontal>.icon-menu-item .el-submenu__title {
|
|
|
|
|
|
min-width: 50px !important;
|
2020-06-21 17:38:35 +08:00
|
|
|
|
line-height: 46px;
|
2020-03-10 12:16:10 +08:00
|
|
|
|
/*margin-right:20px;*/
|
|
|
|
|
|
}
|
|
|
|
|
|
.header .vertical-line{
|
|
|
|
|
|
display:inline-block;
|
2020-03-11 19:16:23 +08:00
|
|
|
|
border-left:solid 1px white;
|
2020-03-10 12:16:10 +08:00
|
|
|
|
line-height:30px !important;
|
|
|
|
|
|
height:30px !important;
|
|
|
|
|
|
min-width:0px !important;
|
|
|
|
|
|
color:white;
|
|
|
|
|
|
margin-right: 8px;
|
|
|
|
|
|
margin-left: 8px;
|
|
|
|
|
|
margin-top: -8px;
|
|
|
|
|
|
}
|
|
|
|
|
|
.header .vertical-line:hover{
|
|
|
|
|
|
cursor:default !important;
|
|
|
|
|
|
}
|
2020-03-09 19:47:15 +08:00
|
|
|
|
/* top el-menu-item sytle------start*/
|
|
|
|
|
|
.header .el-menu--horizontal>.el-menu-item {
|
|
|
|
|
|
height: 50px;
|
|
|
|
|
|
}
|
|
|
|
|
|
.header .el-menu--horizontal>.el-menu-item >div {
|
2020-03-10 12:16:10 +08:00
|
|
|
|
min-width: 50px;
|
2020-03-09 19:47:15 +08:00
|
|
|
|
text-align: center;
|
|
|
|
|
|
/*color:$header-text-color;*/
|
|
|
|
|
|
padding: 0;
|
|
|
|
|
|
height: 50px;
|
2020-05-20 10:00:10 +08:00
|
|
|
|
line-height: 51px;
|
2020-03-09 19:47:15 +08:00
|
|
|
|
}
|
|
|
|
|
|
.header .el-menu--horizontal>.el-menu-item i {
|
|
|
|
|
|
color: $header-text-color;
|
|
|
|
|
|
}
|
|
|
|
|
|
.header .el-menu--horizontal>.el-menu-item>div {
|
|
|
|
|
|
padding-left: 0px !important;
|
|
|
|
|
|
}
|
|
|
|
|
|
.header .el-menu--horizontal>.el-menu-item>div:hover {
|
|
|
|
|
|
background-color: $header-background-color-hover !important;
|
|
|
|
|
|
}
|
|
|
|
|
|
.header .el-menu--horizontal>.el-menu-item:not(.is-disabled):focus, .header .el-menu--horizontal>.el-menu-item:not(.is-disabled):hover {
|
|
|
|
|
|
background-color:transparent !important;
|
|
|
|
|
|
}
|
2020-03-10 12:16:10 +08:00
|
|
|
|
.header .right-tip{
|
|
|
|
|
|
vertical-align:middle;
|
|
|
|
|
|
line-height: 15px;
|
|
|
|
|
|
font-size:6px;
|
2020-03-11 19:16:23 +08:00
|
|
|
|
background-color:#ba3939;
|
|
|
|
|
|
opacity:0.9;
|
2020-03-10 12:16:10 +08:00
|
|
|
|
border-radius:7px;
|
|
|
|
|
|
min-width:25px;
|
|
|
|
|
|
height:15px;
|
|
|
|
|
|
position:absolute;
|
|
|
|
|
|
left: 25px;
|
|
|
|
|
|
bottom: 27px;
|
2020-03-11 19:16:23 +08:00
|
|
|
|
color:white;
|
2020-03-10 12:16:10 +08:00
|
|
|
|
}
|
2020-03-09 19:47:15 +08:00
|
|
|
|
/* top el-menu-item sytle------end*/
|
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;
|
|
|
|
|
|
}
|
2020-05-14 14:44:37 +08:00
|
|
|
|
.header-dropdown-add {
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
left: 14px;
|
|
|
|
|
|
top: 1px;
|
|
|
|
|
|
}
|
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;
|
|
|
|
|
|
}
|
2020-07-06 16:06:43 +08:00
|
|
|
|
a.nz-a{
|
|
|
|
|
|
color: inherit;
|
|
|
|
|
|
text-decoration:none;
|
|
|
|
|
|
}
|
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
|
|
|
|
}
|
2020-07-07 09:47:32 +08:00
|
|
|
|
.linkTitle{
|
|
|
|
|
|
display: inline-block;
|
2020-07-07 13:43:33 +08:00
|
|
|
|
width: 200px;
|
2020-07-07 09:47:32 +08:00
|
|
|
|
font-size: 15px;
|
|
|
|
|
|
color: #444444;
|
|
|
|
|
|
}
|
|
|
|
|
|
.linkTitle:hover{
|
|
|
|
|
|
background-color: #eee;
|
|
|
|
|
|
}
|
|
|
|
|
|
.linkTitle>a{
|
|
|
|
|
|
display: inline-block;
|
2020-07-07 13:43:33 +08:00
|
|
|
|
width: 150px;
|
2020-07-07 09:47:32 +08:00
|
|
|
|
padding-left: 35px;
|
2020-07-07 13:43:33 +08:00
|
|
|
|
padding-right: 15px;
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
|
white-space: nowrap;
|
2020-07-07 09:47:32 +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>
|