__('Platform'), 'agency' => __('Agency'), 'store' => __('Store'), 'massager' => __('Massager'), 'user' => "用户" ]; } public function getChangeTypeList() { return [ 'profit' => __('Profit'), 'drawings' => __('Drawings'), "closing_expend" => "业绩结算支出", "closing_income" => "结算收入", "channel_expend" => "渠道支出", "channel_income" => "渠道收入" ]; } public function getIdentityTypeTextAttr($value, $data) { $value = $value ? $value : (isset($data['identity_type']) ? $data['identity_type'] : ''); $list = $this->getIdentityTypeList(); return isset($list[$value]) ? $list[$value] : ''; } public function getChangeTypeTextAttr($value, $data) { $value = $value ? $value : (isset($data['change_type']) ? $data['change_type'] : ''); $list = $this->getChangeTypeList(); return isset($list[$value]) ? $list[$value] : ''; } }