| | |
| | | <el-button size="mini" type="default" @click="visible = false">取消</el-button> |
| | | <el-button type="primary" size="mini" @click="_export_">确定</el-button> |
| | | </div> |
| | | <my-button v-if="myTable.tools.generalExport.show" slot="reference" site="tools" name="导出" /> |
| | | <my-button v-if="myTable.tools.generalExport.show" slot="reference" site="tools" name="导出" style="margin-bottom: 15px"/> |
| | | </el-popover> |
| | | |
| | | <!--列控制--> |
| | |
| | | import mySwitch from '@/components/mySwitch/mySwitch' |
| | | import request from '@/utils/request' |
| | | import * as valid from '@/utils/validate' |
| | | |
| | | export default { |
| | | components: { myButton, mySwitch }, |
| | | props: { |
| | |
| | | myTable: { |
| | | url: '', |
| | | params: {}, |
| | | autoLoad: true, |
| | | border: false, |
| | | showIndex: true, // 是否显示序号 |
| | | expand: true, // 是否显示详情数据 |
| | |
| | | total: 0 |
| | | }) |
| | | } |
| | | this.$nextTick(() => { |
| | | this.search({ pageNum: 1 }) |
| | | }) |
| | | if (this.myTable.autoLoad) { |
| | | this.$nextTick(() => { |
| | | this.search({pageNum: 1}) |
| | | }) |
| | | } |
| | | this.myTable.columns.forEach((column, idx) => { |
| | | if (!column.hidden) { |
| | | this.checkColumns.push(idx) |
| | |
| | | */ |
| | | search(param) { |
| | | this.$nextTick(() => { |
| | | // this.myTable.loading = true |
| | | this.myTable.loading = true |
| | | const params = Object.assign({}, this.filter) |
| | | if(this.myTable.paging.show){ |
| | | params.pageSize = this.myTable.paging.page.pageSize |
| | |
| | | color: #303133; |
| | | font-weight: 700; |
| | | margin-top: 10px; |
| | | display: flex; |
| | | justify-content: flex-end; |
| | | } |
| | | .el-radio { |
| | | margin-right: 10px; |