<!doctype html>
|
<html class="no-js">
|
<head>
|
<meta charset="utf-8">
|
<title>[#if RequestParameters.type == Constants.CMDB_MAINUFACTURER_CS]厂商[#elseif RequestParameters.type == Constants.CMDB_MAINUFACTURER_JCS]集成商[/#if]</title>
|
[#include "/business/pages/include/static.html" /]
|
|
</head>
|
|
<body class="fullscreen">
|
[#include "/business/pages/include/header.html" /]
|
|
<nav class="fs_nav">
|
<div class="fsnav_con">
|
<h3>${Constants.CUSTOMER_CONSTANTS}配置</h3>
|
<a href="${base}/business/pages/customerconfig/slacus/slacusMain.html?customerId=${RequestParameters.customerId}"><span>${Constants.CUSTOMER_CONSTANTS}配置</span></a>
|
<a class="focus" href="${base}/business/pages/customerconfig/cuscs/cslist.html?customerId=${RequestParameters.customerId}"><span>厂商/集成商</span></a>
|
</div>
|
</nav>
|
<div class="fs_navpath">
|
<h3>当前位置</h3>
|
<span></span>
|
<a href="${base}/business/pages/customerconfig/slacus/slacusMain.html?customerId=${RequestParameters.customerId}">${Constants.CUSTOMER_CONSTANTS}配置</a>
|
<span></span>
|
<em>厂商/集成商</em>
|
</div>
|
<div style="margin:10px;">
|
</div>
|
|
<div class="fs_main equip_add clearfix monitor_report" >
|
<div class="ucmLeft">
|
[#if RequestParameters.type == Constants.CMDB_MAINUFACTURER_CS]
|
[#assign tjType = 'CSGL']
|
[#assign tjFocus = 'CS']
|
[#elseif RequestParameters.type == Constants.CMDB_MAINUFACTURER_JCS]
|
[#assign tjType = 'JCSGL']
|
[#assign tjFocus = 'JCS']
|
[/#if]
|
[#include "/business/pages/customerconfig/cuscs/csleft.html" /]
|
</div>
|
<div class="expert_base " >
|
|
<div class="event_fill sa_event_fill" style="margin:10px 15px;">
|
<table><tr><th width="75%">
|
<div class="fill_item"><label>简称:</label><input class="general" type="text" name="name" id="name"/></div>
|
<div class="fill_item"><label>状态:</label>
|
<select id="state" name="state" class="mysel">
|
<option value="" >请选择</option>
|
<option value="1" >启用</option>
|
<option value="2" >禁用</option>
|
</select>
|
</div>
|
</th><td width="25%">
|
<a class="retrievebtn" id="reset" onclick="window.location.reload(true);" >重置</a><a class="retrievebtn focus" href="javascript:psearch();">查询</a>
|
</td></tr></table>
|
</div>
|
|
<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:addCsJcs();"><span>增加</span></a>
|
</div>
|
</div>
|
</div>
|
|
<div class="fs_main clearfix">
|
<div id="main"></div>
|
<div class="paging clearfix" id="pagination" style="margin-bottom:10px;"></div>
|
</div>
|
</div>
|
</div>
|
[#include "/business/pages/include/footer.html" /]
|
</body>
|
<script type="text/javascript">
|
var customerId = '${RequestParameters.customerId}';
|
var type = '${RequestParameters.type}';
|
var nowPage = 1;
|
function query() {
|
var name = $.trim($("#name").val());
|
var state = $.trim($("#state").val());
|
var params = {"customerId":customerId,"type":type,"name":name,"state":state};
|
pagination("${base}/business/pages/customerconfig/cuscs/csData.html","${base}/business/pages/customerconfig/cuscs/csCount.html","main","pagination",{cpage:nowPage,psize:10},params,function(data,page) {
|
nowPage = page;
|
});
|
}
|
|
function psearch() {
|
nowPage = 1;
|
query();
|
}
|
|
$(function() {
|
query();
|
})
|
|
|
//查看联系人
|
function contact(csId) {
|
window.top.openDialog("0","联系人列表",
|
{},
|
{"width":80,"height":80},
|
[],
|
"${base}/business/pages/customerconfig/cuscs/contactList.html?customerId="+customerId+"&csId="+csId);
|
}
|
|
//添加厂商或者集成商
|
function addCsJcs() {
|
window.top.openDialog("1","新增",
|
{},
|
{"width":60,"height":80},
|
[{btnId:"btnSure", btnName:"确定", btnStyle:"bluebtn"}],
|
"${base}/business/pages/customerconfig/cuscs/addCsJcs.html?customerId="+customerId+"&type="+type);
|
}
|
|
function updateCsJcs(id,type) {
|
window.top.openDialog("1","修改",
|
{},
|
{"width":60,"height":80},
|
[{btnId:"btnSure", btnName:"确定", btnStyle:"bluebtn"}],
|
"${base}/business/pages/customerconfig/cuscs/addCsJcs.html?id="+id+"&type="+type+"&customerId="+customerId);
|
}
|
|
function changeCsState(id,state) {
|
var msg;
|
if(state==1) {
|
msg = "确定要启用吗?";
|
} else {
|
msg = "确定要禁用吗?";
|
}
|
window.top.confirmInfo('提示', msg, function(){
|
$.post("${base}/business/pages/customerconfig/cuscs/changeCsState.html",{"id":id,"state":state},function(data,textStatus) {
|
if(data == 1) {
|
window.top.popupTips("操作成功");
|
query();
|
} else {
|
window.top.popupTips("操作失败");
|
}
|
query();
|
})
|
})
|
}
|
|
</script>
|
</html>
|