IS语音
搞定了,加上这段 $dataProvider->setSort([ ... ]); OK了!
搞定了,加上这段
$dataProvider->setSort([ ... ]);
OK了!
@涛哥 $dataProvider->setSort([
'attributes' => [ 'customer_name' => [ 'asc' => ['customer.customer_name' => SORT_ASC], 'desc' => ['customer.customer_name' => SORT_DESC], 'label' => 'Customer Name' ], ]
]);
model类添加hasOne或者hasMany modelSearch类添加joinWith做关联查询
上代码,老哥