Commit 04d358b4 authored by hujun's avatar hujun

部门url 修改

parent b3d8bb23
......@@ -25,6 +25,10 @@ class District extends Basic
* @throws \think\exception\DbException
*/
public function getDistrictList () {
if (!$this->request->isAjax()) {
return view('index');
}
$data['status'] = 200;
$data['data'] = '';
$data['msg'] = '';
......@@ -68,6 +72,7 @@ class District extends Basic
* 添加部门,绑定总监关系
*
* @return \think\Response
* @throws \Exception
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
......@@ -99,6 +104,9 @@ class District extends Basic
* 根据部门名获取部门列表
*
* @return \think\Response
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function getDistrictListByName() {
$data['status'] = 200;
......
......@@ -156,7 +156,6 @@ Route::group('index', [
'getExclusive' => ['index/houses/getExclusive', ['method' => 'get']], //获取楼盘独家
'getRecords' => ['index/houses/getRecords',['method'=>'get']], //操作记录
'getDistrictList' => ['index/district/getDistrictList',['method'=>'get']], //总监列表
'districtList' => ['index/district/districtList',['method'=>'get']], //总监列表
'adddistrict' => ['index/district/addDistrict',['method'=>'get|post']], //添加部门,绑定总监关系
'getDistrictListByName' => ['index/district/getDistrictListByName',['method'=>'get']], //查询部门
'storeList' => ['index/Store/index',['method'=>'get']], //门店列表
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment