__('不做计算'), '1' => __('区域禁停'), '2' => __('区域可停')]; } //禁行 public function getBanList() { return ['0' => __('不做计算'), '1' => __('区域禁行'), '2' => __('区域可行')]; } //危险源 public function getHazardList() { return ['0' => __('不做计算'), '1' => __('是'), '2' => __('不是')]; } public function parent() { return $this->belongsTo('Perimeter', 'pid', 'id'); } public function typeo() { return $this->belongsTo('PerimeterType', 'region_lv', 'id')->setEagerlyType(0); } public function typet() { return $this->belongsTo('PerimeterType', 'region_type', 'id')->setEagerlyType(0); } }