点击选择账号

This commit is contained in:
lq
2025-09-19 18:36:20 +08:00
parent 77cd789d4a
commit c70b44022b
2 changed files with 39 additions and 2 deletions

View File

@ -29,6 +29,7 @@
style="width: 100%"
:pagination="false"
@change="handleTableChange"
@row-click="handleRowClick"
>
<!-- 空数据显示 -->
<template #empty>
@ -465,6 +466,35 @@ const handleTableChange = (pagination: any, sorter: any) => {
handleSearch();
};
// 处理表格行单击事件(用于调试)
const handleRowClick = (record: any, index: number, event: Event) => {
console.log('单击行:', record);
console.log('行索引:', index);
console.log('事件对象:', event);
const accountInfo = {
id: record.id,
name: record.name,
platform: record.platform,
};
drawerPopupRef.value.showDrawer(accountInfo);
};
// 处理表格行双击事件
const handleRowDblClick = (record: any, index: number, event: Event) => {
console.log('双击行:', record);
console.log('行索引:', index);
console.log('事件对象:', event);
// 双击行时打开创建任务弹窗并传递账号信息
if (drawerPopupRef.value) {
const accountInfo = {
id: record.id,
name: record.name,
platform: record.platform
};
drawerPopupRef.value.showDrawer(accountInfo);
}
};
// 任务操作处理
const handleTaskAction = (action: string, task: any, ...args: any[]) => {
switch (action) {