|
|
|
@ -4,6 +4,31 @@ $(() => {
|
|
|
|
|
$.getJSON('/tankShellDevice/getOeeStatistics', function (result) {
|
|
|
|
|
OEEStatistics(result, document.getElementById("OEEStatistics"));
|
|
|
|
|
});
|
|
|
|
|
setInterval(() => {
|
|
|
|
|
let result = [
|
|
|
|
|
{
|
|
|
|
|
"createTime": 1654729200000,
|
|
|
|
|
"yValue": "07",
|
|
|
|
|
"xValue": Math.random() * 3
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"createTime": 1654732800000,
|
|
|
|
|
"yValue": "08",
|
|
|
|
|
"xValue": Math.random() * 3
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"createTime": 1654736400000,
|
|
|
|
|
"yValue": "09",
|
|
|
|
|
"xValue": Math.random() * 3
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"createTime": 1654740000000,
|
|
|
|
|
"yValue": "10",
|
|
|
|
|
"xValue": Math.random() * 3
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
OEEStatistics(result, document.getElementById("OEEStatistics"));
|
|
|
|
|
}, 1000);
|
|
|
|
|
|
|
|
|
|
//设备故障排名
|
|
|
|
|
$.getJSON('/tankShell/getStatisticalOutputByModel', function (result) {
|
|
|
|
@ -21,20 +46,25 @@ $(() => {
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
//生产计划
|
|
|
|
|
|
|
|
|
|
let isUpdata = false
|
|
|
|
|
const getTable = () => {
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: '/storage/getProductionPlan',
|
|
|
|
|
type: 'GET',
|
|
|
|
|
dataType: 'JSON',
|
|
|
|
|
success: function (res) {
|
|
|
|
|
console.log('update');
|
|
|
|
|
let Res = res
|
|
|
|
|
Res.data.forEach(val => {
|
|
|
|
|
val[0] = 'SHEBEI452736'
|
|
|
|
|
val[1] = 'AGYM45HH23'
|
|
|
|
|
val[2] = '32'
|
|
|
|
|
val[2] = Math.random()*30
|
|
|
|
|
val[3] = '2021.01.01 10:00:00'
|
|
|
|
|
delete val[4]
|
|
|
|
|
});
|
|
|
|
|
Res.header = ['设备名称', '参数名称', '当前值', '时间',]
|
|
|
|
|
console.log(Res);
|
|
|
|
|
dynamicTable({
|
|
|
|
|
el: '#productionPlan',
|
|
|
|
|
rowNum: 5,
|
|
|
|
@ -54,10 +84,23 @@ $(() => {
|
|
|
|
|
console.log(e)
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
getTable()
|
|
|
|
|
setInterval(() => {
|
|
|
|
|
console.log(123123);
|
|
|
|
|
if (isUpdata) {
|
|
|
|
|
console.log($('#productionPlan'));
|
|
|
|
|
clearInterval(animation);
|
|
|
|
|
animation = null
|
|
|
|
|
$('.scrollTable').html('<div class="productionPlan" id="productionPlan"></div>')
|
|
|
|
|
getTable()
|
|
|
|
|
}
|
|
|
|
|
}, 2000);
|
|
|
|
|
setInterval(() => {
|
|
|
|
|
isUpdata = !isUpdata
|
|
|
|
|
}, 4000);
|
|
|
|
|
|
|
|
|
|
/*数据信息*/
|
|
|
|
|
const statusArray = [0, 0, 0, 0, 0];
|
|
|
|
|
// var a = () => {
|
|
|
|
|
$.getJSON('/tankShellDevice/getDataInformation', function (result) {
|
|
|
|
|
dataInformationFunction(result)
|
|
|
|
|
});
|
|
|
|
@ -72,7 +115,6 @@ $(() => {
|
|
|
|
|
$.getJSON('/tankShellDevice/getRunParameters', function (result) {
|
|
|
|
|
runParamStatisticsFunction(result)
|
|
|
|
|
});
|
|
|
|
|
// }
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
/*数据信息*/
|
|
|
|
|