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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8" />
<title>事件流转策略配置</title>
[#include "/business/pages/include/static.html" /]
 
</head>
 
<body class="fullscreen">
[#include "/business/pages/include/header.html" /]
<script type="text/javascript">
$(document).ready(function() {
        $.formValidator.initConfig({formID:"myform",onError:function(msg){popupTips(msg)},onSuccess:function(){
                document.getElementById("myform").target = window.top.openDialog("0","操作",
                             {},
                             {"width":40,"height":40,"noclose":true},
                             [{btnId:"tipBtnSure", btnName:"确定", btnStyle:"bluebtn"}]);
                             return true;
                }
        });
    });
</script>
<nav class="fs_nav">
    <div class="fsnav_con">
        <h3>${Constants.CUSTOMER_CONSTANTS}配置</h3>
        <a  href="${base}/business/pages/customerconfig/slacus/slacusMain.html?customerId=${RequestParameters.customerId}"><span>${Constants.CUSTOMER_CONSTANTS}配置</span></a>
        <a class="focus" href="${base}/business/pages/customerconfig/incidentflow/incidentNodeDeal.html?customerId=${RequestParameters.customerId}"><span>事件流程配置</span></a>
    </div>
</nav>
 
<div class="fs_navpath">
    <h3>当前位置</h3>
    <span></span>
    <a>${Constants.CUSTOMER_CONSTANTS}管理</a>
    <span></span>
    <a>事件流转策略配置</a>
</div>
<div style="margin:10px;">
</div>
<div class="fs_main equip_add clearfix" >
    <div class="ucmLeft" id="equipAddLeft">
        [#assign tjType = 'SJGL']
        [#assign tjFocus = 'SJLZCL']
        [#include "/business/pages/customerconfig/incident/lcleft.html" /]
    </div>
    
    <div class="equip_add_right equipdetail_basic" id="equipAddRight">
    
        <div class="deal_switch">
            <h3>事件流转策略配置</h3>
        </div>
               
        <div id="main" style="margin:15px;">       
        <form  id="myform" name="myform"  method="post">
                [#if config?? && config?size>0]
                <input type="hidden" value="${config.id}" name="id"/>
                <input type="hidden" value="${config.isSelf}" name="isSelf">
                [/#if]
                
            <table class="pab_con">
                <tr>
                        <th align="right">客服人员:</th>
                        <td>
                            [#if kfryNode?? && kfryNode?size>0]
                                [#list kfryNode as node]
                                    <div class="pabitem"><input type="checkbox" value="${node.nodeId}" class="pos" name="kfry" [#if node.type?? && node.type==1]checked[/#if]/><span style="margin-right:5px;">${node.nodeName}</span></div>
                                [/#list]
                            [/#if]
                        </td>
                    </tr>
                    <tr>
                        <th align="right">运维经理:</th>
                        <td >
                            [#if ycjszcNode?? && ycjszcNode?size>0]
                                [#list ycjszcNode as node]
                                    <input type="checkbox" value="${node.nodeId}" class="pos" name="ycjszc" [#if node.type?? && node.type==1]checked[/#if]/><span style="margin-right:5px;">${node.nodeName}</span>
                                [/#list]
                            [/#if]
                        </td>
                    </tr>
                    <tr>
                        <th align="right">一线工程师:</th>
                        <td>
                            [#if yxgcsNode?? && yxgcsNode?size>0]
                                [#list yxgcsNode as node]
                                    <input type="checkbox" value="${node.nodeId}" class="pos" name="yxgcs" [#if node.type?? && node.type==1]checked[/#if]/><span style="margin-right:5px;">${node.nodeName}</span>
                                [/#list]
                            [/#if]
                        </td>
                    </tr>
                    <tr>
                        <th align="right">二线工程师:</th>
                        <td>
                            [#if exgcsNode?? && exgcsNode?size>0]
                                [#list exgcsNode as node]
                                    <input type="checkbox" value="${node.nodeId}" class="pos" name="exgcs" [#if node.type?? && node.type==1]checked[/#if]/><span style="margin-right:5px;">${node.nodeName}</span>
                                [/#list]
                            [/#if]
                        </td>
                    </tr>
                    <tr >
                        <th align="right">三线工程师:</th>
                        <td>
                            [#if sxgcsNode?? && sxgcsNode?size>0]
                                [#list sxgcsNode as node]
                                    <input type="checkbox" value="${node.nodeId}" class="pos" name="sxgcs" [#if node.type?? && node.type==1]checked[/#if]/><span style="margin-right:5px;">${node.nodeName}</span>
                                [/#list]
                            [/#if]
                        </td>
                    </tr>
                    <tr>
                            
                        <td colspan="2" style="text-align:center;"><a class="operating_conmon" style="margin-top:10px;"  href="javascript:savePz();"><span style="color:#333333;">提交</span></a>
                        [#if noresult??]
                        [#else]
                        [#if config.isSelf == 1]
                        <a class="operating_conmon" style="margin-top:10px;margin-left:10px;"  href="javascript:initPz();"><span style="color:#333333;">同步配置</span></a>
                        [/#if]
                        [/#if]
                        </td>
                    </tr>
                </table>
                </form>
        </div>   
    </div>
</div>
 
<script type="text/javascript">
var customerId = '${RequestParameters.customerId}';
function savePz() {
    if($("input[type='checkbox']:checked").size() == 0){
        popupTips("请至少选择一项流转策略配置!");
        return;
    }
    $("#myform").submit();
}
function initPz(){
       window.top.confirmInfo('提示', '确定要同步吗?', function(){
           $.post("${base}/business/pages/customerconfig/incidentflow/initlc.html", {"customerId":customerId},function(data){
                if(data == 1){
                   window.top.popupTips("同步成功");
                   window.location.reload(true);
                }else{
                   window.top.popupTips("同步失败");
                }
           });
         })  
    }
</script>
 
[#include "/business/pages/include/footer.html" /]
</body>
</html>