| | |
| | | } |
| | | } |
| | | |
| | | #led-content { |
| | | display: none; |
| | | } |
| | | #led-p-content { |
| | | text-align: center; |
| | | padding: 20px 40px; |
| | | font-size: 35px; |
| | | font-weight: bold |
| | | } |
| | | |
| | | </style> |
| | | </head> |
| | |
| | | <div class="speed-content"> |
| | | <div id="crn-chart" class="speed-chart"> |
| | | </div> |
| | | <!-- <div id="xSpeed-chart" class="speed-chart">--> |
| | | <!--<!– <span>堆垛机走行速度:</span><span id="xSpeed" class="counter">5.00</span><span>米/秒</span>–>--> |
| | | <!-- </div>--> |
| | | <!-- <div id="ySpeed-chart" class="speed-chart">--> |
| | | <!--<!– <span>堆垛机升降速度:</span><span id="ySpeed" class="counter">5.00</span><span>米/秒</span>–>--> |
| | | <!-- </div>--> |
| | | </div> |
| | | </div> |
| | | |
| | | <!-- 中下 --> |
| | | <div class="scroll-pane"> |
| | | <div class="layui-carousel" id="test1"> |
| | | <div class="layui-carousel" id="banner"> |
| | | <div carousel-item> |
| | | <div class="item-img" id="img-1" style="background-color: red"></div> |
| | | <div class="item-img" id="img-2" style="background-color: gold"></div> |
| | |
| | | <div class="item-img" id="img-4" style="background-color: white"></div> |
| | | <div class="item-img" id="img-5" style="background-color: darkgoldenrod"></div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div id="led-content"> |
| | | <pre id="led-p-content"></pre> |
| | | </div> |
| | | |
| | | <!-- <!– 中左 –>--> |
| | |
| | | var element = layui.element; |
| | | // 轮播图 |
| | | carousel.render({ |
| | | elem: '#test1' |
| | | elem: '#banner' |
| | | ,width: '100%' //设置容器宽度 |
| | | ,arrow: 'hover' // 切换箭头默认显示状态,可选值为 hover(悬停显示) always(始终显示) none(始终不显示) |
| | | ,interval: '3000' // 自动切换的时间间隔,单位:ms(毫秒),不能低于800 |
| | |
| | | name: '走行速度', |
| | | type: 'gauge', |
| | | min: 0, |
| | | max: 110, |
| | | splitNumber: 11, |
| | | max: 130, |
| | | splitNumber: 13, |
| | | radius: '50%', |
| | | axisLine: { // 坐标轴线 |
| | | lineStyle: { // 属性lineStyle控制线条样式 |
| | | color: [[0.09, 'lime'], [0.82, '#1e90ff'], [1, '#ff4500']], |
| | | color: [[0.09, '#0fe507'], [0.82, '#1e90ff'], [1, '#ff4500']], |
| | | width: 3, |
| | | shadowColor: '#fff', //默认透明 |
| | | shadowBlur: 10 |
| | | } |
| | | }, |
| | | axisLabel: { // 坐标轴小标记 |
| | | axisLabel: { // 坐标轴数字 |
| | | fontWeight: 'bolder', |
| | | color: '#fff', |
| | | shadowColor: '#fff', //默认透明 |
| | |
| | | shadowColor: '#fff', //默认透明 |
| | | shadowBlur: 5 |
| | | }, |
| | | title: { |
| | | title: { // 速度单位 |
| | | textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE |
| | | fontWeight: 'bolder', |
| | | fontSize: 20, |
| | |
| | | shadowBlur: 10 |
| | | } |
| | | }, |
| | | detail: { |
| | | detail: { // 速度值 |
| | | backgroundColor: 'rgba(30,144,255,0.8)', |
| | | borderWidth: 1, |
| | | borderColor: '#fff', |
| | |
| | | color: '#fff' |
| | | } |
| | | }, |
| | | data: [{value: 40, name: 'm/min'}] |
| | | data: [{value: 40, name: 'x\nm/min'}] |
| | | }, |
| | | { |
| | | name: '升降速度', |
| | |
| | | splitNumber: 6, |
| | | axisLine: { // 坐标轴线 |
| | | lineStyle: { // 属性lineStyle控制线条样式 |
| | | color: [[0.29, 'lime'], [0.86, '#1e90ff'], [1, '#ff4500']], |
| | | color: [[0.32, '#0fe507'], [0.86, '#1e90ff'], [1, '#ff4500']], |
| | | width: 2, |
| | | shadowColor: '#fff', //默认透明 |
| | | shadowBlur: 10 |
| | |
| | | shadowBlur: 5, |
| | | width: 80, |
| | | height: 30, |
| | | offsetCenter: [25, '20%'], // x, y,单位px |
| | | offsetCenter: [35, '20%'], // x, y,单位px |
| | | textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE |
| | | fontWeight: 'bolder', |
| | | color: '#fff' |
| | | } |
| | | }, |
| | | data: [{value: 1.5, name: 'm/min'}] |
| | | data: [{value: 1.5, name: 'y'}] |
| | | }, |
| | | { |
| | | name: '货叉速度', |
| | |
| | | center: ['75%', '50%'], // 默认全局居中 |
| | | radius: '30%', |
| | | min: 0, |
| | | max: 4, |
| | | max: 25, |
| | | startAngle: 135, |
| | | endAngle: 45, |
| | | splitNumber: 2, |
| | | axisLine: { // 坐标轴线 |
| | | lineStyle: { // 属性lineStyle控制线条样式 |
| | | color: [[0.2, 'lime'], [0.8, '#1e90ff'], [1, '#ff4500']], |
| | | 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控制线长 |
| | |
| | | shadowBlur: 5 |
| | | }, |
| | | title: { |
| | | show: false |
| | | offsetCenter: [0, '-30%'], // x, y,单位px |
| | | textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE |
| | | fontWeight: 'bolder', |
| | | fontStyle: 'italic', |
| | | color: '#fff', |
| | | shadowColor: '#fff', //默认透明 |
| | | shadowBlur: 10 |
| | | } |
| | | }, |
| | | detail: { |
| | | show: false |
| | | //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: 'm/min'}] |
| | | data: [{value: 0.5, name: 'z'}] |
| | | }, |
| | | { |
| | | name: '货叉位置', |
| | |
| | | splitNumber: 2, |
| | | axisLine: { // 坐标轴线 |
| | | lineStyle: { // 属性lineStyle控制线条样式 |
| | | color: [[0.2, 'lime'], [0.8, '#1e90ff'], [1, '#ff4500']], |
| | | color: [[0.2, '#0fe507'], [0.8, '#1e90ff'], [1, '#ff4500']], |
| | | width: 2, |
| | | shadowColor: '#fff', //默认透明 |
| | | shadowBlur: 10 |
| | |
| | | // }, |
| | | itemStyle:{ |
| | | normal:{ |
| | | color:'#0cbad9', //折点颜色 |
| | | color:'#ef550e', //折点颜色 |
| | | lineStyle:{ |
| | | color:'#07a093' //折线颜色 |
| | | color:'#ec670f' //折线颜色 |
| | | } |
| | | } |
| | | } |
| | |
| | | }); |
| | | } |
| | | |
| | | // eCharts 跟随窗口改变 |
| | | window.onresize = function(){ |
| | | crnChart.resize(); |
| | | lineCharts.resize(); |
| | | pieCharts.resize(); |
| | | } |
| | | |
| | | |
| | | </script> |
| | | </html> |