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
8ecab55b
Commit
8ecab55b
authored
Aug 14, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
898c56fe
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
53 additions
and
11 deletions
+53
-11
frame_tpl.html
application/index/view/global/frame_tpl.html
+4
-0
remark_follow_index.html
application/index/view/remark/remark_follow_index.html
+4
-4
RemarkFollowIndex.js
public/resource/js/RemarkFollowIndex.js
+45
-7
No files found.
application/index/view/global/frame_tpl.html
View file @
8ecab55b
...
...
@@ -20,6 +20,10 @@
<span
class=
"hidden-phone"
>
同联商业后台管理中心
</span>
</a>
</div>
<select
class=
"form-control btn2 ld-Marheight"
id=
"user_city_choose"
>
<option
value=
"310100"
selected=
"selected"
>
上海市
</option>
<option
value=
"330100"
>
杭州市
</option>
</select>
<div
class=
"dropdown"
>
<button
class=
"btn btn-default dropdown-toggle"
type=
"button"
id=
"dropdownMenu1"
data-toggle=
"dropdown"
aria-haspopup=
"true"
aria-expanded=
"true"
>
<span
class=
"caret"
></span>
...
...
application/index/view/remark/remark_follow_index.html
View file @
8ecab55b
...
...
@@ -335,8 +335,8 @@
<input
class=
"form-control btn4 ld-Marheight"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"start_date"
name=
"start_date"
type=
"date"
>
<span
class=
"fore-span ld-Marheight"
>
-
</span>
<input
class=
"form-control btn4 ld-Marheight"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"end_date"
name=
"end_date"
type=
"date"
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"customer_
name"
placeholder=
"客户姓名
"
type=
"text"
value=
""
>
<
input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"customer_phone"
placeholder=
"客户手机号"
type=
"tel"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"customer_
id"
placeholder=
"客户编号
"
type=
"text"
value=
""
>
<
!--<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="customer_phone" placeholder="客户手机号" type="tel" value="">--
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"follow_content"
placeholder=
"跟进内容"
type=
"text"
value=
""
>
...
...
@@ -350,11 +350,11 @@
<select
class=
"form-control btn4 ld-Marheight input"
name=
""
id=
"guest_stores"
value=
""
>
</select>
<select
class=
"form-control btn2 ld-Marheight"
id=
"user_city_choose"
>
<
!--<
select class="form-control btn2 ld-Marheight" id="user_city_choose">
<option value="" selected="selected">城市筛选</option>
<option value="310100">上海市</option>
<option value="330100">杭州市</option>
</select>
</select>
-->
<select
class=
"form-control btn2 ld-Marheight"
id=
"user_area_choose"
>
<option
value=
""
selected=
"selected"
>
区域筛选
</option>
</select>
...
...
public/resource/js/RemarkFollowIndex.js
View file @
8ecab55b
...
...
@@ -17,6 +17,25 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'ckfinder', 'ckfinde
init
:
function
()
{
//初始化dot
$
(
"body"
).
append
(
template
);
//初始化城市 区域筛选
if
(
$
(
"#user_city_choose"
).
val
()
==
310100
){
var
city_id
=
310100
;
}
if
(
$
(
"#user_city_choose"
).
val
()
==
330100
){
var
city_id
=
330100
;
}
//区域 渲染
if
(
city_id
)
{
user
.
getCityAreaList
(
city_id
,
function
(
_data
)
{
var
_str
=
'<option value="0">全部</option>'
;
$
.
each
(
_data
,
function
(
i
,
item
)
{
_str
+=
'<option value="'
+
item
.
fullName
+
'">'
+
item
.
fullName
+
'</option>'
;
});
$
(
"#user_area_choose"
).
html
(
_str
);
});
}
else
{
};
user
.
getList
();
user
.
event
();
//时间控件初始化
...
...
@@ -72,25 +91,37 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'ckfinder', 'ckfinde
e
.
stopPropagation
();
$
(
this
).
parent
().
remove
();
});
//城市 区域 二级联动 筛选
_doc
.
on
(
'input'
,
'#user_city_choose'
,
function
()
{
user
.
getList
();
var
_this
=
$
(
this
);
var
_id
=
_this
.
val
();
$
(
'#user_area_choose'
).
html
(
''
);
//先清空
if
(
_id
&&
_id
!=
'0'
)
{
user
.
getCityAreaList
(
_id
,
function
(
_data
)
{
// var _str = '';
var
_str
=
'<option value="">全部</option>'
;
$
.
each
(
_data
,
function
(
i
,
item
)
{
_str
+=
'<option value="'
+
item
.
fullName
+
'">'
+
item
.
fullName
+
'</option>'
;
});
$
(
'#user_area_choose'
).
html
(
_str
);
});
}
else
{};
});
//城市 区域 筛选
_doc
.
on
(
'input'
,
'#user_city_add,#user_city_edit,#user_city_choose'
,
function
()
{
console
.
log
(
222
);
_doc
.
on
(
'input'
,
'#user_city_add,#user_city_edit'
,
function
()
{
var
_this
=
$
(
this
);
var
_id
=
_this
.
val
();
_this
.
next
().
html
(
''
);
//先清空
//新增 编辑
var
_objTemp
=
_this
.
parent
().
next
().
find
(
'select'
);
_objTemp
.
html
(
''
);
//先清空
if
(
_id
&&
_id
!=
'0'
)
{
user
.
getCityAreaList
(
_id
,
function
(
_data
)
{
// var _str = '';
var
_str
=
'<option value="">全部</option>'
;
$
.
each
(
_data
,
function
(
i
,
item
)
{
_str
+=
'<option value="'
+
item
.
fullName
+
'">'
+
item
.
fullName
+
'</option>'
;
});
_objTemp
.
html
(
_str
);
_this
.
next
().
html
(
_str
);
});
}
else
{};
});
...
...
@@ -827,12 +858,19 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'ckfinder', 'ckfinde
params
.
remark_phone
=
$
.
trim
(
$
(
"#remark_phone"
).
val
());
params
.
remark_store_id
=
$
.
trim
(
$
(
"#guest_stores"
).
val
());
params
.
remark_district_id
=
$
.
trim
(
$
(
"#district_id"
).
val
());
if
(
params
.
remark_name
.
length
==
1
){
alert
(
'跟进人姓名的搜索必须2字及2字以上'
);
return
;
}
if
(
$
(
'#user_city_choose'
).
val
()
==
310100
){
//城市
params
.
city
=
'上海市'
;
}
if
(
$
(
'#user_city_choose'
).
val
()
==
330100
){
params
.
city
=
'杭州市'
;
}
params
.
user_id
=
$
(
'#customer_id'
).
val
();
params
.
disc
=
$
.
trim
(
$
(
"#user_area_choose"
).
val
());
//区域
_startDateObj
.
val
()
!=
''
&&
(
params
.
start_date
=
_startDateObj
.
val
());
_endDateObj
.
val
()
!=
''
&&
(
params
.
end_date
=
_endDateObj
.
val
());
...
...
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