From aba762cb787e3a85287c7a8220839f89cb17aaf5 Mon Sep 17 00:00:00 2001
From: CJJ <Administrator@192.168.10.26>
Date: 星期三, 21 十一月 2018 16:44:49 +0800
Subject: [PATCH] 手机 电池历史告警
---
gx_tieta/WebRoot/pages/js/pages/homeInfo.js | 34 +++++++++++++++++++++++++++++++---
1 files changed, 31 insertions(+), 3 deletions(-)
diff --git a/gx_tieta/WebRoot/pages/js/pages/homeInfo.js b/gx_tieta/WebRoot/pages/js/pages/homeInfo.js
index d6ab551..80450e9 100644
--- a/gx_tieta/WebRoot/pages/js/pages/homeInfo.js
+++ b/gx_tieta/WebRoot/pages/js/pages/homeInfo.js
@@ -23,9 +23,13 @@
type: 2,
title: '<i class="fa fa-home"></i>鍩虹珯淇℃伅',
area: ['960px', '524px'],
- fixed: false, //涓嶅浐瀹�
+ btn:['閲嶇疆闈㈡澘'],
+ fixed: true, //涓嶅浐瀹�
maxmin: true,
- content: 'iframe/homeinfo.html'
+ content: 'iframe/homeinfo.html',
+ yes:function(index) {
+ layer.iframeSrc(index, 'iframe/homeinfo.html');
+ }
});
}else {
layer.msg('鏆傛棤鍩虹珯淇℃伅锛�');
@@ -37,6 +41,7 @@
// 鏍煎紡鍖栨満鎴夸俊鎭暟鎹�
function formatHomeInfo(data) {
+ //console.log(data);
var groupDefaults = {
homeid: '',
homename: '',
@@ -51,7 +56,8 @@
chargecurr: '',
chargevol: '',
equipeinfo: '',
- person: ''
+ person: '',
+ install_user: ''
};
var homeDefaults = {
@@ -96,10 +102,12 @@
+'锛汭P锛�'+_data.FbsDeviceIp+'锛汢Index锛�'+_data.GroupIndexInFBSDevice;
content.equipeinfo = equipeinfo;
content.person = '';
+ content.install_user = _data.install_user;
tabc.push(tmp);
}
var StationId_ex = data[0].StationId_ex;
+ var install_user = data[0].install_user;
var homeData = data[0].binf_ex;
var tmp = {};
tmp.title = '鍩虹珯淇℃伅';
@@ -158,6 +166,7 @@
content.distance = homeData.upperStationRoute;
content.degree = homeData.upperStationDifficult;
content.repair = homeData.clienteleErrorService;
+ content.install_user = install_user;
// 鏄惁娣诲姞鍩虹珯淇℃伅
if(content.stationid != '0') {
@@ -168,14 +177,33 @@
var tmp = {};
tmp.type = 'env';
tmp.title = '鍩虹珯鐜鐭棰�';
+ tmp.tshow = '';
+ tmp.cshow = '';
tabc.push(tmp);
// 涓婁紶瑙嗛
var tmp = {};
tmp.type = 'upload';
tmp.title = '涓婁紶鐭棰�';
+ tmp.tshow = '';
+ tmp.cshow = '';
tabc.push(tmp);
+ // 鏈烘埧鍥剧墖妯″潡
+ var tmp = {};
+ tmp.type = 'envImg';
+ tmp.title = '鍩虹珯鐜鍥鹃泦';
+ tmp.tshow = '';
+ tmp.cshow = '';
+ tabc.push(tmp);
+
+ // 鏈烘埧鍥剧墖涓婁紶
+ var tmp = {};
+ tmp.type = 'envImgUpload';
+ tmp.title = '涓婁紶鍩虹珯鐜鍥剧墖';
+ tmp.tshow = '';
+ tmp.cshow = '';
+ tabc.push(tmp);
// 杩斿洖缁撴灉闆�
return rs;
--
Gitblit v1.9.1