update Table filterRemote format
This commit is contained in:
parent
91bda66d87
commit
73ae27d88b
1 changed files with 5 additions and 5 deletions
|
@ -496,9 +496,9 @@
|
||||||
},
|
},
|
||||||
filterData (data, column) {
|
filterData (data, column) {
|
||||||
return data.filter((row) => {
|
return data.filter((row) => {
|
||||||
if(typeof column.filterRemote == 'function'){ //如果定义了远程过滤方法则忽略此方法
|
//如果定义了远程过滤方法则忽略此方法
|
||||||
return true;
|
if (typeof column.filterRemote === 'function') return;
|
||||||
}
|
|
||||||
let status = !column._filterChecked.length;
|
let status = !column._filterChecked.length;
|
||||||
for (let i = 0; i < column._filterChecked.length; i++) {
|
for (let i = 0; i < column._filterChecked.length; i++) {
|
||||||
status = column.filterMethod(column._filterChecked[i], row);
|
status = column.filterMethod(column._filterChecked[i], row);
|
||||||
|
@ -509,8 +509,8 @@
|
||||||
},
|
},
|
||||||
filterOtherData (data, index) {
|
filterOtherData (data, index) {
|
||||||
let column = this.cloneColumns[index];
|
let column = this.cloneColumns[index];
|
||||||
if(typeof column.filterRemote == 'function'){
|
if (typeof column.filterRemote === 'function') {
|
||||||
column.filterRemote.call(this.$parent,column._filterChecked,column.key,column);
|
column.filterRemote.call(this.$parent, column._filterChecked, column.key, column);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.cloneColumns.forEach((col, colIndex) => {
|
this.cloneColumns.forEach((col, colIndex) => {
|
||||||
|
|
Loading…
Add table
Reference in a new issue