From 2fe250ece8de95b3f70172fe5b45793ab6a3084a Mon Sep 17 00:00:00 2001 From: D:/workspace/chenjingjing/git/gx_tieta/gx_tieta/.gitignore <chenjingjing@LAPTOP-E51P2139> Date: 星期五, 18 一月 2019 17:30:50 +0800 Subject: [PATCH] 未审批可更改 --- gx_tieta/WebRoot/mobil/equipwarn.html | 26 +++++++++++++++++++++++--- 1 files changed, 23 insertions(+), 3 deletions(-) diff --git a/gx_tieta/WebRoot/mobil/equipwarn.html b/gx_tieta/WebRoot/mobil/equipwarn.html index 79b2137..4f8a2de 100644 --- a/gx_tieta/WebRoot/mobil/equipwarn.html +++ b/gx_tieta/WebRoot/mobil/equipwarn.html @@ -47,7 +47,8 @@ <option value="119026">鍩虹珯鎺夌珯鍛婅</option> <option value="119027">鍩虹珯寮�闂ㄥ憡璀�</option> <option value ="119028">璁惧楂樻俯鍛婅</option> - + <option value ="119032">璁惧SD鍗℃晠闅�</option> + <option value ="119033">閲囬泦绾垮憡璀�</option> </select> </div> <div class="fg-panel-btn"> @@ -183,7 +184,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 +279,26 @@ 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 "璁惧楂樻俯鍛婅"; + case 119032:return "璁惧SD鍗℃晠闅�"; + case 119033:return "閲囬泦绾垮憡璀�"; + } + } + return "閫氫俊鏁呴殰"; + } -- Gitblit v1.9.1