在smartFilter组件的onFilter可以重写生成的过滤条件

如下:smartFilter模糊查询改为 like ‘XXX%’


// 重写smartFilter的过滤条件
Model.prototype.smartFilter1Filter = function(event) {
//获取smartFilter的输入框中输入的值
var value = event.source.searchText.get();
var filter = "AP_RQ.fName like '" + value + "%'";
//获取smartFilter过滤的data
var data = event.source.getFilterData();
data.setFilter("filter1", filter);
data.refreshData();
};