| | |
| | | margin: 0;
|
| | | padding-top: 0.1em;
|
| | | padding-bottom: 0.1em;
|
| | | background-color: #dddddd4d!important;
|
| | | }
|
| | | .ui-table-reflow td .ui-table-cell-label, .ui-table-reflow th .ui-table-cell-label{
|
| | | width:35%;
|
| | | }
|
| | | .tbl-container td {
|
| | | color: #fb0909a3;
|
| | | }
|
| | | .fr{
|
| | | float:right;
|
| | | }
|
| | | </style>
|
| | | <link rel="stylesheet" href="css/fgpanel.css">
|
| | |
| | | </div>
|
| | | <div data-role="popup" id="myPopup" class="ui-content" data-overlay-theme="b">
|
| | | <a href="#" data-rel="back" class="ui-btn ui-corner-all ui-shadow ui-btn ui-icon-delete ui-btn-icon-notext ui-btn-right">关闭</a>
|
| | | <a href="" id="edit" class="ui-btn ui-corner-all ui-shadow ui-btn-icon-left ui-icon-edit" >修改</a> |
| | | <a href="" id="delete" class="ui-btn ui-corner-all ui-shadow ui-btn-icon-left ui-icon-forbidden" data-icon="delete">删除</a>
|
| | | <a href="" id="delete" class="ui-btn ui-corner-all ui-shadow ui-btn-icon-left ui-icon-check" >确定删除</a> |
| | | <a href="" id="" class="ui-btn ui-corner-all ui-shadow ui-btn-icon-left ui-icon-forbidden" data-icon="delete">取消删除</a>
|
| | | </div>
|
| | |
|
| | | </div>
|
| | |
| | |
|
| | |
|
| | | <script type="text/javascript">
|
| | | /* 获取点击的是哪个按钮 */
|
| | | function getButIndex(t){
|
| | | //console.warn($(t).attr("but-index"));
|
| | | var index = $(t).attr("but-index"); |
| | | setcookiedit(index);
|
| | | return ;
|
| | | }
|
| | | /* 获取点击的是哪个按钮 */
|
| | | function getDeleteButIndex(t){
|
| | | console.warn($(t).attr("but-index")+' 删除');
|
| | | var index = $(t).attr("but-index"); |
| | | console.info(index); |
| | | setcookiedit(index);
|
| | | //var parm = battDeleteparm();
|
| | | //console.info(parm);
|
| | | //delBatt(parm);
|
| | | return ;
|
| | | }
|
| | | function getEditButIndex(t){
|
| | | console.warn($(t).attr("but-index")+' 修改');
|
| | | var index = $(t).attr("but-index"); |
| | | setcookiedit(index);
|
| | | window.location.href="batt-infor-unapproved-edit.html"; |
| | | return ;
|
| | | }
|
| | |
|
| | |
|
| | | var arrTd=new Array(); //当前表格td数据
|
| | |
| | |
|
| | |
|
| | | $("#edit").click(function(){
|
| | | |
| | | |
| | | //searchHomeInfoByName(homename);
|
| | | window.location.href="batt-infor-unapproved-edit.html";
|
| | | });
|
| | |
| | | var parm = battDeleteparm();
|
| | | console.info(parm);
|
| | | delBatt(parm);
|
| | | window.location.href="batt-unapproved.html"; |
| | | //window.location.href="batt-unapproved.html"; |
| | | });
|
| | |
|
| | | var arrTh = [ '机房编号', '省', '城市','区县','机房名称','设备名称','机房IP','FBS设备ID(重要)','FBS设备IP(重要)','子网掩码','网关','FBS设备名称','FBS电池索引(0-3)','电池组ID','机房内电池组编号','电池组名称','浮充电压阀值(V)','离线电压阀值(V)','浮充电流阀值(A)','单体数量','标称容量(AH)','标称单体电压(V)','标称单体内阻(mΩ)','标称单体电导','单体电压次低偏移量(V)','负载电流(A)','最大核容电流(A)','基站号码','电池品牌','电池型号','电池生产日期','投入使用日期','安装人员','操作'];
|
| | | var arrTh = [ '机房编号', '省', '城市','区县','机房名称','设备名称','机房IP','FBS设备ID(重要)','FBS设备IP(重要)','子网掩码','网关','FBS设备名称','FBS电池索引(0-3)','电池组ID','机房内电池组编号','电池组名称','浮充电压阀值(V)','离线电压阀值(V)','浮充电流阀值(A)','单体数量','标称容量(AH)','标称单体电压(V)','标称单体内阻(mΩ)','标称单体电导','单体电压次低偏移量(V)','负载电流(A)','最大核容电流(A)','基站号码','电池品牌','电池型号','电池生产日期','投入使用日期','安装人员',''];
|
| | | dataArr = [];
|
| | | var startTime = "1980-01-01";
|
| | | var endTime = new Date().format('yyyy-MM-dd');
|
| | |
| | | }
|
| | | // 查询内容
|
| | | function searchBattLife(){
|
| | | var temp = JSON.stringify(getcreatArr());
|
| | | var temp = JSON.stringify(getcreatArr());
|
| | | console.info(temp);
|
| | | arrTd = new Array();
|
| | | var index = 0;
|
| | |
| | | arrTd[index++] = data[i].binf.BattProductDate.substr(0,10);
|
| | | arrTd[index++] = data[i].binf.BattInUseDate.substr(0,10);
|
| | | arrTd[index++] = data[i].binf.install_user;
|
| | | arrTd[index++] = '<a onclick="getButIndex(this)" href="#myPopup" id="butt" data-rel="popup" class="ui-btn ui-btn-inline ui-corner-all operat-but" data-position-to="window"'+'but-index='+i+'>修改或删除</a>';continue;
|
| | | }
|
| | | arrTd[index++]='<a onclick="getEditButIndex(this)" id="edit" class="ui-btn ui-btn-inline ui-corner-all operat-but" data-position-to="window"'+'but-index='+i+'>修改</a>'+'<a onclick="getDeleteButIndex(this)" href="#myPopup" id="" data-rel="popup" class="ui-btn ui-btn-inline ui-corner-all operat-but fr" data-position-to="window"'+'but-index='+i+'>删除</a>';
|
| | | }
|
| | | }
|
| | |
|
| | | setPage();
|
| | | createTbl(tblCon, arrTh, arrTd);
|
| | | }
|
| | | }); |
| | | }
|
| | | }); |
| | | } |
| | | /* for(i=0;i<340;i++){
|
| | | if(i%34==33){
|
| | | arrTd[i]='<a onclick="getEditButIndex(this)" id="edit" class="ui-btn ui-btn-inline ui-corner-all operat-but" data-position-to="window"'+'but-index='+i+'>修改</a>'+'<a onclick="getDeleteButIndex(this)" href="#myPopup" id="" data-rel="popup" class="ui-btn ui-btn-inline ui-corner-all operat-but fr" data-position-to="window"'+'but-index='+i+'>删除</a>';
|
| | | |
| | | continue;
|
| | | |
| | | } |
| | | |
| | | arrTd[i]=i*10;
|
| | | }
|
| | | |
| | | createTbl(tblCon, arrTh, arrTd);
|
| | | }*/
|
| | |
|
| | | function searchHomeInfoByName(id) {
|
| | | var groupName = new Array();
|
| | |
| | | }
|
| | | arrcookie.push($("#newbattnum").val());
|
| | | var id = arrcookie[0];
|
| | | console.info(id);
|
| | | //console.info(id);
|
| | | searchHomeInfoByName(id);
|
| | | var json=window.JSON.stringify(arrcookie);
|
| | | setCookie("eleparm",json); //这里setcookie,若有上一条cookie则清空上一笔
|
| | |
| | | data:"json="+JSON.stringify(parm),
|
| | | success: function(data){
|
| | | console.info(data);
|
| | | alert("删除成功");
|
| | | data = JSON.parse(data.result);
|
| | | if(data.code==1){
|
| | | alert("删除成功");
|
| | | window.location.href="batt-unapproved.html"; |
| | | }else{
|
| | | alert("删除失败");
|
| | | window.location.href="batt-unapproved.html"; |
| | | }
|
| | | }
|
| | | });
|
| | | |
| | | }
|
| | | function battDeleteparm(){
|
| | | var arr = new Array();
|
| | |
| | | temp=JSON.parse(temp);
|
| | | tempindex = JSON.parse(tempindex);
|
| | | tempnum =JSON.parse(tempnum);
|
| | | console.info(temp);
|
| | | for(var i=0;i<tempindex.length;i++){
|
| | | //console.info(temp);
|
| | | //var numinsert;
|
| | | console.info(temp[12]);
|
| | | //for(var i=0;i<tempindex.length;i++){
|
| | | //console.info(battString);
|
| | | var obj = {
|
| | | //apply_date : new Date().format("yyyy-MM-dd hh:mm:ss"),
|
| | | num : tempnum[i],
|
| | | num : tempnum[temp[12]],
|
| | | binf:{
|
| | | StationId : temp[0], // 机房编号
|
| | | StationName : (temp[1]+"-"+temp[2]+"-"+temp[4]+"-"+temp[5]), // 拼接机房名称
|
| | |
| | | FbsDeviceIp_YM : temp[9], // 设备掩码
|
| | | FbsDeviceIp_WG : temp[10], // 网关
|
| | | FBSDeviceName : temp[11], //设备名称
|
| | | GroupIndexInFBSDevice : i, //fbs设备索引
|
| | | GroupIndexInFBSDevice : temp[12], //fbs设备索引
|
| | | BattGroupId : temp[13], //电池组id
|
| | | BattGroupNum : temp[14], //机房内电池组编号
|
| | | BattGroupName : tempindex[i], //电池组索引
|
| | | BattGroupName : temp[15], //电池组索引
|
| | | FloatVolLevel : temp[16], //浮充电压阀值
|
| | | OfflineVolLevel : temp[17], //离线电压阀值
|
| | | BattFloatCurrent : temp[18], //浮充电流阀值
|
| | |
| | | }
|
| | | }
|
| | | arr.push(obj);
|
| | | }
|
| | | console.info(arr);
|
| | | //}
|
| | | //console.info(arr);
|
| | | return arr;
|
| | |
|
| | | }
|