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
cf7fdffd
Commit
cf7fdffd
authored
Oct 30, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
经纪人搜索优化
parent
e0d831d5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
9 deletions
+11
-9
Broker.php
application/index/controller/Broker.php
+7
-7
reportList.js
public/resource/js/reportList.js
+4
-2
No files found.
application/index/controller/Broker.php
View file @
cf7fdffd
...
...
@@ -83,29 +83,29 @@ class Broker extends Basic
$pageSize
=
empty
(
$this
->
params
[
'pageSize'
])
?
10
:
$this
->
params
[
'pageSize'
];
if
(
empty
(
$this
->
params
[
'all'
]))
{
$where
=
'status = 0'
;
$where
[
'status'
]
=
0
;
}
else
{
$where
=
''
;
$where
=
[]
;
}
if
(
$this
->
params
[
'phone'
])
{
$where
.=
' AND concat(phone,name) like "%'
.
$this
->
params
[
'phone'
]
.
'%"'
;
$where
[
'concat(phone,name)'
]
=
[
'LIKE'
,
'%'
.
$this
->
params
[
'phone'
]
.
'%'
]
;
}
if
(
$this
->
params
[
'level'
])
{
$where
.=
' AND level in ('
.
$this
->
params
[
'level'
]
.
')'
;
$where
[
'level'
]
=
[
'IN'
,
$this
->
params
[
'level'
]
]
;
}
if
(
$this
->
params
[
'store_id'
])
{
$where
.=
' AND store_id='
.
$this
->
params
[
'store_id'
];
$where
[
'store_id'
]
=
$this
->
params
[
'store_id'
];
}
if
(
$this
->
params
[
'district_id'
])
{
$where
.=
' AND district_id='
.
$this
->
params
[
'district_id'
];
$where
[
'district_id'
]
=
$this
->
params
[
'district_id'
];
}
if
(
$this
->
params
[
'site_id'
]
&&
(
$this
->
userId
!=
1
))
{
$where
.=
' AND site_id='
.
$this
->
params
[
'site_id'
];
$where
[
'site_id'
]
=
$this
->
params
[
'site_id'
];
}
if
(
$where
)
{
...
...
public/resource/js/reportList.js
View file @
cf7fdffd
...
...
@@ -470,7 +470,8 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
type
:
'GET'
,
url
:
'/index/getBroker_new'
,
data
:
{
'phone'
:
$
.
trim
(
_this
.
val
())
'phone'
:
$
.
trim
(
_this
.
val
()),
'all'
:
1
},
timeout
:
30000
,
dataType
:
'json'
,
...
...
@@ -632,7 +633,8 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
type
:
'GET'
,
async
:
true
,
data
:
{
"phone"
:
$
(
"#partical_name"
).
val
()
"phone"
:
$
(
"#partical_name"
).
val
(),
'all'
:
1
},
dataType
:
'json'
,
success
:
function
(
data
)
{
...
...
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