修改
This commit is contained in:
@@ -84,7 +84,7 @@
|
||||
<div class="scroll_container_2">
|
||||
<vue-seamless-scroll :data="kn" :class-option="defaultOption2">
|
||||
<ul class="scroll-ul_2">
|
||||
<li v-for="(e, i) in kn" :key="i" :class="['green', 'red'][Number(e.state)]">
|
||||
<li v-for="(e, i) in kn" :key="i">
|
||||
<div class="scroll-ul_2_div">{{i + 1}}</div>
|
||||
<div class="scroll-ul_2_div">{{e.palletSN}}</div>
|
||||
<div class="scroll-ul_2_div">{{e.productName}}</div>
|
||||
@@ -117,7 +117,7 @@
|
||||
<div class="scroll_container_2">
|
||||
<vue-seamless-scroll :data="wrk" :class-option="defaultOption2">
|
||||
<ul class="scroll-ul_2">
|
||||
<li v-for="(e, i) in wrk" :key="i" :class="['green', 'red'][Number(e.state)]">
|
||||
<li v-for="(e, i) in wrk" :key="i">
|
||||
<div class="scroll-ul_2_div">{{i + 1}}</div>
|
||||
<div class="scroll-ul_2_div">{{e.palletSN}}</div>
|
||||
<div class="scroll-ul_2_div">{{e.productName}}</div>
|
||||
@@ -177,7 +177,6 @@ export default {
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
this.setEchart01()
|
||||
this.initData()
|
||||
this.refresh()
|
||||
},
|
||||
@@ -199,39 +198,48 @@ export default {
|
||||
this.wrk = res.wrk
|
||||
this.kc = res.kc
|
||||
this.hw = res.hw
|
||||
this.setEchart01()
|
||||
},
|
||||
setEchart01 () {
|
||||
let data = [
|
||||
{
|
||||
value: 10,
|
||||
name: '1号砖'
|
||||
},
|
||||
{
|
||||
value: 20,
|
||||
name: '2号砖'
|
||||
},
|
||||
{
|
||||
value: 30,
|
||||
name: '3号砖'
|
||||
},
|
||||
{
|
||||
value: 40,
|
||||
name: '4号砖'
|
||||
},
|
||||
{
|
||||
value: 50,
|
||||
name: '5号砖'
|
||||
},
|
||||
{
|
||||
value: 60,
|
||||
name: '6号砖'
|
||||
}
|
||||
]
|
||||
// let dataName = []
|
||||
// let data = [
|
||||
// {
|
||||
// value: 10,
|
||||
// name: '1号砖'
|
||||
// },
|
||||
// {
|
||||
// value: 20,
|
||||
// name: '2号砖'
|
||||
// },
|
||||
// {
|
||||
// value: 30,
|
||||
// name: '3号砖'
|
||||
// },
|
||||
// {
|
||||
// value: 40,
|
||||
// name: '4号砖'
|
||||
// },
|
||||
// {
|
||||
// value: 50,
|
||||
// name: '5号砖'
|
||||
// },
|
||||
// {
|
||||
// value: 60,
|
||||
// name: '6号砖'
|
||||
// }
|
||||
// ]
|
||||
let dataName = []
|
||||
// this.resData.mixProduction.map(el => {
|
||||
// dataName.push(el.name)
|
||||
// })
|
||||
// let data = this.resData.mixProduction
|
||||
let data = []
|
||||
this.kc.list.map(el => {
|
||||
dataName.push(el.name)
|
||||
data.push({
|
||||
value: el.number + '',
|
||||
name: el.name
|
||||
})
|
||||
})
|
||||
var option = {
|
||||
legend: {
|
||||
// orient: 'vertical',
|
||||
@@ -246,8 +254,8 @@ export default {
|
||||
itemGap: 10.86,
|
||||
itemWidth: 14.16,
|
||||
itemHeight: 7.38,
|
||||
// data: dataName
|
||||
data: ['1号砖', '2号砖', '3号砖', '4号砖', '5号砖', '6号砖']
|
||||
data: dataName
|
||||
// data: ['1号砖', '2号砖', '3号砖', '4号砖', '5号砖', '6号砖']
|
||||
},
|
||||
color: ['#0966E8', '#39E083', '#ffee0e', '#f975aa', '#32c5ff', '#f7b502'],
|
||||
series: [
|
||||
@@ -311,17 +319,17 @@ export default {
|
||||
.bottom
|
||||
_wh(100%, 38px)
|
||||
background center bottom / 1906px 100% url(../../images/screen1/bottom.png) no-repeat
|
||||
.blue
|
||||
.cblue
|
||||
color #32C5FF !important
|
||||
.green
|
||||
color #30EBC9 !important
|
||||
.gray
|
||||
.cgreen
|
||||
color #6ce64e !important
|
||||
.cgray
|
||||
color #516282 !important
|
||||
.yellow
|
||||
.cyellow
|
||||
color #E2BB0E !important
|
||||
.orange
|
||||
.corange
|
||||
color #F96700 !important
|
||||
.red
|
||||
.cred
|
||||
color #FF0000 !important
|
||||
.con01
|
||||
width 48%
|
||||
|
||||
Reference in New Issue
Block a user