查询条件支持下拉多选
This commit is contained in:
@ -643,7 +643,46 @@ label {
|
||||
background: transparent;
|
||||
outline: none;
|
||||
height: 30px;
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
.select-list .btn-default {
|
||||
color: #555;
|
||||
padding: 5px 5px;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 4px;
|
||||
background: transparent;
|
||||
outline: none;
|
||||
height: 30px;
|
||||
width: 200px;
|
||||
background: white
|
||||
}
|
||||
|
||||
.select-list .btn-default:hover,.select-list .btn-default:focus,.select-list .btn-default:active,.select-list .btn-default.active,.open .dropdown-toggle.btn-default {
|
||||
color: #555;
|
||||
background-color: #e4e4e4;
|
||||
border-color: #b2b2b2
|
||||
}
|
||||
|
||||
.select-list .bootstrap-select:not([class*="col-"]):not([class*="form-control"]):not(.input-group-btn) {
|
||||
height: 30px;
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
.select-list .bootstrap-select > .dropdown-toggle.bs-placeholder,
|
||||
.select-list .bootstrap-select > .dropdown-toggle.bs-placeholder:hover,
|
||||
.select-list .bootstrap-select > .dropdown-toggle.bs-placeholder:focus,
|
||||
.select-list .bootstrap-select > .dropdown-toggle.bs-placeholder:active {
|
||||
color: inherit;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.select-list .bootstrap-select .dropdown-toggle .caret {
|
||||
position: inherit;
|
||||
}
|
||||
|
||||
.select-list .select-selectpicker li {
|
||||
float: none;
|
||||
}
|
||||
|
||||
.select-list .select-time input {
|
||||
|
@ -203,7 +203,7 @@
|
||||
}
|
||||
},
|
||||
// 搜索-默认第一个form
|
||||
search: function(formId) {
|
||||
search: function(formId, data) {
|
||||
var currentId = $.common.isEmpty(formId) ? $('form').attr('id') : formId;
|
||||
var params = $("#" + $.table._option.id).bootstrapTable('getOptions');
|
||||
params.queryParams = function(params) {
|
||||
@ -211,6 +211,11 @@
|
||||
$.each($("#" + currentId).serializeArray(), function(i, field) {
|
||||
search[field.name] = field.value;
|
||||
});
|
||||
if($.common.isNotEmpty(data)){
|
||||
$.each(data, function(key) {
|
||||
search[key] = data[key];
|
||||
});
|
||||
}
|
||||
search.pageSize = params.limit;
|
||||
search.pageNum = params.offset / params.limit + 1;
|
||||
search.searchValue = params.search;
|
||||
@ -1234,6 +1239,13 @@
|
||||
}
|
||||
}
|
||||
return result;
|
||||
},
|
||||
// 数组中的所有元素放入一个字符串
|
||||
join: function(array, separator) {
|
||||
if ($.common.isEmpty(array)) {
|
||||
return null;
|
||||
}
|
||||
return array.join(separator);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user