|
@@ -34,11 +34,14 @@ class NavLogic extends BaseLogic |
|
@@ -34,11 +34,14 @@ class NavLogic extends BaseLogic |
|
34
|
* @time :2023/12/4 15:11
|
34
|
* @time :2023/12/4 15:11
|
|
35
|
*/
|
35
|
*/
|
|
36
|
public function getSubList(){
|
36
|
public function getSubList(){
|
|
37
|
- $str = [];
|
|
|
|
38
|
- //排序掉当前id下所有子集
|
|
|
|
39
|
- $str = $this->getAllSub($this->param['id'],$str);
|
|
|
|
40
|
- $str[] = $this->param['id'];
|
|
|
|
41
|
- $this->param['id'] = ['not in',$str];
|
37
|
+ //编辑时
|
|
|
|
38
|
+ if(isset($this->param['id']) && !empty($this->param['id'])) {
|
|
|
|
39
|
+ $str = [];
|
|
|
|
40
|
+ //排序掉当前id下所有子集
|
|
|
|
41
|
+ $str = $this->getAllSub($this->param['id'], $str);
|
|
|
|
42
|
+ $str[] = $this->param['id'];
|
|
|
|
43
|
+ $this->param['id'] = ['not in', $str];
|
|
|
|
44
|
+ }
|
|
42
|
$this->param['project_id'] = $this->user['project_id'];
|
45
|
$this->param['project_id'] = $this->user['project_id'];
|
|
43
|
$list = $this->model->list($this->param);
|
46
|
$list = $this->model->list($this->param);
|
|
44
|
$data = array();
|
47
|
$data = array();
|