You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.3 KiB
46 lines
1.3 KiB
|
|
function TableStyle(index, row) {
|
|
return '<div style="padding:2px"><table id="ddv-' + index + '"></table></div>';
|
|
}
|
|
|
|
|
|
|
|
//绑定数据列
|
|
function BindExpandRow(index, row) {
|
|
if (row == undefined) {
|
|
row = $("#QDateGrid").datagrid("getSelected");
|
|
}
|
|
if (index == undefined) {
|
|
index = $("#QDateGrid").datagrid("getRowIndex", row);
|
|
}
|
|
|
|
var getDetailUrl = $('#GETDETAILINFO').val();
|
|
|
|
$('#ddv-' + index).datagrid({
|
|
url: getDetailUrl + row.PID,
|
|
fitColumns: false,
|
|
singleSelect: true,
|
|
rownumbers: true,
|
|
loadMsg: '',
|
|
height: 'auto',
|
|
columns: [[
|
|
|
|
{ field: 'POSITION', title: '位置', width: 90, align: 'center'
|
|
},
|
|
{ field: 'DEFECTKEY', title: '物料名称', width: 90,
|
|
align: 'left', hidden: true
|
|
},
|
|
{ field: 'DEFECTVALUE', title: '缺陷类型', width: 150, align: 'left'
|
|
}
|
|
]],
|
|
onResize: function () {
|
|
$('#QDateGrid').datagrid('fixDetailRowHeight', index);
|
|
},
|
|
onLoadSuccess: function () {
|
|
setTimeout(function () {
|
|
$('#QDateGrid').datagrid('fixDetailRowHeight', index);
|
|
}, 0);
|
|
}
|
|
});
|
|
$('#QDateGrid').datagrid('fixDetailRowHeight', index);
|
|
}
|