@@ -107,8 +107,7 @@ class Orders extends Backend
list($where, $sort, $order, $offset, $limit) = $this->buildparams();
$list = OrderInfo::where($where)
- ->where('orderInfo.order_id',$ids)
- ->order($sort, $order)
+ ->where('order_info.order_id',$ids)
->paginate($limit);
$result = array("total" => $list->total(), "rows" => $list->items());
@@ -97,7 +97,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
// 初始化表格参数配置
Table.api.init({
extend: {
- index_url: 'orders/detail' + location.search,
+ index_url: location.pathname + location.search,
}
});