cy
2022-06-21 129904537f66509f97b285e7eb4f42b3dc349dd0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<!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>