|
@@ -269,7 +269,11 @@
|
|
|
<div v-if="taskDetail?.results?.length" class="publish-results">
|
|
<div v-if="taskDetail?.results?.length" class="publish-results">
|
|
|
<h4>发布结果</h4>
|
|
<h4>发布结果</h4>
|
|
|
<el-table :data="taskDetail.results" size="small">
|
|
<el-table :data="taskDetail.results" size="small">
|
|
|
- <el-table-column label="账号" prop="accountId" width="80" />
|
|
|
|
|
|
|
+ <el-table-column label="账号" width="120">
|
|
|
|
|
+ <template #default="{ row }">
|
|
|
|
|
+ {{ getAccountName(row.accountId) }}
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="平台" width="100">
|
|
<el-table-column label="平台" width="100">
|
|
|
<template #default="{ row }">
|
|
<template #default="{ row }">
|
|
|
{{ getPlatformName(row.platform) }}
|
|
{{ getPlatformName(row.platform) }}
|
|
@@ -720,6 +724,12 @@ function getPlatformName(platform: PlatformType) {
|
|
|
return PLATFORMS[platform]?.name || platform;
|
|
return PLATFORMS[platform]?.name || platform;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+// Bug #6140: 账号列显示昵称而非ID
|
|
|
|
|
+function getAccountName(accountId: number | string) {
|
|
|
|
|
+ const account = accounts.value.find(a => Number(a.id) === Number(accountId));
|
|
|
|
|
+ return account?.accountName || `账号${accountId}`;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
// 根据 targetAccounts 获取关联的平台列表(Bug #6066: 显示渠道)
|
|
// 根据 targetAccounts 获取关联的平台列表(Bug #6066: 显示渠道)
|
|
|
function getTaskPlatforms(task: PublishTask): PlatformType[] {
|
|
function getTaskPlatforms(task: PublishTask): PlatformType[] {
|
|
|
const ids = new Set(task.targetAccounts || []);
|
|
const ids = new Set(task.targetAccounts || []);
|