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/groupmanage.jsp | 47 +++++++++++++++++++++++++++++++++++++++-------- 1 files changed, 39 insertions(+), 8 deletions(-) diff --git a/gx_tieta/WebRoot/groupmanage.jsp b/gx_tieta/WebRoot/groupmanage.jsp index 5585093..c75e269 100644 --- a/gx_tieta/WebRoot/groupmanage.jsp +++ b/gx_tieta/WebRoot/groupmanage.jsp @@ -95,6 +95,14 @@ </div> <div class="popup-list clearfix"> <div class="fl w50precent"> + <span>鍦板浘鍋滅數鍥炬爣:</span><img src="images/whyc/home_powercut.gif" class="img-powercut"><span>(寤鸿30*30)</span><span class="red">*</span> + </div> + <div class="fl w50precent"> + <span>鍦板浘鏈畨瑁呭浘鏍�:</span><img src="images/whyc/home_installed.gif" class="img-installed"><span>(寤鸿30*30)</span><span class="red">*</span> + </div> + </div> + <div class="popup-list clearfix"> + <div class="fl w50precent"> <span>鏍稿/鍋滅數/鏀剧數鍥炬爣:</span><img src="images/none.jpg" class="img-nuclear"><span>(寤鸿30*30)</span><span class="red">*</span> </div> <div class="fl w50precent"> @@ -124,6 +132,8 @@ <input type="file" kk="behind" name="up_file" id="file_behind" accept="image/gif" onchange="xmTanUploadImg(this, $('.popup .img-behind'), 'behind')"/> <!-- 鍦板浘钀藉悗鍥炬爣 --> <input type="file" kk="warn" name="up_file" id="file_warn" accept="image/gif" onchange="xmTanUploadImg(this, $('.popup .img-warn'), 'warn')"/> <!-- 鍦板浘鍛婅鍥炬爣 --> <input type="file" kk="timeout" name="up_file" id="file_timeout" accept="image/gif" onchange="xmTanUploadImg(this, $('.popup .img-timeout'), 'timeout')"/> <!-- 鍦板浘寤舵椂鍥炬爣 --> + <input type="file" kk="poff" name="up_file" id="file_powercut" accept="image/gif" onchange="xmTanUploadImg(this, $('.popup .img-powercut'), 'powercut')"/> <!-- 鍦板浘鍋滅數鍥炬爣 --> + <input type="file" kk="install" name="up_file" id="file_installed" accept="image/gif" onchange="xmTanUploadImg(this, $('.popup .img-installed'), 'installed')"/> <!-- 鍦板浘鏈畨瑁呭浘鏍� --> <!-- 61850璁惧 --> <input type="file" kk="nuclear" name="up_file" id="file_nuclear" accept="image/gif" onchange="xmTanUploadImg(this, $('.popup .img-nuclear'), 'nuclear')"/> <!-- 61850鏍稿娴嬭瘯 --> <input type="file" kk="devalarm" name="up_file" id="file_devalarm" accept="image/gif" onchange="xmTanUploadImg(this, $('.popup .img-devalarm'), 'devalarm')"/> <!-- 61850鍛婅娴嬭瘯 --> @@ -137,6 +147,8 @@ <input type="file" kk="behind" name="add_file" id="file_add_behind" accept="image/gif" onchange="addUploadImg(this, $('.popup .img-behind'))"/> <!-- 鍦板浘钀藉悗鍥炬爣 --> <input type="file" kk="warn" name="add_file" id="file_add_warn" accept="image/gif" onchange="addUploadImg(this, $('.popup .img-warn'))"/> <!-- 鍦板浘鍛婅鍥炬爣 --> <input type="file" kk="timeout" name="add_file" id="file_add_timeout" accept="image/gif" onchange="addUploadImg(this, $('.popup .img-timeout'))"/> <!-- 鍦板浘寤舵椂鍥炬爣 --> + <input type="file" kk="poff" name="add_file" id="file_add_powercut" accept="image/gif" onchange="addUploadImg(this, $('.popup .img-powercut'))"/> <!-- 鍦板浘鍋滅數鍥炬爣 --> + <input type="file" kk="install" name="add_file" id="file_add_installed" accept="image/gif" onchange="addUploadImg(this, $('.popup .img-installed'))"/> <!-- 鍦板浘鏈畨瑁呭浘鏍� --> <!-- 61850璁惧 --> <input type="file" kk="nuclear" name="add_file" id="file_add_nuclear" accept="image/gif" onchange="addUploadImg(this, $('.popup .img-nuclear'))"/> <!-- 61850鏍稿娴嬭瘯 --> <input type="file" kk="devalarm" name="add_file" id="file_add_devalarm" accept="image/gif" onchange="addUploadImg(this, $('.popup .img-devalarm'))"/> <!-- 61850鍛婅娴嬭瘯 --> @@ -156,7 +168,7 @@ var arrTd = new Array(); // 琛ㄦ牸鍐呭 var groupInfo = new Array(); // 鐝粍淇℃伅 - arrTh = ['宸ヤ綔鐝粍', '鐝粍logo', '鍦板浘姝e父鍥炬爣', '鍦板浘钀藉悗鍥炬爣', '鍦板浘鍛婅鍥炬爣', '鍦板浘寤舵椂鍥炬爣','鏍稿娴嬭瘯鍥炬爣','61850鍛婅鍥炬爣','棰勫厖鐢靛浘鏍�','鍦ㄧ嚎娴厖鍥炬爣','', '']; + arrTh = ['宸ヤ綔鐝粍', '鐝粍logo', '鍦板浘姝e父鍥炬爣', '鍦板浘钀藉悗鍥炬爣', '鍦板浘鍛婅鍥炬爣', '鍦板浘寤舵椂鍥炬爣','鍦板浘鍋滅數鍥炬爣', '鍦板浘鏈畨瑁呭浘鏍�','鏍稿娴嬭瘯鍥炬爣','61850鍛婅鍥炬爣','棰勫厖鐢靛浘鏍�','鍦ㄧ嚎娴厖鍥炬爣','', '']; arrTd = [ '姝︽眽婧愮晠', '<img src="images/whyc/logo.png" class="logo">', @@ -258,6 +270,24 @@ $('#file_timeout').click(); }else { $('#file_add_timeout').click(); + } + }); + + // 鐐瑰嚮寮瑰嚭妗嗗仠鐢� + $('.popup .img-powercut').click(function() { + if(checkEnsureBtn()) { + $('#file_powercut').click(); + }else { + $('#file_add_powercut').click(); + } + }); + + // 鐐瑰嚮寮瑰嚭妗嗘湭瀹夎 + $('.popup .img-installed').click(function() { + if(checkEnsureBtn()) { + $('#file_installed').click(); + }else { + $('#file_add_installed').click(); } }); @@ -406,7 +436,7 @@ formData.append("file",$(this).get(0).files[0]); formData.append("filetype",$(this).attr('kk')); }); - + console.log(formData); loading.showLoading(); // 鏄剧ず绛夊緟妗� $.ajax({ type: "post", @@ -510,12 +540,13 @@ for(var i=0;i<model.data.length;i++){ var root = model.data[i].Chart_file; arrTd.push(model.data[i].Chart_name); //宸ヤ綔鐝粍 - arrTd.push('<img src="User_ChartAction!serchByInfo?json={Chart_file:'+root+',Chart_name:chart_logo}" class="logo">'); //鏈烘埧鍚嶇О - arrTd.push('<img src="User_ChartAction!serchByInfo?json={Chart_file:'+root+',Chart_name:chart_normal}" class="map-img normal">'); //鐢垫睜缁勫悕绉� - arrTd.push('<img src="User_ChartAction!serchByInfo?json={Chart_file:'+root+',Chart_name:chart_behind}" class="map-img behind">'); //鍗曚綋缂栧彿 - arrTd.push('<img src="User_ChartAction!serchByInfo?json={Chart_file:'+root+',Chart_name:chart_warn}" class="map-img warn">'); //鍗曚綋瀹炴椂鐢靛帇 - arrTd.push('<img src="User_ChartAction!serchByInfo?json={Chart_file:'+root+',Chart_name:chart_timeout}" class="map-img timeout">'); //鍗曚綋瀹為檯瀹归噺 - + arrTd.push('<img src="User_ChartAction!serchByInfo?json={Chart_file:'+root+',Chart_name:chart_logo}" class="logo">'); // + arrTd.push('<img src="User_ChartAction!serchByInfo?json={Chart_file:'+root+',Chart_name:chart_normal}" class="map-img normal">'); // + arrTd.push('<img src="User_ChartAction!serchByInfo?json={Chart_file:'+root+',Chart_name:chart_behind}" class="map-img behind">'); // + arrTd.push('<img src="User_ChartAction!serchByInfo?json={Chart_file:'+root+',Chart_name:chart_warn}" class="map-img warn">'); // + arrTd.push('<img src="User_ChartAction!serchByInfo?json={Chart_file:'+root+',Chart_name:chart_timeout}" class="map-img timeout">'); // + arrTd.push('<img src="User_ChartAction!serchByInfo?json={Chart_file:'+root+',Chart_name:chart_poff}" class="map-img powercut">'); + arrTd.push('<img src="User_ChartAction!serchByInfo?json={Chart_file:'+root+',Chart_name:chart_install}" class="map-img installed">'); // 61850璁惧鐘舵�� arrTd.push('<img src="User_ChartAction!serchByInfo?json={Chart_file:'+root+',Chart_name:chart_nuclear_cap}" class="map-img nuclear">'); arrTd.push('<img src="User_ChartAction!serchByInfo?json={Chart_file:'+root+',Chart_name:chart_dev_alarm}" class="map-img devalarm">'); -- Gitblit v1.9.1