| | |
| | | </el-table-column> |
| | | </el-table> |
| | | <pagination |
| | | v-if="page.total > 0" |
| | | :total="page.total" |
| | | :layout="page.layout" |
| | | :page="page.current" |
| | |
| | | const { searchForm,form } = toRefs(data); |
| | | const page = ref({ |
| | | current: 1, |
| | | size: 10, |
| | | size: 100, |
| | | total: 0 |
| | | }); |
| | | const dialogFormVisible = ref(false); |
| | |
| | | tableLoading.value = false; |
| | | if (res && res.data) { |
| | | tableData.value = res.data.records || []; |
| | | page.total = res.data.total || 0; |
| | | page.value.total = res.data.total || 0; |
| | | } else { |
| | | tableData.value = []; |
| | | page.total = 0; |
| | | page.value.total = 0; |
| | | ElMessageBox.warning('未获取到数据'); |
| | | } |
| | | }) |