|
|
@@ -42,13 +42,13 @@
|
|
|
collapse-tags
|
|
|
collapse-tags-tooltip
|
|
|
placeholder="选择账号"
|
|
|
- style="width: 160px"
|
|
|
+ style="width: 200px"
|
|
|
@change="handleFilterChange"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="account in accountList"
|
|
|
:key="account.id"
|
|
|
- :label="account.nickname"
|
|
|
+ :label="`${account.nickname} (${getPlatformName(account.platform)})`"
|
|
|
:value="account.id"
|
|
|
/>
|
|
|
</el-select>
|
|
|
@@ -395,9 +395,9 @@ const quickDateBtns = [
|
|
|
{ label: '近一个月', value: 'lastMonth' },
|
|
|
];
|
|
|
|
|
|
-// 账号选择
|
|
|
+// 账号选择(带平台信息,便于同名账号区分)
|
|
|
const selectedAccounts = ref<number[]>([]);
|
|
|
-const accountList = ref<{ id: number; nickname: string }[]>([]);
|
|
|
+const accountList = ref<{ id: number; nickname: string; platform: PlatformType }[]>([]);
|
|
|
|
|
|
// 分组和平台筛选
|
|
|
const selectedGroup = ref<number | ''>('');
|
|
|
@@ -666,12 +666,14 @@ async function loadAccountList() {
|
|
|
accountList.value = res.map((a: any) => ({
|
|
|
id: a.id,
|
|
|
nickname: a.accountName || a.nickname || a.username,
|
|
|
+ platform: a.platform as PlatformType,
|
|
|
}));
|
|
|
} else if ((res as any)?.data?.data) {
|
|
|
// 兼容旧格式 { data: { data: [] } }
|
|
|
accountList.value = (res as any).data.data.map((a: any) => ({
|
|
|
id: a.id,
|
|
|
nickname: a.accountName || a.nickname || a.username,
|
|
|
+ platform: a.platform as PlatformType,
|
|
|
}));
|
|
|
}
|
|
|
} catch (error) {
|