kongdeqiang
2023-02-17 ac94b1d939373a684344764e5b00dac44feabd81
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
function searchByOrder(orderBy,orderType){
    var urlParams = window.location.search;
    var hrefUrl = "/tssw/snmpInfo/list?orderBy="+orderBy+"&orderType="+orderType;
    if (urlParams.indexOf("groupId") != -1) {
        hrefUrl += "&groupId="+$("#groupId").val();
    }
    window.location.href = hrefUrl;
}
 
function searchByOnline(state){
    window.location.href = "/tssw/snmpInfo/list?state="+state;
}
 
function searchByAccount() {
    window.location.href = "/tssw/snmpInfo/list?account="+$("#account").val();
}
 
 
function add() {
    window.location.href = "/tssw/snmpInfo/edit";
}
 
function view(id) {
    window.location.href = "/tssw/snmpInfo/view?id="+id;
}
 
function viewDate(id,searchTime){
    window.location.href = "/tssw/snmpInfo/view?id="+id+"&am="+searchTime;
}
 
function excelExport(id,searchTime){
    var startTime = $("#startTime").val();
    var endTime = $("#endTime").val();
    window.open("/tssw/snmpInfo/chartExcel?id="+id+"&startTime="+startTime+"&endTime="+endTime+"&am="+searchTime);
}
 
function del(id) {
    if(confirm('你确定要删除吗?')) {
        window.location.href = "/tssw/snmpInfo/del?id=" + id;
    }
}
function edit(id){
    window.location.href = "/tssw/snmpInfo/edit?id="+id;
}
 
function cancel(){
    history.back();
}
 
function interfacePage(hostname) {
    window.location.href = "/tssw/snmpInterfaceInfo/list?hostname="+hostname;
}