Explorar o código

fix: #6141 删除禁用账号功能及相关筛选

ethanfly hai 4 días
pai
achega
08668a0ba0
Modificáronse 2 ficheiros con 12 adicións e 7 borrados
  1. 1 6
      client/src/views/Accounts/index.vue
  2. 11 1
      client/src/views/Publish/index.vue

+ 1 - 6
client/src/views/Accounts/index.vue

@@ -37,11 +37,7 @@
           :value="group.id"
         />
       </el-select>
-      <el-select v-model="filter.status" placeholder="状态" clearable style="width: 120px" @change="loadAccounts">
-        <el-option label="正常" value="active" />
-        <el-option label="已过期" value="expired" />
-        <el-option label="已禁用" value="disabled" />
-      </el-select>
+      <!-- 禁用功能已移除,用户不需要可禁用账号 -->
       <el-button @click="loadAccounts">
         <el-icon><Refresh /></el-icon>
         刷新
@@ -59,7 +55,6 @@
               </el-avatar>
               <div class="account-info">
                 <div class="account-name">{{ row.accountName }}</div>
-                <div class="account-id">ID: {{ row.accountId }}</div>
               </div>
             </div>
           </template>

+ 11 - 1
client/src/views/Publish/index.vue

@@ -269,7 +269,11 @@
         <div v-if="taskDetail?.results?.length" class="publish-results">
           <h4>发布结果</h4>
           <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">
               <template #default="{ row }">
                 {{ getPlatformName(row.platform) }}
@@ -720,6 +724,12 @@ function getPlatformName(platform: PlatformType) {
   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: 显示渠道)
 function getTaskPlatforms(task: PublishTask): PlatformType[] {
   const ids = new Set(task.targetAccounts || []);