Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
67f8fb11
Commit
67f8fb11
authored
Apr 23, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商圈修改
parent
20eb54f7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
17 deletions
+21
-17
BusinessDistrict.php
application/index/controller/BusinessDistrict.php
+19
-14
Basic.php
application/index/extend/Basic.php
+2
-2
route.php
application/route.php
+0
-1
No files found.
application/index/controller/BusinessDistrict.php
View file @
67f8fb11
...
@@ -16,7 +16,7 @@ use app\model\Regions;
...
@@ -16,7 +16,7 @@ use app\model\Regions;
class
BusinessDistrict
extends
Basic
class
BusinessDistrict
extends
Basic
{
{
public
function
index
()
{
public
function
index
()
{
return
view
(
'business_district/index'
);
}
}
public
function
edit
()
{
public
function
edit
()
{
...
@@ -89,22 +89,27 @@ class BusinessDistrict extends Basic
...
@@ -89,22 +89,27 @@ class BusinessDistrict extends Basic
* @return mixed
* @return mixed
*/
*/
public
function
getBusiness
()
{
public
function
getBusiness
()
{
$data
[
'status'
]
=
200
;
$data
[
'msg'
]
=
''
;
if
(
$this
->
request
->
isAjax
())
{
$data
[
'status'
]
=
200
;
$data
[
'msg'
]
=
''
;
$params
=
$this
->
request
->
param
();
$params
=
$this
->
request
->
param
();
$pageNo
=
empty
(
$params
[
'pageNo'
])
?
1
:
$params
[
'pageNo'
];
$pageNo
=
empty
(
$params
[
'pageNo'
])
?
1
:
$params
[
'pageNo'
];
$pageSize
=
empty
(
$params
[
'pageSize'
])
?
15
:
$params
[
'pageSize'
];
$pageSize
=
empty
(
$params
[
'pageSize'
])
?
15
:
$params
[
'pageSize'
];
$auth_group
=
New
GBusinessDistrict
();
$auth_group
=
New
GBusinessDistrict
();
$where
=
'is_del = 0'
;
$where
=
'is_del = 0'
;
if
(
$params
[
'name'
]
!=
NULL
)
{
if
(
$params
[
'name'
]
!=
NULL
)
{
$where
.=
' and name like "'
.
$params
[
'name'
]
.
'%"'
;
$where
.=
' and name like "'
.
$params
[
'name'
]
.
'%"'
;
}
$fields
=
'id,name,province,city,disc,status,create_time'
;
$data
[
'list'
]
=
$auth_group
->
getList
(
$pageNo
,
$pageSize
,
'id desc'
,
$fields
,
$where
);
$data
[
'total'
]
=
$auth_group
->
getTotal
(
$where
);
return
$this
->
response
(
200
,
''
,
$data
);
}
else
{
return
view
(
'business_district/index'
);
}
}
$fields
=
'id,name,province,city,disc,status,create_time'
;
$data
[
'list'
]
=
$auth_group
->
getList
(
$pageNo
,
$pageSize
,
'id desc'
,
$fields
,
$where
);
$data
[
'total'
]
=
$auth_group
->
getTotal
(
$where
);
return
$this
->
response
(
200
,
''
,
$data
);
}
}
/**
/**
...
...
application/index/extend/Basic.php
View file @
67f8fb11
...
@@ -93,14 +93,14 @@ class Basic extends Controller
...
@@ -93,14 +93,14 @@ class Basic extends Controller
//判断当前控制器用户是否拥有进入权限
//判断当前控制器用户是否拥有进入权限
foreach
(
$session_menu
as
$v
){
foreach
(
$session_menu
as
$v
){
//不区分大小写
//不区分大小写
if
(
strcasecmp
(
trim
(
$v
[
'name
_all
'
]),
$requestPath
)
==
0
){
if
(
strcasecmp
(
trim
(
$v
[
'name'
]),
$requestPath
)
==
0
){
$auth_id
=
$v
[
'id'
];
$auth_id
=
$v
[
'id'
];
}
}
if
(
!
empty
(
$v
[
'_child'
]))
{
if
(
!
empty
(
$v
[
'_child'
]))
{
foreach
(
$v
[
'_child'
]
as
$value
)
{
foreach
(
$v
[
'_child'
]
as
$value
)
{
//不区分大小写
//不区分大小写
if
(
strcasecmp
(
$value
[
'name
_all
'
],
$requestPath
)
==
0
){
if
(
strcasecmp
(
$value
[
'name'
],
$requestPath
)
==
0
){
$auth_id
=
$value
[
'id'
];
$auth_id
=
$value
[
'id'
];
}
}
}
}
...
...
application/route.php
View file @
67f8fb11
...
@@ -140,7 +140,6 @@ Route::group('index', [
...
@@ -140,7 +140,6 @@ Route::group('index', [
'getUserLabel'
=>
[
'index/label/getUserLabel'
,[
'method'
=>
'get'
]],
//获取客户状态
'getUserLabel'
=>
[
'index/label/getUserLabel'
,[
'method'
=>
'get'
]],
//获取客户状态
//商圈
//商圈
'BusinessDistrict'
=>
[
'index/BusinessDistrict/index'
,
[
'method'
=>
'get'
]],
//商圈列表
'editBusinessDistrict'
=>
[
'index/BusinessDistrict/edit'
,
[
'method'
=>
'get | post'
]],
//编辑商圈
'editBusinessDistrict'
=>
[
'index/BusinessDistrict/edit'
,
[
'method'
=>
'get | post'
]],
//编辑商圈
'delBusinessDistrict'
=>
[
'index/BusinessDistrict/del'
,
[
'method'
=>
'post'
]],
//删除商圈列表
'delBusinessDistrict'
=>
[
'index/BusinessDistrict/del'
,
[
'method'
=>
'post'
]],
//删除商圈列表
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment