messages.js 1.15 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
/**
*messages 页面顶部的协议切换
*/
function messageManTab(e){
    var url = window.location.href;
    var id = $(e).attr("id");
    if(id == "terminalHeartBeat_msg"){
        $(location).attr('href', "http://" + window.location.host + "/messageTools/message_view/heartBeat_msg_page");
    }else if(id == "terminalRegister_msg"){
        $(location).attr('href', "http://" + window.location.host + "/messageTools/message_view/terminalRegister_msg_page");
11 12
    }else if(id == "terminalVersionInfoUpload_msg"){
        $(location).attr('href', "http://" + window.location.host + "/messageTools/message_view/terminalVersionInfoUpload_msg_page");
13 14
    }else if(id == "dataUpstreamTransport_msg"){
        $(location).attr('href', "http://" + window.location.host + "/messageTools/message_view/dataUpstreamTransport_msg_page");
15 16
    }else if(id == "location_msg"){
        $(location).attr('href', "http://" + window.location.host + "/messageTools/message_view/location_msg_page");
17 18
    }else if(id == "userDefined_msg"){
        $(location).attr('href', "http://" + window.location.host + "/messageTools/message_view/userDefined_msg_page");
19 20 21 22
    }else{
        alert(id)
    }
}