属性下拉
This commit is contained in:
@@ -48,6 +48,21 @@ class VehicleNewAttributesService extends BaseService
|
||||
]
|
||||
];
|
||||
},
|
||||
'preset' => function ($params) {
|
||||
return [
|
||||
'filters' => [
|
||||
],
|
||||
'fields' => ['id','status'],
|
||||
'relations' => [
|
||||
'translation' => ['attributes_id', 'locale', 'attribute_name'],
|
||||
'value' => ['id', 'attribute_id', 'sort_order'],
|
||||
'value.translation' => ['id', 'values_id', 'locale', 'value_name'],
|
||||
],
|
||||
'sorts' => [
|
||||
['field' => 'created_at', 'direction' => 'desc']
|
||||
],
|
||||
];
|
||||
},
|
||||
'show' => function ($params) {
|
||||
return [
|
||||
'filters' => [
|
||||
|
||||
Reference in New Issue
Block a user