修改api排序
This commit is contained in:
parent
fd17b847ad
commit
571525f207
@ -147,7 +147,7 @@ $status = \Yii::$app->request->get('status');
|
||||
return layui.util.toDateString(d.create_time * 1000, 'yyyy-MM-dd HH:mm:ss');
|
||||
}
|
||||
},
|
||||
{title: '操作', fixed: 'right', toolbar: '#rowBarTpl'}
|
||||
{title: '操作', fixed: 'right', toolbar: '#rowBarTpl',width: 150}
|
||||
]
|
||||
]
|
||||
, url: '<?=\Yii::$app->urlManager->createUrl(['admin/signing/index'])?>'
|
||||
|
||||
@ -94,7 +94,7 @@ class SigningForm extends ApiModel
|
||||
public function orderList($status, $limit, $page)
|
||||
{
|
||||
|
||||
$query = Signing::find()->with(['goods.goodsHub'])->andWhere(['user_id' => $this->user_id]);
|
||||
$query = Signing::find()->with(['goods.goodsHub'])->andWhere(['user_id' => $this->user_id])->orderBy(['create_time'=>SORT_DESC]);
|
||||
|
||||
if ($status != null) {
|
||||
$query->andWhere(['status' => $status]);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user