12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- var su ;
- var ai ;
- $(function(){
- su = new SearchUtil();
- var fd_id = window.location.href.split("?")[1];
- fd_id = fd_id.split("=")[1];
- var deptId = su.getSubDept(fd_id);
- var teamUrl = $.pathname() + "/ws/cockpit/CockpitService/queryTeam";
- var data = su.getJsonData(teamUrl, {deptId:deptId});
- $("#TEAM").data("data",data);
- $("#TEAM").attr("selectedValue",data["treeNodes"]["0"]["id"]);
- $("#TEAM").render();
- showTeamInfo($("#TEAM").attr("relValue")) ;
- }) ;
- function initComplete(){
- //绑定change事件
- $("#TEAM").bind("change",function(){
- if($(this).attr("relValue")){
- var id = $(this).attr("relValue") ;
- showTeamInfo(id) ;
- }
- }) ;
- } ;
-
- function showTeamInfo(id){
- var url = $.pathname() + '/ws/cockpit/CockpitService/queryTeamInfo/';
- var params = { fdId : id };
- var data = su.getJsonData(url, params);
-
- $("#TEAM_TYPE_261").html(data["TYPE"]) ;
- $("#TEAM_LEVEL_261").html(data["LEVEL"]) ;
- $("#TEAM_LEADER_261").html(data["LEADER"]) ;
- $("#TEAM_PHONE_261").html(data["PHONE"]) ;
- }
- /**
- * 针对单位下拉复选框改变应急队伍选择框
- */
- /*function changeTameSelect(id){
- var tameUrl = "/nwyj/ws/cockpit/CockpitService/queryTeamByDept" ;
- var params = { deptId:id } ;
- $.post(tameUrl,params,function(data){
- if(data){
- $("#TAME").data("data", data) ;
- $("#TAME").render() ;
- } else {
- $("#TAME").data("data", data) ;
- $("#TAME").render() ;
- }
-
-
- },"json") ;
- } ;*/
- function forConfim(){
- var inciId = $("#TEAM").attr("relValue") ;
- var teamName = $("#TEAM").attr("relText") ;
-
- if(inciId){
- var params = {fd_id:inciId, name:teamName, teamDesc:$("#description").val()} ;
- parent.getTeamId(params);
- } else {
- ai.setMes(320, 186, 200, 500, "系统提示", "没有数据可以保存!");
- ai.createAlert();
- };
-
- parent.removeAlter();
- }
|