| | |
| | | <div class="image-border image-border3"></div> |
| | | <div class="image-border image-border4"></div> |
| | | |
| | | <!-- 中下 --> |
| | | <!-- 中上 --> |
| | | <div class="crn-speed" style="display: none"> |
| | | <div class="speed-content"> |
| | | <div id="crn-chart" class="speed-chart"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | |
| | | <!-- 中下 --> |
| | | <div class="scroll-pane"> |
| | | <div class="layui-carousel" id="banner"> |
| | | <div carousel-item> |
| | |
| | | }); |
| | | |
| | | /***********************************************************************************/ |
| | | /************************************ 堆垛机速度 *************************************/ |
| | | /***********************************************************************************/ |
| | | |
| | | var crnChart = echarts.init(document.getElementById('crn-chart')); |
| | | crnChartOption = { |
| | | // backgroundColor: '#1b1b1b', |
| | | tooltip: { |
| | | formatter: '{a} <br/>{c} {b}' |
| | | }, |
| | | // toolbox: { // 保存图片 |
| | | // show: true, |
| | | // feature: { |
| | | // mark: {show: true}, |
| | | // restore: {show: true}, |
| | | // saveAsImage: {show: true} |
| | | // } |
| | | // }, |
| | | series: [ |
| | | { |
| | | name: '走行速度', |
| | | type: 'gauge', |
| | | min: 0, |
| | | max: 160, |
| | | splitNumber: 16, |
| | | radius: '50%', |
| | | axisLine: { // 坐标轴线 |
| | | lineStyle: { // 属性lineStyle控制线条样式 |
| | | color: [[0.09, '#0fe507'], [0.82, '#1e90ff'], [1, '#ff4500']], |
| | | width: 3, |
| | | shadowColor: '#fff', //默认透明 |
| | | shadowBlur: 10 |
| | | } |
| | | }, |
| | | axisLabel: { // 坐标轴数字 |
| | | fontWeight: 'bolder', |
| | | color: '#fff', |
| | | shadowColor: '#fff', //默认透明 |
| | | shadowBlur: 10 |
| | | }, |
| | | axisTick: { // 坐标轴小标记 |
| | | length: 15, // 属性length控制线长 |
| | | lineStyle: { // 属性lineStyle控制线条样式 |
| | | color: 'auto', |
| | | shadowColor: '#fff', //默认透明 |
| | | shadowBlur: 10 |
| | | } |
| | | }, |
| | | splitLine: { // 分隔线 |
| | | length: 25, // 属性length控制线长 |
| | | lineStyle: { // 属性lineStyle(详见lineStyle)控制线条样式 |
| | | width: 3, |
| | | color: '#fff', |
| | | shadowColor: '#fff', //默认透明 |
| | | shadowBlur: 10 |
| | | } |
| | | }, |
| | | pointer: { // 分隔线 |
| | | shadowColor: '#fff', //默认透明 |
| | | shadowBlur: 5 |
| | | }, |
| | | title: { // 速度单位 |
| | | textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE |
| | | fontWeight: 'bolder', |
| | | fontSize: 20, |
| | | fontStyle: 'italic', |
| | | color: '#fff', |
| | | shadowColor: '#fff', //默认透明 |
| | | shadowBlur: 10 |
| | | } |
| | | }, |
| | | detail: { // 速度值 |
| | | backgroundColor: 'rgba(30,144,255,0.8)', |
| | | borderWidth: 1, |
| | | borderColor: '#fff', |
| | | shadowColor: '#fff', //默认透明 |
| | | shadowBlur: 5, |
| | | offsetCenter: [0, '50%'], // x, y,单位px |
| | | textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE |
| | | fontWeight: 'bolder', |
| | | color: '#fff' |
| | | } |
| | | }, |
| | | data: [{value: 40, name: 'x\nm/min'}] |
| | | }, |
| | | { |
| | | name: '升降速度', |
| | | type: 'gauge', |
| | | center: ['25%', '55%'], // 默认全局居中 |
| | | radius: '30%', |
| | | min: 0, |
| | | max: 40, |
| | | endAngle: 40, |
| | | splitNumber: 5, |
| | | axisLine: { // 坐标轴线 |
| | | lineStyle: { // 属性lineStyle控制线条样式 |
| | | color: [[0.32, '#0fe507'], [0.86, '#1e90ff'], [1, '#ff4500']], |
| | | width: 2, |
| | | shadowColor: '#fff', //默认透明 |
| | | shadowBlur: 10 |
| | | } |
| | | }, |
| | | axisLabel: { // 坐标轴小标记 |
| | | fontWeight: 'bolder', |
| | | color: '#fff', |
| | | shadowColor: '#fff', //默认透明 |
| | | shadowBlur: 10 |
| | | }, |
| | | axisTick: { // 坐标轴小标记 |
| | | length: 12, // 属性length控制线长 |
| | | lineStyle: { // 属性lineStyle控制线条样式 |
| | | color: 'auto', |
| | | shadowColor: '#fff', //默认透明 |
| | | shadowBlur: 10 |
| | | } |
| | | }, |
| | | splitLine: { // 分隔线 |
| | | length: 20, // 属性length控制线长 |
| | | lineStyle: { // 属性lineStyle(详见lineStyle)控制线条样式 |
| | | width: 3, |
| | | color: '#fff', |
| | | shadowColor: '#fff', //默认透明 |
| | | shadowBlur: 10 |
| | | } |
| | | }, |
| | | pointer: { |
| | | width: 5, |
| | | shadowColor: '#fff', //默认透明 |
| | | shadowBlur: 5 |
| | | }, |
| | | title: { |
| | | offsetCenter: [0, '-30%'], // x, y,单位px |
| | | textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE |
| | | fontWeight: 'bolder', |
| | | fontStyle: 'italic', |
| | | color: '#fff', |
| | | shadowColor: '#fff', //默认透明 |
| | | shadowBlur: 10 |
| | | } |
| | | }, |
| | | detail: { |
| | | //backgroundColor: 'rgba(30,144,255,0.8)', |
| | | // borderWidth: 1, |
| | | borderColor: '#fff', |
| | | shadowColor: '#fff', //默认透明 |
| | | shadowBlur: 5, |
| | | width: 80, |
| | | height: 30, |
| | | offsetCenter: [35, '20%'], // x, y,单位px |
| | | textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE |
| | | fontWeight: 'bolder', |
| | | color: '#fff' |
| | | } |
| | | }, |
| | | data: [{value: 1.5, name: 'y'}] |
| | | }, |
| | | { |
| | | name: '货叉速度', |
| | | type: 'gauge', |
| | | center: ['75%', '50%'], // 默认全局居中 |
| | | radius: '30%', |
| | | min: 0, |
| | | max: 50, |
| | | startAngle: 135, |
| | | endAngle: 50, |
| | | splitNumber: 2, |
| | | axisLine: { // 坐标轴线 |
| | | lineStyle: { // 属性lineStyle控制线条样式 |
| | | color: [[0.2, '#0fe507'], [0.8, '#1e90ff'], [1, '#ff4500']], |
| | | width: 2, |
| | | shadowColor: '#fff', //默认透明 |
| | | shadowBlur: 10 |
| | | } |
| | | }, |
| | | axisLabel: { // 坐标轴小标记 |
| | | fontWeight: 'bolder', |
| | | color: '#fff', |
| | | shadowColor: '#fff', //默认透明 |
| | | shadowBlur: 10 |
| | | }, |
| | | axisTick: { // 坐标轴小标记 |
| | | length: 12, // 属性length控制线长 |
| | | lineStyle: { // 属性lineStyle控制线条样式 |
| | | color: 'auto', |
| | | shadowColor: '#fff', //默认透明 |
| | | shadowBlur: 10 |
| | | } |
| | | }, |
| | | // axisLabel: { |
| | | // fontWeight: 'bolder', |
| | | // color: '#fff', |
| | | // shadowColor: '#fff', //默认透明 |
| | | // shadowBlur: 10, |
| | | // formatter: function (v){ |
| | | // switch (v + '') { |
| | | // case '0': return 'E'; |
| | | // case '1': return 'Gas'; |
| | | // case '2': return 'F'; |
| | | // } |
| | | // } |
| | | // }, |
| | | splitLine: { // 分隔线 |
| | | length:15, // 属性length控制线长 |
| | | lineStyle: { // 属性lineStyle(详见lineStyle)控制线条样式 |
| | | width:3, |
| | | color: '#fff', |
| | | shadowColor: '#fff', //默认透明 |
| | | shadowBlur: 10 |
| | | } |
| | | }, |
| | | pointer: { |
| | | width:2, |
| | | shadowColor: '#fff', //默认透明 |
| | | shadowBlur: 5 |
| | | }, |
| | | title: { |
| | | offsetCenter: [0, '-30%'], // x, y,单位px |
| | | textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE |
| | | fontWeight: 'bolder', |
| | | fontStyle: 'italic', |
| | | color: '#fff', |
| | | shadowColor: '#fff', //默认透明 |
| | | shadowBlur: 10 |
| | | } |
| | | }, |
| | | detail: { |
| | | //backgroundColor: 'rgba(30,144,255,0.8)', |
| | | // borderWidth: 1, |
| | | borderColor: '#fff', |
| | | shadowColor: '#fff', //默认透明 |
| | | shadowBlur: 5, |
| | | width: 80, |
| | | height: 30, |
| | | offsetCenter: [40, '5%'], // x, y,单位px |
| | | textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE |
| | | fontWeight: 'bolder', |
| | | color: '#fff' |
| | | } |
| | | }, |
| | | data: [{value: 0.5, name: 'z'}] |
| | | }, |
| | | { |
| | | name: '货叉位置', |
| | | type: 'gauge', |
| | | center: ['75%', '50%'], // 默认全局居中 |
| | | radius: '30%', |
| | | min: 0, |
| | | max: 2, |
| | | startAngle: 315, |
| | | endAngle: 225, |
| | | splitNumber: 2, |
| | | axisLine: { // 坐标轴线 |
| | | lineStyle: { // 属性lineStyle控制线条样式 |
| | | color: [[0.2, '#0fe507'], [0.8, '#1e90ff'], [1, '#ff4500']], |
| | | width: 2, |
| | | shadowColor: '#fff', //默认透明 |
| | | shadowBlur: 10 |
| | | } |
| | | }, |
| | | axisTick: { // 坐标轴小标记 |
| | | show: false |
| | | }, |
| | | axisLabel: { |
| | | fontWeight: 'bolder', |
| | | color: '#fff', |
| | | shadowColor: '#fff', //默认透明 |
| | | shadowBlur: 10, |
| | | formatter: function(v){ |
| | | switch (v + '') { |
| | | case '0': return '右'; |
| | | case '1': return '中'; |
| | | case '2': return '左'; |
| | | } |
| | | } |
| | | }, |
| | | splitLine: { // 分隔线 |
| | | length: 15, // 属性length控制线长 |
| | | lineStyle: { // 属性lineStyle(详见lineStyle)控制线条样式 |
| | | width: 3, |
| | | color: '#fff', |
| | | shadowColor: '#fff', //默认透明 |
| | | shadowBlur: 10 |
| | | } |
| | | }, |
| | | pointer: { |
| | | width: 2, |
| | | shadowColor: '#fff', //默认透明 |
| | | shadowBlur: 5 |
| | | }, |
| | | title: { |
| | | show: false |
| | | }, |
| | | detail: { |
| | | show: false |
| | | }, |
| | | data:[{value: 0.5, name: 'gas'}] |
| | | } |
| | | ] |
| | | }; |
| | | |
| | | /***********************************************************************************/ |
| | | /************************************* 折线图 ***************************************/ |
| | | /***********************************************************************************/ |
| | | |