From 89cc717e3ccd49d49539b25d7a8554126504b51f Mon Sep 17 00:00:00 2001 From: hdw <496960745@qq.com> Date: 星期五, 02 十一月 2018 08:53:20 +0800 Subject: [PATCH] 电池配组记录区/县添加 --- gx_tieta/WebRoot/control.jsp | 364 ++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 355 insertions(+), 9 deletions(-) diff --git a/gx_tieta/WebRoot/control.jsp b/gx_tieta/WebRoot/control.jsp index ee80a7c..24d373a 100644 --- a/gx_tieta/WebRoot/control.jsp +++ b/gx_tieta/WebRoot/control.jsp @@ -113,6 +113,12 @@ .w400 { width: 400px; } + .w500 { + width: 500px; + } + .mr250 { + margin-left: -250px; + } </style> </head> @@ -127,6 +133,13 @@ <table> <tr> <td id="ele_content"> + <div class="siderbar-tools"> + <div class="siderbar-tools-right"> + <i class="fa fa-file-text-o" title="鏈哄巻鍗�" id="siderbarToolsCard"></i> + <i class="fa fa-search" title="鏌ヨ鏈烘埧" id="siderbarToolsSearch"></i> + <i class="fa fa-outdent" title="鍏ㄩ儴鏀剁缉" id="siderbarToolsHide"></i> + </div> + </div> <!--鐢垫睜缁勮彍鍗曟爮--> <div id="lside"> @@ -268,7 +281,13 @@ <!-- 鐢垫睜缁勬満鍘嗗崱璇︾粏淇℃伅--> <div id="card_infor"> <span class="title-log"><s:text name="The_battery_pack_machine_through_the_card"/></span> <!-- 鐢垫睜缁勬満鍘嗗崱 --> - <div class="con-list ele-infor con-show"> + <div id="cardInfoTab" class="whyc-tab-card"> + <ul class="whyc-tab-title"> + <li class="whyc-tab-this">鐢垫睜缁勪俊鎭�</li> + <li class="">鍩虹珯淇℃伅</li> + </ul> + </div> + <div class="con-list ele-infor con-show" style="height: 400px;overflow-y: auto"> <table> <tr> <th id="card_infor_left"><s:text name="Parameter_name"/></th> <!-- 鍙傛暟鍚嶇О --> @@ -345,6 +364,166 @@ <tr> <td><s:text name="Head"/></td> <!-- 璐熻矗浜� --> <td></td> + </tr> + </table> + </div> + <div class="con-list ele-infor" style="height: 400px;overflow-y: auto"> + <table> + <tr> + <th id="card_infor_left"><s:text name="Parameter_name"/></th> <!-- 鍙傛暟鍚嶇О --> + <th><s:text name="Parameter_value"/></th> <!-- 鍙傛暟鍊� --> + </tr> + <tr> + <td>绔欑偣ID</td> + <td id="station_stationid_ex"></td> + </tr> + <tr> + <td>绔欑偣鍚嶇О</td> + <td id="station_stationname"></td> + </tr> + <tr> + <td>鏈烘埧ID</td> + <td id="station_stationid"></td> + </tr> + <tr> + <td>鎵�灞炵粍缁�</td> + <td id="station_affiliation"></td> + </tr> + <tr> + <td>鏁版嵁鏉ユ簮</td> + <td id="station_dataSources"></td> + </tr> + <tr> + <td>绔欏潃绫诲瀷</td> + <td id="station_stationType"></td> + </tr> + <tr> + <td>缁忕含搴�</td> + <td id="station_jinweidu"></td> + </tr> + <tr> + <td>鎵�鍦ㄥ湴鍧�</td> + <td id="station_stationAddr"></td> + </tr> + <tr> + <td>绔欏潃鐘舵��</td> + <td id="station_stationstate"></td> + </tr> + <tr> + <td>缁存姢鍗曚綅</td> + <td id="station_maintenanceCompany"></td> + </tr> + <tr> + <td>绔欏潃鍦烘櫙</td> + <td id="station_stationscenario"></td> + </tr> + <tr> + <td>绔欏潃浜ф潈</td> + <td id="station_stationproperty"></td> + </tr> + <tr> + <td>浣跨敤鍗曚綅</td> + <td id="station_useUnit"></td> + </tr> + <tr> + <td>鐗╃悊绔欏潃缂栫爜</td> + <td id="station_siteCode"></td> + </tr> + <tr> + <td>鍘嗗彶鐗╃悊绔欏潃缂栫爜</td> + <td id="station_historySiteCode"></td> + </tr> + <tr> + <td>绔欏潃鍐呴儴缂栧彿</td> + <td id="station_siteInternalNumber"></td> + </tr> + <tr> + <td>绔欏潃鎷奸煶绠�绉�</td> + <td id="station_sitePinyinReferred"></td> + </tr> + <tr> + <td>涓枃绠�绉�</td> + <td id="station_siteChineseReferred"></td> + </tr> + <tr> + <td>鏄惁寮�閫氫笟鍔�</td> + <td id="station_isOpenBusiness"></td> + </tr> + <tr> + <td>褰曞叆浜哄憳</td> + <td id="station_schoolPersonnel"></td> + </tr> + <tr> + <td>褰曞叆鏃堕棿</td> + <td id="station_entryTime"></td> + </tr> + <tr> + <td>淇敼浜�</td> + <td id="station_modifyPeople"></td> + </tr> + <tr> + <td>淇敼鏃堕棿</td> + <td id="station_modifyTime"></td> + </tr> + <tr> + <td>澶囨敞</td> + <td id="station_note"></td> + </tr> + <tr> + <td>绔欏潃鎺ユ敹鏍囪鍙婃槸鍚︽湁鏁�</td> + <td id="station_receiveorvalidity"></td> + </tr> + <tr> + <td>绉诲姩绔欏潃鍚嶇О</td> + <td id="station_siteNameCMCC"></td> + </tr> + <tr> + <td>鐢典俊绔欏潃鍚嶇О</td> + <td id="station_siteNameCTC"></td> + </tr> + <tr> + <td>鑱旈�氱珯鍧�鍚嶇О</td> + <td id="station_siteNameCUCC"></td> + </tr> + <tr> + <td>鍝佺墝</td> + <td id="station_producer"></td> + </tr> + <tr> + <td>缁埅娴嬬畻鏃堕暱</td> + <td id="station_lastTimeLong"></td> + </tr> + <tr> + <td>缁埅娴嬬畻绫诲埆</td> + <td id="station_lastTimeType"></td> + </tr> + <tr> + <td>缁埅鍙戠敓鏃堕棿</td> + <td id="station_lastTimeDate"></td> + </tr> + <tr> + <td>鍏变韩鎯呭喌</td> + <td id="station_shareInfo"></td> + </tr> + <tr> + <td>杩愯惀鍟嗚喘涔板彂鐢垫湇鍔$姸鍐�</td> + <td id="station_electPower"></td> + </tr> + <tr> + <td>鏄惁鍏峰鍙戠數鏉′欢</td> + <td id="station_isCanElectPower"></td> + </tr> + <tr> + <td>涓婄珯璺▼</td> + <td id="station_upperStationRoute"></td> + </tr> + <tr> + <td>涓婄珯闅炬槗绋嬪害</td> + <td id="station_upperStationDifficult"></td> + </tr> + <tr> + <td>瀹㈡埛闂搴撴湭瀹屾垚钃勭數姹犵淮淇�</td> + <td id="station_clienteleErrorService"></td> </tr> </table> </div> @@ -802,6 +981,32 @@ </div> </div> + <!-- 瀵艰埅瀹氫綅 --> + <div class="popup w500 mr250" id="localNav"> + <div class="popup-title"><span>鏈烘埧鏌ヨ</span><a href="javascript:;" class="close">X</a></div> + <div class="popup-content"> + <div class="popup-tbl"> + <table> + <tbody> + <tr> + <th>鏈烘埧鍚嶇О/鏈烘埧id</th> + </tr> + <tr> + <td> + <input name="popupHomeName" id="popupHomeName" type="text"> + </td> + </tr> + </tbody> + </table> + </div> + </div> + + <div class="popup-footer"> + <input type="button" name="" id="localNav_en" class="status-change-btn" value="纭畾" > <!-- 纭畾 --> + <input type="button" name="" class="close" value="鍙栨秷" > <!-- 鍙栨秷 --> + </div> + </div> + <!-- 鏈�澶у唴闃诲崟浣� --> <div class="confirm"> <div class="confirm-header"><span>鏈�澶у唴闃诲崟浣擄紙鍓�10锛�</span><a href="javascript:closeConfirm();" class="close">X</a></div> @@ -905,6 +1110,7 @@ var equip61850_popup = new Popup($('#equip61850')); var BTS_popup = new Popup($('#bts')); var equip4016_popup = new Popup($('#equip4016')); + var localNav = new Popup($('#localNav')); // 鍏呮斁鐢靛脊鍑烘璁剧疆 $(function() { // 鍒濆鍖朙D9鍏呮斁鐢靛脊鍑烘 @@ -927,12 +1133,18 @@ equip4016_popup.hidePopup(); // 闅愯棌61850寮瑰嚭妗嗗拰閬僵灞� }); + // 鍒濆鍖杔ocalNav寮瑰嚭妗� + $('#localNav').find('.close').bind('click', function() { + localNav.hidePopup(); // 闅愯棌localNav寮瑰嚭妗嗗拰閬僵灞� + }); + // 绐楀彛澶у皬鏀瑰彉 $(window).resize(function() { LD9_popup.hidePopup(); // 闅愯棌LD9寮瑰嚭妗嗗拰閬僵灞� equip61850_popup.hidePopup(); // 闅愯棌61850寮瑰嚭妗嗗拰閬僵灞� BTS_popup.hidePopup(); // 闅愯棌bts寮瑰嚭妗嗗拰閬僵灞� equip4016_popup.hidePopup(); // 闅愯棌4016寮瑰嚭妗嗗拰閬僵灞� + localNav.hidePopup(); }); }); //鍒濆鍖栨煴鐘跺浘 @@ -1439,6 +1651,7 @@ data = eval("("+data+")"); var model = eval("("+data.result+")"); //console.log(model); + var outTime = 2*60; //璁惧瓒呮椂鏃堕棿(2鍒嗛挓) var isOutTime = true; //閫氳涓柇 鍒ゆ柇璁惧鏄惁閫氳涓柇 true:涓柇 false:姝e父 var batt = getBatt(); //鑾峰彇褰撳墠閫変腑鐨勭數姹犵粍 @@ -1450,6 +1663,8 @@ }else { _str = GLOBAL.circleStatus.BTSCircle(batt, model, mygraph, updateEleCircle); } + //console.log(mygraph); + //debugger; if(model.code == 1) { var nowTime = new Date().getTime(); //褰撳墠鏃堕棿 var record = new Date(model.data[0].record_datetime).getTime(); @@ -2681,8 +2896,9 @@ var batt = getBatt(); var province = batt.StationName1; var city = batt.StationName2; + var county = batt.StationName5; var home = batt.StationName; - $(this).attr('href', 'charge-test.jsp?province='+province+'&city='+city+'&home='+home); + $(this).attr('href', 'charge-test.jsp?province='+province+'&city='+city+'&county='+county+'&home='+home); }); }); @@ -2717,6 +2933,7 @@ val:_data.BattGroupId, province: _data.stationName1, city: _data.stationName2, + county: _data.stationName5, home: _data.stationName, isCharge:0 }); @@ -2726,6 +2943,7 @@ val: _data.BattGroupId, province: _data.stationName1, city: _data.stationName2, + county: _data.stationName5, home: _data.stationName, isCharge:1 }); @@ -3350,7 +3568,8 @@ if(regEquipType(batt.FBSDeviceId, globalPattern.BTS)) { var temp = { num: CMD_BTS_Stop, - dev_id: batt.FBSDeviceId + dev_id: batt.FBSDeviceId, + TestCmd: 0 }; // 鏄剧ず鏄惁鍋滄娴嬭瘯 myConfirm.show({ @@ -3880,6 +4099,14 @@ $('.confirm-mask').hide(); } + // 鏈烘埧瀹氫綅闈㈡澘鏁版嵁鏌ヨ + $(function() { + + + }); + + + // siderbar妯″潡 $(function() { var TreeView = GLOBAL.pages.TreeView; @@ -3887,6 +4114,7 @@ var second = GLOBAL.pages.siderbar.second; // 浜岀骇瀵艰埅 var third = GLOBAL.pages.siderbar.third; // 涓夌骇瀵艰埅 var fourth = GLOBAL.pages.siderbar.fourth; // 鍥涚骇瀵艰埅 + var fifth = GLOBAL.pages.siderbar.fifth; // 浜旂骇瀵艰埅 var localSideBar = GLOBAL.pages.siderbar.localSideBar; // 瀹氫綅鏈烘埧 var treeView = new TreeView($('#lside')); $('#lside').width($('#ele_content').width()); @@ -3911,10 +4139,16 @@ second(treeView, $(this).parent(), province); }); - // 甯�->鏈烘埧 + // 甯�->鍘� treeView.ele.on('click', '.city', function() { var city = $(this).data('attr'); third(treeView, $(this).parent(), city); + }); + + // 鍘�->鏈烘埧 + treeView.ele.on('click', '.county', function() { + var county = $(this).data('attr'); + fourth(treeView, $(this).parent(), county); }); battinlist = []; @@ -3924,10 +4158,11 @@ var tmp = { StationName1: home.StationName1, StationName2: home.StationName2, + StationName5: home.StationName5, StationName: home.StationName, StationId: home.StationId }; - fourth(treeView, $(this).parent(), tmp); + fifth(treeView, $(this).parent(), tmp); }); // 鐢垫睜缁� @@ -3954,6 +4189,7 @@ } mygraph.ischange = 1; //閲嶆柊缁樺埗鎷撴墤鍥� + // 璐熻浇鐢垫祦 var loadCurr = batt.Load_curr+'A'; changeEleCircleOpt(eleCircle, 'loaderCurr', {name:'鏈�澶ц礋杞界數娴侊細'+loadCurr}); @@ -3965,6 +4201,7 @@ getBattStr(); searchBattAlarmParam(); //鏌ヨ鐢垫睜鍛婅鍙傛暟 clearInterval(time); + mygraph.graphtype = 4; showtable(); time=window.setInterval("showtable()",4000); } @@ -3979,7 +4216,7 @@ var disX=(e||event).clientX+10; //寰楀埌榧犳爣鐐瑰嚮X鐨勪綅缃� var disY=(e||event).clientY+10; //寰楀埌榧犳爣鐐瑰嚮Y鐨勪綅缃� var scrollY=$(window).scrollTop(); //鑾峰彇娴忚鍣ㄦ粴鍔ㄧ殑楂樺害 - console.log(scrollY); + //console.log(scrollY); var oRightMenu=document.getElementById("right_menu"); $(this).click(); @@ -3988,7 +4225,7 @@ $("#right_menu").show(); $("#right_menu .more_menu").hide(); $("#right_menu .angle").hide(); - console.log(disX+"***"+disY); + //console.log(disX+"***"+disY); //浣胯彍鍗曡窡闅忛紶鏍囦綅缃� oRightMenu.style.left= disX+'px'; oRightMenu.style.top= disY+scrollY+'px'; @@ -4003,6 +4240,49 @@ treeView.ele.find('li').removeClass('sider-menu-open'); }); + // 宸ュ叿鏉℃暣浣撴牱寮� + $('.siderbar-tools').tooltip(); + + // 宸ュ叿鏉�-鏈哄巻鍗� + $('#siderbarToolsCard').click(function(){ + var batt = getBatt(); + var tmp = { + province: batt.StationName1, + city: batt.StationName2, + county: batt.StationName5, + home: batt.StationName, + homeid: batt.StationId, + battid: batt.BattGroupId + }; + findBattinfByBattGroupId(batt.BattGroupId); + findStationInfoByStation(batt); + // 鏍规嵁鏁版嵁瀹氫綅 + localSideBar(treeView, treeView.container, tmp); + }); + + // 宸ュ叿鏉�-鍏ㄩ儴鏀剁缉 + $('#siderbarToolsHide').click(function(){ + treeView.ele.find('li').removeClass('sider-menu-open'); + }); + + // 宸ュ叿鏉�-鏌ヨ + $('#siderbarToolsSearch').click(function(){ + localNav.homeInfo = undefined; + $('#popupHomeName').val(''); + localNav.showPopup(); + }); + + // 鐐瑰嚮闈㈡澘鐨勭‘瀹氭寜閽� + $('#localNav_en').click(function() { + // 瀹氫綅 + if(localNav.homeInfo) { + localNav.hidePopup(); + localSideBar(treeView, treeView.container, localNav.homeInfo); + }else { + + } + }); + // 鐢垫睜鍏呮斁鐢垫暟鎹洃鎺� var batt_list = $('#ele_content .batt-listen .batt-list'); batt_list.on('click', 'a', function(){ @@ -4013,13 +4293,79 @@ var tmp = { province: battInfo.province, city: battInfo.city, + county: battInfo.county, home: battInfo.home, homeid: battInfo.note, battid: battInfo.val - } - + }; + //console.log(tmp); localSideBar(treeView, treeView.container, tmp); }); + + // 鏌ヨ鏈烘埧骞舵洿鏂皊ource + var homeSource = []; + findHome(); + + // 瀹氫箟鏈烘埧鏌ヨ淇℃伅 + $( "#popupHomeName" ).autocomplete({ + source: homeSource, + select: function(event, ui) { + localNav.homeInfo = ui.item; // 璁剧疆鏈烘埧淇℃伅鍐呭 + } + }); + + // 鏌ヨ鏈烘埧 + function findHome() { + var tmp = { + StationName1:'', + StationName2: '', + StationName5:'' + }; + + // 鏌ヨ灏嗕俊鎭� + $.post("BattInfAction!serchStationName3","json="+JSON.stringify(tmp),function(result){ + var rs = JSON.parse(result.result); + if(rs.code==1){ + homeSource = []; + var data = rs.data; + for(var i=0; i<data.length; i++) { + var _data = data[i]; + var tmp = { + label: _data.StationName+'('+_data.StationId+')', + province: _data.StationName1, + city: _data.StationName2, + county: _data.StationName5, + home: _data.StationName, + homeid: _data.StationId, + battid: undefined + }; + + // 娣诲姞鍒拌祫婧� + homeSource.push(tmp); + } + $( "#popupHomeName" ).autocomplete('option', 'source', homeSource); + } + }); + } + + }); + + // 鏈哄巻鍗℃ā鍧� + $(function() { + // 鑾峰彇閫夐」鍗″垪琛� + var tabs = $('#cardInfoTab .whyc-tab-title li'); + var tabContents = $('#card_infor .con-list'); + // 鐐瑰嚮tabs瑙﹀彂 + tabs.click(function() { + var index = $(this).index(); + // 绉婚櫎鐗规晥 + tabs.removeClass('whyc-tab-this'); + tabContents.removeClass('con-show'); + + // 鏄剧ず鐗规晥 + $(this).addClass('whyc-tab-this'); + tabContents.eq(index).addClass('con-show'); + }); }); </script> <script type="text/javascript" src="js/Title.js"></script> -- Gitblit v1.9.1