value => '店长', self::Employee->value => '店员', ]; } public static function options() { $list = []; foreach (self::map() as $key => $value) { array_push($list, ['label' => $value, 'value' => $key]); } return $list; } public function text() { return data_get(self::map(), $this->value); } }