修改测试问题
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
:data-source="data"
|
||||
bordered
|
||||
:pagination="false"
|
||||
:scroll="{ x: 2000 }">
|
||||
:scroll="{ x: 2000,y:480 }">
|
||||
<template #title>
|
||||
<a-date-picker v-model:value="selectYear" picker="year" @change="changeYearData" valueFormat="YYYY" />
|
||||
</template>
|
||||
@@ -164,11 +164,11 @@
|
||||
// 获取表格数据
|
||||
const getTableList = () => {
|
||||
fetch(carbonEmission.carbonEmissionStatistics , queryParams.value).then((res) => {
|
||||
data.value = res.data.records
|
||||
total.value = res.data.total
|
||||
data.value = res.data
|
||||
total.value = res.data.length
|
||||
});
|
||||
};
|
||||
getTableList()
|
||||
getTableList()
|
||||
// 分页器
|
||||
const onChange = (pageNumber: number,size: number) => {
|
||||
queryParams.value.pageNum = pageNumber;
|
||||
|
Reference in New Issue
Block a user