|
|
@@ -666,6 +666,7 @@ $.ajaxSetup({
|
|
|
let _proto = Table.prototype, dt, _selectedIdArray = [], treeGridRows = {};
|
|
|
_proto._init = function () {
|
|
|
let _this = this, _config = _this._config, _el = _this._element;
|
|
|
+ $.fn.dataTable.ext.errMode = "none "
|
|
|
let htmlOptions = _this._getHtmlOption();
|
|
|
if (window.lang && window.lang != "en") {
|
|
|
htmlOptions.language = { url: `/libs-ext/dataTable/language_${window.lang}.json` };
|
|
|
@@ -703,6 +704,11 @@ $.ajaxSetup({
|
|
|
return _config.responseHandler && typeof _config.responseHandler == 'function'
|
|
|
? _config.responseHandler.call(_this, data)
|
|
|
: _this._responseHandler(data);
|
|
|
+ },
|
|
|
+ error: function () {
|
|
|
+ console.error(`Table[${$(_this._element).attr('id')}] load failed`);
|
|
|
+ $('#table_processing').fadeOut();
|
|
|
+ abp.message.error("加载出错!");
|
|
|
}
|
|
|
};
|
|
|
}
|
|
|
@@ -1032,7 +1038,6 @@ $.ajaxSetup({
|
|
|
}
|
|
|
return treeData;
|
|
|
}
|
|
|
-
|
|
|
_proto._rowCallback = function (row, data) {
|
|
|
let _this = this, _config = _this._config;
|
|
|
if (_config.multipleSelect && _config.clickToSelect) {
|