Authored by 鲁尚清

柱线图返回数据处理,queryform.js

... ... @@ -4,12 +4,12 @@ const prodEnv = require('./prod.env')
module.exports = merge(prodEnv, {
NODE_ENV: '"development"',
/*BASE_API: '"http://192.168.0.59:9095"',
MONITOR_GATEWAY: '"http://192.168.0.59:8080"'*/
BASE_API: '"http://192.168.0.59:9095"',
MONITOR_GATEWAY: '"http://192.168.0.59:8080"'
/*BASE_API: '"http://192.168.0.75:9095"',
MONITOR_GATEWAY: '"http://192.168.0.75:8080"'*/
BASE_API: '"https://192.168.0.248:8089"',
MONITOR_GATEWAY: '"https://192.168.0.248:8080"'
/* BASE_API: '"https://192.168.0.248:8089"',
MONITOR_GATEWAY: '"https://192.168.0.248:8080"'*/
/*BASE_API: '"http://192.168.1.52:8089"',
MONITOR_GATEWAY: '"http://192.168.1.52:8080"'*/
... ...
... ... @@ -152,7 +152,7 @@ export default {
let xAxisList = [];
let series = [];
let kpiUnit='';
if(data && data[0] && data[0].code==0){
if(data && data[0]){
if(data[0].data && data[0].series){
if(data[0].data.names && data[0].data.names.length>0){
xAxisList=data[0].data.names;
... ...
... ... @@ -154,9 +154,9 @@ export default {
echoDynamicData(val) {
const chartProperties = this.deepClone(val.chartProperties);
this.chartProperties = chartProperties;
if (this.userNameList.length > 0) {
if (this.setParamList && this.userNameList.length > 0) {
}
if (this.setParamList.length > 0) {
if (this.setParamList && this.setParamList.length > 0) {
for (let i = 0; i < this.setParamList.length; i++) {
const item = this.setParamList[i];
if (chartProperties.hasOwnProperty(item)) {
... ...
... ... @@ -317,6 +317,8 @@ export default {
color: optionsSetup.lineColorY
}
},
min:0,
max:100,
splitLine: {
show: false,
}
... ...