dataRange() ->catchSearch() ->append(['wind_name','fan_number','parts_name','bolt_style_name','boit_type_name']) ->field('*') ->catchOrder() ->creator() ->paginate(); } /** * 获取风场名称 * * @return void */ public function getWindNameAttr() { $wind_id = $this->wind_id; $wind_name = Db::name('wind')->where('id',$wind_id)->value('name'); return $wind_name; } /** * 获取风机机位号 * @return void */ public function getFanNumberAttr() { $fan_id = $this->fan_id; $fan_number = Db::name('fan')->where('id',$fan_id)->value('number'); return $fan_number; } /** * 获取部件名称 * * @return void */ public function getPartsName() { $parts = $this->parts; } }