From b98276a7ff8af761f333fe0899efe18f9a4b9ce7 Mon Sep 17 00:00:00 2001 From: LiJun <LiJun@192.168.10.10> Date: 星期四, 18 十月 2018 16:50:19 +0800 Subject: [PATCH] 机房状态记录查询页面中的详情中的查询 --- gx_tieta/WebRoot/pages/js/common.js | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/gx_tieta/WebRoot/pages/js/common.js b/gx_tieta/WebRoot/pages/js/common.js index 74042e7..47b449f 100644 --- a/gx_tieta/WebRoot/pages/js/common.js +++ b/gx_tieta/WebRoot/pages/js/common.js @@ -426,12 +426,16 @@ })(jQuery, window, document, GLOBAL); // 鐢熸垚闃块噷鍥炬爣鐨勫厓绱� -function create_ali_font(cla, color) { +function create_ali_font(cla, color, data) { var i = $('<i class="icon iconfont"></i>'); i.addClass(cla); i.css({ 'color': color }); + Object.keys(data).forEach(function(key) { + var attr = 'data-'+key + i.attr(attr, data[key]); + }); // 鑾峰彇瀛楃涓� var outerHTML = i[0].outerHTML; return outerHTML; -- Gitblit v1.9.1