mirror of https://gitee.com/karson/fastadmin.git
parent
0b13e1efe3
commit
3320cec110
|
|
@ -1,5 +1,5 @@
|
||||||
<div class="panel panel-default panel-intro">
|
<div class="panel panel-default panel-intro">
|
||||||
{:build_heading($heading.name, $heading.intro)}
|
{:build_heading()}
|
||||||
|
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<div id="myTabContent" class="tab-content">
|
<div id="myTabContent" class="tab-content">
|
||||||
|
|
|
||||||
|
|
@ -107,7 +107,13 @@ class Rule extends Backend
|
||||||
$this->code = -1;
|
$this->code = -1;
|
||||||
if ($ids)
|
if ($ids)
|
||||||
{
|
{
|
||||||
$count = $this->model->where('id', 'in', $ids)->delete();
|
$delIds = [];
|
||||||
|
foreach (explode(',', $ids) as $k => $v)
|
||||||
|
{
|
||||||
|
$delIds = array_merge($delIds, Tree::instance()->getChildrenIds($v, TRUE));
|
||||||
|
}
|
||||||
|
$delIds = array_unique($delIds);
|
||||||
|
$count = $this->model->where('id', 'in', $delIds)->delete();
|
||||||
if ($count)
|
if ($count)
|
||||||
{
|
{
|
||||||
AdminLog::record(__('Del'), $ids);
|
AdminLog::record(__('Del'), $ids);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue