|
@@ -165,10 +165,14 @@ class ArticleCategory extends AuthController
|
|
|
/**
|
|
/**
|
|
|
* 树形列表
|
|
* 树形列表
|
|
|
* @return mixed
|
|
* @return mixed
|
|
|
|
|
+ * @throws \ReflectionException
|
|
|
*/
|
|
*/
|
|
|
public function getTreeList()
|
|
public function getTreeList()
|
|
|
{
|
|
{
|
|
|
$list = $this->service->getTreeList();
|
|
$list = $this->service->getTreeList();
|
|
|
|
|
+ foreach ($list as &$item) {
|
|
|
|
|
+ $item['disabled'] = !$item['status'] || $item['is_del'];
|
|
|
|
|
+ }
|
|
|
return app('json')->success($list);
|
|
return app('json')->success($list);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|