__('Is_show 1'), '0' => __('Is_show 0')]; } public function getIsLianxuList() { return ['1' => __('Is_lianxu 1'), '0' => __('Is_lianxu 0')]; } public function getIsShowTextAttr($value, $data) { $value = $value ? $value : (isset($data['is_show']) ? $data['is_show'] : ''); $list = $this->getIsShowList(); return isset($list[$value]) ? $list[$value] : ''; } public function getIsLianxuTextAttr($value, $data) { $value = $value ? $value : (isset($data['is_lianxu']) ? $data['is_lianxu'] : ''); $list = $this->getIsLianxuList(); return isset($list[$value]) ? $list[$value] : ''; } }