/**
  * (void) actionTree : 生成目录树
  * @param string $id
  * @param string $user_id
  */
 public function actionTree($id = '#', $user_id)
 {
     if ($id == '#') {
         $data = ['id' => 'js.map_field', 'text' => Preferences::getName1Text('sSystem', 'appName'), 'children' => true, 'icon' => './images/js18.png'];
     } else {
         $model = new MapField();
         $data = $model->createTree($id, $user_id);
     }
     //print_r($data);
     Yii::$app->response->format = Response::FORMAT_JSON;
     echo Json::encode($data);
 }