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/whyc-jqueryui.js |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/gx_tieta/WebRoot/js/whyc-jqueryui.js b/gx_tieta/WebRoot/js/whyc-jqueryui.js
index 4c655cf..10db128 100644
--- a/gx_tieta/WebRoot/js/whyc-jqueryui.js
+++ b/gx_tieta/WebRoot/js/whyc-jqueryui.js
@@ -484,6 +484,7 @@
 	var TestVal = function(ele, options) {
 		this.ele = ele;
 		this.opts = options;
+		this.ele.data('testVal', options);
 	};
 	var _proto = TestVal.prototype;
 	
@@ -587,7 +588,12 @@
 		if(isString(options)) {
 			var oldOpts = this.data('testVal');
 			opts = $.extend({}, opts, oldOpts);
-			opts[attr] = val;
+			if(attr == 'allOpts') {
+				opts = $.extend({}, opts, val);
+			}else {
+				opts[attr] = val;
+			}
+			
 		}else if(isObject(options)){
 			opts = $.extend(true, {}, defaults, options||{});
 		}
@@ -596,7 +602,7 @@
 			opts.event = "error";
 			opts.msg = '璇疯緭鍏ユ纭殑姝e垯琛ㄨ揪寮忔牸寮忥紒锛侊紒'
 		}
-		
+		//console.log(opts);
 		var testVal = new TestVal(this, opts);
 		this.data('testVal', testVal.opts);
 		

--
Gitblit v1.9.1