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
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<title>关联配置</title>
</head>
<style>
a.hover-red:hover{color:blue;}
 .deal_record_tittle a{
    float:right;
    padding:0 10px;
    border:1px solid #bcbcbc;
    border-radius:3px;
    display:inline-block;
    *zoom:1;
    *display:inline;
    color:#333333;
    font-size:12px;
    line-height:22px;
}
</style>
<body >
[#include "/business/pages/include/static.html" /]
[#if !type??] 
     <div class="deal_switch_con" style="display:block;">
    <div class="deal_record_tittle"><a href="javascript:linkDevice();">添加处理记录</a></div>
    </div>
     [/#if]
                       [#if devices?? && devices?size>0]
           <table class="display_form common_list_table">
                   <tbody>
                       <tr class="title">
                           <td>序号</td>
                           <td>搜索码</td>
                           <td>配置名称</td>
                           <td>存放位置</td>
                 [#if !type??]          <td>操作</td>[/#if]
                       </tr>
                           [#list devices as device]
                           <tr>
                                   <td>${device_index+1}</td>
                                   <td><a href="${base}/business/pages/cfg/cfgInfoIndex.html?id=${device.ID}" target="_blank"  class="hover-red">${device.SEARCHCODE}</a></td>
                                   <td><a href="${base}/business/pages/cfg/cfgInfoIndex.html?id=${device.ID}" target="_blank"  class="hover-red">${device.CINAME}</a></td>
                                   <td>${device.POSITION}</td>
                                    [#if !type??]    <td><a class="delete" href="javascript:delLink('${device.LINK_ID}')">删除</a></td>[/#if]
                               </tr>
                           [/#list]
                       
               </tbody>
        </table>
        [#else]
                       <div class="loadpos"><span class="nodata"></span></div>
                       [/#if]
    </div>
 
 
<script type="text/javascript">
var flowId = '${flowId}';
function linkDevice() {
    window.top.openDialog("0","添加关联配置",
                         {},
                         {"width":80,"height":80},
                         [{btnId:"btnSure", btnName:"选择", btnStyle:"bluebtn"}],
                         "${base}/business/pages/incident/dealLinkDevice.html?flowId="+flowId);
}
 
function delLink(linkId) {
    window.top.confirmInfo('提示', '确定要删除吗?', function(){
                $.post("${base}/business/pages/incident/delLinkDevice.html",{"linkId":linkId},function(data,textStatus) {
                    if(data==1) {
                        window.location.reload(true);
                        window.top.popupTips("删除成功");
                    } else {
                        window.top.popupTips("删除失败");
                    }
                })
            })
}
</script>
</body>
</html>