This commit is contained in:
parent
b378004b78
commit
92ad157ba8
|
|
@ -153,7 +153,8 @@ function initTable() {
|
||||||
title: "序号",
|
title: "序号",
|
||||||
align: "center",
|
align: "center",
|
||||||
templet: function (d) {
|
templet: function (d) {
|
||||||
return d.LAY_NUM;
|
let color = d.needType === '2' ? '#f56c6c' : '#262626';
|
||||||
|
return '<span style="color:' + color + '">' + d.LAY_NUM + '</span>'
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -162,6 +163,10 @@ function initTable() {
|
||||||
title: "物机类型 ",
|
title: "物机类型 ",
|
||||||
unresize: true,
|
unresize: true,
|
||||||
align: "center",
|
align: "center",
|
||||||
|
templet: function (d) {
|
||||||
|
let color = d.needType === '2' ? '#f56c6c' : '#262626';
|
||||||
|
return '<span style="color:' + color + '">' + d.type + '</span>'
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: "name",
|
field: "name",
|
||||||
|
|
@ -169,6 +174,10 @@ function initTable() {
|
||||||
title: "物机名称",
|
title: "物机名称",
|
||||||
unresize: true,
|
unresize: true,
|
||||||
align: "center",
|
align: "center",
|
||||||
|
templet: function (d) {
|
||||||
|
let color = d.needType === '2' ? '#f56c6c' : '#262626';
|
||||||
|
return '<span style="color:' + color + '">' + d.name + '</span>'
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: "module",
|
field: "module",
|
||||||
|
|
@ -176,6 +185,10 @@ function initTable() {
|
||||||
width: '10%',
|
width: '10%',
|
||||||
unresize: true,
|
unresize: true,
|
||||||
align: "center",
|
align: "center",
|
||||||
|
templet: function (d) {
|
||||||
|
let color = d.needType === '2' ? '#f56c6c' : '#262626';
|
||||||
|
return '<span style="color:' + color + '">' + d.module + '</span>'
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: "unit",
|
field: "unit",
|
||||||
|
|
@ -183,6 +196,10 @@ function initTable() {
|
||||||
width: '10%',
|
width: '10%',
|
||||||
unresize: true,
|
unresize: true,
|
||||||
align: "center",
|
align: "center",
|
||||||
|
templet: function (d) {
|
||||||
|
let color = d.needType === '2' ? '#f56c6c' : '#262626';
|
||||||
|
return '<span style="color:' + color + '">' + d.unit + '</span>'
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: "needNum",
|
field: "needNum",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue