blob: ec78557a286f62a77745bacfa78edb85b23be76c (
plain)
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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
|
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<link href="../../component/thirdparty/font-awesome/css/font-awesome.min.css" rel="stylesheet" id="font_awesome"/>
<link href="../../component/thirdparty/bootstrap/css/bootstrap.min.css" rel="stylesheet"/>
<link href="../../component/thirdparty/uniform/css/uniform.default.css" rel="stylesheet"/>
<link href="../../framework/css/plugins.css" rel="stylesheet" type="text/css">
<link href="../../component/css/ZteIctIcons/style.css" rel="stylesheet" type="text/css"/>
<link href="../../vendor/zTree/css/zTreeStyle/zTreeStyle.css" type="text/css" rel="stylesheet">
<link href="../../vendor/icheck/skins/all.css" type="text/css" rel="stylesheet">
<link href="../../framework/css/ngict-component.css" rel="stylesheet" type="text/css">
<link href="../../vendor/bootstrap-daterangepicker/daterangepicker-bs3.css" rel="stylesheet">
<link href="../css/alarmsQuery.css" rel="stylesheet" type="text/css">
<style>
.ms-controller{
visibility: hidden
}
</style>
</head>
<body>
<div id="alarmsDiv" class="container-fluid ms-controller" ms-controller="curAlarmsController">
<div class="row" style=" margin-top: 15px;">
<div class="col-xs-6 col-md-6 col-sm-6 col-lg-6 titlefont searchTitle">
<span id="ngict_fm_iui_curalarm_currentAlarm" name_i18n="ngict_fm_iui_curalarm"></span>
</div>
</div>
<div class="separator-line"></div>
<div class="row-fluid filtergroup">
<div>
<div class="btn-group">
<button class="btn btnWhite circleBtn" ms-repeat-el="severityTypes"
ms-class="<!--el.class-->:severityTypes[$index].value" ms-click="tabClicked(el ,this)">
<!--el.name--></button>
</div>
<div class="btn-group btn-groupBlue ">
<button class="btn btnWhite circleBtn" ms-repeat-el="ackStateTypes" ms-class-blueActive="el.value"
ms-click="tabClicked(el ,this)"><!--el.name--></button>
</div>
<div class="btn-group btn-groupBlue circleBtn ">
<button class="btn btnWhite circleBtn" ms-repeat-el="filterStateTypes" ms-class-blueActive="el.value"
ms-click="tabClicked(el ,this)"><!--el.name--></button>
</div>
<div class="btn-group flRight">
<span class=" adCondition">
<button id="moreCondBtn" type="button" class="btn radius_l white "
ms-click="moreCondClicked()" ms-class-blueActive="vm.moreCondBtn"
><span class="caret"></span><span id="ngict_fm_iui_curalarm_advance" name_i18n="ngict_fm_iui_curalarm"></span>
</button>
</span>
</div>
</div>
</div>
<div class="row" id="moreCond" style="display: none;">
<div class="row" style="margin-top: 20px;">
<span id="alLocation" class="cond_zone">
<button class="condSelect btn white radius_l">
<span id="ngict_fm_iui_curalarm_alarmPosition" name_i18n="ngict_fm_iui_curalarm"></span>
</button>
<span class="cond_selected">
<span id="ngict_fm_iui_curalarm_locationSelected" name_i18n="ngict_fm_iui_curalarm"></span>
</span>
</span>
<span id="alType" class="cond_zone">
<button class="condSelect btn white radius_l">
<span id="ngict_fm_iui_curalarm_alarmType" name_i18n="ngict_fm_iui_curalarm"></span>
</button>
<span class="cond_selected">
<span id="ngict_fm_iui_curalarm_alarmTypeSelected" name_i18n="ngict_fm_iui_curalarm"></span>
</span>
</span>
<span id="alCode" class="cond_zone">
<button class="condSelect btn white radius_l">
<span id="ngict_fm_iui_curalarm_probableCause" name_i18n="ngict_fm_iui_curalarm"></span>
</button>
<span class="cond_selected">
<span id="ngict_fm_iui_curalarm_probableCauseSelected" name_i18n="ngict_fm_iui_curalarm"></span>
</span>
</span>
</div>
<div class="row cond_zone_time">
<div class="col-xs-12 confirmTime">
<label>
<span id="ngict_fm_iui_curalarm_ackTimeTitle" name_i18n="ngict_fm_iui_curalarm"></span>
</label>
<input id="today_confirm" type = "radio" name="timeConfirm" cond_value="1" cond_id="time" class="btn blue"></input>
<label for="today_confirm" class="radioLabel">
<span id="ngict_fm_iui_curalarm_recentOneDay" name_i18n="ngict_fm_iui_curalarm"></span>
</label>
<input id="one_week_confirm" type = "radio" name="timeConfirm" cond_value="2" cond_id="time" class="btn blue"></input>
<label for="one_week_confirm" class="radioLabel">
<span id="ngict_fm_iui_curalarm_recenttwoDays" name_i18n="ngict_fm_iui_curalarm"></span>
</label>
<input id="one_month_confirm" type = "radio" name="timeConfirm" cond_value="7" cond_id="time" class="btn blue"></input>
<label for="one_month_confirm" class="radioLabel">
<span id="ngict_fm_iui_curalarm_recentOneWeek" name_i18n="ngict_fm_iui_curalarm"></span>
</label>
<input id="customAckTime" type = "radio" name="timeConfirm" class="btn blue"></input>
<input dtitle="ackTime" id = 'daterangeConfirm' name="daterange" type='select' data-toggle="tooltip" data-placement="top" title ms-attr-disabled="<!--dataRangeLocationDisabled-->" class='btn btn-default dropdown-toggle' data-toggle='dropdown' />
</div>
</div>
<div class="row cond_zone_time">
<div class="col-xs-12 confirmTime">
<label>
<span id="ngict_fm_iui_curalarm_raisedTime" name_i18n="ngict_fm_iui_curalarm"></span>
</label>
<input id="today_occur" type = "radio" name="timeOccur" cond_value="1" cond_id="time" class="btn blue"></input>
<label for="today_occur" class="radioLabel">
<span id="ngict_fm_iui_curalarm_recentOneDay" name_i18n="ngict_fm_iui_curalarm"></span>
</label>
<input id="one_week_occur" type = "radio" name="timeOccur" cond_value="2" cond_id="time" class="btn blue"></input>
<label for="one_week_occur" class="radioLabel">
<span id="ngict_fm_iui_curalarm_recenttwoDays" name_i18n="ngict_fm_iui_curalarm"></span>
</label>
<input id="one_month_occur" type = "radio" name="timeOccur" cond_value="7" cond_id="time" class="btn blue"></input>
<label for="one_month_occur" class="radioLabel">
<span id="ngict_fm_iui_curalarm_recentOneWeek" name_i18n="ngict_fm_iui_curalarm"></span>
</label>
<input id="customRaisedTime" type = "radio" name="timeOccur" class="btn blue"></input>
<input dtitle="raisedTime" id = 'daterangeOccur' name="daterange" type='select' data-toggle="tooltip" data-placement="top" title ms-attr-disabled="<!--dataRangeTypeDisabled-->" class='btn btn-default dropdown-toggle' data-toggle='dropdown' />
</div>
</div>
<div class="row margin-space flRight">
<button ms-click="searchModal()" class="btn white radius_l"><span class="ict-Magnifier alarmsSave "></span>
<span id="ngict_fm_iui_curalarm_query" name_i18n="ngict_fm_iui_curalarm"></span>
</button>
<button ms-click="saveModal()" ms-visible="tempHide" class="btn white radius_l"><span class="ict-save alarmsSave "></span>
<span id="ngict_fm_iui_curalarm_save" name_i18n="ngict_fm_iui_curalarm"></span>
</button>
</div>
</div>
<div class="fliterline"></div>
<div class="row-fluid bodyTop">
<div class="col-xs-4 alarmbtn">
<div class="btn-group ">
<button id="affirm" onclick="alarmsUtil.loopAffirm(1);" class="btn white sideBtn"
ms-class="btnRiusCircle:!showClear"><span class="ict-acknownledge"></span></button>
<button id="unAffirm" class="btn white sideBtn" ms-visible="showClear"
onclick="alarmsUtil.loopAffirm(2);"
><span class="ict-unacknownledge"></span></button>
</div>
<button class="btn radius_l white" onclick="alarmsUtil.loopDelAralms();"><span
class="ict-delete"></span>
<span id="ngict_fm_iui_curalarm_clean" name_i18n="ngict_fm_iui_curalarm"></span>
</button>
</div>
<div class="tablebtn">
<button class="btn radius_l white" onclick="alarmsUtil.refresh();"><span class="ict-refresh"></span>
<span id="ngict_fm_iui_curalarm_refreash" name_i18n="ngict_fm_iui_curalarm"></span>
</button>
<button class="btn radius_l white" ms-visible="tempHide"><span class="ict-export"></span>
<span id="ngict_fm_iui_curalarm_exportAll" name_i18n="ngict_fm_iui_curalarm"></span>
</button>
</div>
</div>
<div class="row-fluid" data-name="table_zone">
<div class="col-xs-12" id='ict_alarms_table_div'></div>
</div>
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" id="myModalLabel">
<span id="ngict_fm_iui_curalarm_save" name_i18n="ngict_fm_iui_curalarm"></span>
</h4>
</div>
<div class="modal-body">
<span>
<span id="ngict_fm_iui_curalarm_name" name_i18n="ngict_fm_iui_curalarm">
</span> </span><input type="text" id="saveCondId"/>
<div class="condSaveTip">
<span id="ngict_fm_iui_curalarm_condSaveTip" name_i18n="ngict_fm_iui_curalarm"></span>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" id="saveModalCancle" data-dismiss="modal">
<span id="ngict_fm_iui_curalarm_cancel" name_i18n="ngict_fm_iui_curalarm"></span>
</button>
<button type="button" class="btn btn-primary" ms-click="alarmsCondSave()">
<span id="ngict_fm_iui_curalarm_ok" name_i18n="ngict_fm_iui_curalarm"></span>
</button>
</div>
</div>
</div>
</div>
<div hidefocus="true" class="modal fade group" id="alCodeTree" tabindex="-1" role="dialog" aria-labelledby="myModalLabelCode" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" id="myModalLabelCode">
<span id="ngict_fm_iui_curalarm_probableCause" name_i18n="ngict_fm_iui_curalarm"></span>
</h4>
</div>
<div class="modal-body">
<div class="row">
<div class="form-group col-xs-12 margin-top-space">
<div class="col-xs-6">
<div class=" right_assign_box">
<ul id="probableCausesTree" class="ztree"></ul>
</div>
</div>
<div class="col-xs-1 iconPosition">
<div ms-repeat-el="treeIcons">
<i treeType="probableCausesTree" ms-class="<!--el-->" ms-click="moveTreeNode($(this))"></i>
</div>
</div>
<div class="col-xs-5 ">
<div tabindex="11" class="right-assign-checked-box tree-right-table">
<table id="selectedProbableCausesTreeTable" class="table table-bordered">
</table>
</div>
</div>
<div class="col-xs-4 nodesDetail right">
<button id="moreCondBtn" type="button" class="btn white blueactive right" ms-click="probableCausesTreeAffirm()">
<span id="ngict_fm_iui_curalarm_ok" name_i18n="ngict_fm_iui_curalarm"></span>
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div hidefocus="true" class="modal fade group" id="alTypeTree" tabindex="-1" role="dialog" aria-labelledby="myModalLabelType" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" id="myModalLabelType">
<span id="ngict_fm_iui_curalarm_alarmType" name_i18n="ngict_fm_iui_curalarm"></span>
</h4>
</div>
<div class="modal-body">
<div class="row">
<div class="form-group col-xs-12 margin-top-space">
<div class="col-xs-12">
<div class=" right-assign-checked-box">
<table id="selectedAlTypeTable" class="table table-bordered tree-left-table">
</table>
</div>
</div>
<div class="col-xs-4 nodesDetail right"><button id="moreCondBtn" type="button" class="btn white blueactive right" ms-click="alTypeTreeAffirm()">
<span id="ngict_fm_iui_curalarm_ok" name_i18n="ngict_fm_iui_curalarm"></span>
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div hidefocus="true" class="modal fade group" id="alLocationTree" tabindex="-1" role="dialog" aria-labelledby="myModalLabelLocation" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" id="myModalLabelLocation">
<span id="ngict_fm_iui_curalarm_alarmPosition" name_i18n="ngict_fm_iui_curalarm"></span>
</h4>
</div>
<div class="modal-body">
<div class="row">
<div class="form-group col-xs-12 margin-top-space">
<div class="col-xs-6">
<div class="right_assign_box">
<ul id="deptTree" class="ztree"></ul>
</div>
</div>
<div class="col-xs-1 iconPosition">
<div ms-repeat-el="treeIcons">
<i treeType="deptTree" ms-class="<!--el-->" ms-click="moveTreeNode($(this))"></i>
</div>
</div>
<div class="col-xs-5">
<div id="selectedDeptTree" tabindex="11" class="right-assign-checked-box tree-right-table">
<table id="selectedDeptTreeTable" class="table table-bordered">
</table>
</div>
</div>
</div>
</div>
<div class="row">
<div class="form-group col-xs-12">
<div class="col-xs-4 right">
<button id="moreCondBtn" type="button" class="btn white blueactive right" ms-click="deptTreeAffirm()">
<span id="ngict_fm_iui_curalarm_ok" name_i18n="ngict_fm_iui_curalarm"></span>
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="affirmTrip" class="defaultHideTopLink">
<span id="ngict_fm_iui_curalarm_affirm" name_i18n="ngict_fm_iui_curalarm"></span>
</div>
<div id="unAffirmTrip" class="defaultHideTopLink">
<span id="ngict_fm_iui_curalarm_unaffirm" name_i18n="ngict_fm_iui_curalarm"></span>
</div>
</div>
<script src="../../component/thirdparty/jquery/jquery-1.10.2.min.js"></script>
<script src="../../component/thirdparty/jquery-cokie/jquery.cokie.min.js" type="text/javascript" ></script>
<script src="../../component/thirdparty/jquery.i18n/jquery.i18n.properties-1.0.9.js"></script>
<script src="../../component/thirdparty/bootbox/bootbox.min.js" type="text/javascript"></script>
<script src="../../component/thirdparty/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<script src="../../vendor/bootstrap-daterangepicker/moment.js"></script>
<script src="../../component/thirdparty/data-tables/jquery.dataTables.js"></script>
<script src="../../vendor/bootstrap-daterangepicker/daterangepicker.js"></script>
<script src="../../framework/js/json2.js"></script>
<script src="../../vendor/avalon/avalon.modern.js"></script>
<script src="../../framework/js/tools.js"></script>
<script src="../../vendor/icheck/icheck.min.js" type="text/javascript"></script>
<script src="../../vendor/zTree/js/jquery.ztree.all.js"></script>
<script>
var lang = getLanguage();
jQuery.i18n.properties({
language: lang,
name: 'ngict-curalarms-iui-i18n',
path: '../i18n/',
mode: 'map',
callback: function () {
var i18nItems = $("[name_i18n=ngict_fm_iui_curalarm]");
for(var i=0;i<i18nItems.length;i++){
var $item = $(i18nItems.eq(i));
var itemId = $item.attr('id');
if(typeof($item.attr("placeholder"))=="undefined"){
$item.text($.i18n.prop(itemId));
}else{
$item.attr("placeholder", $.i18n.prop(itemId));
}
}
$('#daterangeConfirm').attr('value',$.i18n.prop('ngict_fm_iui_curalarm_custom'));
$('#daterangeOccur').attr('value',$.i18n.prop('ngict_fm_iui_curalarm_custom'));
}
});
//获取QueryId
var getUrlParam=function(name){
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
var search =decodeURIComponent(location.search.substring(1)); //decodeURIComponent() 函数可对 encodeURIComponent() 函数编码的 URI 进行解码。
var r =search.match(reg); //匹配目标参数
if (r != null) return unescape(r[2]); //unescape() 函数可对通过 escape() 编码的字符串进行解码。
return null; //返回参数值
}
$(function(){
var queryName = getUrlParam("queryId");
if(queryName){
$(".searchTitle").text(queryName);
$("#saveCondId").val(queryName);
}
$('[data-toggle="tooltip"]').tooltip();
});
</script>
<script type="text/javascript" src="../js/alarmsServerPageTable.js"></script>
<script type="text/javascript" src="../js/alarmsUtil.js"></script>
<script type="text/javascript" src="../js/alarmConds.js"></script>
<script type="text/javascript" src="../js/CommonUtil.js"></script>
<script type="text/javascript" src="../js/curAlarmsController.js"></script>
</body>
</html>
|