From 2ef6cb9f4282fa70f6aa400406e9d4367249d827 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Fri, 15 Feb 2019 16:07:25 +0800 Subject: [PATCH] =?UTF-8?q?=E9=AA=8C=E8=AF=81=E7=A0=81=E7=A6=81=E7=94=A8?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/static/ruoyi/js/ry-ui.js | 11 ++++++----- ruoyi-admin/src/main/resources/templates/login.html | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js b/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js index 9162edd1..5150143c 100644 --- a/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js +++ b/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js @@ -99,12 +99,13 @@ tooltip: function (value, length) { var _length = $.common.isEmpty(length) ? 20 : length; var _text = ""; - if ($.common.isNotEmpty(value) && value.length > _length) { - _text = value.substr(0, _length) + "..."; + var _value = $.common.nullToStr(value); + if (_value.length > _length) { + _text = _value.substr(0, _length) + "..."; } else { - _text = $.common.nullToStr(value); + _text = _value; } - return '' + _text +''; + return '' + _text +''; }, // 搜索-默认第一个form search: function(formId) { @@ -918,7 +919,7 @@ // 空对象转字符串 nullToStr: function(value) { if ($.common.isEmpty(value)) { - return '-' + return "-"; } return value; }, diff --git a/ruoyi-admin/src/main/resources/templates/login.html b/ruoyi-admin/src/main/resources/templates/login.html index 27ee765a..2bddf451 100644 --- a/ruoyi-admin/src/main/resources/templates/login.html +++ b/ruoyi-admin/src/main/resources/templates/login.html @@ -51,7 +51,7 @@
- +