Commit 8396459c authored by agping's avatar agping

状态修改

parent b090f5ef
......@@ -519,3 +519,42 @@
</div>
<!-- /.modal -->
</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
......@@ -127,7 +127,10 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
agent.agent_id = $(this).attr("data-id");
agent.getPcBindingList();
});
$(document).on("click", ".state-record", function() { //点击记录状态
agent.agent_id = $(this).attr("data-id");
agent.stateRecordList();
});
$(document).delegate(".submit_add", "click", function(e) { //提交新增
e.preventDefault();
e.stopPropagation();
......@@ -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) {
$.ajax({
url: '/index/getAuth2',
......
......@@ -58,7 +58,7 @@
[% 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 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>
[% } %]
......@@ -73,16 +73,19 @@
</tr>
[% } %]
</script>
<!--经纪人列表模板-->
<script id="get_auth_list" type="text/template">
<!--记录状态-->
<script id="state_record_list_tpl" type="text/template">
[% if(it) { %]
[% for(var item in it){ %]
<option value="[%= it[item]['id'] %]">[%= it[item]["title"] %]</option>
<tr class="text-center">
<td>[%= it[item]['remark'] %]</td>
<td>[%= it[item]['name'] %]</td>
<td>[%= it[item]['create_time'] %]</td>
</tr>
[% } %]
[% }else{ %]
<tr>
<td colspan="8" style="text-align:center;"> 暂无数据</td>
</tr>
[% } %]
</script>
\ No newline at end of file
</script>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment