From fa00382db413a8489d07983b66f0869305b51a9a Mon Sep 17 00:00:00 2001
From: 81041 <81041@DESKTOP-025NVD9>
Date: 星期五, 11 一月 2019 11:35:54 +0800
Subject: [PATCH] 批量读取系统参数

---
 gx_tieta/WebRoot/js/dischargetest/bts.js |   18 ++++++++++--------
 1 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/gx_tieta/WebRoot/js/dischargetest/bts.js b/gx_tieta/WebRoot/js/dischargetest/bts.js
index a8eb593..719bef8 100644
--- a/gx_tieta/WebRoot/js/dischargetest/bts.js
+++ b/gx_tieta/WebRoot/js/dischargetest/bts.js
@@ -90,7 +90,7 @@
 		pattern: /^[0-9]+(\.[0-9]*)?$/,
 		regVal: true,
 		min: 0,
-		max: 20,
+		max: 60,
 		msg: '鍙栧�艰寖鍥�0~60V'
 	});
 	
@@ -218,8 +218,8 @@
 
 // 璁剧疆鍙傛暟
 function setBTSParam(list, errorStatus) {
-	//setDischageBattinfo(list[0].fsparam.BattGroupNum);				//璁剧疆琚祴鐢垫睜缁勪俊鎭�
-	console.log(list);
+	// setDischageBattinfo(list[0].fsparam.BattGroupNum);				//璁剧疆琚祴鐢垫睜缁勪俊鎭�
+	// console.log(list);
 	if(list[0].fsparam.TestCmd == CMD_BTS_StartDischarge){
 		$('#discharge_type').val(CMD_BTS_StartDischarge);
 	}else if(list[0].fsparam.TestCmd == CMD_BTS_StartRESTest){
@@ -241,13 +241,15 @@
 	
 	// 鍏呯數鐢垫祦
 	$('#ChargeCurrSet').testVal('option', 'allOpts', {
-		regVal: true,
-		min: 0,
-		max: list[0].binf.charge_curr_max,
-		msg: '鍙栧�艰寖鍥�0~'+list[0].binf.charge_curr_max+'A'
+		regVal: true
+		,update: true
+		,min: 0
+		,max: list[0].binf.charge_curr_max
+		,msg: '鍙栧�艰寖鍥�0~'+list[0].binf.charge_curr_max+'A'
 	});
 	
-	$('#ChargeCurrSetLabel').text('鍏呯數鐢垫祦锛�0~'+list[0].binf.charge_curr_max+'A锛�');
+	// 璁剧疆鏂囨湰鍊�
+	$('#ChargeCurrSetLabel .val-range').text('0~'+list[0].binf.charge_curr_max);
 }
 
 // 鏇存柊BTS璁惧娴嬭瘯淇℃伅

--
Gitblit v1.9.1