From aabe2d9c0d656f6dbd0273a711c9765acbf51444 Mon Sep 17 00:00:00 2001
From: cloudroam <cloudroam>
Date: 星期六, 05 七月 2025 11:25:58 +0800
Subject: [PATCH] add:corn 和任务管理
---
pages/film/filmset.vue | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/pages/film/filmset.vue b/pages/film/filmset.vue
index 561cc69..ae4cf2d 100644
--- a/pages/film/filmset.vue
+++ b/pages/film/filmset.vue
@@ -370,7 +370,17 @@
],
extraButtons: [
{
- text: (row) => (row.status === 'unpublished' || row.status === 'approved' ? '发布' : '下架'),
+ // text: (row) => (row.status === 'unpublished' || row.status === 'approved' ? '发布' : '下架'),
+ text: (row) => {
+ // 调整文本显示逻辑
+ if (row.status === 'unpublished' || row.status === 'approved') {
+ return '发布'
+ } else if (row.status === 'published') {
+ return '下架'
+ }
+ return '' // 其他状态不会显示
+ },
+ show: (row) => ['unpublished', 'approved', 'published'].includes(row.status),
atClick: async (row) => {
const action = row.status === 'unpublished' || row.status === 'approved' ? '发布' : '下架'
try {
--
Gitblit v1.9.3