| | |
| | | <template> |
| | | <avue-crud v-model:page="page" :option="option" :table-loading="loading" :data="data" @current-change="currentChange" |
| | | <avue-crud :option="option" :table-loading="loading" :data="data" v-model:page="page" @current-change="currentChange" |
| | | @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad"> |
| | | <template #menu-left> |
| | | <el-button type="success" plain icon="el-icon-download" @click="handleExport">导出</el-button> |
| | | <!-- <el-button type="success" plain icon="el-icon-download" @click="handleExport">导出</el-button> --> |
| | | </template> |
| | | </avue-crud> |
| | | </template> |
| | |
| | | editBtn: false, |
| | | delBtn: false, |
| | | viewBtn: false, |
| | | // header: false, |
| | | header: false, |
| | | menuWidth: 150, |
| | | menu: false, |
| | | dialogClickModal: false, |
| | |
| | | }; |
| | | getFinallyResult(page.currentPage, page.pageSize, id).then(res => { |
| | | const data = res.data.data; |
| | | this.page.total = data.total; |
| | | this.data = data.records; |
| | | this.page.total = data.total || ''; |
| | | this.data = data.records || []; |
| | | this.loading = false; |
| | | }); |
| | | }, |