dataRange() ->catchSearch() ->order($this->aliasField('id'), 'desc') ->paginate(); return $res; } public function getAddTimeAttr() { $addtime = $this->getData('AddTime'); return date('Y-m-d H:i:s', $time = substr($addtime, 0, 10)); } public function getAckTimeAttr() { $addtime = $this->getData('AckTime'); return date('Y-m-d H:i:s', $time = substr($addtime, 0, 10)); } }