__('Applytype email'), 'mobile' => __('Applytype mobile'), 'wx' => __('Applytype wx'), 'dd' => __('Applytype dd')]; } public function getAuditstatusList() { return ['-2' => __('Auditstatus -2'), '-1' => __('Auditstatus -1'), '0' => __('Auditstatus 0'), '1' => __('Auditstatus 1')]; } public function getApplytypeTextAttr($value, $data) { $value = $value ? $value : (isset($data['applytype']) ? $data['applytype'] : ''); $list = $this->getApplytypeList(); return isset($list[$value]) ? $list[$value] : ''; } public function getApplytimeTextAttr($value, $data) { $value = $value ? $value : (isset($data['applytime']) ? $data['applytime'] : ''); return is_numeric($value) ? date("Y-m-d H:i:s", $value) : $value; } public function getAudittimeTextAttr($value, $data) { $value = $value ? $value : (isset($data['audittime']) ? $data['audittime'] : ''); return is_numeric($value) ? date("Y-m-d H:i:s", $value) : $value; } public function getAuditstatusTextAttr($value, $data) { $value = $value ? $value : (isset($data['auditstatus']) ? $data['auditstatus'] : ''); $list = $this->getAuditstatusList(); return isset($list[$value]) ? $list[$value] : ''; } protected function setApplytimeAttr($value) { return $value === '' ? null : ($value && !is_numeric($value) ? strtotime($value) : $value); } protected function setAudittimeAttr($value) { return $value === '' ? null : ($value && !is_numeric($value) ? strtotime($value) : $value); } }