From 3eea4e6edb201c9804aa9c93b1d8e7fc87493385 Mon Sep 17 00:00:00 2001 From: hdw <hdw@192.168.1.9> Date: 星期五, 21 十二月 2018 09:23:55 +0800 Subject: [PATCH] Merge branch 'dev_lxw' of https://whychdw@gitlab.com/whyclxw1/gx_tieta.git into dev_lxw --- gx_tieta/WebRoot/mobil/ele-param2.html | 2 +- gx_tieta/WebRoot/mobil/equipwarn.html | 21 +++++++++++++++++++-- gx_tieta/WebRoot/mobil/equiphistwarn.html | 23 +++++++++++++++++++++-- 3 files changed, 41 insertions(+), 5 deletions(-) diff --git a/gx_tieta/WebRoot/mobil/ele-param2.html b/gx_tieta/WebRoot/mobil/ele-param2.html index 70fe2da..ce378e0 100644 --- a/gx_tieta/WebRoot/mobil/ele-param2.html +++ b/gx_tieta/WebRoot/mobil/ele-param2.html @@ -127,7 +127,7 @@ <div data-role="footer" data-position="fixed" data-theme="a"> <div data-role="navbar"> <ul> - <li><a href="index.html" id="cancel" class="ui-btn ui-btn-inline ui-corner-all ui-btn-icon-delete" data-position-to="window" data-icon="delete" data-role="button">棣栭〉</a></li> + <li><a href="index.html" id="cancel" class="ui-btn ui-btn-inline ui-corner-all ui-btn-icon-delete" data-position-to="window" data-icon="home" data-role="button">棣栭〉</a></li> <li><a href="#yourPopup" data-rel="popup" class="ui-btn ui-btn-inline ui-corner-all ui-btn-icon-check" data-position-to="window" data-icon="check" data-role="button">鏂板缓</a></li> </ul> </div> diff --git a/gx_tieta/WebRoot/mobil/equiphistwarn.html b/gx_tieta/WebRoot/mobil/equiphistwarn.html index bd81cf1..b911856 100644 --- a/gx_tieta/WebRoot/mobil/equiphistwarn.html +++ b/gx_tieta/WebRoot/mobil/equiphistwarn.html @@ -152,7 +152,7 @@ $.post("Batt_devalarm_data_historyAction!serchByCondition","json="+json,function(data){ data=data.result; model=eval("("+data+")"); - //console.info(data); + console.info(data); if(model.code==1){ var dev_no = (Page.pageCurr-1)*Page.pageSize+1; for(var i=0;i<model.data.length;i++){ @@ -161,7 +161,7 @@ newArrTd.push(model.data[i].dev_name); //璁惧鍚嶇О newArrTd.push(model.data[i].dev_ip); //璁惧ip newArrTd.push(model.data[i].stationName); //鏈烘埧鍚嶇О - newArrTd.push("閫氳鏁呴殰"); //閫氳鏁呴殰 + newArrTd.push(getAlarmTypeByAlmType(model.data[i].alm_type)); //閫氳鏁呴殰 newArrTd.push(getAlarmLevel(model.data[i].alm_level)); //鍛婅绛夌骇 if(model.data[i].alm_is_confirmed == 1){ newArrTd.push('鏄�'); @@ -413,6 +413,25 @@ } return ""; } + + //鑾峰彇璁惧鐨勫憡璀︾被鍨� + function getAlarmTypeByAlmType(alm_type){ + if(alm_type>0){ + switch(alm_type){ + case 618501:return "缁х數鍣↘1鍛婅"; + case 618502:return "閫氳鍛婅"; + case 618503:return "璁惧杩囨俯鍛婅"; + case 618504:return "浜屾瀬绠1鍛婅"; + case 119023:return "缁埅涓嶈冻鍛婅"; + case 119024:return "鍩虹珯鍋滅數鍛婅"; + case 119025:return "鍩虹珯鍙戠數鍛婅"; + case 119026:return "鍩虹珯鎺夌珯鍛婅"; + case 119027:return "鍩虹珯寮�闂ㄥ憡璀�"; + case 119028:return "璁惧楂樻俯鍛婅"; + } + } + return "閫氫俊鏁呴殰"; + } </script> </div> </body> diff --git a/gx_tieta/WebRoot/mobil/equipwarn.html b/gx_tieta/WebRoot/mobil/equipwarn.html index 79b2137..f47b736 100644 --- a/gx_tieta/WebRoot/mobil/equipwarn.html +++ b/gx_tieta/WebRoot/mobil/equipwarn.html @@ -183,7 +183,7 @@ arr[index++]=data[i].dev_ip ; //璁惧IP arr[index++]=data[i].stationName; //鏈烘埧鍚� - arr[index++]=data[i].alm_type; //鍛婅浜嬩欢 + arr[index++]=getAlarmTypeByAlmType(data[i].alm_type); //鍛婅浜嬩欢 arr[index++]=getAlarmLevel(data[i].alm_level); //鍛婅绛夌骇 arr[index++]=data[i].alm_is_confirmed==0?"鍚�":"鏄�"; //鍛婅纭 if(data[i].alm_is_confirmed==1){ @@ -278,7 +278,24 @@ return ""; }; - + //鑾峰彇璁惧鐨勫憡璀︾被鍨� + function getAlarmTypeByAlmType(alm_type){ + if(alm_type>0){ + switch(alm_type){ + case 618501:return "缁х數鍣↘1鍛婅"; + case 618502:return "閫氳鍛婅"; + case 618503:return "璁惧杩囨俯鍛婅"; + case 618504:return "浜屾瀬绠1鍛婅"; + case 119023:return "缁埅涓嶈冻鍛婅"; + case 119024:return "鍩虹珯鍋滅數鍛婅"; + case 119025:return "鍩虹珯鍙戠數鍛婅"; + case 119026:return "鍩虹珯鎺夌珯鍛婅"; + case 119027:return "鍩虹珯寮�闂ㄥ憡璀�"; + case 119028:return "璁惧楂樻俯鍛婅"; + } + } + return "閫氫俊鏁呴殰"; + } -- Gitblit v1.9.1