feat(drama): 短剧审核合并为审核通过并上线一键操作
审核列草稿/已下线/审核中统一为「审核通过并上线」, 审核中保留驳回,待发布与已上线维持原按钮。
This commit is contained in:
1 parent
9ce014e7b3
commit
bbff52f324
3 files changed
+10
-7
No files matched your search
@@ -33,7 +33,7 @@ import {
|
||||
} from '@/views/contentManagement/upload/imagePresets'
|
||||
|
||||
const router = useRouter()
|
||||
const { can, hasAny } = useRbac()
|
||||
const { can } = useRbac()
|
||||
|
||||
const loading = ref(false)
|
||||
const list = ref([])
|
||||
@@ -110,7 +110,8 @@ const actionMeta = {
|
||||
approve: { label: '审核通过', done: '已通过审核' },
|
||||
reject: { label: '驳回', done: '已驳回' },
|
||||
publish: { label: '上线', done: '已上线' },
|
||||
offline: { label: '下线', done: '已下线' }
|
||||
offline: { label: '下线', done: '已下线' },
|
||||
approvePublish: { label: '审核通过并上线', done: '已通过审核并上线' }
|
||||
}
|
||||
|
||||
async function load() {
|
||||
@@ -435,9 +436,9 @@ async function runAction(row, action) {
|
||||
function reviewActions(row) {
|
||||
const canReview = can('drama:review')
|
||||
if (row.status === 'draft' || row.status === 'offline') {
|
||||
return hasAny('drama:update', 'drama:review') ? ['submit'] : []
|
||||
return canReview ? ['approvePublish'] : []
|
||||
}
|
||||
if (row.status === 'reviewing') return canReview ? ['approve', 'reject'] : []
|
||||
if (row.status === 'reviewing') return canReview ? ['approvePublish', 'reject'] : []
|
||||
if (row.status === 'approved') return canReview ? ['publish'] : []
|
||||
if (row.status === 'published') return canReview ? ['offline'] : []
|
||||
return []
|
||||
|
||||
Reference in new issue
Block a user