|
@@ -115,13 +115,8 @@ class Wind extends CatchController
|
|
|
* @time 2022年04月28日 19:53
|
|
|
*/
|
|
|
public function getWindOptions(Request $request){
|
|
|
- $data = $request->get();
|
|
|
- $where = [];
|
|
|
- if($data["name"])
|
|
|
- {
|
|
|
- $where[] = ["name",'like','%'.$data['name'].'%'];
|
|
|
- }
|
|
|
- $list=$this->windModel->where($where)->field('id as value,name as text')->select();
|
|
|
+
|
|
|
+ $list=$this->windModel->field('id as value,name as text')->select();
|
|
|
return CatchResponse::success($list);
|
|
|
}
|
|
|
}
|