From a4cda2f0b22b9ff5236c5c64f168950460a951ca Mon Sep 17 00:00:00 2001
From: CJJ <Administrator@USER-20180117QL>
Date: 星期一, 24 十二月 2018 17:38:19 +0800
Subject: [PATCH] 修改
---
gx_tieta/WebRoot/mobil/batt-approved.html | 37 ++++++++++++++++++++++++++++---------
1 files changed, 28 insertions(+), 9 deletions(-)
diff --git a/gx_tieta/WebRoot/mobil/batt-approved.html b/gx_tieta/WebRoot/mobil/batt-approved.html
index c99c308..2616b63 100644
--- a/gx_tieta/WebRoot/mobil/batt-approved.html
+++ b/gx_tieta/WebRoot/mobil/batt-approved.html
@@ -152,11 +152,18 @@
function getApplyYanshouIndex(t){
var index = $(t).attr("but-index");
console.info(index);
- setApplyYanshou(index);
-
+ var arr=setApplyYanshou(index);
+ //鏂规硶涓�锛�1鎸夐挳鎼炲畾鎵�鏈夈�傝鍦ㄦ瀵规帴鍔犲叆寮瑰嚭妗嗭紝涓婁紶瑙嗛缁忕含搴︾瓑
+
+ applyendyanshou(arr);
return ;
}
-
+ function getApplyYanshoupicture(t){
+ var index = $(t).attr("but-index");
+ console.info(index);//鏂规硶2
+ var arr=setApplyYanshou(index);
+ //璇峰湪姝ゅ鎺ュ姞鍏ュ脊鍑烘
+ }
var arrTd = new Array(); //褰撳墠琛ㄦ牸td鏁版嵁
var tblCon = $('.tbl-container');
var Page = {
@@ -226,8 +233,10 @@
function yanshou(check_en){
if(check_en==0){
return "鏈獙鏀�";
- }else{
- return "宸查獙鏀�";
+ }else if(check_en==2){
+ return "宸茬敵璇烽獙鏀�";
+ }else if(check==1){
+ return"宸插畬鎴愰獙鏀�";s
}
}
// 鏌ヨ鍐呭
@@ -290,6 +299,8 @@
arrTd[index++] = yanshou(data[i].check_en);
arrTd[index++]='<a onclick="getButIndex(this)" class="ui-btn ui-btn-inline ui-corner-all operat-but" data-position-to="window"'+'but-index='+i+'>鐢垫睜缁勫疄鏃舵暟鎹�</a>'+
'<a onclick="getApplyYanshouIndex(this)" href="#myPopup" id="apply_yanshou" data-rel="popup" class="ui-btn ui-btn-inline ui-corner-all operat-but fr" data-position-to="window"'+'but-index='+i+'>鐢宠楠屾敹</a>';
+ //鏂规硶2 2鎸夐挳瑙e紑浠ヤ笅涓�鏉℃敞閲婃寜閽�
+ //'<a onclick="getApplyYanshoupicture(this)" href="#myPopup" id="apply_yanshou" data-rel="popup" class="ui-btn ui-btn-inline ui-corner-all operat-but fr" data-position-to="window"'+'but-index='+i+'>缁忕含搴﹀浘鐗囦笂浼�</a>'
}
}
console.info(arrTd);
@@ -307,9 +318,9 @@
function setApplyYanshou(index){
console.info(arrdata);
- if(arrdata.length>0){ //瀛樺叆鐨勪负鎵�鏈夊凡鏌ュ嚭鏁版嵁
- //璇峰湪姝ゅ鎺ュ姞鍏ュ璇濇锛屾渶鍚庤皟鐢ㄧ敵璇烽獙鏀舵柟娉曪紝浼犲叆arrdata,index鍙傛暟
- creatYanshouObj(arrdata,index);//鐢宠楠屾敹鏂规硶銆�
+ if(arrdata.length>0){ //瀛樺叆鐨勪负鎵�鏈夊凡鏌ュ嚭鏁版嵁
+ var arr= creatYanshouObj(arrdata,index);//鐢宠楠屾敹鏂规硶銆�
+ return arr;
}else{
alert("璇风瓑寰呭嚑绉掑悗鍐嶆彁浜ょ敵璇�");
}
@@ -365,7 +376,14 @@
}
}
console.info(arr);
- var temp = JSON.stringify(arr);
+
+
+ return arr;
+ //applyendyanshou(arr);//鐢宠楠屾敹鏂规硶銆�
+ }
+
+ function applyendyanshou(arr){
+ var temp = JSON.stringify(arr);
$.ajax({ //鐢宠楠屾敹
type: 'post',
async: true,
@@ -380,6 +398,7 @@
}
}
});
+
}
function setcookiedit(index){
var arrcookie = new Array();
--
Gitblit v1.9.1