From 4697c0980fa5a91ff85f6e8d64e941d49e4e0cd7 Mon Sep 17 00:00:00 2001 From: hdw <hdw@192.168.7.127> Date: 星期一, 14 一月 2019 15:17:45 +0800 Subject: [PATCH] 批量电池参数设置和批量系统参数设置添加统计选中电池个数/总添加机房个数 --- gx_tieta/WebRoot/pages/js/mylayui.js | 31 +++++++++++++++++++++++++++++++ 1 files changed, 31 insertions(+), 0 deletions(-) diff --git a/gx_tieta/WebRoot/pages/js/mylayui.js b/gx_tieta/WebRoot/pages/js/mylayui.js index 63b4f22..86ac70f 100644 --- a/gx_tieta/WebRoot/pages/js/mylayui.js +++ b/gx_tieta/WebRoot/pages/js/mylayui.js @@ -607,3 +607,34 @@ return isGood; } }; + +// 缁熻鏁版嵁閫変腑涓暟/鎬讳釜鏁� +var QuantNumber = function(ele) { + this.ele = ele; + this.mol = 0; + this.den = 0; + this._init(); +} +// 璁剧疆鍘熷瀷鏂规硶 +QuantNumber.prototype = { + _init: function() { + this._setEleTxt(); + } + ,set: function(mol, den) { + this.mol = mol; + this.den = den; + this._setEleTxt(); + } + ,setMol: function(val) { + this.mol = val; + this._setEleTxt(); + } + ,setDen: function(val) { + this.den = val; + this._setEleTxt(); + } + ,_setEleTxt: function() { + var str = this.mol+'/'+this.den; + this.ele.text(str) + } +}; \ No newline at end of file -- Gitblit v1.9.1