<!doctype html>
|
<html class="no-js">
|
<head>
|
<meta charset="utf-8">
|
<title>例行维护指标计划</title>
|
[#include "/business/pages/include/static.html" /]
|
[#include "/component/cfgcateSelector.html" /]
|
</head>
|
|
<body>
|
<div class="fs_main clearfix">
|
<div class="event_fill list_common_select" >
|
<form id="myform" action="gelRemindItemList.html" method="post">
|
<input type="hidden" name="cusId" value="${RequestParameters.cusId}"/>
|
<input type="hidden" id="ids" name="ids"/>
|
<table><tr><th width="85%">
|
<div class="fill_item">
|
<label>指标名称:</label><input class="general" type="text" name="itemName" id="itemName" value="${RequestParameters.itemName}"/>
|
</div>
|
<div class="fill_item"><label>指标类型:</label>
|
[@cfgcate id="fullCateId" name="fullCateName" lv="2" value="${RequestParameters.fullCateId}" text="${RequestParameters.fullCateName}"/]
|
</div>
|
</th><td width="15%">
|
<a class="retrievebtn focus" href="javascript:query();">查询</a>
|
</td></tr>
|
</table>
|
</form>
|
</div>
|
</div>
|
|
<div class="fs_main clearfix">
|
<table class="display_form common_list_table">
|
[#if list?? && list?size>0]
|
<tr class="title">
|
<td width="10%"><input type="checkbox" id="selAll"/></td>
|
<td width="20%">指标名称</td>
|
<td width="20%">配置分类</td>
|
<td width="10%">指标类型</td>
|
<td width="15%">操作</td>
|
</tr>
|
[#list list as item]
|
<tr>
|
<td><input type="checkbox" name="ids" value="${item.id}" class="selectItem"/></td>
|
<td>${item.item_name}</td>
|
<td>${item.business_name}</td>
|
<td>${(item.item_type==1)?string("通用","定制")}</td>
|
<td class="list_btnmore_wrap">
|
<a class="blue_txt" href="javascript:detail('${item.id}');"><span>详情</span></a>
|
</td>
|
</tr>
|
[/#list]
|
[#else]
|
<tr>
|
<td colspan="6">
|
<div class="loadpos"><span class="nodata"></span></div>
|
</td>
|
</tr>
|
[/#if]
|
</table>
|
</div>
|
<script type="text/javascript">
|
$(function() {
|
$("#selAll").click(function(){
|
if($(this).attr("checked")){
|
$(":checkbox").attr("checked",true);
|
}else{
|
$(":checkbox").attr("checked",false);
|
}
|
})
|
|
|
$(":checkbox.selectItem").live("click",function() {
|
var tableCheckboxLen = $(":checkbox.selectItem").length;
|
var tableCheckboxCheckedLen = $(":checkbox.selectItem:checked").length;
|
$("#selAll").attr("checked",(tableCheckboxLen == tableCheckboxCheckedLen));
|
});
|
})
|
|
function query(){
|
$("#myform").submit();
|
}
|
|
function detail(id){
|
var url = "${base}/business/pages/remind/remindItemDetail.html?id="+id;
|
window.top.openDialog("d","详情",
|
{},
|
{"width":50,"height":60},
|
[],
|
url);
|
}
|
|
function onDialogBtnClick(btnID, dialogID, config){
|
if(btnID == "btnSure"){
|
if($("input[name=ids]:checked").length==0){
|
window.top.popupTips("请选择指标");
|
}else{
|
var ids = '';
|
$("input[name=ids]:checked").each(function(){
|
ids += (ids?',':'') + this.value;
|
})
|
$("#ids").val(ids);
|
$("#myform").attr("action","${base}/business/pages/remind/selGelRemindItem.html");
|
$("#myform").submit();
|
}
|
|
}
|
}
|
</script>
|
</body>
|
</html>
|