Commit ceaf1558 authored by agping's avatar agping

商铺列表 商铺详情 新增 编辑日志 查看日志

parent 0d16ded4
...@@ -459,7 +459,9 @@ ...@@ -459,7 +459,9 @@
<h4 class="modal-title detail-modal-header-tab" > <h4 class="modal-title detail-modal-header-tab" >
<a href="javascript:;" class="btn btn-info">查看商铺</a> <a href="javascript:;" class="btn btn-info">查看商铺</a>
<a href="javascript:;" class="btn btn-default">商铺跟进</a> <a href="javascript:;" class="btn btn-default">商铺跟进</a>
<a href="javascript:;" class="btn btn-info">操作记录</a> <a href="javascript:;" class="btn btn-default">操作记录</a>
<a href="javascript:;" class="btn btn-default">查看日志</a>
<a href="javascript:;" class="btn btn-default">编辑日志</a>
</h4> </h4>
</div> </div>
<div class="modal-body modal-body-one"> <div class="modal-body modal-body-one">
...@@ -506,6 +508,32 @@ ...@@ -506,6 +508,32 @@
</table> </table>
</div> </div>
<!--查看日志-->
<div class="detail-modal-body-sec iframe-shop-detail-scroll">
<table class="table table-striped table-bordered table-hover table-condensed">
<thead>
<tr>
<th class="text-center">查看时间</th>
<th class="text-center">商铺ID</th>
<th class="text-center">查看人</th>
</tr>
</thead>
<tbody class="text-center" id="caozuo_table_log">
</table>
</div>
<!--编辑日志-->
<div class="detail-modal-body-sec iframe-shop-detail-scroll">
<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 class="text-center" id="caozuo_table_edit">
</table>
</div>
</div> </div>
</div> </div>
......
...@@ -322,7 +322,15 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin ...@@ -322,7 +322,15 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
if(business.detailTabIndex == 2){ if(business.detailTabIndex == 2){
business.Caozuo(); business.Caozuo();
} };
if(business.detailTabIndex == 3){
business.Caozuolog();
};
if(business.detailTabIndex == 4){
business.Caozuoedit();
};
}); });
// 提交按钮设置案场权限人 // 提交按钮设置案场权限人
$(document).delegate(".submit_follow", "click", function() { //提交按钮设置案场权限人 $(document).delegate(".submit_follow", "click", function() { //提交按钮设置案场权限人
...@@ -813,6 +821,62 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin ...@@ -813,6 +821,62 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
} }
}); });
}, },
Caozuolog: function() { //获取查看日志
var caozuo_table = "";
$.ajax({
'type': 'GET',
'url': '/index/getRecords', //获取操作记录
data: {
"houses_id": business.house_id
},
dataType: "json",
success: function(data) {
if(data.code == 200) {
if(data.data) {
$.each(data.data, function(i, item) {
caozuo_table += '<tr><td>' + item.remark + '</td> <td>' + item.name + '</td> <td>' + item.create_time + '</td></tr>'
});
if(caozuo_table){
$("#caozuo_table_log").html(caozuo_table);
}else{
$("#caozuo_table_log").html('<tr><td colspan="3">暂无数据</td></tr>');
}
}
} else {
alert('获取失败!');
}
}
});
},
Caozuoedit: function() { //获取编辑日志
var caozuo_table = "";
$.ajax({
'type': 'GET',
'url': '/index/getRecords', //获取操作记录
data: {
"houses_id": business.house_id
},
dataType: "json",
success: function(data) {
if(data.code == 200) {
if(data.data) {
$.each(data.data, function(i, item) {
caozuo_table += '<tr><td>' + item.remark + '</td> <td>' + item.name + '</td> <td>' + item.create_time + '</td></tr>'
});
if(caozuo_table){
$("#caozuo_table_edit").html(caozuo_table);
}else{
$("#caozuo_table_edit").html('<tr><td colspan="3">暂无数据</td></tr>');
}
}
} else {
alert('获取失败!');
}
}
});
},
Submit_follow: function() { //提交案场权限人数据 Submit_follow: function() { //提交案场权限人数据
var agents_id = ""; var agents_id = "";
var _agents_id = ""; var _agents_id = "";
......
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