This commit is contained in:
qsh
2024-08-02 18:03:21 +08:00
parent 605151c5c8
commit 925887f4c9
13 changed files with 251 additions and 60 deletions

View File

@@ -1,7 +1,12 @@
<template>
<div>
<div class="flex">
<el-table :data="tableObject.tableList" border style="flex: 1">
<el-table
:data="tableObject.tableList"
border
style="flex: 1"
@selection-change="handleSelectionChange"
>
<slot></slot>
</el-table>
<el-button
@@ -56,7 +61,7 @@ const props = defineProps({
tableColumns: { type: Array, default: () => [] }
})
const emit = defineEmits(['update:tableObject', 'getList', 'getCheckedColumns'])
const emit = defineEmits(['update:tableObject', 'getList', 'getCheckedColumns', 'selection-change'])
const route = useRoute()
const pageNo = ref(props.tableObject?.pageNo || 1)
@@ -110,6 +115,10 @@ function onDragEnd() {
emitColumns()
}
function handleSelectionChange(val) {
emit('selection-change', val)
}
// 勾选确认
function confirm() {
ClueCacheApi.setClueCache({