moonsflyer 8 months ago
parent
commit
16f2882b0e
2 changed files with 2 additions and 2 deletions
  1. 1 1
      app/adminapi/lists/asset/AssetAreaLists.php
  2. 1 1
      app/api/logic/ServiceLogic.php

+ 1 - 1
app/adminapi/lists/asset/AssetAreaLists.php

@@ -56,7 +56,7 @@ class AssetAreaLists extends BaseAdminDataLists implements ListsSearchInterface
     public function lists(): array
     {
 
-        $lists = (new AssetArea())->field('id,title,level,pid,create_time')
+        $lists = (new AssetArea())->field('id,id value ,title , title lable,level,pid,create_time')
             ->where($this->searchWhere)
             ->limit($this->limitOffset, $this->limitLength)
             ->Order('sort desc')

+ 1 - 1
app/api/logic/ServiceLogic.php

@@ -189,7 +189,7 @@ class ServiceLogic extends BaseLogic
          if(isset($get['title'])){
              $where[]=['title','like','%'.$get['title'].'%'];
          }
-         $area_list = AssetArea::where($where)->field('id,level,pid,title')->order('sort desc,id asc')->select()->toArray();
+         $area_list = AssetArea::where($where)->field('id,id value,level,pid,title,title lable')->order('sort desc,id asc')->select()->toArray();
 
         if($get['is_tree'] ==1){