upperCloth_glass.vue
1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<template>
<div class="app-body">
<Header title="宏仁玻璃布仓看板" :sysInitTimeNum="sysTimeNum"></Header>
<div class="dv-content-body"></div>
</div>
</template>
<script>
import Header from '@/layout/appHead'
export default {
data() {
return {
baseUrlOff: 'http://172.16.30.219:5221/api/Index/GetWebFWSInfo',
// baseUrlOff: 'http://127.0.0.1:6001/api/BulletinBoard/Mes/V1/ReadData1',
baseUrlOnLine: window.appConfig.baseUrlintTwo,
sysData: {},
sysInitTimeNum: 2,
sysTimeNum: 2,
}
},
components: {
Header,
},
methods: {
getAGVDataOne() {
let opt = {
urlSuffix: window.baseOnLineOrOff ? this.baseUrlOnLine : this.baseUrlOff,
logTitle: 'AGV-路线信息',
isUrlALL: true,
headers: window.baseOnLineOrOff,
header: window.baseOnLineOrOff,
// isHanderAjaxSuccessActionLoad: true,
// type: 'post',
}
let callBackFn = (res) => {
if (!this.ajaxSuccessDataBefore(res, opt.logTitle)) return
setTimeout(() => {
this.$refs.headLeft.sed(res.data.data)
this.$refs.headCenter.getData(res.data.data)
this.$refs.headRight.sed(res.data.data)
this.$refs.footerLeft.sed(res.data.data)
this.$refs.footerCenter.sed(res.data.data)
this.$refs.footerRight.sed(res.data.data)
}, 300)
}
''.ajax(this, opt, callBackFn)
},
ajaxSuccessDataBefore(res, title) {
if (res.data.data == null || res.data.data.length == 0) {
this.sysData = []
''.Log(title + '无数据', 'getData')
return false
}
return true
},
intInterval: function() {
''.intInterval(this, this.sysInitTimeNum, () => {
this.getAGVDataOne()
})
},
},
mounted() {
debugger
// this.getAGVDataOne()
// this.intInterval()
},
}
</script>
<style lang="scss" scoped>
.app-body {
height: 100%;
width: 100%;
}
</style>