From 0882b94683283dd735352a62eee6881cddf4f2c2 Mon Sep 17 00:00:00 2001 From: Karson Date: Tue, 2 Apr 2024 17:16:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96customField=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 优化占位符替换 # Conflicts: # public/assets/js/require-table.js --- public/assets/js/require-table.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/assets/js/require-table.js b/public/assets/js/require-table.js index 3556bd4e..fbeff7cd 100644 --- a/public/assets/js/require-table.js +++ b/public/assets/js/require-table.js @@ -131,7 +131,7 @@ define(['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstrap-table return __('Common search'); }, formatCommonSubmitButton: function () { - return __('Submit'); + return __('Search'); }, formatCommonResetButton: function () { return __('Reset'); @@ -764,7 +764,7 @@ define(['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstrap-table suffix = /[\.]?([a-zA-Z0-9]+)$/.exec(value); suffix = suffix ? suffix[1] : 'file'; url = Fast.api.fixurl("ajax/icon?suffix=" + suffix); - html.push(''); + html.push(''); }); return html.join(' '); }, @@ -892,7 +892,7 @@ define(['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstrap-table var color, display, label; $.each(arr, function (i, value) { value = value == null || value.length === 0 ? '' : value.toString(); - if (value == '') + if (value === '') return true; color = value && typeof colorArr[value] !== 'undefined' ? colorArr[value] : 'primary'; display = typeof that.searchList !== 'undefined' && typeof that.searchList[value] !== 'undefined' ? that.searchList[value] : __(value.charAt(0).toUpperCase() + value.slice(1));