fix: snmp相关参数名格式更改
This commit is contained in:
@@ -211,6 +211,7 @@
|
|||||||
import chartPreview from './chartPreview';
|
import chartPreview from './chartPreview';
|
||||||
import echarts from 'echarts';
|
import echarts from 'echarts';
|
||||||
import nzAlertTag from '../page/alert/nzAlertTag';
|
import nzAlertTag from '../page/alert/nzAlertTag';
|
||||||
|
import bus from '../../libs/bus';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'chartDetail',
|
name: 'chartDetail',
|
||||||
@@ -429,28 +430,46 @@
|
|||||||
initChart(series) {
|
initChart(series) {
|
||||||
let option = {
|
let option = {
|
||||||
title: {show: false},
|
title: {show: false},
|
||||||
tooltip: {show: false},
|
|
||||||
grid: {left: 40},
|
grid: {left: 40},
|
||||||
|
tooltip: {
|
||||||
|
show: true,
|
||||||
|
trigger: "axis",
|
||||||
|
extraCssText: 'z-index:3100;',
|
||||||
|
position: [0, '50%'],
|
||||||
|
formatter: function(param) {
|
||||||
|
let time = param[0].data[0];
|
||||||
|
time = bus.computeTimezone(time);
|
||||||
|
let date = new Date(time);
|
||||||
|
let hour = date.getHours();
|
||||||
|
hour = hour > 9 ? hour : "0" + hour; //加0补充为两位数字
|
||||||
|
let minute = date.getMinutes();
|
||||||
|
minute = minute > 9 ? minute : "0" + minute; //如果分钟小于10,则在前面加0补充为两位数字
|
||||||
|
|
||||||
|
let value = param[0].data[1];
|
||||||
|
if (value == "1") {
|
||||||
|
value = "up";
|
||||||
|
} else {
|
||||||
|
value = "down";
|
||||||
|
}
|
||||||
|
return [date.getFullYear(), date.getMonth() + 1, date.getDate()].join("/") + " " + [hour, minute].join(":") + "\n" + value;
|
||||||
|
}
|
||||||
|
},
|
||||||
legend: {show: false},
|
legend: {show: false},
|
||||||
xAxis: {
|
xAxis: {
|
||||||
show: false,
|
show: false,
|
||||||
type: 'time'
|
type: 'time'
|
||||||
},
|
},
|
||||||
|
/*visualMap: {
|
||||||
|
show: false,
|
||||||
|
dimension: 1,
|
||||||
|
pieces: [],
|
||||||
|
outOfRange: {
|
||||||
|
color: 'green'
|
||||||
|
}
|
||||||
|
},*/
|
||||||
yAxis: {
|
yAxis: {
|
||||||
type: 'value',
|
type: 'value',
|
||||||
minInterval: 1,
|
show: false
|
||||||
splitLine: {show: false},
|
|
||||||
axisLabel: {
|
|
||||||
formatter: function (value, index) {
|
|
||||||
if (value == 1) {
|
|
||||||
return "up";
|
|
||||||
} else {
|
|
||||||
return "down";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
axisTick: {show: false},
|
|
||||||
axisLine: {show: false}
|
|
||||||
},
|
},
|
||||||
useUTC: false,//使用本地时间
|
useUTC: false,//使用本地时间
|
||||||
series: series
|
series: series
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
cursor: se-resize;
|
cursor: se-resize;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
z-index: 2000;
|
z-index: 99;
|
||||||
}
|
}
|
||||||
.vue-resizable-handle:after {
|
.vue-resizable-handle:after {
|
||||||
border-right: 2px solid #acb6bf;
|
border-right: 2px solid #acb6bf;
|
||||||
@@ -550,6 +550,20 @@
|
|||||||
//endpoint单独处理
|
//endpoint单独处理
|
||||||
if (param.from == "endpoint") {
|
if (param.from == "endpoint") {
|
||||||
this.dataList = [];
|
this.dataList = [];
|
||||||
|
this.dataList.push({
|
||||||
|
id: -8,
|
||||||
|
panelId: 0,
|
||||||
|
title: this.$t("alert.alertList"),
|
||||||
|
span: 12,
|
||||||
|
height: 350,
|
||||||
|
type: "alertList",
|
||||||
|
prev: -9,
|
||||||
|
next: -1,
|
||||||
|
buildIn: 1,
|
||||||
|
draggable: false,
|
||||||
|
resizable: false,
|
||||||
|
editable: false,
|
||||||
|
});
|
||||||
this.dataList.push({
|
this.dataList.push({
|
||||||
id: -10,
|
id: -10,
|
||||||
panelId: 0,
|
panelId: 0,
|
||||||
@@ -582,20 +596,6 @@
|
|||||||
resizable: false,
|
resizable: false,
|
||||||
editable: false,
|
editable: false,
|
||||||
});
|
});
|
||||||
this.dataList.push({
|
|
||||||
id: -8,
|
|
||||||
panelId: 0,
|
|
||||||
title: this.$t("alert.alertList"),
|
|
||||||
span: 4,
|
|
||||||
height: 350,
|
|
||||||
type: "alertList",
|
|
||||||
prev: -9,
|
|
||||||
next: -1,
|
|
||||||
buildIn: 1,
|
|
||||||
draggable: false,
|
|
||||||
resizable: false,
|
|
||||||
editable: false,
|
|
||||||
});
|
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.dataList.forEach((item,index) => {
|
this.dataList.forEach((item,index) => {
|
||||||
this.$set(item, "from", params.from);
|
this.$set(item, "from", params.from);
|
||||||
@@ -1219,6 +1219,15 @@
|
|||||||
width: 1,
|
width: 1,
|
||||||
opacity: 0.9
|
opacity: 0.9
|
||||||
},
|
},
|
||||||
|
itemStyle: {
|
||||||
|
color: function(params) {
|
||||||
|
if (params.data[1] == "1") {
|
||||||
|
return "#50d050";
|
||||||
|
} else {
|
||||||
|
return "#d64f40";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
response.data.result.forEach((queryItem, resInnerPos) => {
|
response.data.result.forEach((queryItem, resInnerPos) => {
|
||||||
// 将秒改为毫秒
|
// 将秒改为毫秒
|
||||||
|
|||||||
@@ -52,7 +52,6 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
popperVisible:function(visible){
|
popperVisible:function(visible){
|
||||||
console.log('fixed')
|
|
||||||
if(visible==true){
|
if(visible==true){
|
||||||
this.$nextTick(()=>{
|
this.$nextTick(()=>{
|
||||||
if(this.popClass&&this.popClass==='out-popper-fix'){
|
if(this.popClass&&this.popClass==='out-popper-fix'){
|
||||||
@@ -143,7 +142,7 @@ export default {
|
|||||||
popClass:{
|
popClass:{
|
||||||
immediate:true,
|
immediate:true,
|
||||||
handler(n,o){
|
handler(n,o){
|
||||||
console.log(n)
|
//console.log(n)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -576,13 +576,13 @@
|
|||||||
params: {
|
params: {
|
||||||
version:2,
|
version:2,
|
||||||
community:"public",
|
community:"public",
|
||||||
security_name:"",
|
securityName:"",
|
||||||
security_level:"",
|
securityLevel:"",
|
||||||
auth_password:"",
|
password:"",
|
||||||
priv_password:"",
|
privPassword:"",
|
||||||
auth_protocol:"",
|
authProtocol:"",
|
||||||
priv_protocol:"",
|
privProtocol:"",
|
||||||
context_name:""
|
contextName:""
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -50,6 +50,9 @@
|
|||||||
<el-form-item :label="$t('project.module.community')" prop="params.community">
|
<el-form-item :label="$t('project.module.community')" prop="params.community">
|
||||||
<el-input size="small" v-model="account.params.community"/>
|
<el-input size="small" v-model="account.params.community"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item :label="$t('project.module.contextName')" prop="params.contextName">
|
||||||
|
<el-input size="small" v-model="account.params.contextName"/>
|
||||||
|
</el-form-item>
|
||||||
<el-form-item :label="$t('project.module.version')" prop="params.version">
|
<el-form-item :label="$t('project.module.version')" prop="params.version">
|
||||||
<el-radio-group v-model.number="account.params.version" size="small">
|
<el-radio-group v-model.number="account.params.version" size="small">
|
||||||
<el-radio-button :label="2"></el-radio-button>
|
<el-radio-button :label="2"></el-radio-button>
|
||||||
|
|||||||
Reference in New Issue
Block a user