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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
[#if readOnly?string == 'true']
[#include "/business/pages/include/static.html" /]
[#else]
[#include "/business/pages/include/static.html" /]
[/#if]
<title>table_universal</title>
    <script type="text/javascript">
        $(document).ready(function(){
            niceform('input[name=reminder]').on('click',function(){
                $.post('${base}/business/pages/wbfa/zcxj/saveReminder.html',{"item_id":$(this).val(),"checked":$(this).attr("checked"),"ci_id":'${RequestParameters.ciId}'},function(){
                    if($(".display_form").find("input[type=checkbox]:checked").length==0){
                        var ciId = '${RequestParameters.ciId}';
                        $.post("${base}/business/pages/wbfa/zcxj/delPatrolCi.html",{ciId:ciId});
                    }
                });
            });
            
        });
    
        function addItem(){
            var ciId = '${RequestParameters.ciId}';
            var thirdLevelId = '${RequestParameters.thirdLevelId}';
            var projectId = '${RequestParameters.projectId}';
            
            window.top.openDialog("add_1","新增日常巡检指标",
                {},
                {"width":"900px","height":"600px","mode":"pixel"},
                [{btnId:"btnSure", btnName:"确定", btnStyle:"bluebtn"}],
                "${base}/business/pages/ciadd/addPatrolCustomization.html?ciId="+ciId+"&thirdLevelId="+thirdLevelId+"&projectId="+projectId);
        }
        
        
        function onSelectAllClick(id,name){
            $.dom.checkAll(id,name);
        }
        
        
        function _onFormSubmit() {
            if(!confirm("确定要提交吗?")) return false;
            document.getElementById("myform").submit();
        }
        function closeWin(index) {
            window.top.closeDialog(index);
        }
        function refresh(){
            window.location.reload();
        }
        
        
        function onDialogBtnClick(btnID, dialogID, config){
            window.parent.query();
             window.top.hideDialog(dialogID);
        }
    </script>
  </head>
  
<body>
<div class="table_basic">
    <form action="" method="post" id="myform" name="myform">
    <div class="table_basic_info">
        <div class="tbi_ways">
            <em>配置名称:${ciInfo.CINAME}</em><span></span>配置编号:${ciInfo.SEACHCODE}/${ciInfo.MEMBERCODE}<span></span>存放位置:${ciInfo.POSITION}</em>
        </div>
           <!-- 
        <div class="tbi_btn">
            <a class="common" href="javascript:addItem();"><span>新增巡检</span></a>
        </div>
        -->
    </div>
    
    <table class="display_form">
       <tr class="title">
         <td align="center" width="5%"></td>
         <td align="center" width="12%">指标名称</td>
         <td align="center" width="12%">指标说明</td>
         <td align="center" width="18%">采集步骤</td>
         <td align="center" width="8%">正常值</td>
         <td align="center" width="22%">异常值及处理方式</td>
         <td align="center" width="8%">类型</td>
       </tr>
       [#if dataList??&&dataList?size>0]
           [#list dataList as item]
           <tr>
               <td align="center"><input type="checkbox"  [#if readOnly?string == 'true']disabled="disabled"[/#if] name="reminder" value="${item.ITEM_ID}" [#if item.STATE!='NONE']checked[/#if]/></td>
               <td  align="center" title="${item.ITEM_NAME}">${left(item.ITEM_NAME,20)}</td>
               <td align="center" title="${item.ITEM_NOTE}">${left(item.ITEM_NOTE,20)}</td>
               <td align="center" title="${item.GET_STEPS}">${left(item.GET_STEPS,32)}</td>
               <td align="center" title="${item.NORMAL_VALUE}">${left(item.NORMAL_VALUE,12)}</td>
               <td align="center" title="${item.EXCEPT_VALUE}">${left(item.EXCEPT_VALUE,32)}</td>
               <td align="center">${K_IfTrue(item.ITEM_TYPE==1,'通用','定制')}</td>
           </tr>
           [/#list]
       [#else]
           <tr>
                <td align="center" colspan="7">无日常巡检项</td>
           </tr>  
       [/#if]
    </table>
    </form>
</div>
</body>
</html>