<!doctype html>
|
<html class="no-js">
|
<head>
|
<meta charset="utf-8">
|
<title>联系人列表</title>
|
</head>
|
|
<body>
|
[#include "/business/pages/include/static.html" /]
|
|
|
<div class="fs_navtitle" >
|
<div class="fs_navtitle_con common_list" style="margin:0 15px;">
|
<div class="fsnt_btn">
|
<a class="operating_conmon" href="javascript:addContact();"><span>增加</span></a>
|
</div>
|
</div>
|
</div>
|
|
<div class="fs_main clearfix">
|
[#if contacts?? && contacts?size>0]
|
<table class="display_form common_list_table">
|
<tr class="title">
|
<td>联系人姓名</td>
|
<td>职务</td>
|
<td>联系电话</td>
|
<td>重要等级</td>
|
<td>操作</td>
|
</tr>
|
[#list contacts as contact]
|
<tr>
|
<td>${contact.CONTACTS}</td>
|
<td>${contact.JOB}</td>
|
<td>${contact.TELPHONE}</td>
|
<td>[#if contact.LEVEL == 1]高[#elseif contact.LEVEL == 2]中[#elseif contact.LEVEL == 3]低[/#if]</td>
|
<td class="list_btnmore_wrap">
|
<a class="blue_txt lb_button" href="javascript:updateContact('${contact.ID}');"><span>修改</span></a>
|
<a class="blue_txt lb_button" href="javascript:delContact('${contact.ID}');"><span style="border:none;">删除</span></a>
|
</td>
|
</tr>
|
[/#list]
|
</table>
|
[#else]
|
<div class="loadpos"><span class="nodata"></span></div>
|
[/#if]
|
</div>
|
|
|
|
|
<script type="text/javascript">
|
|
var customerId = '${RequestParameters.customerId}';
|
var csId = '${RequestParameters.csId}';
|
function addContact() {
|
window.top.openDialog("1","新增联系人",
|
{},
|
{"width":60,"height":80},
|
[{btnId:"btnSure", btnName:"确定", btnStyle:"bluebtn"}],
|
"${base}/business/pages/customerconfig/cuscs/addCsContact.html?customerId="+customerId+"&csId="+csId);
|
}
|
|
function updateContact(id) {
|
window.top.openDialog("1","修改联系人",
|
{},
|
{"width":60,"height":80},
|
[{btnId:"btnSure", btnName:"确定", btnStyle:"bluebtn"}],
|
"${base}/business/pages/customerconfig/cuscs/addCsContact.html?id="+id+"&customerId="+customerId+"&csId="+csId);
|
}
|
|
function delContact(id) {
|
window.top.confirmInfo('提示', '确定要删除吗?', function(){
|
$.post("${base}/business/pages/customerconfig/cuscs/delContact.html",{"id":id},function(data,textStatus) {
|
if(data == 1) {
|
window.top.popupTips("删除成功");
|
window.location.reload(true);
|
} else {
|
window.top.popupTips("删除失败");
|
}
|
query();
|
})
|
})
|
}
|
|
</script>
|
</body>
|
</html>
|