Merge remote-tracking branch 'new_hw/yangwl'
commit
ee8d51141f
@ -0,0 +1,79 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
// 查询产量
|
||||||
|
export function dryRoomDataCarousel(query) {
|
||||||
|
return request({
|
||||||
|
url: '/mes/wcsInterface/dryRoomDataCarousel',
|
||||||
|
method: 'post',
|
||||||
|
data: {
|
||||||
|
"factory": "999"
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询产量
|
||||||
|
export function getHourProductionList(query) {
|
||||||
|
return request({
|
||||||
|
url: '/mes/reportWork/getHourProductionList',
|
||||||
|
method: 'get',
|
||||||
|
params: query,
|
||||||
|
header:{
|
||||||
|
PoolName:'ds_999'
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export function EnergyExpend(query) {
|
||||||
|
return request({
|
||||||
|
url: '/mes/h5/EnergyExpend',
|
||||||
|
method: 'get',
|
||||||
|
params: query,
|
||||||
|
header:{
|
||||||
|
PoolName:'ds_1000'
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export function agvdata(query) {
|
||||||
|
return request({
|
||||||
|
url: 'http://192.168.202.25:9001/api/scada/agvdata',
|
||||||
|
method: 'get',
|
||||||
|
params: query,
|
||||||
|
header:{
|
||||||
|
PoolName:'ds_999'
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export function PlanAchievementRate(query) {
|
||||||
|
return request({
|
||||||
|
url: '/mes/reportWork/PlanAchievementRate',
|
||||||
|
method: 'get',
|
||||||
|
params: query,
|
||||||
|
header:{
|
||||||
|
PoolName:'ds_999'
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export function getHfChartDatas(query) {
|
||||||
|
return request({
|
||||||
|
url: '/quality/qcProCheck/getHfChartDatas',
|
||||||
|
method: 'get',
|
||||||
|
params: query,
|
||||||
|
header:{
|
||||||
|
PoolName:'ds_999'
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export function getHourProductionLists(query) {
|
||||||
|
return request({
|
||||||
|
url: '/mes/reportWork/getHourProductionLists',
|
||||||
|
method: 'get',
|
||||||
|
params: query,
|
||||||
|
header:{
|
||||||
|
PoolName:'ds_999'
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
Binary file not shown.
After Width: | Height: | Size: 244 KiB |
Binary file not shown.
After Width: | Height: | Size: 1.5 MiB |
@ -0,0 +1,35 @@
|
|||||||
|
<template>
|
||||||
|
<div />
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import * as echarts from 'echarts';
|
||||||
|
|
||||||
|
export default {
|
||||||
|
expose: ['setData'],
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
chart: null,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
},
|
||||||
|
beforeDestroy() {
|
||||||
|
if (!this.chart) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
this.chart.dispose()
|
||||||
|
this.chart = null
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
setData(option) {
|
||||||
|
this.initChart(option)
|
||||||
|
},
|
||||||
|
initChart(option) {
|
||||||
|
this.chart = echarts.init(this.$el, 'macarons')
|
||||||
|
|
||||||
|
this.chart.setOption(option)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
@ -0,0 +1,30 @@
|
|||||||
|
<template>
|
||||||
|
<div class="body">
|
||||||
|
<iframe :src="iframeSrc" style="width: 100%;height: 100%"></iframe>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
|
||||||
|
import * as TWEEN from '@tweenjs/tween.js'
|
||||||
|
import {getAgvData, getHourProductionList} from "../../api/board/cs2";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
iframeSrc:'http://192.168.202.20:8100/#/de-link/gXZdFzxH'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {},
|
||||||
|
mounted() {}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<style scoped lang="less">
|
||||||
|
.body{
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
</style>
|
Loading…
Reference in New Issue