Browse Source

[Update] 修改js

pull/3388/head
ibuler 5 years ago
parent
commit
a5814c8100
  1. 10
      apps/static/js/jumpserver.js

10
apps/static/js/jumpserver.js

@ -646,9 +646,13 @@ jumpserver.initServerSideDataTable = function (options) {
if (data.search !== null) {
var searchValue = data.search.value;
var searchFilter = parseTableFilter(searchValue);
$.each(searchFilter, function (k, v) {
data[k] = v
})
if (Object.keys(searchFilter).length === 0) {
data.search = searchValue;
} else {
$.each(searchFilter, function (k, v) {
data[k] = v
})
}
}
if (data.order !== null && data.order.length === 1) {
var col = data.order[0].column;

Loading…
Cancel
Save