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
ced7c0a5
Commit
ced7c0a5
authored
Jun 11, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户列表修改
parent
3dfa1b90
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
7 deletions
+34
-7
users_list.html
application/index/view/member/users_list.html
+21
-4
user.js
public/resource/js/user.js
+13
-3
No files found.
application/index/view/member/users_list.html
View file @
ced7c0a5
...
@@ -88,6 +88,13 @@
...
@@ -88,6 +88,13 @@
.clear
{
.clear
{
clear
:
both
;
clear
:
both
;
}
}
.left
{
float
:
left
;
font-size
:
12px
;
}
.bottom
{
margin-top
:
30px
;
}
</style>
</style>
<!--导航star-->
<!--导航star-->
...
@@ -191,17 +198,23 @@
...
@@ -191,17 +198,23 @@
<option
value=
"2"
>
否
</option>
<option
value=
"2"
>
否
</option>
<option
value=
"1"
>
是
</option>
<option
value=
"1"
>
是
</option>
</select>
</select>
<select
class=
"form-control btn2 margin-top-ld input"
name=
""
id=
"district_id"
placeholder=
""
>
<select
class=
"form-control btn2 margin-top-ld input"
name=
""
id=
"district_id"
placeholder=
""
title=
"
客方所属部门、客方所属门店 与邀请人所属部门、邀请人所属门店 不作为并列筛选项"
>
</select>
</select>
<input
class=
"form-control btn2 margin-top-ld input"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"guest_stores"
placeholder=
"客方所属门店"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 margin-top-ld input"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"guest_stores"
placeholder=
"客方所属门店"
type=
"text"
value=
""
title=
"
客方所属部门、客方所属门店 与邀请人所属部门、邀请人所属门店 不作为并列筛选项"
>
<!--邀请人-->
<!--邀请人-->
<select
class=
"form-control btn2 margin-top-ld input"
name=
""
id=
"district_id2"
placeholder=
""
>
<select
class=
"form-control btn2 margin-top-ld input"
name=
""
id=
"district_id2"
placeholder=
""
title=
"
客方所属部门、客方所属门店 与邀请人所属部门、邀请人所属门店 不作为并列筛选项"
>
</select>
</select>
<input
class=
"form-control btn2 margin-top-ld input"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"guest_stores2"
placeholder=
"邀请人所属门店"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 margin-top-ld input"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"guest_stores2"
placeholder=
"邀请人所属门店"
type=
"text"
value=
""
title=
"
客方所属部门、客方所属门店 与邀请人所属部门、邀请人所属门店 不作为并列筛选项"
>
<!--<div class="clear"></div>-->
<!--<span class='left bottom'>(注:客方所属部门,客方所属门店与邀请人所属部门,邀请人所属门店不作为并列筛选项)</span>-->
<select
class=
"form-control btn2 margin-top-ld"
name=
"public_status"
>
<select
class=
"form-control btn2 margin-top-ld"
name=
"public_status"
>
<option
value=
"2"
>
客户状态
</option>
<option
value=
"2"
>
客户状态
</option>
...
@@ -210,6 +223,10 @@
...
@@ -210,6 +223,10 @@
<option
value=
"-1"
>
无效
</option>
<option
value=
"-1"
>
无效
</option>
</select>
</select>
<div
class=
"clear"
></div>
<div
class=
"clear"
></div>
<!-- <span class="btn btn-info btn3 margin-top-ld" class="reset_1">搜索</span>
<!-- <span class="btn btn-info btn3 margin-top-ld" class="reset_1">搜索</span>
<span class="btn btn-info btn3 margin-top-ld" class="reset_1">重置</span> -->
<span class="btn btn-info btn3 margin-top-ld" class="reset_1">重置</span> -->
<span
class=
"btn btn-info btn3 margin-top-ld"
id=
"search"
>
搜索
</span>
<span
class=
"btn btn-info btn3 margin-top-ld"
id=
"search"
>
搜索
</span>
...
...
public/resource/js/user.js
View file @
ced7c0a5
...
@@ -379,6 +379,14 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
...
@@ -379,6 +379,14 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
user
.
pageNo
=
pageNo
;
user
.
pageNo
=
pageNo
;
var
params
=
{};
var
params
=
{};
console
.
log
(
$
(
"#start_date"
).
val
());
console
.
log
(
$
(
"#start_date"
).
val
());
if
(
$
(
"#district_id"
).
val
()
!=
0
||
$
(
"#guest_stores"
).
val
()
!=
''
){
$
(
"#district_id2"
).
val
(
'0'
);
$
(
"#guest_stores2"
).
val
(
''
);
};
if
(
$
(
"#district_id2"
).
val
()
!=
0
||
$
(
"#guest_stores2"
).
val
()
!=
''
){
$
(
"#district_id1"
).
val
(
'0'
);
$
(
"#guest_stores1"
).
val
(
''
);
};
// 输入 name
// 输入 name
// params.name = $("input[name='user']").val();
// params.name = $("input[name='user']").val();
params
.
phone
=
$
(
"input[name='phone']"
).
val
();
params
.
phone
=
$
(
"input[name='phone']"
).
val
();
...
@@ -395,7 +403,7 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
...
@@ -395,7 +403,7 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
params
.
public_user
=
$
(
"select[name=male_status]"
).
val
();
params
.
public_user
=
$
(
"select[name=male_status]"
).
val
();
params
.
store_name
=
$
(
"#guest_stores"
).
val
();
params
.
store_name
=
$
(
"#guest_stores"
).
val
();
params
.
referrer_store_name
=
$
(
"#guest_stores2"
).
val
();
params
.
referrer_store_name
=
$
(
"#guest_stores2"
).
val
();
params
.
district_
name
=
$
(
"#district_id"
).
val
()
params
.
district_
id
=
$
(
"#district_id"
).
val
()
params
.
referrer_district_id
=
$
(
"#district_id2"
).
val
()
params
.
referrer_district_id
=
$
(
"#district_id2"
).
val
()
params
.
login_status
=
$
(
"select[name=login_status]"
).
val
();
params
.
login_status
=
$
(
"select[name=login_status]"
).
val
();
params
.
activate
=
$
(
"select[name=activate]"
).
val
();
params
.
activate
=
$
(
"select[name=activate]"
).
val
();
...
@@ -405,6 +413,8 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
...
@@ -405,6 +413,8 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
params
.
area_type
=
$
(
"select[name=area_type]"
).
val
();
params
.
area_type
=
$
(
"select[name=area_type]"
).
val
();
params
.
price_type
=
$
(
"select[name=price_type]"
).
val
();
params
.
price_type
=
$
(
"select[name=price_type]"
).
val
();
params
.
industry_type
=
$
(
"select[name=industry_type]"
).
val
();
params
.
industry_type
=
$
(
"select[name=industry_type]"
).
val
();
//客方和邀请人搜索项不能并列
$
.
ajax
({
$
.
ajax
({
url
:
'/index/users_list'
,
url
:
'/index/users_list'
,
...
@@ -518,7 +528,7 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
...
@@ -518,7 +528,7 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
dataType
:
'json'
,
dataType
:
'json'
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
if
(
data
.
code
==
200
&&
data
.
data
!=
null
)
{
if
(
data
.
code
==
200
&&
data
.
data
!=
null
)
{
var
str
=
'<option value="
-1
">客方所属部门</option>'
;
var
str
=
'<option value="
0
">客方所属部门</option>'
;
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
district_name
+
'</option>'
;
str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
district_name
+
'</option>'
;
});
});
...
@@ -537,7 +547,7 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
...
@@ -537,7 +547,7 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
dataType
:
'json'
,
dataType
:
'json'
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
if
(
data
.
code
==
200
&&
data
.
data
!=
null
)
{
if
(
data
.
code
==
200
&&
data
.
data
!=
null
)
{
var
str
=
'<option value="
-1
">邀请人所属部门</option>'
;
var
str
=
'<option value="
0
">邀请人所属部门</option>'
;
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
district_name
+
'</option>'
;
str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
district_name
+
'</option>'
;
});
});
...
...
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