| | |
| | | show-overflow-tooltip |
| | | /> |
| | | </el-table> |
| | | |
| | | <div style="margin-top: 12px; display: flex; justify-content: flex-end;"> |
| | | <el-pagination |
| | | background |
| | | layout="total, sizes, prev, pager, next, jumper" |
| | | :total="page.total" |
| | | v-model:page-size="page.size" |
| | | v-model:current-page="page.current" |
| | | :page-sizes="[10, 20, 50, 100]" |
| | | @size-change="handlePageChange" |
| | | @current-change="handlePageChange" |
| | | /> |
| | | </div> |
| | | </el-card> |
| | | </div> |
| | | </div> |
| | |
| | | tableData: [] |
| | | }) |
| | | |
| | | const page = reactive({ |
| | | current: 1, |
| | | size: 10, |
| | | total: 0, |
| | | }) |
| | | |
| | | const handlePageChange = () => { |
| | | fetchList() |
| | | } |
| | | |
| | | const stockRecordTypeOptions = ref([]) |
| | | |
| | | const getRecordType = (recordType) => { |
| | |
| | | } |
| | | |
| | | // 查询数据 |
| | | const handleQuery = async () => { |
| | | const fetchList = async () => { |
| | | if (!validateSearchForm()) { |
| | | return |
| | | } |
| | |
| | | } |
| | | if (response.code === 200) { |
| | | reportData.value.tableData = response.data.records |
| | | page.total = Number(response.data.total ?? 0) || 0 |
| | | // reportData.value.summary = response.data.summary |
| | | // reportData.value.chartData = response.data.chartData |
| | | // nextTick(() => { |
| | |
| | | } finally { |
| | | tableLoading.value = false |
| | | } |
| | | } |
| | | |
| | | // 查询数据(按钮触发:回到第一页) |
| | | const handleQuery = () => { |
| | | page.current = 1 |
| | | fetchList() |
| | | } |
| | | // // 生成假数据 |
| | | // const generateMockData = () => { |
| | |
| | | startMonth: "", |
| | | endMonth: "", |
| | | startDate: "", |
| | | endDate: "" |
| | | endDate: "", |
| | | current: page.current, |
| | | size: page.size, |
| | | } |
| | | |
| | | if (searchForm.reportType === 'daily') { |
| | |
| | | searchForm.singleDate = '' |
| | | searchForm.dateRange = [] |
| | | searchForm.monthRange = [] |
| | | page.current = 1 |
| | | page.size = 10 |
| | | page.total = 0 |
| | | reportData.value = { |
| | | summary: null, |
| | | chartData: null, |