| | |
| | | <tr>
|
| | | <th><s:text name="Maintenance_area"/><!-- 省 --></th>
|
| | | <th>市<!-- 市 --></th>
|
| | | <th>区/县</th> <!-- 区/县 -->
|
| | | <th><s:text name="Computer_site"/><!-- 机房站点(或机房设备) --></th>
|
| | | <th><s:text name="Battery_name"/><!-- 蓄电池组名称 --></th>
|
| | | <th><s:text name="Single_number"/><!-- 单体编号 --></th>
|
| | |
| | | <td>
|
| | | <select id="city">
|
| | | </select>
|
| | | </td>
|
| | | <td>
|
| | | <select id="county"></select>
|
| | | </td>
|
| | | <td>
|
| | | <select id="station_name">
|
| | |
| | | <script type="text/javascript" src="js/query.js"></script>
|
| | | <script type="text/javascript" src="js/loading.js"></script>
|
| | | <script type="text/javascript" src="js/rightmenu.js"></script>
|
| | | <script type="text/javascript" src="pages/js/common.js"></script>
|
| | | <script type="text/javascript">
|
| | | var Page = {
|
| | | pageCurr:1,
|
| | |
| | | '单体容量百分比'
|
| | | ]; */
|
| | | arrTh = [
|
| | | '<s:text name="Maintenance_area"/>', '<s:text name="Computer_name"/>', '<s:text name="Battery_name"/>',
|
| | | '<s:text name="Computer_name"/>', '<s:text name="Battery_name"/>',
|
| | | '<s:text name="Single_number"/>', '<s:text name="Monomer"/><s:text name="real_time"/><s:text name="Voltage"/>', '<s:text name="Monomer"/><s:text name="Actual_capacity"/>',
|
| | | '<s:text name="Monomer"/><s:text name="Percent_total_capacity"/>'
|
| | | ];
|
| | |
| | | success: function(data){
|
| | | data = eval('('+data+')');
|
| | | var model = eval('('+data.result+')');
|
| | | console.info(model);
|
| | | //console.info(model);
|
| | | if(model.code == 1){
|
| | | attentionlist = model.data;
|
| | | for(var i=0;i<model.data.length;i++){
|
| | | arrTd.push(model.data[i].StationName1); //维护区
|
| | | arrTd.push(model.data[i].StationName); //机房名称
|
| | | arrTd.push(model.data[i].BattGroupName); //电池组名称
|
| | | arrTd.push(model.data[i].MonNum); //单体编号
|
| | |
| | | pageSize:Page.pageSize
|
| | | },
|
| | | binf:{
|
| | | StationName:$('#station_name').val(), //机房名
|
| | | StationName2:$('#city').val(), //市
|
| | | StationName1:$('#station_name1').val(), //省
|
| | | BattGroupId:battgroupId==''?0:battgroupId, //电池组名称
|
| | | StationName:$('#station_name').val(), // 机房名
|
| | | StationName1:$('#station_name1').val(), // 省
|
| | | StationName2:$('#city').val(), // 市
|
| | | StationName5: $('#county').val(), // 区/县
|
| | | BattGroupId:battgroupId==''?0:battgroupId, //电池组名称
|
| | | MonNum:$('#Single_number').val()
|
| | | }
|
| | | };
|
| | |
| | |
|
| | | // 点击取消关注触发事件
|
| | | $('body').on('click', '#rightMenu .remove-attention', function() {
|
| | | console.info(trIndex);
|
| | | //console.info(trIndex);
|
| | | cancelAttention(attentionlist[trIndex]);
|
| | | });
|
| | |
|
| | |
| | | $('body').on('click', '#rightMenu .check-battmon', function() {
|
| | | //console.info(trIndex);
|
| | | var batt = attentionlist[trIndex];
|
| | | console.info(batt);
|
| | | window.open("eleMonomer.jsp?battgroupId="+batt.BattGroupId+"&battmon_num="+batt.MonNum+"&stationId="+batt.StationId);
|
| | | //console.info(batt);
|
| | | //window.open("eleMonomer.jsp?battgroupId="+batt.BattGroupId+"&battmon_num="+batt.MonNum+"&stationId="+batt.StationId);
|
| | | window.open(skipUrl('eleMonomer.jsp', batt.StationName1, batt.StationName2, batt.StationName5, batt.StationName))
|
| | | });
|
| | | });
|
| | |
|
| | |
| | | }else {
|
| | | $select.text('').html('<option>暂无可测市</option>');
|
| | | }
|
| | | findStationNamebyStationname1();
|
| | | findCounty();
|
| | | }
|
| | | });
|
| | | }
|
| | | |
| | | // 查询区/县
|
| | | function findCounty() {
|
| | | var tmp = {
|
| | | StationName1:$("#station_name1").val(),
|
| | | StationName2:$("#city").val(),
|
| | | };
|
| | | |
| | | // 查询区县
|
| | | $.ajax({
|
| | | type: 'post',
|
| | | async: true,
|
| | | url: "BattInfAction!serchStationName5",
|
| | | data: "json="+JSON.stringify(tmp),
|
| | | success:function(data) {
|
| | | var rs = JSON.parse(data.result);
|
| | | var $select = $("#county");
|
| | | if(rs.code==1){
|
| | | var _data = rs.data;
|
| | | // 根据数据构造生成下拉列表的数据
|
| | | var optsList = [];
|
| | | for(var i=0;i<_data.length;i++){
|
| | | var __data = _data[i];
|
| | | var _attr = {
|
| | | StationId: __data.StationId
|
| | | };
|
| | | var tmp = getOptionsData(__data.StationName5, __data.StationName5, __data, _attr);
|
| | | optsList.push(tmp);
|
| | | }
|
| | | |
| | | // 根据数据生成下拉列表
|
| | | createOptions($select, optsList, true);
|
| | | }else{
|
| | | $select.text('').html('<option>暂无可测机房站点</option>');
|
| | | }
|
| | | findStationNamebyStationname1();
|
| | | }
|
| | | });
|
| | | }
|
| | |
|
| | | //当维护区的值变换时更新市
|
| | |
| | |
|
| | | //当维护区的值变换时更新机房站点
|
| | | $('#city').change(function(){
|
| | | findCounty();
|
| | | });
|
| | | |
| | | //当区/县的值变换时更新机房站点
|
| | | $('#county').change(function(){
|
| | | findStationNamebyStationname1();
|
| | | });
|
| | |
|
| | |
| | | function findStationNamebyStationname1(){
|
| | | var tmp = {
|
| | | StationName1:$("#station_name1").val(),
|
| | | StationName2:$("#city").val()
|
| | | StationName2:$("#city").val(),
|
| | | StationName5: $("#county").val()
|
| | | };
|
| | | //var selectvalue=$("#station_name1 option:selected").val();
|
| | | //alert(selectvalue);
|
| | |
| | | });
|
| | | }
|
| | |
|
| | | // 切换机房更新电池组
|
| | | $('#station_name').change(function(){
|
| | | findserchByBattGroupNamebystationname();
|
| | | });
|
| | |
| | | var tmp = {
|
| | | StationName1:$("#station_name1").val(),
|
| | | StationName2:$("#city").val(),
|
| | | StationName5:$("#county").val(),
|
| | | StationName: $("#station_name").val(),
|
| | | StationId: stationid
|
| | | };
|
| | |
| | | //当选择蓄电池组时
|
| | | var battgroup_id = $('#battgroup_name').val();
|
| | | var OSingle_number = $('#Single_number');
|
| | | |
| | | if(battgroup_id== ''){
|
| | | var $option = $("<option></option>");
|
| | | $option.html("<s:text name='All'/><s:text name='Select'/>(<s:text name='Common'/>0<s:text name='Section'/>)");
|