| | |
| | | @search-change="searchChange" |
| | | @search-reset="searchReset" |
| | | @selection-change="selectionChange" |
| | | @row-click="rowClick" |
| | | @current-change="currentChange" |
| | | @size-change="sizeChange" |
| | | @refresh-change="refreshChange" |
| | |
| | | border: true, |
| | | index: true, |
| | | selection: true, |
| | | reserveSelection:true, |
| | | dialogClickModal: false, |
| | | highlightCurrentRow: true, |
| | | column: [] |
| | |
| | | }, |
| | | created() { |
| | | this.getParams(); |
| | | // console.log('referConfig:') |
| | | // console.log(this.referConfig) |
| | | }, |
| | | mounted() { |
| | | if(this.referConfig.options.page){ |
| | |
| | | this.option.column = [{ |
| | | prop: 'id', |
| | | label: '英文名称', |
| | | sort: true, |
| | | sortable: true, |
| | | width: 150, |
| | | search: true |
| | | }, { |
| | | prop: 'name', |
| | | label: '中文名称', |
| | | sort: true, |
| | | sortable: true, |
| | | width: 150, |
| | | search: true |
| | | }, { |
| | |
| | | label: item.title, |
| | | prop: item.field, |
| | | formatter:item.template, |
| | | search: true |
| | | search:this.options.tableConfig.queryColumns.some(qItem=>{ |
| | | return qItem.field==item.field |
| | | }) |
| | | } |
| | | } |
| | | }) |
| | |
| | | sizeChange(pageSize){ |
| | | this.page.pageSize = pageSize; |
| | | }, |
| | | rowClick (row) { |
| | | this.$refs.referDefalutCrud.toggleSelection(); |
| | | this.$refs.referDefalutCrud.toggleRowSelection(row); //选中当前行 |
| | | this.selectionList=[row] |
| | | }, |
| | | selectionChange(list) { |
| | | if (!this.isMuti && list.length > 1) { |
| | | const nowVal = list.shift(); |