From c73e68680f1884ed9e2260ea9c5dcde8e4d48615 Mon Sep 17 00:00:00 2001 From: hdw <496960745@qq.com> Date: 星期三, 24 十月 2018 15:50:01 +0800 Subject: [PATCH] 饼状图 --- gx_tieta/WebRoot/pages/js/common.js | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/gx_tieta/WebRoot/pages/js/common.js b/gx_tieta/WebRoot/pages/js/common.js index 541f0b8..cfd0a9f 100644 --- a/gx_tieta/WebRoot/pages/js/common.js +++ b/gx_tieta/WebRoot/pages/js/common.js @@ -331,6 +331,8 @@ // 灏嗗嚱鏁扮粦瀹氬埌GLOBAL.BaseStation gl.BaseStation.getAbnormalTxt = getAbnormalTxt; + + })(jQuery, window, document, GLOBAL); //椤甸潰涓鏃跺櫒鐨勪娇鐢� @@ -463,3 +465,18 @@ var outerHTML = i[0].outerHTML; return outerHTML; } +//鐢熸垚闃块噷鍥炬爣鐨勫厓绱� +function create_fa_font(cla, color, data) { + var i = $('<i class="fa"></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