From 59e496342e8352715ffd9e1ac954cfe8f43dee10 Mon Sep 17 00:00:00 2001 From: hdw <496960745@qq.com> Date: 星期四, 01 十一月 2018 17:48:16 +0800 Subject: [PATCH] 添加停电和未安装图标 --- gx_tieta/WebRoot/js/groupmanage.js | 28 ++++++++++++++++++++++++++++ 1 files changed, 28 insertions(+), 0 deletions(-) diff --git a/gx_tieta/WebRoot/js/groupmanage.js b/gx_tieta/WebRoot/js/groupmanage.js index 7132de4..e988ecd 100644 --- a/gx_tieta/WebRoot/js/groupmanage.js +++ b/gx_tieta/WebRoot/js/groupmanage.js @@ -15,6 +15,8 @@ rs.behind = "User_ChartAction!serchByInfo?json={Chart_file:'"+cfile+"',Chart_name:chart_behind}"; // 钀藉悗鍥炬爣 rs.timeout = "User_ChartAction!serchByInfo?json={Chart_file:'"+cfile+"',Chart_name:chart_timeout}"; // 寤舵椂鏈烘埧鍥炬爣 rs.warn = "User_ChartAction!serchByInfo?json={Chart_file:'"+cfile+"',Chart_name:chart_warn}"; // 鍛婅鏈烘埧鍥炬爣 + rs.powercut = "User_ChartAction!serchByInfo?json={Chart_file:'"+cfile+"',Chart_name:chart_poff}"; // 鍋滅數鏈烘埧鍥炬爣 + rs.installed = "User_ChartAction!serchByInfo?json={Chart_file:'"+cfile+"',Chart_name:chart_install}"; // 鏈畨瑁呭浘鏍� // 61850璁惧鐘舵�� rs.nuclear = "User_ChartAction!serchByInfo?json={Chart_file:'"+cfile+"',Chart_name:chart_nuclear_cap}"; rs.devalarm = "User_ChartAction!serchByInfo?json={Chart_file:'"+cfile+"',Chart_name:chart_dev_alarm}"; @@ -39,6 +41,8 @@ $('.popup .img-behind').attr('src', imgList.behind); $('.popup .img-warn').attr('src', imgList.warn); $('.popup .img-timeout').attr('src', imgList.timeout); + $('.popup .img-powercut').attr('src', imgList.powercut); + $('.popup .img-installed').attr('src', imgList.installed); // 61850璁惧鐘舵�� $('.popup .img-nuclear').attr('src', imgList.nuclear); @@ -65,6 +69,9 @@ $('.popup .img-behind').attr('src', 'images/none.jpg'); $('.popup .img-warn').attr('src', 'images/none.jpg'); $('.popup .img-timeout').attr('src', 'images/none.jpg'); + $('.popup .img-powercut').attr('src', 'images/none.jpg'); + $('.popup .img-installed').attr('src', 'images/none.jpg'); + // 61850璁惧鐘舵�佸浘鏍� $('.popup .img-nuclear').attr('src', 'images/none.jpg'); $('.popup .img-devalarm').attr('src', 'images/none.jpg'); @@ -137,6 +144,7 @@ var _behind = $('#file_add_behind').val().length; var _warn = $('#file_add_warn').val().length; var _timeout = $('#file_add_timeout').val().length; + // 61850璁惧 if(_chart_file&&_chart_name&&_logo&&_normal&&_behind&&_warn&&_timeout) { $('.popup .ensure-btn').addClass('add-btn').removeClass('disabled'); @@ -155,6 +163,8 @@ var behind = $('.popup .img-behind').attr('src'); var warn = $('.popup .img-warn').attr('src'); var timeout = $('.popup .img-timeout').attr('src'); + var powercut = $('.popup .img-powercut').attr('src'); + var installed = $('.popup .img-installed').attr('src'); // 61850璁惧 var nuclear = $('.popup .img-nuclear').attr('src'); @@ -188,6 +198,18 @@ // 鍦板浘寤舵椂鍥炬爣 if(pregImgSrc(timeout)) { rs.timeout = timeout; + rs.count ++; + } + + // 鍦板浘鍋滅數鍥炬爣 + if(pregImgSrc(powercut)) { + rs.powercut = powercut; + rs.count ++; + } + + // 鍦板浘鏈畨瑁呭浘鏍� + if(pregImgSrc(installed)) { + rs.installed = installed; rs.count ++; } @@ -253,6 +275,12 @@ case 'warn': rs = "User_ChartAction!serchByInfo?json={Chart_file:'"+cfile+"',Chart_name:chart_warn}"; break; + case 'powercut': + rs = "User_ChartAction!serchByInfo?json={Chart_file:'"+cfile+"',Chart_name:chart_poff}"; + break; + case 'installed': + rs = "User_ChartAction!serchByInfo?json={Chart_file:'"+cfile+"',Chart_name:chart_install}"; + break; // 61850璁惧鐘舵�� case 'nuclear': rs = "User_ChartAction!serchByInfo?json={Chart_file:'"+cfile+"',Chart_name:chart_nuclear_cap}"; -- Gitblit v1.9.1