mirror of
http://124.126.16.154:8888/singularity/hyperf-admin.git
synced 2026-01-15 05:55:08 +08:00
fix: tree child api
This commit is contained in:
@@ -390,7 +390,8 @@ abstract class AbstractController extends Controller
|
|||||||
$order_by = $this->options['order_by'] ?? '';
|
$order_by = $this->options['order_by'] ?? '';
|
||||||
$attr['select'] = $columns;
|
$attr['select'] = $columns;
|
||||||
$order_by && $attr['order_by'] = $order_by;
|
$order_by && $attr['order_by'] = $order_by;
|
||||||
$childs = $this->getEntity()->list(['pid' => $id], $attr);
|
$parent_key = $this->options['table']['tree']['pid'] ?? 'pid';
|
||||||
|
$childs = $this->getEntity()->list([$parent_key => $id], $attr);
|
||||||
foreach ($tableOptions as $item) {
|
foreach ($tableOptions as $item) {
|
||||||
if (!isset($item['render'])) {
|
if (!isset($item['render'])) {
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user