Commit 48dc2963 authored by agping's avatar agping

客户列表编辑日志

parent 23489b89
...@@ -1116,7 +1116,7 @@ ...@@ -1116,7 +1116,7 @@
<!-- 客户编辑日志 --> <!-- 客户编辑日志 -->
<div class="modal fade" id="modal-customerEditLog" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal fade" id="modal-customerEditLog" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog"> <div class="modal-dialog">
<div class="modal-content"> <div class="modal-content" style="width: 750px;">
<div class="modal-header"> <div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
&times; &times;
......
...@@ -2002,18 +2002,20 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind ...@@ -2002,18 +2002,20 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
//客户编辑日志 //客户编辑日志
customerEditLog: function(id) { customerEditLog: function(id) {
$.ajax({ $.ajax({
url: '/index/userHistoryLog', url: '/index/userDetail',
type: 'GET', type: 'GET',
async: true, async: true,
data: { data: {
"user_id": id "user_id": id,
}, "AuthToken": user_info_obj.AuthToken,
"agent_id": user_info_obj.id
},
dataType: 'json', dataType: 'json',
success: function(data) { success: function(data) {
if(data.code == 200) { if(data.code == 200) {
var temp = document.getElementById('customer_edit_log_list').innerHTML; var temp = document.getElementById('customer_edit_log_list').innerHTML;
var doTtmpl = doT.template(temp); var doTtmpl = doT.template(temp);
$("#customerEditLog").html(doTtmpl(data.data.data)); $("#customerEditLog").html(doTtmpl(data.data.user_history_log.user_name_history.concat(data.data.user_history_log.user_site_history)));
} else { } else {
} }
......
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