update
This commit is contained in:
parent
73eceab30f
commit
89b5a9eb81
@ -44,7 +44,7 @@ class VehicleLists extends BaseAdminDataLists implements ListsSearchInterface
|
||||
*/
|
||||
public function lists(): array
|
||||
{
|
||||
return Vehicle::where($this->searchWhere)
|
||||
return Vehicle::where($this->searchWhere)->where('status','<>',3)
|
||||
->field(['id','license', 'gps_imei', 'status','type'])
|
||||
->limit($this->limitOffset, $this->limitLength)
|
||||
->order(['id' => 'desc'])
|
||||
|
@ -15,7 +15,7 @@ class Vehicle extends BaseModel
|
||||
|
||||
public function getStatusNameAttr($value,$data): string
|
||||
{
|
||||
$status = [0=>'未出租',1=>'签约中',2=>'已出租'];
|
||||
$status = [0=>'未出租',1=>'签约中',2=>'已出租',3=>'已解约'];
|
||||
return $status[$data['status']];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user