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