52c1e993 by yangjianbin

init

1 parent e3b6e930
...@@ -77,6 +77,7 @@ class Perm extends CI_Controller { ...@@ -77,6 +77,7 @@ class Perm extends CI_Controller {
77 $item2['id'] = $vv->id; 77 $item2['id'] = $vv->id;
78 $item2['name'] = $vv->name; 78 $item2['name'] = $vv->name;
79 $item2['pId'] = $v->id; 79 $item2['pId'] = $v->id;
80 $item2['open'] = true;
80 $arr[] = $item2; 81 $arr[] = $item2;
81 if (!$vv->children || empty($vv->children)) { 82 if (!$vv->children || empty($vv->children)) {
82 continue; 83 continue;
...@@ -86,6 +87,7 @@ class Perm extends CI_Controller { ...@@ -86,6 +87,7 @@ class Perm extends CI_Controller {
86 $item3['id'] = $vvv->id; 87 $item3['id'] = $vvv->id;
87 $item3['name'] = $vvv->name; 88 $item3['name'] = $vvv->name;
88 $item3['pId'] = $vv->id; 89 $item3['pId'] = $vv->id;
90 $item3['open'] = true;
89 $arr[] = $item3; 91 $arr[] = $item3;
90 92
91 if (!$vvv->children || empty($vvv->children)) { 93 if (!$vvv->children || empty($vvv->children)) {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!