59 lines
1.4 KiB
Vue
59 lines
1.4 KiB
Vue
<template>
|
||
<div className="bottom-right-table-3">
|
||
<dv-scroll-board :config="config1" />
|
||
</div>
|
||
</template>
|
||
|
||
<script>
|
||
export default {
|
||
|
||
name: 'DigitalFlop',
|
||
data () {
|
||
return {
|
||
config1: {
|
||
"oddRowBGC": "#ededed33",
|
||
"data": [
|
||
["<span style=\"font-size: 24px\">---<\/span>", "<span style=\"font-size: 24px\">---<\/span>", "<span style=\"font-size: 24px\">---<\/span>"],
|
||
["<span style=\"font-size: 24px\">---<\/span>", "<span style=\"font-size: 24px\">---<\/span>", "<span style=\"font-size: 24px\">---<\/span>"]
|
||
],
|
||
"rowNum": 20,
|
||
"evenRowBGC": "#ededed33",
|
||
"header": ["子任务", "工作站", "位置"],
|
||
"headerBGC": "#000fff82",
|
||
"headerHeight": 60
|
||
}
|
||
}
|
||
},
|
||
mounted () {
|
||
console.log('123123213123131')
|
||
setTimeout(() => {
|
||
this.getListData()
|
||
}, 3500)
|
||
|
||
setInterval(this.getListData, 35000)
|
||
},
|
||
methods: {
|
||
getListData () {
|
||
// 这里getList获取到的res是接口返回的所有内容(包含code、msg、data等),里面只有data是业务数据
|
||
this.$axios.post('/api//zwwms/services/rest/rpcService/syncIntoOrder', {
|
||
methodType: 'K4'
|
||
})
|
||
.then(res => {
|
||
this.config1 = res.data.data
|
||
})
|
||
}
|
||
}
|
||
}
|
||
</script>
|
||
|
||
<style lang="less">
|
||
.bottom-right-table-3 {
|
||
margin: 0 -5px;
|
||
|
||
.dv-scroll-board {
|
||
height: calc(~"100% - 60px");
|
||
width: calc(~"100% - 60px");
|
||
}
|
||
}
|
||
</style>
|