toolbarEvent.js
1.4 KB
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
!function(){
$('#exitBtn').on('click', function(){
layer.confirm('确定要退出系统?', {
btn : [ '退出', '取消' ],
icon : 3,
skin : 'layui-layer-cfm-delete'
}, function(){
//清除标记
storage.removeItem('real_control_flag');
//解绑事件
$(document).unbind('ajaxSend', interceptPOST);
layer.closeAll();
window.location.href = '/pages/control/lineallot/allot.html';
});
});
//调度指令
$('#msgAndDirect').on('click', function(){
$.get('/pages/control/line/child_pages/historyDirective.html', function(content){
layer.open({
type: 1,
area: '930px',
content: content,
title : false,
shift: 5,
success: function(){
}
});
});
});
//设备上报
$('#deviceReport').on('click', function(){
$.get('/pages/control/line/child_pages/deviceReport.html', function(content){
layer.open({
type: 1,
area: '930px',
content: content,
title : false,
shift: 5,
success: function(){
}
});
});
});
//TTS语音设置
$('#ttsConfigure').on('click', function(){
$.get('/pages/control/line/child_pages/ttsConfigure.html', function(content){
layer.open({
type: 1,
area: '530px',
content: content,
title : false,
shift: 5,
success: function(){
}
});
});
});
countDown('toolbarEvent.js');
}();