客户下拉
This commit is contained in:
@@ -32,8 +32,11 @@ class SysDictController extends BaseController
|
||||
$data['created_at'] = date('Y-m-d H:i:s', $data['created_at']);
|
||||
if (isset($data['updated_at']))
|
||||
$data['updated_at'] = date('Y-m-d H:i:s', $data['updated_at']);
|
||||
$data['category'] = SysDictItem::where('id',$data['category_id'])->value('item_label');
|
||||
|
||||
if (isset($data['category_id'])){
|
||||
$data['category'] = SysDictItem::where('id',$data['category_id'])->value('item_label');
|
||||
} else {
|
||||
$data['category'] = '';
|
||||
}
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user