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
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
[#include "/business/pages/include/static.html" /]
<title>巡检配置</title>
 
<script type="text/javascript">
        //点击事件
        function onDialogBtnClick(btnID, dialogID, config){
            if(btnID == "btnSure"){
                var ciJsonList = [];
                $("input[name=ciId]:checked").each(function(){
                    var ciId = $(this).val();
                    var itemIds = $.trim($(this).next().html());
                    var cateName = $(this).parents("tr").find("td:eq(1)").text();
                    var ciName = $(this).parents("tr").find("td:eq(2)").text();
                    var searchCode = $(this).parents("tr").find("td:eq(3)").text();
                    var position = $(this).parents("tr").find("td:eq(4)").text();
                    var ciJson = {};
                    ciJson["ciId"]=ciId;
                    ciJson["itemIds"]=itemIds;
                    ciJson["cateName"]=cateName;
                    ciJson["ciName"]=ciName;
                    ciJson["searchCode"]=searchCode;
                    ciJson["position"]=position;
                    ciJsonList.push(ciJson);
                });
                window.top.document.getElementById('baseInfo').contentWindow.addPatrolCi(ciJsonList);
                 window.top.hideDialog(dialogID);
            }
        }
    
</script>
 
</head>
 
<body>
<div class="table_basic">
    <form id="myForm" action="" method="post">
    <input name="businessId" id="businessId" type="hidden" value="${RequestParameters.businessId}">
    <table class="display_form" id="ciList" style="width:95%">
        <tr class="title">
            <td style="width:5%"></td>
            <td style="width:15%">分类名称</td>
            <td style="width:15%">配置名称</td>
            <td style="width:15%">搜索码</td>
            <td style="width:25%">存放位置</td>
        </tr>
        [#if ciList??&&ciList?size>0]
            [#list ciList as ci]
            <tr>
                <td>
                <input type="checkbox" value="${ci.ID}" name="ciId">
                <div style="display:none;">
                               [#if ci.children??]
                               [#list ci.children as ci_item]${ci_item.ITEM_ID}-[/#list]
                               [/#if]
                   </div>
                </td>
                <td>${ci.CATENAME}</td>
                <td><a class="blue_txt lb_button" target="_blank" href="${base}/business/pages/cfg/cfgInfoIndex.html?id=${ci.ID}">${ci.CINAME}</a></td>
                <td>${ci.SEARCHCODE}</td>
                <td>${ci.POSITION}</td>
            </tr>
            [/#list]
        [#else]
            <tr>
                <td colspan="5" align="center">无需要巡检配置</td>
            </tr>
        [/#if]
    </table>
    </form>
</div>
</body>
</html>