Merge branch 'dev' into 1.5.5

pull/3428/head
ibuler 2019-10-25 15:33:02 +08:00
commit 458bee9a19
1 changed files with 8 additions and 4 deletions

View File

@ -448,7 +448,6 @@ function parseTableFilter(value) {
filter[key] = value
}
}
console.log(filter);
return filter;
}
@ -651,9 +650,14 @@ 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 {
data.search = '';
$.each(searchFilter, function (k, v) {
data[k] = v
})
}
}
if (data.order !== null && data.order.length === 1) {
var col = data.order[0].column;