This commit is contained in:
2024-01-11 13:37:38 +08:00
parent f46505dabf
commit db32b368c5
3 changed files with 42 additions and 36 deletions

View File

@@ -316,43 +316,43 @@ export const homepageDataRight = () => {
}, },
'top10Of30Days': [ 'top10Of30Days': [
{ {
'deviceName': '压机1', 'device_name': '压机1',
'count': 10 'count': 10
}, },
{ {
'deviceName': '压机2', 'device_name': '压机2',
'count': 9 'count': 9
}, },
{ {
'deviceName': '混料机1', 'device_name': '混料机1',
'count': 8 'count': 8
}, },
{ {
'deviceName': '窑1', 'device_name': '窑1',
'count': 7 'count': 7
}, },
{ {
'deviceName': '分拣拆垛机械手1', 'device_name': '分拣拆垛机械手1',
'count': 6 'count': 6
}, },
{ {
'deviceName': '压机7', 'device_name': '压机7',
'count': 5 'count': 5
}, },
{ {
'deviceName': '码垛机械手1', 'device_name': '码垛机械手1',
'count': 4 'count': 4
}, },
{ {
'deviceName': '窑前桁架1', 'device_name': '窑前桁架1',
'count': 3 'count': 3
}, },
{ {
'deviceName': '拆盘机1', 'device_name': '拆盘机1',
'count': 2 'count': 2
}, },
{ {
'deviceName': '覆膜机1', 'device_name': '覆膜机1',
'count': 1 'count': 1
} }
], ],

View File

@@ -371,7 +371,13 @@ export default {
}, },
yAxis: { yAxis: {
type: 'value', type: 'value',
// name: '单位:块', name: '单位:吨',
nameTextStyle: {
color: '#B5C5D4',
fontSize: 14,
fontFamily: 'SourceHanSansCN-Regular',
padding: [0, 10, 0, 10]
},
axisLine: { axisLine: {
show: false show: false
}, },
@@ -777,11 +783,11 @@ export default {
if (bu > seriesData.length - 1) { if (bu > seriesData.length - 1) {
bu = 0 bu = 0
} }
echart.dispatchAction({ // echart.dispatchAction({
type: 'select', // type: 'select',
seriesIndex: 0, // seriesIndex: 0,
dataIndex: bu // dataIndex: bu
}) // })
echart.dispatchAction({ echart.dispatchAction({
type: 'legendScroll', type: 'legendScroll',
seriesIndex: 0, seriesIndex: 0,

View File

@@ -116,7 +116,7 @@ export default {
capacityRate: [], // 设备产能利用 capacityRate: [], // 设备产能利用
stateStatistics: {}, // 设备运行统计 stateStatistics: {}, // 设备运行统计
deviceWorkOrder: [], // 设备工单生产 deviceWorkOrder: [], // 设备工单生产
areaDeviceStatus: [{process: '混料'}, {process: '压制'}, {process: '干'}, {process: '包装'}], // 工序设备状态 areaDeviceStatus: [{process: '混料'}, {process: '压制'}, {process: '干'}, {process: '包装'}], // 工序设备状态
top10Of30Days: [] // 30天故障top10 top10Of30Days: [] // 30天故障top10
} }
}, },
@@ -201,7 +201,7 @@ export default {
let img = {pointerImg: pointerImg} let img = {pointerImg: pointerImg}
let cdata = [] let cdata = []
this.capacityRate.map(el => { this.capacityRate.map(el => {
cdata.push({name: el.device_name, data: el.numerical.toFixed(0)}) cdata.push({name: el.device_name, data: Number(el.numerical).toFixed(0)})
}) })
let centerArr = [['25%', '38%'], ['75%', '38%'], ['25%', '89%'], ['75%', '89%']] let centerArr = [['25%', '38%'], ['75%', '38%'], ['25%', '89%'], ['75%', '89%']]
let topArr = ['39%', '39%', '90%', '90%'] let topArr = ['39%', '39%', '90%', '90%']
@@ -403,18 +403,18 @@ export default {
this.$echarts.dispose(document.getElementById('new_home_echart_7')) this.$echarts.dispose(document.getElementById('new_home_echart_7'))
let echart = this.$echarts.init(document.getElementById('new_home_echart_7')) let echart = this.$echarts.init(document.getElementById('new_home_echart_7'))
echart.setOption(option) echart.setOption(option)
let bu = 0 // let bu = 0
this.chart7Timer = setInterval(() => { // this.chart7Timer = setInterval(() => {
if (bu > seriesData.length - 1) { // if (bu > seriesData.length - 1) {
bu = 0 // bu = 0
} // }
echart.dispatchAction({ // echart.dispatchAction({
type: 'select', // 默认显示江苏的提示框 // type: 'select', // 默认显示江苏的提示框
seriesIndex: 0, // 这行不能省 // seriesIndex: 0, // 这行不能省
dataIndex: bu // dataIndex: bu
}) // })
bu++ // bu++
}, 2000) // }, 2000)
window.addEventListener('resize', () => { window.addEventListener('resize', () => {
echart.resize() echart.resize()
}) })
@@ -907,17 +907,17 @@ export default {
&:nth-child(1) &:nth-child(1)
width 5% width 5%
&:nth-child(2) &:nth-child(2)
width 8% width 12%
&:nth-child(3) &:nth-child(3)
width 14% width 14%
&:nth-child(4) &:nth-child(4)
width 8% width 7%
&:nth-child(5) &:nth-child(5)
width 12% width 12%
&:nth-child(7) &:nth-child(7)
width 19% width 19%
&:nth-child(9) &:nth-child(9)
width 14% width 11%
.state .state
display block display block
_wh(20px, 14px) _wh(20px, 14px)
@@ -950,17 +950,17 @@ export default {
&:nth-child(1) &:nth-child(1)
width 5% width 5%
&:nth-child(2) &:nth-child(2)
width 8% width 12%
&:nth-child(3) &:nth-child(3)
width 14% width 14%
&:nth-child(4) &:nth-child(4)
width 8% width 7%
&:nth-child(5) &:nth-child(5)
width 12% width 12%
&:nth-child(7) &:nth-child(7)
width 19% width 19%
&:nth-child(9) &:nth-child(9)
width 14% width 11%
.state .state
display block display block
_wh(20px, 14px) _wh(20px, 14px)