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
58be5a7c
Commit
58be5a7c
authored
Dec 22, 2017
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
需要前端增加搜索经纪人下拉框
parent
81d4edee
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
81 additions
and
11 deletions
+81
-11
watch_list.html
application/index/view/watch_shop/watch_list.html
+34
-0
transfer.js
public/resource/js/transfer.js
+17
-6
watch_shop.js
public/resource/js/watch_shop.js
+26
-0
watch_template_tpl.html
public/resource/template/watch_template_tpl.html
+4
-5
No files found.
application/index/view/watch_shop/watch_list.html
View file @
58be5a7c
...
...
@@ -101,4 +101,37 @@
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!-- /#wrapper -->
<!-- /#报备模态框 -->
<div
class=
"modal fade"
id=
"modal-watch"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
id=
"myModalLabel"
>
转为报备
</h4>
</div>
<div
class=
"modal-body"
>
<div
class=
"table-responsive table-responsive1"
>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
备注
</label>
<div
class=
"controls"
>
<input
class=
"form-control"
id=
"content"
placeholder=
"请输入经纪人名字或手机号"
>
</div>
</div>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
关闭
</button>
<button
type=
"button"
class=
"btn btn-primary"
id=
"submit_follow"
>
提交
</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
</div>
\ No newline at end of file
public/resource/js/transfer.js
View file @
58be5a7c
...
...
@@ -97,12 +97,15 @@ function edit(obj) {
if
(
!
confirm
(
'是否继续'
))
{
return
;
}
var
params
=
{};
params
.
id
=
$
(
obj
).
attr
(
"data-id"
);
var
arr
=
$
(
obj
).
attr
(
"data-id"
).
split
(
','
);
params
.
id
=
arr
[
0
];
params
.
status
=
arr
[
1
];
if
(
params
.
status
==
0
)
{
params
.
status
=
2
;
}
else
{
params
.
status
=
0
;
}
$
.
ajax
({
url
:
'/index/putAway'
,
...
...
@@ -112,7 +115,15 @@ function edit(obj) {
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
data
.
status
==
0
)
{
$
(
obj
).
html
(
'转为报备'
);
$
(
obj
).
attr
(
'class'
,
'btn1 btn-danger'
);
$
(
obj
).
attr
(
'data-id'
,
arr
[
0
]
+
','
+
0
);
}
else
{
$
(
obj
).
html
(
'已转为报备'
);
$
(
obj
).
attr
(
'class'
,
'btn1 btn-info'
);
$
(
obj
).
attr
(
'data-id'
,
arr
[
0
]
+
','
+
data
.
data
.
status
);
}
}
else
{
alert
(
data
.
msg
);
}
...
...
public/resource/js/watch_shop.js
View file @
58be5a7c
...
...
@@ -29,6 +29,32 @@ define (['doT', 'text!temp/watch_template_tpl.html', 'css!style/home.css',"datet
$
(
this
).
datetimepicker
(
'hide'
);
});
$
(
document
).
delegate
(
".add_applies"
,
"click"
,
function
()
{
var
params
=
{};
params
.
house_id
=
$
(
this
).
attr
(
"data-id"
);
$
.
ajax
({
url
:
'/index/getBroker'
,
type
:
'GET'
,
async
:
true
,
data
:
params
,
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
var
str
=
''
;
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
str
+=
"<tr><td>"
+
item
[
'content'
]
+
"</td><td>"
+
item
[
'admin_name'
]
+
"</td><td>"
+
item
[
'create_time'
]
+
"</td></tr>"
;
$
(
"#list_agents"
).
html
(
str
);
});
}
else
{
alert
(
data
.
msg
);
}
}
});
});
},
getList
:
function
(
pageNo
)
{
user
.
pageNo
=
pageNo
;
...
...
public/resource/template/watch_template_tpl.html
View file @
58be5a7c
...
...
@@ -10,13 +10,12 @@
<
td
>
[
%=
it
[
item
][
"create_time"
]
%
]
<
/td
>
<
td
>
<
a
class
=
"btn1 btn-success "
href
=
"#modal-process"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it[item]['id'] %]"
onclick
=
"alertFollow(this)"
>
跟进
<
/a
>
<
a
href
=
"#modal-
details"
data
-
toggle
=
"modal"
onclick
=
"edit(this)"
data
-
id
=
"[%= it[item]['id'] %], [%= it[item]['status
'] %]"
[
%
if
(
it
[
item
][
"
status
"
]
==
0
){
%
]
class
=
"btn1 btn-danger
"
>
跟进
<
/a
>
<
a
href
=
"#modal-
watch"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it[item]['id
'] %]"
[
%
if
(
it
[
item
][
"
applies_id
"
]
==
0
){
%
]
class
=
"btn1 btn-danger
add_applies"
>
转为报备
<
/a
>
[
%
}
else
{
%
]
class
=
"btn1 btn-info
"
>
转为报备
<
/a
>
class
=
"btn1 btn-info
add_applies"
>
已
转为报备
<
/a
>
[
%
}
%
]
<
/td
>
<
/tr
>
[
%
}
%
]
...
...
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