diff --git a/src/components/SearchTable/src/SearchTable.vue b/src/components/SearchTable/src/SearchTable.vue
index 37cf6b4b6..2dd84a162 100644
--- a/src/components/SearchTable/src/SearchTable.vue
+++ b/src/components/SearchTable/src/SearchTable.vue
@@ -18,6 +18,7 @@
([])
const sortRef = ref()
// 选中某行
- const selectRow = ()=>{
- console.log(currentPageRef.value,elTableRef.value?.getSelectionRows())
+ const selectRow = (selection,row)=>{
+ console.log('selectRow',row)
+ const selected = elTableRef.value?.getSelectionRows().some((item) => item.id === row.id)
+ if(props.isCheckStrictly&&selected&&row.children){//取消关联
+ row.children.forEach(item => {
+ elTableRef.value?.toggleRowSelection(item, false);
+ });
+ }
emit('getSelectionRows', currentPageRef.value,elTableRef.value?.getSelectionRows())
}
//全选回调