修改测试问题
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
:data-source="data"
|
:data-source="data"
|
||||||
bordered
|
bordered
|
||||||
:pagination="false"
|
:pagination="false"
|
||||||
:scroll="{ x: 2000 }">
|
:scroll="{ x: 2000,y:480 }">
|
||||||
<template #title>
|
<template #title>
|
||||||
<a-date-picker v-model:value="selectYear" picker="year" @change="changeYearData" valueFormat="YYYY" />
|
<a-date-picker v-model:value="selectYear" picker="year" @change="changeYearData" valueFormat="YYYY" />
|
||||||
</template>
|
</template>
|
||||||
@@ -164,11 +164,11 @@
|
|||||||
// 获取表格数据
|
// 获取表格数据
|
||||||
const getTableList = () => {
|
const getTableList = () => {
|
||||||
fetch(carbonEmission.carbonEmissionStatistics , queryParams.value).then((res) => {
|
fetch(carbonEmission.carbonEmissionStatistics , queryParams.value).then((res) => {
|
||||||
data.value = res.data.records
|
data.value = res.data
|
||||||
total.value = res.data.total
|
total.value = res.data.length
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
getTableList()
|
getTableList()
|
||||||
// 分页器
|
// 分页器
|
||||||
const onChange = (pageNumber: number,size: number) => {
|
const onChange = (pageNumber: number,size: number) => {
|
||||||
queryParams.value.pageNum = pageNumber;
|
queryParams.value.pageNum = pageNumber;
|
||||||
|
@@ -27,7 +27,19 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</a-table> -->
|
</a-table> -->
|
||||||
<ns-view-list-table v-bind="tableConfig" :model="data" ref="mainRef" :scroll="{ x: 1500,y:350 }" />
|
<ns-view-list-table v-bind="tableConfig" :model="data" ref="mainRef" :scroll="{ x: 1500,y:350 }">
|
||||||
|
<!-- <template #bodyCell="{ record, column }">
|
||||||
|
<template v-if="column.dataIndex === 'enableRules'">
|
||||||
|
<a-switch
|
||||||
|
:checked="record.enableRules === 1 ? true : false"
|
||||||
|
:class="{
|
||||||
|
'blue-background': record.enableRules === 1 ? true : false,
|
||||||
|
'grey-background': record.enableRules === 1 ? false : true,
|
||||||
|
}"
|
||||||
|
@click="clickSwitch({ enableRules: record.enableRules, record: record })" />
|
||||||
|
</template>
|
||||||
|
</template> -->
|
||||||
|
</ns-view-list-table>
|
||||||
<!-- <a-pagination
|
<!-- <a-pagination
|
||||||
:current="queryParams.pageNum"
|
:current="queryParams.pageNum"
|
||||||
:total="total"
|
:total="total"
|
||||||
|
Reference in New Issue
Block a user