From 248eb32a4a9c623e03301a2a6b17ed52fdb5a2df Mon Sep 17 00:00:00 2001 From: liaofei <136327134@qq.com> Date: Mon, 10 Apr 2023 11:23:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/app/services/system/SystemRouteCateServices.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crmeb/app/services/system/SystemRouteCateServices.php b/crmeb/app/services/system/SystemRouteCateServices.php index 1baab1307..df80b661c 100644 --- a/crmeb/app/services/system/SystemRouteCateServices.php +++ b/crmeb/app/services/system/SystemRouteCateServices.php @@ -96,7 +96,7 @@ class SystemRouteCateServices extends BaseServices $cateInfo = $cateInfo ? $cateInfo->toArray() : []; $url .= '/' . $id; } - $options = $this->dao->selectList(['app_name' => $appName])->toArray(); + $options = $this->dao->selectList(['app_name' => $appName], 'name as label,path as value')->toArray(); $rule = [ FormBuilder::select('pid', '上级分类', (int)($cateInfo['pid'] ?? 0))->options($options), FormBuilder::input('name', '分类名称', $cateInfo['name'] ?? '')->required(),