发布测试版 2.5.0
This commit is contained in:
@@ -124,7 +124,7 @@ class MaterialController extends DefaultController
|
||||
return $row;
|
||||
});
|
||||
} else {
|
||||
$rows = ['data' =>[], 'header' => []];
|
||||
$rows = [];
|
||||
}
|
||||
return $rows;
|
||||
}
|
||||
|
||||
@@ -92,6 +92,7 @@ var params = {product_id: product_id};
|
||||
grid.dataKey = 'material_id';
|
||||
|
||||
$.post(app.url('product/material/list'), params, function(res) {
|
||||
console.log(res.data);
|
||||
if (res.data.length > 0) {
|
||||
grid.api.setRowData(res.data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user