Explorar el Código

fix #6066: 任务队列表格新增平台/渠道列

ethanfly hace 4 días
padre
commit
881e5a7cf2
Se han modificado 1 ficheros con 30 adiciones y 2 borrados
  1. 30 2
      client/src/views/Publish/index.vue

+ 30 - 2
client/src/views/Publish/index.vue

@@ -36,7 +36,24 @@
             </div>
           </template>
         </el-table-column>
-        
+
+        <!-- Bug #6066: 新增"平台/渠道"列,更清晰地展示任务目标平台 -->
+        <el-table-column label="平台/渠道" width="180">
+          <template #default="{ row }">
+            <div class="platform-tags">
+              <el-tag
+                v-for="platform in getTaskPlatforms(row)"
+                :key="platform"
+                size="small"
+                style="margin-right: 4px"
+              >
+                {{ getPlatformName(platform) }}
+              </el-tag>
+              <span v-if="getTaskPlatforms(row).length === 0" class="no-platform">-</span>
+            </div>
+          </template>
+        </el-table-column>
+
         <el-table-column label="目标账号" min-width="220">
           <template #default="{ row }">
             <span>{{ row.targetAccounts?.length || 0 }} 个</span>
@@ -1195,7 +1212,7 @@ watch(showCreateDialog, (visible) => {
   .video-title {
     font-weight: 500;
   }
-  
+
   .video-file {
     font-size: 12px;
     color: $text-secondary;
@@ -1203,6 +1220,17 @@ watch(showCreateDialog, (visible) => {
   }
 }
 
+.platform-tags {
+  display: flex;
+  flex-wrap: wrap;
+  gap: 4px;
+
+  .no-platform {
+    color: $text-secondary;
+    font-size: 13px;
+  }
+}
+
 .form-tip {
   margin-left: 12px;
   color: $text-secondary;