可信代码库-AI大模型批量管理全选功能修复
This commit is contained in:
@@ -16,6 +16,7 @@
|
|||||||
:data="dhlsList"
|
:data="dhlsList"
|
||||||
row-key="conversationId"
|
row-key="conversationId"
|
||||||
@check-change="handleCheckChange"
|
@check-change="handleCheckChange"
|
||||||
|
@check-all-change="checkAllChange"
|
||||||
:pagination="false"
|
:pagination="false"
|
||||||
:indent="32"
|
:indent="32"
|
||||||
>
|
>
|
||||||
@@ -62,6 +63,7 @@
|
|||||||
:data="collectionList"
|
:data="collectionList"
|
||||||
row-key="conversationId"
|
row-key="conversationId"
|
||||||
@check-change="handleColCheckChange"
|
@check-change="handleColCheckChange"
|
||||||
|
@check-all-change="colCheckAllChange"
|
||||||
:pagination="false"
|
:pagination="false"
|
||||||
:indent="32"
|
:indent="32"
|
||||||
>
|
>
|
||||||
@@ -309,6 +311,15 @@ const handleCheckChange = (checked, row, selection) => {
|
|||||||
debugger
|
debugger
|
||||||
selectedRowKeys.value = selection.map(i=> i.conversationId);
|
selectedRowKeys.value = selection.map(i=> i.conversationId);
|
||||||
};
|
};
|
||||||
|
// 复选框选中状态变化
|
||||||
|
const checkAllChange = (checked, row, selection) => {
|
||||||
|
debugger
|
||||||
|
if(checked) {
|
||||||
|
selectedRowKeys.value = row.map(i=> i.conversationId);
|
||||||
|
} else {
|
||||||
|
selectedRowKeys.value = [];
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
const initData = async () => {
|
const initData = async () => {
|
||||||
await getQuestionCollection();
|
await getQuestionCollection();
|
||||||
@@ -402,6 +413,15 @@ const colSelectedRowKeys = ref([]);
|
|||||||
const handleColCheckChange = (checked, row, selection) => {
|
const handleColCheckChange = (checked, row, selection) => {
|
||||||
colSelectedRowKeys.value = selection.map(i=> i.conversationId);
|
colSelectedRowKeys.value = selection.map(i=> i.conversationId);
|
||||||
};
|
};
|
||||||
|
// 收藏复选框选中状态变化
|
||||||
|
const colCheckAllChange = (checked, row, selection) => {
|
||||||
|
debugger
|
||||||
|
if(checked) {
|
||||||
|
colSelectedRowKeys.value = row.map(i=> i.conversationId);
|
||||||
|
} else {
|
||||||
|
colSelectedRowKeys.value = [];
|
||||||
|
}
|
||||||
|
};
|
||||||
// 取消收藏弹框
|
// 取消收藏弹框
|
||||||
const collteModels = ref(false);
|
const collteModels = ref(false);
|
||||||
// 批量删除
|
// 批量删除
|
||||||
|
|||||||
Reference in New Issue
Block a user