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
8396459c
Commit
8396459c
authored
Nov 22, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
状态修改
parent
b090f5ef
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
78 additions
and
13 deletions
+78
-13
agent.html
application/index/view/broker/agent.html
+40
-0
agent.js
public/resource/js/agent.js
+24
-2
agent_template_tpl.html
public/resource/template/agent_template_tpl.html
+14
-11
No files found.
application/index/view/broker/agent.html
View file @
8396459c
...
@@ -519,3 +519,42 @@
...
@@ -519,3 +519,42 @@
</div>
</div>
<!-- /.modal -->
<!-- /.modal -->
</div>
</div>
<!--状态记录-->
<div
class=
"modal fade"
id=
"modal-stateRecord"
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"
>
状态记录
</h4>
</div>
<div
class=
"modal-body"
>
<form
class=
"form-horizontal"
>
<div
class=
"form-group"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<thead>
<tr>
<th
class=
"text-center"
>
状态
</th>
<th
class=
"text-center"
>
操作人
</th>
<th
class=
"text-center"
>
操作时间
</th>
</tr>
</thead>
<tbody
id=
'state_record_pc'
>
</tbody>
</table>
</div>
</form>
</div>
<div
class=
"modal-footer"
>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
\ No newline at end of file
public/resource/js/agent.js
View file @
8396459c
...
@@ -127,7 +127,10 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
...
@@ -127,7 +127,10 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
agent
.
agent_id
=
$
(
this
).
attr
(
"data-id"
);
agent
.
agent_id
=
$
(
this
).
attr
(
"data-id"
);
agent
.
getPcBindingList
();
agent
.
getPcBindingList
();
});
});
$
(
document
).
on
(
"click"
,
".state-record"
,
function
()
{
//点击记录状态
agent
.
agent_id
=
$
(
this
).
attr
(
"data-id"
);
agent
.
stateRecordList
();
});
$
(
document
).
delegate
(
".submit_add"
,
"click"
,
function
(
e
)
{
//提交新增
$
(
document
).
delegate
(
".submit_add"
,
"click"
,
function
(
e
)
{
//提交新增
e
.
preventDefault
();
e
.
preventDefault
();
e
.
stopPropagation
();
e
.
stopPropagation
();
...
@@ -690,7 +693,26 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
...
@@ -690,7 +693,26 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
}
}
})
})
},
},
//记录状态
stateRecordList
:
function
(
pageNo
)
{
var
params
=
{};
params
.
agent_id
=
agent
.
agent_id
;
$
.
ajax
({
url
:
'/index/getRecordsList'
,
//电脑绑定权限
type
:
'GET'
,
async
:
true
,
data
:
params
,
dataType
:
'json'
,
success
:
function
(
data
)
{
var
temp
=
document
.
getElementById
(
'state_record_list_tpl'
).
innerHTML
;
var
doTempl
=
doT
.
template
(
temp
);
$
(
"#state_record_pc"
).
html
(
doTempl
(
data
.
data
.
data
));
/*分页代码*/
add_page
(
data
.
data
.
total
,
pageNo
,
agent
.
pageSize
,
agent
.
getList
);
$
(
'.J_preview'
).
preview
();
}
})
},
getRole
:
function
(
tempval
)
{
getRole
:
function
(
tempval
)
{
$
.
ajax
({
$
.
ajax
({
url
:
'/index/getAuth2'
,
url
:
'/index/getAuth2'
,
...
...
public/resource/template/agent_template_tpl.html
View file @
8396459c
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
[
%
if
(
check_auth
(
'index/updateDevice'
))
{
%
]
[
%
if
(
check_auth
(
'index/updateDevice'
))
{
%
]
<
a
class
=
"btn1 btn-success phone-bundling btn-default-hide-display"
href
=
"#modal-phonebundling"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
绑定手机
/
电脑
<
/a
>
<
a
class
=
"btn1 btn-success phone-bundling btn-default-hide-display"
href
=
"#modal-phonebundling"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
绑定手机
/
电脑
<
/a
>
<!--
<
a
class
=
"btn1 btn-success professional-title btn-default-hide-display"
href
=
"#modal-professionalTitle"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
设置职称
<
/a>--
>
<
a
class
=
"btn1 btn-success btn-default-hide-display state-record"
href
=
"#modal-stateRecord"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
状态记录
<
/a
>
[
%
}
%
]
[
%
}
%
]
<
a
class
=
"btn1 btn-default btn-default-hide-caozuo btn-default-hide-display"
><<<<
/a
>
<
a
class
=
"btn1 btn-default btn-default-hide-caozuo btn-default-hide-display"
><<<<
/a
>
[
%
}
%
]
[
%
}
%
]
...
@@ -73,16 +73,19 @@
...
@@ -73,16 +73,19 @@
<
/tr
>
<
/tr
>
[
%
}
%
]
[
%
}
%
]
</script>
</script>
<!--
经纪人列表模板
-->
<!--
记录状态
-->
<script
id=
"
get_auth_list
"
type=
"text/template"
>
<script
id=
"
state_record_list_tpl
"
type=
"text/template"
>
[
%
if
(
it
)
{
%
]
[
%
if
(
it
)
{
%
]
[
%
for
(
var
item
in
it
){
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
class
=
"text-center"
>
<
td
>
[
%=
it
[
item
][
'remark'
]
%
]
<
/td
>
<
option
value
=
"[%= it[item]['id'] %]"
>
[
%=
it
[
item
][
"title"
]
%
]
<
/option
>
<
td
>
[
%=
it
[
item
][
'name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'create_time'
]
%
]
<
/td
>
<
/tr
>
[
%
}
%
]
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"8"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
[
%
}
%
]
[
%
}
%
]
</script>
</script>
\ No newline at end of file
\ No newline at end of file
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