|
|
@ -24,7 +24,7 @@ $(() => {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
const tableRes = {}
|
|
|
|
const tableRes = {}
|
|
|
|
//生产计划
|
|
|
|
//设备信息
|
|
|
|
const getTable = () => {
|
|
|
|
const getTable = () => {
|
|
|
|
$.ajax({
|
|
|
|
$.ajax({
|
|
|
|
url: '/tankShellDevice/getDeviceParameterValue',
|
|
|
|
url: '/tankShellDevice/getDeviceParameterValue',
|
|
|
@ -35,8 +35,8 @@ $(() => {
|
|
|
|
console.log(res.length +'+'+ tableRes.data?.length);
|
|
|
|
console.log(res.length +'+'+ tableRes.data?.length);
|
|
|
|
$('#productionPlan').remove()
|
|
|
|
$('#productionPlan').remove()
|
|
|
|
$('.scrollTable').html('<div class="productionPlan" id="productionPlan"></div>')
|
|
|
|
$('.scrollTable').html('<div class="productionPlan" id="productionPlan"></div>')
|
|
|
|
tableRes.data = res.map(val => [val.deviceId, val.prameterName, val.prameterValue, val.createTime,])
|
|
|
|
tableRes.data = res.map(val => [val.prameterName, val.prameterValue, val.createTime,])
|
|
|
|
tableRes.header = ['设备名称', '参数名称', '当前值', '时间',]
|
|
|
|
tableRes.header = ['参数名称', '当前值', '时间',]
|
|
|
|
dynamicTable({
|
|
|
|
dynamicTable({
|
|
|
|
el: '#productionPlan',
|
|
|
|
el: '#productionPlan',
|
|
|
|
rowNum: 5,
|
|
|
|
rowNum: 5,
|
|
|
@ -49,7 +49,7 @@ $(() => {
|
|
|
|
headerBGC: 'rgba(8,36,75,0.2)',
|
|
|
|
headerBGC: 'rgba(8,36,75,0.2)',
|
|
|
|
oddRowBGC: 'rgba(8,36,75,0.2)',
|
|
|
|
oddRowBGC: 'rgba(8,36,75,0.2)',
|
|
|
|
evenRowBGC: 'rgba(6,25,57,0.2)',
|
|
|
|
evenRowBGC: 'rgba(6,25,57,0.2)',
|
|
|
|
colWidth: ['100%', '100%', '40%', '160%',]
|
|
|
|
colWidth: ['250%', '50%', '50%',]
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
error: function (e) {
|
|
|
|
error: function (e) {
|
|
|
|