diff --git a/src/components/table/table.vue b/src/components/table/table.vue index 5bdd449c..e2d56e63 100644 --- a/src/components/table/table.vue +++ b/src/components/table/table.vue @@ -496,9 +496,9 @@ }, filterData (data, column) { return data.filter((row) => { - if(typeof column.filterRemote == 'function'){ //如果定义了远程过滤方法则忽略此方法 - return true; - } + //如果定义了远程过滤方法则忽略此方法 + if (typeof column.filterRemote === 'function') return; + let status = !column._filterChecked.length; for (let i = 0; i < column._filterChecked.length; i++) { status = column.filterMethod(column._filterChecked[i], row); @@ -509,8 +509,8 @@ }, filterOtherData (data, index) { let column = this.cloneColumns[index]; - if(typeof column.filterRemote == 'function'){ - column.filterRemote.call(this.$parent,column._filterChecked,column.key,column); + if (typeof column.filterRemote === 'function') { + column.filterRemote.call(this.$parent, column._filterChecked, column.key, column); } this.cloneColumns.forEach((col, colIndex) => {