diff --git a/src/component/crud-table/src/CrudTable.vue b/src/component/crud-table/src/CrudTable.vue index b327f2b..94d5517 100644 --- a/src/component/crud-table/src/CrudTable.vue +++ b/src/component/crud-table/src/CrudTable.vue @@ -168,10 +168,6 @@
- -
- -
- + - 查询 + 查询 - + - - 清空 + 清空
@@ -104,9 +91,7 @@ export default class SearchForm extends Vue { // 标签关闭事件 handleClose(tag) { - this.paramsTips = this.paramsTips.filter( - item => item.field !== tag.field, - ); + this.paramsTips = this.paramsTips.filter(item => item.field !== tag.field); this.$emit( 'update:searchFormCondition', this.paramsTips.map(item => ({ @@ -137,9 +122,7 @@ export default class SearchForm extends Vue { getParams() { let params: any = []; // 拿到所有字段 - const props = this.columns - .filter(item => item.searchable) - .map(item => item.prop); + const props = this.columns.filter(item => item.searchable).map(item => item.prop); const str = props.toString(); if (this.searchContent) { params = [ @@ -218,10 +201,10 @@ export default class SearchForm extends Vue {