computed: { computeCols () { // 隐藏列 let columns = this.tableColumns if (this.searchForm.Type === '' || this.searchForm.Type === 0) { columns = columns.filter(col => col.key !== 'Sort') } return columns } }