完全vue渲染列表的功能
去掉不必要的js函数定义 修改返回json的方式
This commit is contained in:
@@ -113,11 +113,10 @@ class WarehouseController extends DefaultController
|
||||
$locations[$_location['warehouse_id']][] = $_location;
|
||||
}
|
||||
|
||||
$items = Grid::dataFilters($rows, $header, function($item) use($locations) {
|
||||
return Grid::dataFilters($rows, $header, function($item) use($locations) {
|
||||
$item['pos'] = (array)$locations[$item['id']];
|
||||
return $item;
|
||||
});
|
||||
return response()->json($items);
|
||||
}
|
||||
|
||||
return $this->render([
|
||||
|
||||
Reference in New Issue
Block a user