Commit 0e404af9 authored by agping's avatar agping

编辑日志

parent 63878cd4
......@@ -1113,6 +1113,49 @@
<!-- /.modal -->
</div>
<!-- 客户编辑日志 -->
<div class="modal fade" id="modal-customerEditLog" 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">
&times;
</button>
<h4 class="modal-title">
客户编辑日志
</h4>
</div>
<div class="modal-body" style="padding: 25px;">
<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='customerEditLog'>
</tbody>
</table>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">关闭
</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!--加载图标-->
<div id="main_loading_pic">
<img src="/resource/image/jz2.gif">
......
......@@ -219,6 +219,14 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
var id_=$(this).attr("data-id");
user.relationalRecord(id_);
});
//客户列表 客户编辑日志
_doc.on('click', '.customerEditLog ', function(e) {
e.preventDefault();
e.stopPropagation();
var id_=$(this).attr("data-id");
user.customerEditLog(id_);
});
//客户动态 加载更多
_doc.on('click', '.user-log-more', function(e) {
......@@ -1991,6 +1999,28 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
}
});
},
//客户编辑日志
customerEditLog: function(id) {
$.ajax({
url: '/index/getUserBindHistory',
type: 'GET',
async: true,
data: {
"user_id": id
},
dataType: 'json',
success: function(data) {
if(data.code == 200) {
var temp = document.getElementById('customer_edit_log_list').innerHTML;
var doTtmpl = doT.template(temp);
$("#customerEditLog").html(doTtmpl(data.data.data));
} else {
}
}
});
},
//获取站点 标签
getSiteTags: function() {
$.ajax({
......
......@@ -73,7 +73,10 @@
<a class="btn1 is_invalid [%= sw3(it[item]['user_status']) %] btn-default-hide-display" href="" data-id='[%= it[item]["id"] %]' data-status='[%= it[item]["user_status"] %]'>无效</a>&nbsp;
[% } %]
<a class="btn1 relationalRecord btn-info btn-default-hide-display" href="#modal-relationalRecord" data-id='[%= it[item]["id"] %]' data-toggle="modal" >关联记录</a>
<a class="btn1 relationalRecord btn-info btn-default-hide-display" href="#modal-relationalRecord" data-id='[%= it[item]["id"] %]' data-toggle="modal" >关联记录</a>&nbsp;
<a class="btn1 customerEditLog btn-info btn-default-hide-display" href="#modal-customerEditLog" data-id='[%= it[item]["id"] %]' data-toggle="modal" >编辑日志</a>
<a class="btn1 btn-default btn-default-hide-caozuo btn-default-hide-display"><<<</a>
......@@ -102,3 +105,21 @@
</tr>
[% } %]
</script>
<!--客户列表 编辑日志-->
<script id="customer_edit_log_list" type="text/template">
[% if(it&&it.length) { %]
[% for(var item in it){ %]
<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>
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