__('State show'), 'hide' => __('State hide')]; } public function getTypeList() { return ['tout' => __('Type tout'), 'guangdt' => __('Type guangdt'), 'uc' => "uc"]; } public function getStateTextAttr($value, $data) { $value = $value ? $value : $data['state']; $list = $this->getStateList(); return isset($list[$value]) ? $list[$value] : ''; } public function getTypeTextAttr($value, $data) { $value = $value ? $value : $data['type']; $list = $this->getTypeList(); return isset($list[$value]) ? $list[$value] : ''; } }