perf: 周五李娜文档除mibbrowser外的调整内容
This commit is contained in:
@@ -49,3 +49,4 @@ $suspended-color: #9e9c98; //全局停用色灰色
|
|||||||
$left-menu-bgcolor:#FFF;
|
$left-menu-bgcolor:#FFF;
|
||||||
|
|
||||||
@import './main.scss';
|
@import './main.scss';
|
||||||
|
/*@import './table.scss';*/
|
||||||
|
|||||||
@@ -851,13 +851,6 @@ li{
|
|||||||
.nz-table + .to-top-is-hover{
|
.nz-table + .to-top-is-hover{
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
revogr-header .data-header-cell .resizable:hover {
|
|
||||||
background-color: #ccc !important;
|
|
||||||
width: 6px;
|
|
||||||
}
|
|
||||||
revo-grid[theme=compact] revogr-viewport revogr-header .data-header-cell {
|
|
||||||
border-right: 1px solid #eee;
|
|
||||||
}
|
|
||||||
|
|
||||||
.nz-table + .to-top-is-hover:hover{
|
.nz-table + .to-top-is-hover:hover{
|
||||||
display: block;
|
display: block;
|
||||||
@@ -936,33 +929,7 @@ revo-grid[theme=compact] revogr-viewport revogr-header .data-header-cell {
|
|||||||
padding:2px 5px;
|
padding:2px 5px;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
}
|
}
|
||||||
.data-cell {
|
|
||||||
font-size: 12px;
|
|
||||||
}
|
|
||||||
.data-cell .danger {
|
|
||||||
background-color: $danger-color;
|
|
||||||
color: white;
|
|
||||||
padding:2px 5px;
|
|
||||||
border-radius: 4px;
|
|
||||||
}
|
|
||||||
.data-cell .success {
|
|
||||||
background-color: $success-color;
|
|
||||||
color: white;
|
|
||||||
padding:2px 5px;
|
|
||||||
border-radius: 4px;
|
|
||||||
}
|
|
||||||
.data-cell .suspended {
|
|
||||||
background-color: $suspended-color;
|
|
||||||
color: white;
|
|
||||||
padding:2px 5px;
|
|
||||||
border-radius: 4px;
|
|
||||||
}
|
|
||||||
.data-cell .warning {
|
|
||||||
background-color: $warning-color;
|
|
||||||
color: white;
|
|
||||||
padding:2px 5px;
|
|
||||||
border-radius: 4px;
|
|
||||||
}
|
|
||||||
.nz-table th {
|
.nz-table th {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
@@ -1912,6 +1879,44 @@ revo-grid[theme=compact] revogr-viewport revogr-header .data-header-cell {
|
|||||||
background-color: rgba(255, 99, 71, .85);
|
background-color: rgba(255, 99, 71, .85);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.el-message-box__wrapper {
|
||||||
|
.el-message-box__status.el-icon-warning {
|
||||||
|
color: #ef775e !important;
|
||||||
|
}
|
||||||
|
.el-message-box__headerbtn:focus .el-message-box__close, .el-message-box__headerbtn:hover .el-message-box__close {
|
||||||
|
color: $global-text-color-active;
|
||||||
|
}
|
||||||
|
.el-message-box__container {
|
||||||
|
display: flex;
|
||||||
|
min-height: 60px;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-message-box__btns {
|
||||||
|
.el-button:not(.el-button--primary):focus{
|
||||||
|
color: #606266;
|
||||||
|
}
|
||||||
|
.el-button:not(.el-button--primary):hover {
|
||||||
|
color: #606266;
|
||||||
|
opacity: .8;
|
||||||
|
border-color: #DCDFE6;
|
||||||
|
background-color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-button--primary {
|
||||||
|
box-shadow: none;
|
||||||
|
background-color: $global-text-color-active;
|
||||||
|
}
|
||||||
|
.el-button--primary:focus{
|
||||||
|
background-color: $global-text-color-active;
|
||||||
|
}
|
||||||
|
.el-button--primary:hover {
|
||||||
|
background-color: $global-text-color-active;
|
||||||
|
opacity: .8;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*滚动条相关, 11px/8px/5px, 默认8px*/
|
/*滚动条相关, 11px/8px/5px, 默认8px*/
|
||||||
.ps__rail-y:hover > .ps__thumb-y,
|
.ps__rail-y:hover > .ps__thumb-y,
|
||||||
.ps__rail-y:focus > .ps__thumb-y,
|
.ps__rail-y:focus > .ps__thumb-y,
|
||||||
@@ -2423,3 +2428,4 @@ revo-grid[theme=compact] revogr-viewport revogr-header .data-header-cell {
|
|||||||
/deep/ .el-input-number .el-input__inner{
|
/deep/ .el-input-number .el-input__inner{
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -278,7 +278,7 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
.chartTitle:hover {
|
.chartTitle:hover {
|
||||||
background-color:#d8dce1;
|
background-color:#efefef;
|
||||||
}
|
}
|
||||||
//.chartTitle:not(.drag-disabled) {
|
//.chartTitle:not(.drag-disabled) {
|
||||||
// cursor: move;
|
// cursor: move;
|
||||||
@@ -299,7 +299,7 @@
|
|||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
.chart-title-text {
|
.chart-title-text {
|
||||||
font-size: 16px;
|
font-size: 14px;
|
||||||
line-height: 26px;
|
line-height: 26px;
|
||||||
color: #52545c;
|
color: #52545c;
|
||||||
display:flex;
|
display:flex;
|
||||||
@@ -494,12 +494,12 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
.chartTitle:hover {
|
.chartTitle:hover {
|
||||||
background-color:#d8dce1;
|
background-color:#efefef;
|
||||||
}
|
}
|
||||||
.chartTitle {
|
.chartTitle {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
line-height: 30px;
|
line-height: 20px;
|
||||||
height: 28px;
|
height: 28px;
|
||||||
padding: 1px 3px 0 3px;
|
padding: 1px 3px 0 3px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
@@ -513,7 +513,7 @@
|
|||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
.chart-title {
|
.chart-title {
|
||||||
font-size: 16px;
|
font-size: 14px;
|
||||||
line-height: 26px;
|
line-height: 26px;
|
||||||
color: #52545c;
|
color: #52545c;
|
||||||
display:flex;
|
display:flex;
|
||||||
|
|||||||
@@ -54,6 +54,9 @@
|
|||||||
width: 100px;
|
width: 100px;
|
||||||
margin: 0 20px 0 0;
|
margin: 0 20px 0 0;
|
||||||
}
|
}
|
||||||
|
.chart-unit .el-input__suffix-inner {
|
||||||
|
color: #aaa;
|
||||||
|
}
|
||||||
.unit-pop-class .el-cascader-panel{
|
.unit-pop-class .el-cascader-panel{
|
||||||
height: 200px;
|
height: 200px;
|
||||||
background-color: #FFF;
|
background-color: #FFF;
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
name: "deleteButton",
|
name: "deleteButton",
|
||||||
props:{
|
props:{
|
||||||
filterFunction:Function,
|
filterFunction:Function,
|
||||||
deleteObjs:Array,
|
deleteObjs: Object,
|
||||||
api:String,
|
api:String,
|
||||||
clickFunction:Function,
|
clickFunction:Function,
|
||||||
id:String
|
id:String
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<div class="interval-refresh ">
|
<div class="interval-refresh ">
|
||||||
<time-picker v-if="showTimePicker" ref="timePicker" class="time-picker" @change="dateChange" :default-pick="defaultPick" :show-empty="showEmpty" v-model="this.searchTime"></time-picker>
|
<time-picker v-if="showTimePicker" ref="timePicker" class="time-picker" @change="dateChange" :default-pick="defaultPick" :show-empty="showEmpty" v-model="this.searchTime"></time-picker>
|
||||||
<chart-unit v-model="unit" v-if="useChartUnit"></chart-unit>
|
<chart-unit v-model="unit" v-if="useChartUnit"></chart-unit>
|
||||||
<div class="nz-btn-group nz-btn-group-size-normal nz-btn-group-light margin-r-20" v-show="useRefresh" style="vertical-align: middle;">
|
<div class="nz-btn-group nz-btn-group-size-normal nz-btn-group-light margin-r-20" style="height: 24px;line-height: 24px;vertical-align: middle;" v-show="useRefresh">
|
||||||
<button style="border-right: 1px solid rgba(162,162,162,0.50);" type="button" class="nz-btn nz-btn-size-normal nz-btn-style-light" @click="refreshDataFunc" :id="id+'-refresh'">
|
<button style="border-right: 1px solid rgba(162,162,162,0.50);" type="button" class="nz-btn nz-btn-size-normal nz-btn-style-light" @click="refreshDataFunc" :id="id+'-refresh'">
|
||||||
<i style="font-size: 14px" class="global-active-color nz-icon nz-icon-refresh"></i>
|
<i style="font-size: 14px" class="global-active-color nz-icon nz-icon-refresh"></i>
|
||||||
<span class="nz-btn nz-btn-text" ><slot name="added-text"></slot></span>
|
<span class="nz-btn nz-btn-text" ><slot name="added-text"></slot></span>
|
||||||
@@ -14,7 +14,7 @@
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<button type="button" style="border-radius: 0 4px 4px 0;padding:0px;" class="nz-btn nz-btn-size-normal nz-btn-style-light" slot="reference">
|
<button type="button" style="border-radius: 0 4px 4px 0;padding:0px;" class="nz-btn nz-btn-size-normal nz-btn-style-light" slot="reference">
|
||||||
<span class="nz-btn nz-btn-text">{{interval.value != -1 ? interval.label : ''}}</span><i style="font-size: 14px" class="nz-icon nz-icon-arrow-down"></i>
|
<span class="nz-btn nz-btn-text" style="padding-left: 10px;" v-if="interval.value && interval.value != -1">{{interval.label}}</span><i class="nz-icon nz-icon-arrow-down" style="font-size: 14px"></i>
|
||||||
</button>
|
</button>
|
||||||
</el-popover>
|
</el-popover>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -274,7 +274,7 @@
|
|||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
.chart-title-text {
|
.chart-title-text {
|
||||||
font-size: 16px;
|
font-size: 14px;
|
||||||
line-height: 26px;
|
line-height: 26px;
|
||||||
color: #52545c;
|
color: #52545c;
|
||||||
display:flex;
|
display:flex;
|
||||||
|
|||||||
@@ -5,12 +5,12 @@
|
|||||||
<div class="right-box-title">{{$t('config.dc.traffic.title')}}</div>
|
<div class="right-box-title">{{$t('config.dc.traffic.title')}}</div>
|
||||||
<!-- end--标题-->
|
<!-- end--标题-->
|
||||||
<div class="right-box-form-box">
|
<div class="right-box-form-box">
|
||||||
<el-form class="right-box-form" :model="traffic" label-width="100px" label-position="left" ref="trafficForm">
|
<el-form :model="traffic" class="right-box-form" label-position="top" label-width="100px" ref="trafficForm">
|
||||||
<el-form-item :label="$t('config.dc.dc')" size="small">
|
<el-form-item :label="$t('config.dc.dc')" size="small">
|
||||||
<el-input :disabled="true" v-model="dc.name" id="traffic-setting-name"></el-input>
|
<el-input :disabled="true" v-model="dc.name" id="traffic-setting-name"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<traffic-setting-tab ref="trafficSetting" :post-asset-list="assetList" v-for="(item,index) in traffic.setting" :index="index" :asset-setting="item" :key="uuids[index]" :id="uuids[index]" @delSelf="delAssetSetting" :validate-repeat-func="valiateRepeatFunc"></traffic-setting-tab>
|
<traffic-setting-tab ref="trafficSetting" :post-asset-list="assetList" v-for="(item,index) in traffic.setting" :index="index" :asset-setting="item" :key="uuids[index]" :id="uuids[index]" @delSelf="delAssetSetting" :validate-repeat-func="valiateRepeatFunc"></traffic-setting-tab>
|
||||||
<button type="button" @click="addAssetSetting" class="nz-btn nz-btn-size-normal-new nz-btn-style-light-new" style="margin:5px 1px 5px 70px" id="traffic-setting-add">{{$t('config.dc.traffic.add')}}</button>
|
<button @click="addAssetSetting" class="nz-btn nz-btn-size-normal-new nz-btn-style-light-new" id="traffic-setting-add" style="margin:15px 1px 15px 15px" type="button">{{$t('config.dc.traffic.add')}}</button>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -1,24 +1,24 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="asset-config-tab">
|
<div class="asset-config-tab">
|
||||||
<el-form-item :label="$t('asset.asset')" size="small" class="right-box-form-content" ref="assetConfigForm" label-width="90px">
|
<div class="asset-item">
|
||||||
<!--<el-select class="right-box-row-with-btn" clearable @clear="clearAssetInput" v-model="assetSetting.assetId" @change="assetChanged" popper-class="no-style-class" :class="{'input-error':assetValidate}">
|
<span class="asset-item--label">{{$t("asset.asset")}}</span>
|
||||||
<el-option v-for="(item,index) in assetList" :label="item.host" :disabled="item.isOccupy" :value="item.id" :key="item.host+'-'+item.id"></el-option>
|
<div class="asset-item--input">
|
||||||
</el-select>-->
|
<el-autocomplete
|
||||||
<el-autocomplete
|
:class="{'input-error':hostInvalid || hostRepeat}"
|
||||||
id="traffic-setting-asset"
|
:debounce="1000"
|
||||||
clearable
|
:fetch-suggestions="queryAssetHosts"
|
||||||
:class="{'input-error':hostInvalid || hostRepeat}"
|
:highlight-first-item="true"
|
||||||
class="asset-input right-box-row-with-btn"
|
:trigger-on-focus="false"
|
||||||
v-model="assetSetting.host"
|
@blur="validateHostEmpty"
|
||||||
popper-class="no-style-class"
|
@input="hostInputChange"
|
||||||
:fetch-suggestions="queryAssetHosts"
|
class="asset-input right-box-row-with-btn"
|
||||||
:debounce="1000"
|
clearable
|
||||||
:trigger-on-focus="false"
|
id="traffic-setting-asset"
|
||||||
:highlight-first-item="true"
|
popper-class="no-style-class"
|
||||||
@input="hostInputChange"
|
size="small"
|
||||||
@blur="validateHostEmpty"
|
v-model="assetSetting.host"
|
||||||
></el-autocomplete><el-popover
|
></el-autocomplete>
|
||||||
@hide="popHide" @show="popShow" placement="bottom" popper-class="no-style-class" trigger="click">
|
<el-popover @hide="popHide" @show="popShow" placement="bottom" popper-class="no-style-class" trigger="click">
|
||||||
<div class="mib-browser-ad-search">
|
<div class="mib-browser-ad-search">
|
||||||
<el-row class="mib-browser-ad-search-item" style="font-weight: bold">{{$t('config.dc.traffic.snmpSetting')}}</el-row>
|
<el-row class="mib-browser-ad-search-item" style="font-weight: bold">{{$t('config.dc.traffic.snmpSetting')}}</el-row>
|
||||||
<el-row class="mib-browser-ad-search-item">
|
<el-row class="mib-browser-ad-search-item">
|
||||||
@@ -113,20 +113,14 @@
|
|||||||
<i class="el-icon-more"></i>
|
<i class="el-icon-more"></i>
|
||||||
</button>
|
</button>
|
||||||
</el-popover>
|
</el-popover>
|
||||||
<span @click="delSelf" class="right-box-form-minus-box" id="traffic-setting-delself"
|
|
||||||
style="vertical-align: middle;right: 0;
|
|
||||||
position: absolute;
|
|
||||||
line-height: 21px;
|
|
||||||
height: 21px;
|
|
||||||
top: 50%;
|
|
||||||
transform: translateY(-50%);"
|
|
||||||
><i class="nz-icon nz-icon-minus"></i></span>
|
|
||||||
<div>
|
|
||||||
<span style="color:#F56C6C;font-size: 12px;" v-if="hostRepeat">{{$t('validate.repeat')}}</span>
|
|
||||||
<span style="color:#F56C6C;font-size: 12px;" v-if="hostInvalid">{{$t('validate.host')}}</span>
|
|
||||||
<span style="color:#F56C6C;font-size: 12px;" v-if="hostEmpty">{{$t('validate.required')}}</span>
|
|
||||||
</div>
|
</div>
|
||||||
</el-form-item>
|
<span @click="delSelf" class="asset-item--btn right-box-form-minus-box" id="traffic-setting-delself"><i class="nz-icon nz-icon-minus"></i></span>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<span style="color:#F56C6C;font-size: 12px;" v-if="hostRepeat">{{$t('validate.repeat')}}</span>
|
||||||
|
<span style="color:#F56C6C;font-size: 12px;" v-if="hostInvalid">{{$t('validate.host')}}</span>
|
||||||
|
<span style="color:#F56C6C;font-size: 12px;" v-if="hostEmpty">{{$t('validate.required')}}</span>
|
||||||
|
</div>
|
||||||
<div class="endpoints-box-endpoints" style="border: 1px solid #E7EAED;border-radius: 2px;padding-bottom: 10px">
|
<div class="endpoints-box-endpoints" style="border: 1px solid #E7EAED;border-radius: 2px;padding-bottom: 10px">
|
||||||
<el-table :data="assetSetting.configs"
|
<el-table :data="assetSetting.configs"
|
||||||
tooltip-effect="light"
|
tooltip-effect="light"
|
||||||
@@ -145,31 +139,16 @@
|
|||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
v-for="(item, index) in tableLabels"
|
v-for="(item, index) in tableLabels"
|
||||||
:width="item.width"
|
:width="item.width"
|
||||||
align="center"
|
|
||||||
:key="`col-${index}`"
|
:key="`col-${index}`"
|
||||||
style="max-height: 200px"
|
style="max-height: 200px"
|
||||||
>
|
>
|
||||||
<template slot="header">
|
<template slot="header">
|
||||||
<span v-if="item.required == true"><span style="color: red;">*</span>{{item.label}}</span>
|
<span v-if="item.required == true"><span style="color: red;">*</span><span style="padding-left: 6px;">{{item.label}}</span></span>
|
||||||
<span v-else>{{item.label}}</span>
|
<span v-else>{{item.label}}</span>
|
||||||
</template>
|
</template>
|
||||||
<template slot-scope="scope" :column="item">
|
<template slot-scope="scope" :column="item">
|
||||||
<template v-if="item.prop == 'tags'">
|
<template v-if="item.prop == 'tags'">
|
||||||
<div class="tab-tags" @click="showEditTagsBox(true,scope.$index,scope.row,$event)" id="traffic-setting-show-tags">
|
<div class="tab-tags" @click="showEditTagsBox(true,scope.$index,scope.row,$event)" id="traffic-setting-show-tags">
|
||||||
<!--<el-scrollbar style="height: 100%;">
|
|
||||||
<el-tag
|
|
||||||
v-for="(value, key, index) in scope.row[item.prop]"
|
|
||||||
class="tab-tags"
|
|
||||||
size="mini"
|
|
||||||
:key="key"
|
|
||||||
style="display: block;margin-bottom:5px;" >
|
|
||||||
<!– <div class="tab-tags-item">–>
|
|
||||||
<!– <div class="tag-item-key">{{key}}:</div><div class="tag-item-value">{{value}}</div>–>
|
|
||||||
|
|
||||||
<!– </div>–>
|
|
||||||
{{key}}:{{value}}
|
|
||||||
</el-tag>
|
|
||||||
</el-scrollbar>-->
|
|
||||||
<el-tooltip placement="top" effect="light" popper-class="tags-pop transparent-pop">
|
<el-tooltip placement="top" effect="light" popper-class="tags-pop transparent-pop">
|
||||||
<div slot="content">
|
<div slot="content">
|
||||||
<template v-if="scope.row[item.prop]">
|
<template v-if="scope.row[item.prop]">
|
||||||
@@ -190,9 +169,6 @@
|
|||||||
<template v-if="item.prop == 'ifindex'">
|
<template v-if="item.prop == 'ifindex'">
|
||||||
<span v-if="scope.row.edit==false">{{scope.row[item.prop]}}</span>
|
<span v-if="scope.row.edit==false">{{scope.row[item.prop]}}</span>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<!-- <el-select v-model="scope.row[item.prop]" :disabled="assetSetting.host == null" size="mini" popper-class="no-style-class" @change="ifIndexChange(scope.row[item.prop],scope.row)" :class="{'input-error':isError(item.errRows,scope.$index),'transparent-pop':assetSetting.host == null}">-->
|
|
||||||
<!-- <el-option v-for="(item,index) in ifIndexList" :label="item.label" :value="item.value" :key="item.value" :disabled="item.isOccupy"></el-option>-->
|
|
||||||
<!-- </el-select>-->
|
|
||||||
<el-autocomplete
|
<el-autocomplete
|
||||||
v-model="scope.row[item.prop]"
|
v-model="scope.row[item.prop]"
|
||||||
:class="{'input-error':isError(item.errRows,scope.$index)||ifIndexError,'transparent-pop':assetSetting.host == ''}"
|
:class="{'input-error':isError(item.errRows,scope.$index)||ifIndexError,'transparent-pop':assetSetting.host == ''}"
|
||||||
@@ -207,10 +183,6 @@
|
|||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="item.prop == 'ifdescr'">
|
<template v-if="item.prop == 'ifdescr'">
|
||||||
<!--<span v-if="scope.row.edit==false">{{scope.row[item.prop]}}</span>
|
|
||||||
<template v-else>
|
|
||||||
<el-input v-model="scope.row[item.prop]" size="small" clearable></el-input>
|
|
||||||
</template>-->
|
|
||||||
<span>{{scope.row[item.prop]}}</span>
|
<span>{{scope.row[item.prop]}}</span>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="item.prop == 'direction'">
|
<template v-if="item.prop == 'direction'">
|
||||||
@@ -221,8 +193,8 @@
|
|||||||
<template v-else>
|
<template v-else>
|
||||||
<el-checkbox-group :disabled="assetSetting.host == null" v-model="scope.row[item.prop]" class="direction-checkbox" :class="{'input-error':isError(item.errRows,scope.$index),'transparent-pop':assetSetting.host == null}">
|
<el-checkbox-group :disabled="assetSetting.host == null" v-model="scope.row[item.prop]" class="direction-checkbox" :class="{'input-error':isError(item.errRows,scope.$index),'transparent-pop':assetSetting.host == null}">
|
||||||
<div class="input__inner">
|
<div class="input__inner">
|
||||||
<el-checkbox label="rx">RX</el-checkbox>
|
<el-checkbox label="rx"> RX</el-checkbox>
|
||||||
<el-checkbox label="tx" >TX</el-checkbox>
|
<el-checkbox label="tx" > TX</el-checkbox>
|
||||||
</div>
|
</div>
|
||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
</template>
|
</template>
|
||||||
@@ -231,7 +203,7 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="" :width="40" :show-overflow-tooltip="false">
|
<el-table-column label="" :width="40" :show-overflow-tooltip="false">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span @click.stop="delTabRow(scope.$index,scope.row)" :disabled="assetSetting.host == null" class=".right-box-form-delete" size="mini"><i class="nz-icon nz-icon-minus"></i></span>
|
<span :disabled="assetSetting.host == null" @click.stop="delTabRow(scope.$index,scope.row)" class="right-box-form-delete" size="mini"><i class="nz-icon nz-icon-minus"></i></span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@@ -281,14 +253,14 @@
|
|||||||
{
|
{
|
||||||
label:'ifDescr',
|
label:'ifDescr',
|
||||||
prop:'ifdescr',
|
prop:'ifdescr',
|
||||||
width:100,
|
width:150,
|
||||||
required:false,
|
required:false,
|
||||||
errRows:[],
|
errRows:[],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label:this.$t('config.dc.traffic.direction'),
|
label:this.$t('config.dc.traffic.direction'),
|
||||||
prop:'direction',
|
prop:'direction',
|
||||||
width:100,
|
width:200,
|
||||||
required:true,
|
required:true,
|
||||||
errRows:[],
|
errRows:[],
|
||||||
},
|
},
|
||||||
@@ -612,18 +584,52 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style lang="scss" scoped>
|
||||||
.asset-config-tab{
|
.asset-config-tab {
|
||||||
width: calc(100% - 160px);
|
|
||||||
min-height: 100px;
|
min-height: 100px;
|
||||||
max-height: 400px;
|
max-height: 400px;
|
||||||
border: 1px solid lightgrey;
|
border: 1px solid #E4E7ED;;
|
||||||
border-radius: 5px;
|
border-radius: 2px;
|
||||||
padding:18px 50px 25px 40px;
|
|
||||||
margin: 0;
|
|
||||||
margin-bottom: 10px;
|
|
||||||
margin-left: 70px;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
|
margin-left: 15px;
|
||||||
|
margin-top: 18px;
|
||||||
|
padding: 18px 18px 26px 40px;
|
||||||
|
|
||||||
|
.asset-item {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 18px;
|
||||||
|
|
||||||
|
.asset-item--label {
|
||||||
|
color: #666;
|
||||||
|
padding-right: 20px;
|
||||||
|
line-height: 32px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.asset-item--input {
|
||||||
|
display: flex;
|
||||||
|
width: 100%;
|
||||||
|
padding-right: 10px;
|
||||||
|
|
||||||
|
.right-box-row-with-btn {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.asset-item--btn {
|
||||||
|
height: 28px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
line-height: 21px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.endpoints-box-endpoints {
|
||||||
|
width: calc(100% - 39px);
|
||||||
|
|
||||||
|
table.el-table__body {
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.asset-config-tab .add-btn{
|
.asset-config-tab .add-btn{
|
||||||
text-align: center;
|
text-align: center;
|
||||||
@@ -635,17 +641,24 @@
|
|||||||
top: 1px;
|
top: 1px;
|
||||||
left: -1px;
|
left: -1px;
|
||||||
}
|
}
|
||||||
.asset-config-tab .right-box-row-with-btn{
|
|
||||||
width: calc(100% - 69px);
|
|
||||||
}
|
|
||||||
/deep/ .el-table tr:last-child td{
|
/deep/ .el-table tr:last-child td{
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
}
|
}
|
||||||
/deep/ .el-table .traffic-set-table-title{
|
/deep/ .el-table .traffic-set-table-title{
|
||||||
color: #0275b8;
|
color: $global-text-color-active;
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
|
||||||
|
.asset-config-tab .right-box-form-minus-box {
|
||||||
|
background-color: #FEF3F0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.asset-config-tab .right-box-form-minus-box .nz-icon {
|
||||||
|
color: #EF9A87 !important;
|
||||||
|
}
|
||||||
|
|
||||||
.tab-tags{
|
.tab-tags{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 22px;
|
height: 22px;
|
||||||
@@ -684,15 +697,16 @@
|
|||||||
}
|
}
|
||||||
.taffic-setting-tab .el-table__row:hover{
|
.taffic-setting-tab .el-table__row:hover{
|
||||||
.input__inner{
|
.input__inner{
|
||||||
border-color: #F0F0F0;
|
border-color: #c0c4cc;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.input__inner{
|
.input__inner{
|
||||||
border: 1px solid;
|
width: 120px;
|
||||||
border-color: white;
|
height: 30px;
|
||||||
border-radius: 4px;
|
line-height: 30px;
|
||||||
padding-left: 4px;
|
padding-left: 15px;
|
||||||
background-color: white;
|
border-radius: 2px;
|
||||||
|
border: 1px solid #DCDFE6;
|
||||||
}
|
}
|
||||||
.input-error .el-input__inner,.input-error .el-input__inner:hover,.input-error .el-input__inner:focus,
|
.input-error .el-input__inner,.input-error .el-input__inner:hover,.input-error .el-input__inner:focus,
|
||||||
.input-error .input__inner,.input-error .input__inner:hover,.input-error .input__inner:focus {
|
.input-error .input__inner,.input-error .input__inner:hover,.input-error .input__inner:focus {
|
||||||
|
|||||||
@@ -67,6 +67,11 @@
|
|||||||
.panel-time-picker-popper .el-picker-panel__footer button:nth-child(1){
|
.panel-time-picker-popper .el-picker-panel__footer button:nth-child(1){
|
||||||
display:none;
|
display:none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.dropdown--suffix {
|
||||||
|
padding: 0 8px;
|
||||||
|
color: #aaa;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
<template>
|
<template>
|
||||||
<div class="calendar top-tools" id="panel-calender">
|
<div class="calendar top-tools" id="panel-calender">
|
||||||
@@ -108,7 +113,9 @@
|
|||||||
<div class="el-dropdown-link" slot="reference">
|
<div class="el-dropdown-link" slot="reference">
|
||||||
<i class="nz-icon nz-icon-time" style="width:20px;"></i>
|
<i class="nz-icon nz-icon-time" style="width:20px;"></i>
|
||||||
<span class="panel-list-title" id="timePickerContent">{{showTime.text}}</span>
|
<span class="panel-list-title" id="timePickerContent">{{showTime.text}}</span>
|
||||||
<i class="nz-icon nz-icon-arrow-down" style="padding-left:0px !important;width:20px;"></i>
|
<span class="dropdown--suffix">
|
||||||
|
<i class="el-icon-arrow-down"></i>
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</el-popover>
|
</el-popover>
|
||||||
<el-dropdown-menu class="nz-dashboard-dropdown popper-z-index" slot="dropdown">
|
<el-dropdown-menu class="nz-dashboard-dropdown popper-z-index" slot="dropdown">
|
||||||
|
|||||||
@@ -384,6 +384,7 @@
|
|||||||
});
|
});
|
||||||
this.tableData = response.data.list;
|
this.tableData = response.data.list;
|
||||||
this.pageObj.total = response.data.total;
|
this.pageObj.total = response.data.total;
|
||||||
|
console.info(this.$refs.alertRuleTable)
|
||||||
if (!this.scrollbarWrap) {
|
if (!this.scrollbarWrap) {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.scrollbarWrap = this.$refs.alertRuleTable.bodyWrapper;
|
this.scrollbarWrap = this.$refs.alertRuleTable.bodyWrapper;
|
||||||
|
|||||||
@@ -5,15 +5,13 @@
|
|||||||
.account .account-role-item{
|
.account .account-role-item{
|
||||||
background-color: #409eff;
|
background-color: #409eff;
|
||||||
border: 1px solid #409eff;
|
border: 1px solid #409eff;
|
||||||
height: 20px;
|
|
||||||
font-size: 12px;
|
|
||||||
line-height: 20px;
|
|
||||||
border-radius: 4px;
|
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
box-sizing: content-box;
|
height: 20px;
|
||||||
padding:3px;
|
line-height: 18px;
|
||||||
margin-right: 3px;
|
padding: 0 5px;
|
||||||
color: white;
|
color: white;
|
||||||
|
border-radius: 4px;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<template>
|
<template>
|
||||||
@@ -89,7 +87,7 @@
|
|||||||
<template v-if="item.prop == 'roles'">
|
<template v-if="item.prop == 'roles'">
|
||||||
<template v-if="scope.row[item.prop]">
|
<template v-if="scope.row[item.prop]">
|
||||||
<template v-for="role in scope.row[item.prop]">
|
<template v-for="role in scope.row[item.prop]">
|
||||||
<div class="account-role-item" v-if="role"><span>{{role.i18n?$t(role.i18n):role.name}}</span></div>
|
<span class="account-role-item" v-if="role">{{role.i18n?$t(role.i18n):role.name}}</span>
|
||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
|
|||||||
@@ -802,6 +802,9 @@
|
|||||||
border-top: none;
|
border-top: none;
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
}
|
}
|
||||||
|
.mib-browser-table-title {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
.mib-browser-table-title, .mib-browser-tree-title {
|
.mib-browser-table-title, .mib-browser-tree-title {
|
||||||
height: 30px;
|
height: 30px;
|
||||||
line-height: 30px;
|
line-height: 30px;
|
||||||
|
|||||||
@@ -945,10 +945,11 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style lang="scss" scoped>
|
||||||
.system{
|
.system {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
.system-config-form{
|
.system-config-form{
|
||||||
width: 61.8% !important;
|
width: 61.8% !important;
|
||||||
@@ -1077,7 +1078,48 @@
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<style>
|
<style lang="scss">
|
||||||
|
.system {
|
||||||
|
.el-tabs__nav-scroll {
|
||||||
|
background-color: #eee;
|
||||||
|
}
|
||||||
|
.el-form-item:last-of-type {
|
||||||
|
padding-top: 36px !important;
|
||||||
|
|
||||||
|
.el-form-item__content {
|
||||||
|
margin-left: 0 !important;
|
||||||
|
width: 692px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.nz-btn {
|
||||||
|
margin: 0 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.el-tabs__content {
|
||||||
|
padding-top: 25px;
|
||||||
|
}
|
||||||
|
.el-tabs__item {
|
||||||
|
outline: none;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
.el-tabs--border-card>.el-tabs__header .el-tabs__item.is-active {
|
||||||
|
color: $global-text-color-active;
|
||||||
|
border-bottom: none;
|
||||||
|
border-left: none;
|
||||||
|
border-right: none;
|
||||||
|
border-top: 4px solid $global-text-color-active;
|
||||||
|
}
|
||||||
|
.el-tabs--border-card>.el-tabs__header .el-tabs__item:not(.is-disabled):hover {
|
||||||
|
color: $global-text-color-active;
|
||||||
|
opacity: .8;
|
||||||
|
}
|
||||||
|
.el-tabs--border-card>.el-tabs__header .el-tabs__item {
|
||||||
|
border-bottom: none;
|
||||||
|
border-left: none;
|
||||||
|
border-right: none;
|
||||||
|
border-top: 4px solid transparent;
|
||||||
|
}
|
||||||
|
}
|
||||||
.system-config-form .el-form-item__content{
|
.system-config-form .el-form-item__content{
|
||||||
width: 512px;
|
width: 512px;
|
||||||
}
|
}
|
||||||
@@ -1090,6 +1132,10 @@
|
|||||||
line-height: 28px;
|
line-height: 28px;
|
||||||
/*width: 512px;*/
|
/*width: 512px;*/
|
||||||
}
|
}
|
||||||
|
.system-tabs {
|
||||||
|
box-shadow: unset !important;
|
||||||
|
border-color: #eee !important;
|
||||||
|
}
|
||||||
.system-tabs .el-tabs--border-card{
|
.system-tabs .el-tabs--border-card{
|
||||||
webkit-box-shadow: unset !important;
|
webkit-box-shadow: unset !important;
|
||||||
box-shadow: unset !important;
|
box-shadow: unset !important;
|
||||||
|
|||||||
@@ -193,7 +193,6 @@
|
|||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
.promqlInput{
|
.promqlInput{
|
||||||
position: relative;
|
position: relative;
|
||||||
height: 36px;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
margin-bottom: 18px;
|
margin-bottom: 18px;
|
||||||
@@ -223,8 +222,8 @@
|
|||||||
/*border-radius: 3px;*/
|
/*border-radius: 3px;*/
|
||||||
/*background-color: #dde4ed;*/
|
/*background-color: #dde4ed;*/
|
||||||
width: 34px;
|
width: 34px;
|
||||||
height: 34px !important;
|
height: 29px !important;
|
||||||
line-height: 34px;
|
line-height: 30px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
.query-options .option:focus,.query-options .option:hover{
|
.query-options .option:focus,.query-options .option:hover{
|
||||||
@@ -239,7 +238,7 @@
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
.metric-btn{
|
.metric-btn{
|
||||||
height: 36px !important;
|
height: 29px !important;
|
||||||
width: 105px;
|
width: 105px;
|
||||||
margin-left: 1px;
|
margin-left: 1px;
|
||||||
}
|
}
|
||||||
@@ -269,6 +268,6 @@
|
|||||||
z-index: 2100;
|
z-index: 2100;
|
||||||
}
|
}
|
||||||
.input-box .el-input__inner{
|
.input-box .el-input__inner{
|
||||||
height: 36px;
|
height: 30px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -134,7 +134,7 @@ Vue.mixin({
|
|||||||
if(title&&title.label){
|
if(title&&title.label){
|
||||||
item.label=title.label;
|
item.label=title.label;
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
},
|
},
|
||||||
hasButton(code) {
|
hasButton(code) {
|
||||||
return hasButton(this.$store.getters.buttonList, code);
|
return hasButton(this.$store.getters.buttonList, code);
|
||||||
@@ -184,6 +184,9 @@ Vue.mixin({
|
|||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
},
|
},
|
||||||
|
translation(key) {
|
||||||
|
return i18n.t(key);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
getMenuList() {
|
getMenuList() {
|
||||||
|
|||||||
Reference in New Issue
Block a user