单体电池、策略

This commit is contained in:
2025-08-14 17:59:58 +08:00
parent 10033348d6
commit 2cd60ea105
6 changed files with 575 additions and 223 deletions

View File

@ -60,11 +60,11 @@
</template>
</el-table-column>
</el-table>
<el-pagination
<!-- <el-pagination
v-show="tableData.length > 0"
background
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
@size-change="(val) => $emit('handleSizeChange', val)"
@current-change="(val) => $emit('handleCurrentChange', val)"
:current-page="pageNum"
:page-size="pageSize"
:page-sizes="[10, 20, 30, 40]"
@ -72,7 +72,7 @@
:total="totalSize"
style="margin-top: 15px; text-align: center"
>
</el-pagination>
</el-pagination> -->
</div>
</template>
@ -86,21 +86,21 @@ export default {
return [];
},
},
pageNum: {
require: true,
type: Number,
default: 1,
},
pageSize: {
require: true,
type: Number,
default: 10,
},
totalSize: {
require: true,
type: Number,
default: 0,
},
// pageNum: {
// require: true,
// type: Number,
// default: 1,
// },
// pageSize: {
// require: true,
// type: Number,
// default: 10,
// },
// totalSize: {
// require: true,
// type: Number,
// default: 0,
// },
},
data() {
return {};
@ -111,13 +111,6 @@ export default {
const { clusterDeviceId, deviceId } = row;
this.$emit("chart", { clusterDeviceId, deviceId, dataType });
},
// 分页
handleSizeChange(val) {
this.$emit("handleSizeChange", val);
},
handleCurrentChange(val) {
this.$emit("handleCurrentChange", val);
},
},
};
</script>