mirror of
http://124.126.16.154:8888/singularity/hyperf-admin.git
synced 2026-01-15 03:55:07 +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'] ?? '';
|
||||
$attr['select'] = $columns;
|
||||
$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) {
|
||||
if (!isset($item['render'])) {
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user