分拣-top

This commit is contained in:
2024-04-28 09:57:29 +08:00
parent 32edb15c99
commit f4c51a5694

View File

@@ -156,8 +156,8 @@
</template>
<script>
import {cockpitsorting} from '@js/getData1.js'
// import {cockpitsorting} from '@js/mork1.js'
// import {cockpitsorting} from '@js/getData1.js'
import {cockpitsorting} from '@js/mork1.js'
export default {
name: 'SortWorkMonitor',
data () {
@@ -230,11 +230,16 @@ export default {
// 头部三个图
this.topObj = res.sortingLine
this.topSec3 = res.sortingLine.rgSortingLine
this.topSec1 = res.sortingLine.sortingLines[0] || []
this.topSec2 = res.sortingLine.sortingLines[1] || []
this.topSec1 = res.sortingLine.sortingLines[0] || {}
this.topSec2 = res.sortingLine.sortingLines[1] || {}
this.setEchart03()
this.setEchart01()
this.setEchart02()
// 头部前2个区域可能都没有数据
if (JSON.stringify(this.topSec1) !== '{}') {
this.setEchart01()
}
if (JSON.stringify(this.topSec2) !== '{}') {
this.setEchart02()
}
},
setEchart01 () {
let colors = ['#1980EA', '#67D470', '#B4C9EF', '#EF5252', '#BCBF5C', '#6d5edd', '#bf41bb']