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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
<!doctype html>
<html class="no-js">
<head>
    <meta charset="utf-8">
    <title>事件模板详情</title>
 
</head>
 
<body class="fullscreen">
[#include "/business/pages/include/static.html" /]
[#include "/component/newupload.html" /]
[#include "/component/DatePicker.html" /]
[#include "/component/newsel.html" /]
<div class="fs_navtitle" id="fsNavtitle">
    <div class="fs_navtitle_con">
        <h2>事件模板详情</h2>
        <div class="fsnt_btn_left">
            <a class="mainbtn back" href="javascript:history.go(-1);"><span>返回</span></a>        </div>
    </div>
</div>
<form id="myform" action="${base}/business/pages/incidentTemplate/engineerSaveIncident.html" method="post">
    <div class="fs_main clearfix">
        <div class="fsm_left" id="fsmLeft">
            <div class="edit_title"><h3>基本信息</h3></div>
            <table class="edit_layout">
                <tr>
                    <th><label class="required">模板名称:</label></th>
                    <td colspan="3">
                        ${info.template_name}
                    </td>
                </tr>
                <tr>
                    <th><label class="required">事件名称:</label></th>
                    <td colspan="3">
                        ${info.name}
                    </td>
                </tr>
                <tr>
                    <th class="postop"><label class="required">事件描述:</label></th>
                    <td>
                    ${info.descrip}
                    </td>
                </tr>
                <tr>
                    <th><label class="required">${Constants.CUSTOMER_CONSTANTS}名称:</label></th>
                    <td>
                        ${info.customer_name}
                    </td>
 
                    <th><label class="required">${Constants.UNIT_CONSTANTS}:</label></th>
                    <td>
                        ${info.sub_customer_name}
                    </td>
                </tr>
                <tr>
                    <th><label class="required">联系方式:</label></th>
                    <td>
                        ${info.contact_phone}
                    </td>
                    <th><label class="required">联系人:</label></th>
                    <td>
                        ${info.contact_name}
                    </td>
                </tr>
                <tr>
                    <th><label>业务科室:</label></th>
                    <td>
                        ${info.keshi}
                    </td>
                    <th><label class="required">申报方式:</label></th>
                    <td>
                        ${info.apply_type_name}
                    </td>
                </tr>
                <tr>
 
 
                    <th><label class="required">事件类型:</label></th>
                    <td>
                        ${info.type_name}
                    </td>
                    <th><label class="required">事件来源:</label></th>
                    <td>
                        ${info.source_name}
                    </td>
                </tr>
                <tr>
                    <th><label class="required">发生时间:</label></th>
                    <td>
                        [@datepicker id="happen_time" value="${info.happen_time}" maxDate=DateUtil.getCurrentDate14()
                        class="general" length=14/]
                    </td>
                    <th><label class="required">服务目录:</label></th>
                    <td>
                        ${info.first_category_name}-${info.second_category_name}-${info.third_category_name}
                    </td>
                </tr>
            </table>
            <div class="edit_title"><h3>SLA等级</h3></div>
            <table class="edit_layout">
                <tr>
                    <th><label class="required">优先级:</label></th>
                    <td>
                        ${info.priority_name}
                    </td>
                    <th><label class="required">影响度:</label></th>
                    <td>
                        ${info.influence_name}
                    </td>
                </tr>
 
                <tr id="level">
                    <input type="hidden" id="slaId" name="sla_id" value="${info.sla_id}"/>
                    <input type="hidden" id="slaName" name="sla_name" value="${info.sla_name}"/>
                    <input type="hidden" id="request_answer_time" name="request_answer_time"
                           value="${info.request_answer_time}"/>
                    <input type="hidden" id="request_deal_time" name="request_deal_time"
                           value="${info.request_deal_time}"/>
                    <th><label class="required">服务等级:</label></th>
                    <td colspan="3" class="scores_con">
                        <h4 id="levelName"></h4>
                        <p>(<span>响应时间:</span><em class="first" id="responseTime"></em><span>解决时间:</span><em
                                id="resovleTime"></em>)</p>
                    </td>
                </tr>
            </table>
        </div>
    </div>
</form>
<script type="text/javascript">
    function goback() {
        window.history.back();
    }
    $(function () {
        queryLevel();
    })
    function queryLevel() {
        var priority_id = "${info.priority_id}";
        var influence_id = "${info.influence_id}";
        var serivceListId = "${info.first_category_id}-${info.second_category_id}-${info.third_category_id}";
        var customer_id = "${info.customer_id}";
        if (!$.util.isEmpty(priority_id) && !$.util.isEmpty(influence_id) && !$.util.isEmpty(serivceListId) && !$.util.isEmpty(customer_id)) {
            $.post("${base}/business/pages/servicelist/slaproject/queryLevel.html", {
                "priority_id": priority_id,
                "influence_id": influence_id,
                "serivceListId": serivceListId,
                "customer_id": customer_id
            }, function (data, textStatus) {
                if (data.levelName) {
 
                    $("#levelName").text(data.levelName);
                }
                if (data.responseTime) {
 
                    $("#responseTime").text(data.responseTime + "分钟");
                }
 
                if (data.resolveTime) {
                    $("#resovleTime").text(data.resolveTime + "小时");
                }
                $("#level").show();
            }, "json")
        }
    }
</script>
 
</body>
</html>