车间中间大屏显示
This commit is contained in:
parent
f777591f2a
commit
02210703bc
@ -116,33 +116,29 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
|
|
||||||
<el-col :xs="24" :sm="6" :lg="6">
|
<el-col :xs="24" :sm="6" :lg="6">
|
||||||
|
|
||||||
|
|
||||||
<div class="ibox">
|
|
||||||
<el-image
|
|
||||||
:align="center"
|
|
||||||
style="width: 180px; height: 180px"
|
|
||||||
:src="url"
|
|
||||||
:fit=fill>
|
|
||||||
</el-image> <h2 style="margin-top: 0px;">B班班长-陈亮</h2>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</el-col>
|
|
||||||
|
|
||||||
|
|
||||||
<el-col :xs="24" :sm="6" :lg="6">
|
|
||||||
|
|
||||||
|
|
||||||
<div class="ibox">
|
<div class="ibox">
|
||||||
<el-image
|
<el-image
|
||||||
:align="center"
|
:align="center"
|
||||||
style="width: 180px; height: 180px"
|
style="width: 180px; height: 180px"
|
||||||
:src="url2"
|
:src="url2"
|
||||||
:fit=fill>
|
:fit=fill>
|
||||||
</el-image> <h2 style="margin-top: 0px;">A班班长-陈忠维</h2>
|
</el-image>
|
||||||
|
<h2 style="margin-top: 0px;">A班班长-陈忠维</h2>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</el-col>
|
</el-col>
|
||||||
|
<el-col :xs="24" :sm="6" :lg="6">
|
||||||
|
<div class="ibox">
|
||||||
|
<el-image
|
||||||
|
:align="center"
|
||||||
|
style="width: 180px; height: 180px"
|
||||||
|
:src="url"
|
||||||
|
:fit=fill>
|
||||||
|
</el-image>
|
||||||
|
<h2 style="margin-top: 0px;">B班班长-陈亮</h2>
|
||||||
|
</div>
|
||||||
|
</el-col>
|
||||||
|
|
||||||
|
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
|
|
||||||
@ -228,7 +224,7 @@
|
|||||||
|
|
||||||
require('echarts/theme/macarons') // echarts theme
|
require('echarts/theme/macarons') // echarts theme
|
||||||
import resize from '../dashboard/mixins/resize'
|
import resize from '../dashboard/mixins/resize'
|
||||||
import {getcurrent,DoGetLastGroupReporterData,currentBoxAndGroupMonitor} from '@/api/dashboard/fxdashboard'
|
import {getcurrent, DoGetLastGroupReporterData, currentBoxAndGroupMonitor} from '@/api/dashboard/fxdashboard'
|
||||||
import {getDensityGroup} from '@/api/dashboard/density'
|
import {getDensityGroup} from '@/api/dashboard/density'
|
||||||
|
|
||||||
|
|
||||||
@ -259,19 +255,18 @@
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
||||||
this.Refresh()
|
this.Refresh()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
Refresh(){
|
Refresh() {
|
||||||
setTimeout(function(){
|
setTimeout(function () {
|
||||||
window.location.reload(true);
|
window.location.reload(true);
|
||||||
},60000*10); //这就是 一分钟
|
}, 60000 * 10); //这就是 一分钟
|
||||||
},
|
},
|
||||||
getData() {
|
getData() {
|
||||||
var d_zhenpin=0;
|
var d_zhenpin = 0;
|
||||||
var d_midu=0;
|
var d_midu = 0;
|
||||||
var d_channeng=0;
|
var d_channeng = 0;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
getcurrent().then(response => {
|
getcurrent().then(response => {
|
||||||
@ -348,8 +343,8 @@ this.Refresh()
|
|||||||
option_energy_avg.series[0].data[0].value = (avg_energy_avg / data_ajax.length * 100).toFixed(0);
|
option_energy_avg.series[0].data[0].value = (avg_energy_avg / data_ajax.length * 100).toFixed(0);
|
||||||
chart_energy_avg.setOption(option_energy_avg, true);
|
chart_energy_avg.setOption(option_energy_avg, true);
|
||||||
|
|
||||||
d_zhenpin=(avg_zhengpin_avg / k * 100).toFixed(0);
|
d_zhenpin = (avg_zhengpin_avg / k * 100).toFixed(0);
|
||||||
d_channeng=(avg_energy_avg / data_ajax.length * 100).toFixed(0);
|
d_channeng = (avg_energy_avg / data_ajax.length * 100).toFixed(0);
|
||||||
|
|
||||||
currentBoxAndGroupMonitor().then(response => {
|
currentBoxAndGroupMonitor().then(response => {
|
||||||
|
|
||||||
@ -357,8 +352,8 @@ this.Refresh()
|
|||||||
this.tableDataCurrentGroup.push({
|
this.tableDataCurrentGroup.push({
|
||||||
已完成箱数: response.data[i].SUMBOX,
|
已完成箱数: response.data[i].SUMBOX,
|
||||||
班长: response.data[i].NAME,
|
班长: response.data[i].NAME,
|
||||||
产能达标率: d_channeng+'%',
|
产能达标率: d_channeng + '%',
|
||||||
正品率: d_zhenpin+'%',
|
正品率: d_zhenpin + '%',
|
||||||
平均密度: d_midu,
|
平均密度: d_midu,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -374,7 +369,7 @@ this.Refresh()
|
|||||||
}
|
}
|
||||||
option_change_moulding_time.series[0].data[0].value = (avg_density / response.data.length).toFixed(3);
|
option_change_moulding_time.series[0].data[0].value = (avg_density / response.data.length).toFixed(3);
|
||||||
chart_density.setOption(option_change_moulding_time, true);
|
chart_density.setOption(option_change_moulding_time, true);
|
||||||
d_midu=(avg_density / response.data.length).toFixed(3);
|
d_midu = (avg_density / response.data.length).toFixed(3);
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -386,9 +381,9 @@ this.Refresh()
|
|||||||
|
|
||||||
|
|
||||||
this.tableDataLastGroup.push({
|
this.tableDataLastGroup.push({
|
||||||
产能达标率: ((response.data[i].capacity)*1).toFixed(2)*100 + '%',
|
产能达标率: ((response.data[i].capacity) * 1).toFixed(2) * 100 + '%',
|
||||||
正品率: ((response.data[i].yield)*1).toFixed(2)*100 + '%',
|
正品率: ((response.data[i].yield) * 1).toFixed(2) * 100 + '%',
|
||||||
平均密度: ((response.data[i].avg_density)*1).toFixed(2),
|
平均密度: ((response.data[i].avg_density) * 1).toFixed(2),
|
||||||
已完成箱数: response.data[i].SUMBOX,
|
已完成箱数: response.data[i].SUMBOX,
|
||||||
班长: response.data[i].NAME,
|
班长: response.data[i].NAME,
|
||||||
|
|
||||||
@ -397,7 +392,6 @@ this.Refresh()
|
|||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user