master
夜笙歌 3 years ago
parent fe17732876
commit dc34c35f3f

@ -26,13 +26,13 @@ $(() => {
success: function (res) { success: function (res) {
let Res = res let Res = res
Res.data.forEach(val => { Res.data.forEach(val => {
val[0] = 'sc-228NE' val[0] = 'SHEBEI452736'
val[1] = '431' val[1] = 'AGYM45HH23'
val[2] = '0' val[2] = '32'
val[3] = '431' val[3] = '2021.01.01 10:00:00'
val[4] = '0%' delete val[4]
}); });
Res.header = ['型号', '计划数', '完成数', '差异数', '执行进度'] Res.header = ['设备名称', '参数名称', '当前值', '时间', ]
dynamicTable({ dynamicTable({
el: '#productionPlan', el: '#productionPlan',
rowNum: 5, rowNum: 5,
@ -45,7 +45,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%', '100%', '100%', '100%'] colWidth: ['100%', '100%', '40%', '160%', ]
}); });
}, },
error: function (e) { error: function (e) {

@ -26,13 +26,13 @@ $(() => {
success: function (res) { success: function (res) {
let Res = res let Res = res
Res.data.forEach(val => { Res.data.forEach(val => {
val[0] = 'sc-228NE' val[0] = 'SHEBEI452736'
val[1] = '431' val[1] = 'AGYM45HH23'
val[2] = '0' val[2] = '32'
val[3] = '431' val[3] = '2021.01.01 10:00:00'
val[4] = '0%' delete val[4]
}); });
Res.header = ['型号', '计划数', '完成数', '差异数', '执行进度'] Res.header = ['设备名称', '参数名称', '当前值', '时间', ]
dynamicTable({ dynamicTable({
el: '#productionPlan', el: '#productionPlan',
rowNum: 5, rowNum: 5,
@ -45,7 +45,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%', '100%', '100%', '100%'] colWidth: ['100%', '100%', '40%', '160%', ]
}); });
}, },
error: function (e) { error: function (e) {

Loading…
Cancel
Save