大屏三
This commit is contained in:
@@ -91,7 +91,7 @@ html, body {
|
|||||||
body {
|
body {
|
||||||
-webkit-text-size-adjust: none;
|
-webkit-text-size-adjust: none;
|
||||||
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
||||||
background: #05032a center center / 100% 100% url(../../assets/images/screen1/bg.png) no-repeat;
|
background: #05032a center center / 100% 100% url(../../assets/images/screen1/bg.jpg) no-repeat;
|
||||||
}
|
}
|
||||||
|
|
||||||
div, p {
|
div, p {
|
||||||
|
|||||||
BIN
src/assets/images/screen1/bg.jpg
Normal file
BIN
src/assets/images/screen1/bg.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 182 KiB |
@@ -26,3 +26,9 @@ export const productSchedule = (id) => post('api/bigscreen/product/productSchedu
|
|||||||
|
|
||||||
/** 1.8大屏中二 */
|
/** 1.8大屏中二 */
|
||||||
export const unfinishOrder = (id) => post('api/bigscreen/product/unfinishOrder', {})
|
export const unfinishOrder = (id) => post('api/bigscreen/product/unfinishOrder', {})
|
||||||
|
|
||||||
|
// 车间看板
|
||||||
|
// 1.1任务数
|
||||||
|
export const getTask = (id) => post('api/agvBigScreen/getTask', {})
|
||||||
|
// 1.2车辆状态
|
||||||
|
export const getAgvMsg = (id) => post('api/agvBigScreen/getAgvMsg', {})
|
||||||
|
|||||||
@@ -1,15 +1,57 @@
|
|||||||
<template>
|
<template>
|
||||||
<section class="bg">
|
<section class="bg">
|
||||||
<t-header title="海亮铜管智能车间生产监控中心"></t-header>
|
<t-header title="海亮铜管智能车间生产监控中心"></t-header>
|
||||||
|
<div class="container" @click="rectClick">
|
||||||
|
<p>{{zb}}</p>
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import THeader from '@components/header.vue'
|
import THeader from '@components/header.vue'
|
||||||
|
import {getTask, getAgvMsg} from '@js/getData2.js'
|
||||||
export default {
|
export default {
|
||||||
name: 'WorkshopScreen',
|
name: 'WorkshopScreen',
|
||||||
components: {
|
components: {
|
||||||
THeader
|
THeader
|
||||||
|
},
|
||||||
|
data () {
|
||||||
|
return {
|
||||||
|
zb: ''
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
rectClick () {
|
||||||
|
var ev = window.event
|
||||||
|
// 获取相对于当前所指向对象的位置坐标
|
||||||
|
this.zb = 'x:' + ev.offsetX + 'y:' + ev.offsetY
|
||||||
|
},
|
||||||
|
async _getTask () {
|
||||||
|
let res = await getTask()
|
||||||
|
if (res.code === '1') {
|
||||||
|
} else {
|
||||||
|
this.Dialog(res.desc)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
async _getAgvMsg () {
|
||||||
|
let res = await getAgvMsg()
|
||||||
|
if (res.code === '1') {
|
||||||
|
} else {
|
||||||
|
this.Dialog(res.desc)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<style lang="stylus" scoped>
|
||||||
|
@import '~@css/mixin'
|
||||||
|
.bg
|
||||||
|
_wh(100%, 100%)
|
||||||
|
overflow hidden
|
||||||
|
.container
|
||||||
|
_wh(100%, calc(100% - 1.38rem))
|
||||||
|
padding .3rem .2509rem 0
|
||||||
|
overflow hidden
|
||||||
|
clear both
|
||||||
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user