客户下拉

This commit is contained in:
2025-09-02 15:42:30 +08:00
parent 36f9c82c8b
commit 4ad408c0b2
5 changed files with 59 additions and 3 deletions
+5 -2
View File
@@ -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;
}