From 10158179b0044b3979c22c0b4eb3f903630f4a62 Mon Sep 17 00:00:00 2001 From: hdw <hdw@192.168.7.127> Date: 星期二, 15 一月 2019 11:29:06 +0800 Subject: [PATCH] 修改电池信息配置的编辑和添加的电池品牌列表查询已有的 --- gx_tieta/WebRoot/pages/js/mylayui.js | 36 +++++++++++++++++++++++++++++++++++- 1 files changed, 35 insertions(+), 1 deletions(-) diff --git a/gx_tieta/WebRoot/pages/js/mylayui.js b/gx_tieta/WebRoot/pages/js/mylayui.js index 86ac70f..f78d1de 100644 --- a/gx_tieta/WebRoot/pages/js/mylayui.js +++ b/gx_tieta/WebRoot/pages/js/mylayui.js @@ -637,4 +637,38 @@ var str = this.mol+'/'+this.den; this.ele.text(str) } -}; \ No newline at end of file +}; + + +//鑾峰彇鐢垫睜鍝佺墝鍒楄〃 +function getBattProducers() { + let producers = []; + // 璇锋眰鍚庡彴鏌ヨ鐢垫睜鍝佺墝 + $.ajax({ + type: 'post' + ,async: false + ,url: 'BattInfAction!serchByBattProducer' + ,data: null + ,dataType: 'json' + ,success: function(res) { + let rs = JSON.parse(res.result); + // 鍒ゆ柇鏌ヨ缁撴灉 + if(rs.code == 1) { + let data = rs.data; + // 閬嶅巻鏌ヨ缁撴灉 + for(let i=0; i<data.length; i++) { + let _data = data[i]; + if(_data.BattProducer) { // 澶勭悊涓虹┖鐨勫搧鐗� + producers.push(_data.BattProducer); + } + } + producers.push('鍏朵粬'); + } + } + ,complete: function() { + + } + }); + + return producers; +} \ No newline at end of file -- Gitblit v1.9.1