mirror of https://gitee.com/karson/fastadmin.git
优化customField字段
优化占位符替换 # Conflicts: # public/assets/js/require-table.jspull/477/MERGE
parent
420b82f6fb
commit
0882b94683
|
|
@ -131,7 +131,7 @@ define(['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstrap-table
|
||||||
return __('Common search');
|
return __('Common search');
|
||||||
},
|
},
|
||||||
formatCommonSubmitButton: function () {
|
formatCommonSubmitButton: function () {
|
||||||
return __('Submit');
|
return __('Search');
|
||||||
},
|
},
|
||||||
formatCommonResetButton: function () {
|
formatCommonResetButton: function () {
|
||||||
return __('Reset');
|
return __('Reset');
|
||||||
|
|
@ -764,7 +764,7 @@ define(['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstrap-table
|
||||||
suffix = /[\.]?([a-zA-Z0-9]+)$/.exec(value);
|
suffix = /[\.]?([a-zA-Z0-9]+)$/.exec(value);
|
||||||
suffix = suffix ? suffix[1] : 'file';
|
suffix = suffix ? suffix[1] : 'file';
|
||||||
url = Fast.api.fixurl("ajax/icon?suffix=" + suffix);
|
url = Fast.api.fixurl("ajax/icon?suffix=" + suffix);
|
||||||
html.push('<a href="' + value + '" target="_blank"><img src="' + url + '" class="' + classname + '"></a>');
|
html.push('<a href="' + value + '" target="_blank"><img src="' + url + '" class="' + classname + '" width="30" height="30"></a>');
|
||||||
});
|
});
|
||||||
return html.join(' ');
|
return html.join(' ');
|
||||||
},
|
},
|
||||||
|
|
@ -892,7 +892,7 @@ define(['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstrap-table
|
||||||
var color, display, label;
|
var color, display, label;
|
||||||
$.each(arr, function (i, value) {
|
$.each(arr, function (i, value) {
|
||||||
value = value == null || value.length === 0 ? '' : value.toString();
|
value = value == null || value.length === 0 ? '' : value.toString();
|
||||||
if (value == '')
|
if (value === '')
|
||||||
return true;
|
return true;
|
||||||
color = value && typeof colorArr[value] !== 'undefined' ? colorArr[value] : 'primary';
|
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));
|
display = typeof that.searchList !== 'undefined' && typeof that.searchList[value] !== 'undefined' ? that.searchList[value] : __(value.charAt(0).toUpperCase() + value.slice(1));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue