This commit is contained in:
parent
b378004b78
commit
92ad157ba8
|
|
@ -153,7 +153,8 @@ function initTable() {
|
|||
title: "序号",
|
||||
align: "center",
|
||||
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: "物机类型 ",
|
||||
unresize: true,
|
||||
align: "center",
|
||||
templet: function (d) {
|
||||
let color = d.needType === '2' ? '#f56c6c' : '#262626';
|
||||
return '<span style="color:' + color + '">' + d.type + '</span>'
|
||||
},
|
||||
},
|
||||
{
|
||||
field: "name",
|
||||
|
|
@ -169,6 +174,10 @@ function initTable() {
|
|||
title: "物机名称",
|
||||
unresize: true,
|
||||
align: "center",
|
||||
templet: function (d) {
|
||||
let color = d.needType === '2' ? '#f56c6c' : '#262626';
|
||||
return '<span style="color:' + color + '">' + d.name + '</span>'
|
||||
},
|
||||
},
|
||||
{
|
||||
field: "module",
|
||||
|
|
@ -176,6 +185,10 @@ function initTable() {
|
|||
width: '10%',
|
||||
unresize: true,
|
||||
align: "center",
|
||||
templet: function (d) {
|
||||
let color = d.needType === '2' ? '#f56c6c' : '#262626';
|
||||
return '<span style="color:' + color + '">' + d.module + '</span>'
|
||||
},
|
||||
},
|
||||
{
|
||||
field: "unit",
|
||||
|
|
@ -183,6 +196,10 @@ function initTable() {
|
|||
width: '10%',
|
||||
unresize: true,
|
||||
align: "center",
|
||||
templet: function (d) {
|
||||
let color = d.needType === '2' ? '#f56c6c' : '#262626';
|
||||
return '<span style="color:' + color + '">' + d.unit + '</span>'
|
||||
},
|
||||
},
|
||||
{
|
||||
field: "needNum",
|
||||
|
|
@ -335,7 +352,7 @@ function viewFile(obj) {
|
|||
]
|
||||
}
|
||||
});
|
||||
}else{
|
||||
} else {
|
||||
// 调用公司的预览文件的服务
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue