Vue.prototype.global={ polling:null, pollingIndex:0, timer:10000,//触发定时器时间 errorFlag:0, val: { title:{ text:'', left:'center' }, tooltip: { trigger: 'axis', axisPointer: { type: 'shadow' } }, grid: { left: '3%', right: '4%', bottom: '3%', containLabel: true }, xAxis: [{ type: 'category', data: [], axisLine: { lineStyle: { color: 'rgb(30, 144, 255)' } }, axisLabel: { color: 'rgb(30, 144, 255)' }, splitLine: { lineStyle: { color: 'rgb(30, 144, 255)', type: 'dashed' } } }], yAxis: [{ type: "value", name: "能耗", nameTextStyle: { color: "rgb(30, 144, 255)", fontSize: 12, padding: [0, 0, 0, -30], //name文字位置 对应 上右下左 }, splitLine: { // 网格线 show: false, lineStyle: { //分割线 color: "rgb(180, 180, 180)", width: 1, type: "dashed" //dotted:虚线 solid:实线 } }, axisLabel: { // 轴文字 color: "rgb(30, 144, 255)", fontSize: 12, }, }, ], series: [{ name: '电耗', type: 'bar', barWidth: '80%', data: [220, 152, 200, 334, 390, 330, 220], itemStyle: { color: 'rgb(180, 180, 180)' } }, ] } // getMachineElectricTimer:null, // getTableDataTimer:null, // getMachineWaterTimer:null, }