|
|
@ -221,6 +221,7 @@ |
|
|
|
field: 'urgencyLevel', |
|
|
|
align: 'center', |
|
|
|
title: '紧急程度', |
|
|
|
width: 100, // 设置列宽为150像素 |
|
|
|
formatter: function (value,row,index){ |
|
|
|
var curIndex = index; |
|
|
|
var data = [{ index: curIndex, type: value }]; |
|
|
@ -260,20 +261,24 @@ |
|
|
|
field: 'dutyUnit', |
|
|
|
align: 'center', |
|
|
|
title: '责任单位', |
|
|
|
formatter: function (value,row,index){ |
|
|
|
formatter: function (value, row, index) { |
|
|
|
var curIndex = index; |
|
|
|
return '<input class = "form-control" data-id = "dutyUnit_'+curIndex+'" name="inspectionDetails['+curIndex+'].dutyUnit" value="'+value+'">'; |
|
|
|
// 如果 value 为空,则设置为空字符串 |
|
|
|
value = value || ""; |
|
|
|
return '<input class="form-control" data-id="dutyUnit_' + curIndex + '" name="inspectionDetails[' + curIndex + '].dutyUnit" value="' + value + '">'; |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
field: 'recheckRemark', |
|
|
|
align: 'center', |
|
|
|
title: '复检备注', |
|
|
|
formatter: function (value,row,index){ |
|
|
|
formatter: function (value, row, index) { |
|
|
|
var curIndex = index; |
|
|
|
return '<input class = "form-control" data-id = "recheckRemark_'+curIndex+'" name="inspectionDetails['+curIndex+'].recheckRemark" value="'+value+'">'; |
|
|
|
// 如果 value 为空,则设置为空字符串 |
|
|
|
value = value || ""; |
|
|
|
return '<input class="form-control" data-id="recheckRemark_' + curIndex + '" name="inspectionDetails[' + curIndex + '].recheckRemark" value="' + value + '">'; |
|
|
|
} |
|
|
|
}, |
|
|
|
} |
|
|
|
] |
|
|
|
}; |
|
|
|
$.table.init(options); |
|
|
|