This commit is contained in:
1 parent
236f30a470
commit
6d5a891af3
15 files changed
+306
-126
No files matched your search
@@ -8,7 +8,7 @@ VITE_API_BASE_PATH=
|
|||||||
VITE_BASE_PATH=/
|
VITE_BASE_PATH=/
|
||||||
|
|
||||||
# 标题
|
# 标题
|
||||||
VITE_APP_TITLE=FruitShorts
|
VITE_APP_TITLE=YMB
|
||||||
|
|
||||||
# 是否全量引入element-plus样式
|
# 是否全量引入element-plus样式
|
||||||
VITE_USE_ALL_ELEMENT_PLUS_STYLE=true
|
VITE_USE_ALL_ELEMENT_PLUS_STYLE=true
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ VITE_SOURCEMAP=true
|
|||||||
VITE_OUT_DIR=dist-dev
|
VITE_OUT_DIR=dist-dev
|
||||||
|
|
||||||
# 标题
|
# 标题
|
||||||
VITE_APP_TITLE=FruitShorts
|
VITE_APP_TITLE=YMB
|
||||||
|
|
||||||
# 是否包分析
|
# 是否包分析
|
||||||
VITE_USE_BUNDLE_ANALYZER=false
|
VITE_USE_BUNDLE_ANALYZER=false
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ VITE_SOURCEMAP=false
|
|||||||
VITE_OUT_DIR=dist-pro
|
VITE_OUT_DIR=dist-pro
|
||||||
|
|
||||||
# 标题
|
# 标题
|
||||||
VITE_APP_TITLE=FruitShorts
|
VITE_APP_TITLE=YMB
|
||||||
|
|
||||||
# 是否包分析
|
# 是否包分析
|
||||||
VITE_USE_BUNDLE_ANALYZER=true
|
VITE_USE_BUNDLE_ANALYZER=true
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ VITE_SOURCEMAP=true
|
|||||||
VITE_OUT_DIR=dist-test
|
VITE_OUT_DIR=dist-test
|
||||||
|
|
||||||
# 标题
|
# 标题
|
||||||
VITE_APP_TITLE=FruitShorts
|
VITE_APP_TITLE=YMB
|
||||||
|
|
||||||
# 是否包分析
|
# 是否包分析
|
||||||
VITE_USE_BUNDLE_ANALYZER=false
|
VITE_USE_BUNDLE_ANALYZER=false
|
||||||
|
|||||||
+72
-40
@@ -2,7 +2,7 @@
|
|||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<link rel="icon" type="image/png" href="/brand-mark.png" />
|
<link rel="icon" type="image/png" href="/ymb-mark-v2.png" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title><%= title %></title>
|
<title><%= title %></title>
|
||||||
</head>
|
</head>
|
||||||
@@ -32,12 +32,32 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.app-loading .app-loading-title {
|
.app-loading .app-loading-title {
|
||||||
margin-bottom: 30px;
|
margin-bottom: 24px;
|
||||||
font-size: 20px;
|
|
||||||
font-weight: bold;
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.app-loading .app-loading-brand-word {
|
||||||
|
margin-top: 2px;
|
||||||
|
font-family:
|
||||||
|
Inter,
|
||||||
|
ui-sans-serif,
|
||||||
|
system-ui,
|
||||||
|
-apple-system,
|
||||||
|
BlinkMacSystemFont,
|
||||||
|
sans-serif;
|
||||||
|
font-size: 21px;
|
||||||
|
font-weight: 800;
|
||||||
|
line-height: 1;
|
||||||
|
letter-spacing: 0.34em;
|
||||||
|
color: transparent;
|
||||||
|
text-indent: 0.34em;
|
||||||
|
background: linear-gradient(100deg, #ffb21a 0%, #ffd76a 48%, #ff6b4a 100%);
|
||||||
|
filter: drop-shadow(0 4px 12px rgb(255 130 55 / 24%));
|
||||||
|
animation: ymb-wordmark-breathe 1.8s ease-in-out infinite;
|
||||||
|
background-clip: text;
|
||||||
|
background-clip: text;
|
||||||
|
}
|
||||||
|
|
||||||
.app-loading .app-loading-logo {
|
.app-loading .app-loading-logo {
|
||||||
width: 72px;
|
width: 72px;
|
||||||
margin: 0 auto 15px;
|
margin: 0 auto 15px;
|
||||||
@@ -47,66 +67,78 @@
|
|||||||
.app-loading .app-loading-item {
|
.app-loading .app-loading-item {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 60px;
|
width: 72px;
|
||||||
height: 60px;
|
height: 72px;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
|
animation: ymb-loading-pulse 1.4s ease-in-out infinite;
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-loading .app-loading-outter {
|
.app-loading .app-loading-spinner {
|
||||||
position: absolute;
|
display: flex;
|
||||||
width: 100%;
|
width: 72px;
|
||||||
height: 100%;
|
height: 18px;
|
||||||
border: 4px solid #c4322a;
|
align-items: center;
|
||||||
border-bottom: 0;
|
justify-content: center;
|
||||||
border-left-color: transparent;
|
gap: 7px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.app-loading .app-loading-spinner::before,
|
||||||
|
.app-loading .app-loading-spinner::after,
|
||||||
|
.app-loading .app-loading-dot {
|
||||||
|
width: 8px;
|
||||||
|
height: 8px;
|
||||||
|
background: #ffb21a;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
animation: loader-outter 1s cubic-bezier(0.42, 0.61, 0.58, 0.41) infinite;
|
content: '';
|
||||||
|
animation: ymb-loading-dot 1.1s ease-in-out infinite;
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-loading .app-loading-inner {
|
.app-loading .app-loading-spinner::after {
|
||||||
position: absolute;
|
animation-delay: 0.18s;
|
||||||
top: calc(50% - 20px);
|
|
||||||
left: calc(50% - 20px);
|
|
||||||
width: 40px;
|
|
||||||
height: 40px;
|
|
||||||
border: 4px solid #ff8a72;
|
|
||||||
border-right: 0;
|
|
||||||
border-top-color: transparent;
|
|
||||||
border-radius: 50%;
|
|
||||||
animation: loader-inner 1s cubic-bezier(0.42, 0.61, 0.58, 0.41) infinite;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes loader-outter {
|
.app-loading .app-loading-dot {
|
||||||
0% {
|
animation-delay: 0.36s;
|
||||||
transform: rotate(0deg);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@keyframes ymb-loading-dot {
|
||||||
|
0%,
|
||||||
|
80%,
|
||||||
100% {
|
100% {
|
||||||
transform: rotate(360deg);
|
opacity: 0.35;
|
||||||
|
transform: translateY(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
40% {
|
||||||
|
opacity: 1;
|
||||||
|
transform: translateY(-5px);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes loader-inner {
|
@keyframes ymb-wordmark-breathe {
|
||||||
0% {
|
0%,
|
||||||
transform: rotate(0deg);
|
|
||||||
}
|
|
||||||
|
|
||||||
100% {
|
100% {
|
||||||
transform: rotate(-360deg);
|
opacity: 0.78;
|
||||||
}
|
transform: translateY(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
50% {
|
||||||
|
opacity: 1;
|
||||||
|
transform: translateY(-1px);
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
<div class="app-loading">
|
<div class="app-loading">
|
||||||
<div class="app-loading-wrap">
|
<div class="app-loading-wrap">
|
||||||
<div class="app-loading-title">
|
<div class="app-loading-title">
|
||||||
<img src="/brand-mark.png" class="app-loading-logo" alt="Logo" />
|
<img src="/ymb-mark-v2.png" class="app-loading-logo" alt="YMB" />
|
||||||
<div class="app-loading-title"><%= title %></div>
|
<div class="app-loading-brand-word">YMB</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="app-loading-item">
|
<div class="app-loading-item">
|
||||||
<div class="app-loading-outter"></div>
|
<div class="app-loading-spinner" role="status" aria-label="Loading">
|
||||||
<div class="app-loading-inner"></div>
|
<span class="app-loading-dot"></span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 5.9 KiB After Width: | Height: | Size: 1.3 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.3 MiB |
+1
-1
@@ -22,7 +22,7 @@ appStore.initTheme()
|
|||||||
<template>
|
<template>
|
||||||
<ConfigGlobal :size="currentSize">
|
<ConfigGlobal :size="currentSize">
|
||||||
<RouterView :class="greyMode ? `${prefixCls}-grey-mode` : ''" />
|
<RouterView :class="greyMode ? `${prefixCls}-grey-mode` : ''" />
|
||||||
<footer class="app-copyright">© FruitShorts</footer>
|
<footer class="app-copyright">© YMB</footer>
|
||||||
</ConfigGlobal>
|
</ConfigGlobal>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 5.9 KiB After Width: | Height: | Size: 1.3 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.5 MiB |
+2
-2
@@ -104,8 +104,8 @@ export default {
|
|||||||
small: 'Small'
|
small: 'Small'
|
||||||
},
|
},
|
||||||
login: {
|
login: {
|
||||||
welcome: 'Short-drama workspace',
|
welcome: 'YMB Content Workspace',
|
||||||
consoleLabel: 'Content Operations',
|
consoleLabel: 'YMB Operations',
|
||||||
hint: 'Sign in with an admin account',
|
hint: 'Sign in with an admin account',
|
||||||
username: 'Username',
|
username: 'Username',
|
||||||
password: 'Password',
|
password: 'Password',
|
||||||
|
|||||||
@@ -104,8 +104,8 @@ export default {
|
|||||||
small: '小'
|
small: '小'
|
||||||
},
|
},
|
||||||
login: {
|
login: {
|
||||||
welcome: '短剧内容管理',
|
welcome: 'YMB 内容管理',
|
||||||
consoleLabel: '内容运营后台',
|
consoleLabel: 'YMB 运营后台',
|
||||||
hint: '使用管理员账号进入工作台',
|
hint: '使用管理员账号进入工作台',
|
||||||
username: '用户名',
|
username: '用户名',
|
||||||
password: '密码',
|
password: '密码',
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
/* Author: fruit.com.cn */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创作者中心(我的作品 / 作品编辑 / 收费配置 / 数据看板)。
|
* 创作者中心(我的作品 / 作品编辑 / 收费配置 / 数据看板)。
|
||||||
* 只放这四个页面专属的类名;工具条、抽屉、看板卡片沿用 console.css。
|
* 只放这四个页面专属的类名;工具条、抽屉、看板卡片沿用 console.css。
|
||||||
@@ -10,6 +12,112 @@
|
|||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.creator-overview {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
|
||||||
|
gap: 14px;
|
||||||
|
margin-bottom: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.creator-profile-summary,
|
||||||
|
.creator-quick-actions {
|
||||||
|
min-height: 148px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.creator-profile-summary {
|
||||||
|
position: relative;
|
||||||
|
padding-right: 220px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.creator-profile-code {
|
||||||
|
display: block;
|
||||||
|
margin-top: 8px;
|
||||||
|
color: #9a97a8;
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.creator-profile-stats {
|
||||||
|
display: flex;
|
||||||
|
gap: 28px;
|
||||||
|
margin-top: 22px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.creator-profile-stats div {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.creator-profile-stats b {
|
||||||
|
color: #302d44;
|
||||||
|
font-size: 22px;
|
||||||
|
font-weight: 700;
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.creator-profile-stats span,
|
||||||
|
.creator-profile-contact {
|
||||||
|
color: #858b95;
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.creator-profile-contact {
|
||||||
|
position: absolute;
|
||||||
|
right: 18px;
|
||||||
|
bottom: 18px;
|
||||||
|
max-width: 200px;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.creator-quick-actions {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: flex-start;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.creator-quick-title {
|
||||||
|
color: #302d44;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 650;
|
||||||
|
}
|
||||||
|
|
||||||
|
.creator-quick-actions p {
|
||||||
|
margin: 7px 0 14px;
|
||||||
|
color: #858b95;
|
||||||
|
font-size: 12px;
|
||||||
|
line-height: 1.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.creator-status-alert {
|
||||||
|
margin-bottom: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.creator-status-alert .creator-profile-alert {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.creator-tab-count {
|
||||||
|
display: inline-grid;
|
||||||
|
min-width: 20px;
|
||||||
|
height: 20px;
|
||||||
|
padding: 0 5px;
|
||||||
|
margin-left: 4px;
|
||||||
|
place-items: center;
|
||||||
|
border-radius: 10px;
|
||||||
|
background: #f2f3f6;
|
||||||
|
color: #727983;
|
||||||
|
font-size: 11px;
|
||||||
|
line-height: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.creator-action-chevron {
|
||||||
|
margin-left: 3px;
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
.creator-profile-name {
|
.creator-profile-name {
|
||||||
color: #302d44;
|
color: #302d44;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
@@ -307,10 +415,17 @@ html.dark .creator-profile-name,
|
|||||||
html.dark .creator-profile-meta b,
|
html.dark .creator-profile-meta b,
|
||||||
html.dark .creator-drama-title,
|
html.dark .creator-drama-title,
|
||||||
html.dark .creator-notice-title,
|
html.dark .creator-notice-title,
|
||||||
html.dark .creator-section-title {
|
html.dark .creator-section-title,
|
||||||
|
html.dark .creator-profile-stats b,
|
||||||
|
html.dark .creator-quick-title {
|
||||||
color: var(--el-text-color-primary);
|
color: var(--el-text-color-primary);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
html.dark .creator-tab-count {
|
||||||
|
background: var(--el-fill-color-light);
|
||||||
|
color: var(--el-text-color-secondary);
|
||||||
|
}
|
||||||
|
|
||||||
html.dark .creator-notice {
|
html.dark .creator-notice {
|
||||||
border-bottom-color: var(--el-border-color-light);
|
border-bottom-color: var(--el-border-color-light);
|
||||||
}
|
}
|
||||||
@@ -357,6 +472,20 @@ html.dark .creator-episode-cover {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@media (width <= 768px) {
|
@media (width <= 768px) {
|
||||||
|
.creator-overview {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
}
|
||||||
|
|
||||||
|
.creator-profile-summary {
|
||||||
|
padding-right: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.creator-profile-contact {
|
||||||
|
position: static;
|
||||||
|
max-width: none;
|
||||||
|
margin-top: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
.creator-desktop-only {
|
.creator-desktop-only {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
@@ -461,4 +590,3 @@ html.dark .creator-episode-cover {
|
|||||||
background: var(--el-fill-color-light);
|
background: var(--el-fill-color-light);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -162,9 +162,8 @@ const themeChange = () => {
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
background:
|
background:
|
||||||
radial-gradient(circle at 18% 18%, rgb(255 255 255 / 10%), transparent 28%),
|
linear-gradient(90deg, rgb(22 5 33 / 84%) 0%, rgb(22 5 33 / 42%) 46%, rgb(22 5 33 / 12%) 100%),
|
||||||
radial-gradient(circle at 82% 78%, rgb(196 50 42 / 34%), transparent 34%),
|
url('../../assets/imgs/ymb-login-cover.png') center / cover no-repeat;
|
||||||
linear-gradient(155deg, #17100f 0%, #241714 55%, #3b1d19 100%);
|
|
||||||
flex: 1.05;
|
flex: 1.05;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
@@ -193,10 +192,7 @@ const themeChange = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.hero-fruits {
|
.hero-fruits {
|
||||||
position: absolute;
|
display: none;
|
||||||
inset: 0;
|
|
||||||
z-index: 0;
|
|
||||||
pointer-events: none;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.fruit {
|
.fruit {
|
||||||
|
|||||||
@@ -60,21 +60,35 @@ function openEdit(row) {
|
|||||||
function openPublish() {
|
function openPublish() {
|
||||||
router.push('/creator-center/publish')
|
router.push('/creator-center/publish')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function resetDramas() {
|
||||||
|
dramas.keyword = ''
|
||||||
|
dramas.status = undefined
|
||||||
|
queryDramas()
|
||||||
|
}
|
||||||
|
|
||||||
|
async function handleRowAction(row, command) {
|
||||||
|
if (command === 'edit') return openEdit(row)
|
||||||
|
if (command === 'withdraw') return withdraw(row)
|
||||||
|
if (command === 'delete') return remove(row)
|
||||||
|
return submit(row, command)
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<CreatorCenterPage>
|
<CreatorCenterPage>
|
||||||
<PageHeading
|
<PageHeading
|
||||||
eyebrow="创作者中心"
|
eyebrow="创作者中心"
|
||||||
title="我的作品"
|
title="创作者工作台"
|
||||||
description="查看作品与审核进度,提交上线 / 下线申请。"
|
description="作品发布、审核和数据都在这里完成。"
|
||||||
>
|
>
|
||||||
<el-button v-if="canEdit && !impersonating" type="primary" @click="openPublish"
|
<el-button v-if="canEdit && !impersonating" type="primary" @click="openPublish"
|
||||||
>发布作品</el-button
|
>发布作品</el-button
|
||||||
>
|
>
|
||||||
</PageHeading>
|
</PageHeading>
|
||||||
|
|
||||||
<section v-loading="profileLoading" class="panel creator-profile">
|
<section v-loading="profileLoading" class="creator-overview">
|
||||||
|
<div class="panel creator-profile creator-profile-summary">
|
||||||
<div class="creator-profile-main">
|
<div class="creator-profile-main">
|
||||||
<span class="creator-profile-name">{{ profile?.name || '—' }}</span>
|
<span class="creator-profile-name">{{ profile?.name || '—' }}</span>
|
||||||
<el-tag
|
<el-tag
|
||||||
@@ -84,29 +98,47 @@ function openPublish() {
|
|||||||
>
|
>
|
||||||
{{ profile?.statusText || '—' }}
|
{{ profile?.statusText || '—' }}
|
||||||
</el-tag>
|
</el-tag>
|
||||||
<span class="console-muted">{{ profile?.code || '' }}</span>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="creator-profile-meta">
|
<span class="creator-profile-code">创作者编号 {{ profile?.code || '—' }}</span>
|
||||||
<span
|
<div class="creator-profile-stats">
|
||||||
>作品数 <b>{{ profile?.dramaTotal ?? 0 }}</b></span
|
<div
|
||||||
|
><b>{{ profile?.dramaTotal ?? 0 }}</b
|
||||||
|
><span>作品</span></div
|
||||||
>
|
>
|
||||||
<span
|
<div
|
||||||
>联系人 <b>{{ profile?.contactName || '—' }}</b></span
|
><b>{{ dramas.total }}</b
|
||||||
|
><span>当前列表</span></div
|
||||||
>
|
>
|
||||||
<span
|
<div
|
||||||
>联系邮箱 <b>{{ profile?.contactEmail || '—' }}</b></span
|
><b>{{ notices.rows.length }}</b
|
||||||
|
><span>通知</span></div
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="creator-profile-contact">
|
||||||
|
联系人:{{ profile?.contactName || '—' }} · {{ profile?.contactEmail || '—' }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="panel creator-quick-actions">
|
||||||
|
<div class="creator-quick-title">快速开始</div>
|
||||||
|
<p>一部作品只需经历:发布 → 编辑分集 → 提交审核。</p>
|
||||||
|
<el-button v-if="canEdit && !impersonating" type="primary" @click="openPublish">
|
||||||
|
发布第一部作品
|
||||||
|
</el-button>
|
||||||
|
<el-button v-else plain @click="activeTab = 'dramas'">查看我的作品</el-button>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section v-if="profile && profile.status === 'rejected'" class="creator-status-alert">
|
||||||
<el-alert
|
<el-alert
|
||||||
v-if="profile && profile.status === 'rejected'"
|
|
||||||
class="creator-profile-alert"
|
class="creator-profile-alert"
|
||||||
type="error"
|
type="error"
|
||||||
:closable="false"
|
:closable="false"
|
||||||
show-icon
|
show-icon
|
||||||
:title="`入驻审核未通过:${profile.auditNote || '未填写原因'}`"
|
:title="`入驻审核未通过:${profile.auditNote || '未填写原因'}`"
|
||||||
/>
|
/>
|
||||||
|
</section>
|
||||||
|
<section v-else-if="profile && profile.status !== 'approved'" class="creator-status-alert">
|
||||||
<el-alert
|
<el-alert
|
||||||
v-else-if="profile && profile.status !== 'approved'"
|
|
||||||
class="creator-profile-alert"
|
class="creator-profile-alert"
|
||||||
type="warning"
|
type="warning"
|
||||||
:closable="false"
|
:closable="false"
|
||||||
@@ -117,7 +149,10 @@ function openPublish() {
|
|||||||
|
|
||||||
<section class="panel creator-workspace-wrap">
|
<section class="panel creator-workspace-wrap">
|
||||||
<el-tabs v-model="activeTab" @tab-change="onTabChange">
|
<el-tabs v-model="activeTab" @tab-change="onTabChange">
|
||||||
<el-tab-pane label="我的作品" name="dramas">
|
<el-tab-pane name="dramas">
|
||||||
|
<template #label
|
||||||
|
>我的作品 <span class="creator-tab-count">{{ dramas.total }}</span></template
|
||||||
|
>
|
||||||
<div class="console-toolbar">
|
<div class="console-toolbar">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="dramas.keyword"
|
v-model="dramas.keyword"
|
||||||
@@ -144,6 +179,7 @@ function openPublish() {
|
|||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
<el-button type="primary" @click="queryDramas">查询</el-button>
|
<el-button type="primary" @click="queryDramas">查询</el-button>
|
||||||
|
<el-button text @click="resetDramas">重置</el-button>
|
||||||
<span class="console-count">共 {{ dramas.total }} 部作品</span>
|
<span class="console-count">共 {{ dramas.total }} 部作品</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -154,7 +190,7 @@ function openPublish() {
|
|||||||
row-key="id"
|
row-key="id"
|
||||||
border
|
border
|
||||||
class="drama-el-table"
|
class="drama-el-table"
|
||||||
empty-text="还没有作品,点右上角「发布作品」开始"
|
empty-text="还没有作品,点击右上角「发布作品」开始"
|
||||||
>
|
>
|
||||||
<el-table-column label="作品" min-width="220">
|
<el-table-column label="作品" min-width="220">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
@@ -185,8 +221,11 @@ function openPublish() {
|
|||||||
}}</el-tag>
|
}}</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="episodes" label="分集" width="80" />
|
<el-table-column label="数据" width="120">
|
||||||
<el-table-column prop="views" label="播放" width="100" />
|
<template #default="{ row }"
|
||||||
|
>{{ row.episodes || 0 }} 集 · {{ row.views || 0 }} 播放</template
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column label="审核进度" min-width="200">
|
<el-table-column label="审核进度" min-width="200">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<div v-if="row.submissionStatus" class="creator-progress">
|
<div v-if="row.submissionStatus" class="creator-progress">
|
||||||
@@ -209,59 +248,42 @@ function openPublish() {
|
|||||||
<el-table-column
|
<el-table-column
|
||||||
prop="updatedAt"
|
prop="updatedAt"
|
||||||
label="更新时间"
|
label="更新时间"
|
||||||
min-width="165"
|
min-width="150"
|
||||||
:formatter="dateCell"
|
:formatter="dateCell"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
/>
|
/>
|
||||||
<el-table-column label="操作" width="280">
|
<el-table-column label="操作" width="120" fixed="right">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<div class="table-actions">
|
|
||||||
<el-button
|
|
||||||
v-if="canEdit && !impersonating"
|
|
||||||
type="primary"
|
|
||||||
size="small"
|
|
||||||
@click="openEdit(row)"
|
|
||||||
>编辑</el-button
|
|
||||||
>
|
|
||||||
<el-dropdown
|
<el-dropdown
|
||||||
v-if="canEdit && !impersonating && submitOptions(row).length"
|
v-if="canEdit && !impersonating"
|
||||||
trigger="click"
|
trigger="click"
|
||||||
@command="(type) => submit(row, type)"
|
@command="(command) => handleRowAction(row, command)"
|
||||||
|
>
|
||||||
|
<el-button type="primary" plain size="small"
|
||||||
|
>操作 <span class="creator-action-chevron">⌄</span></el-button
|
||||||
>
|
>
|
||||||
<el-button size="small">提交审核</el-button>
|
|
||||||
<template #dropdown>
|
<template #dropdown>
|
||||||
<el-dropdown-menu>
|
<el-dropdown-menu>
|
||||||
|
<el-dropdown-item command="edit">编辑作品</el-dropdown-item>
|
||||||
<el-dropdown-item
|
<el-dropdown-item
|
||||||
v-for="type in submitOptions(row)"
|
v-for="type in submitOptions(row)"
|
||||||
:key="type"
|
:key="type"
|
||||||
:command="type"
|
:command="type"
|
||||||
|
>{{ submissionTypeText(type) }}</el-dropdown-item
|
||||||
>
|
>
|
||||||
{{ submissionTypeText(type) }}
|
<el-dropdown-item
|
||||||
</el-dropdown-item>
|
|
||||||
</el-dropdown-menu>
|
|
||||||
</template>
|
|
||||||
</el-dropdown>
|
|
||||||
<el-button
|
|
||||||
v-if="
|
v-if="
|
||||||
canEdit &&
|
|
||||||
!impersonating &&
|
|
||||||
row.submissionId &&
|
row.submissionId &&
|
||||||
['SUBMITTED', 'REVIEWING'].includes(row.submissionStatus)
|
['SUBMITTED', 'REVIEWING'].includes(row.submissionStatus)
|
||||||
"
|
"
|
||||||
type="danger"
|
command="withdraw"
|
||||||
size="small"
|
>撤回提交</el-dropdown-item
|
||||||
@click="withdraw(row)"
|
|
||||||
>撤回</el-button
|
|
||||||
>
|
>
|
||||||
<el-button
|
<el-dropdown-item command="delete" divided>删除作品</el-dropdown-item>
|
||||||
v-if="canEdit && !impersonating"
|
</el-dropdown-menu>
|
||||||
text
|
</template>
|
||||||
type="danger"
|
</el-dropdown>
|
||||||
size="small"
|
<span v-else class="console-muted">只读</span>
|
||||||
@click="remove(row)"
|
|
||||||
>删除</el-button
|
|
||||||
>
|
|
||||||
</div>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@@ -305,35 +327,34 @@ function openPublish() {
|
|||||||
</div>
|
</div>
|
||||||
<span v-else class="console-muted">尚未提交</span>
|
<span v-else class="console-muted">尚未提交</span>
|
||||||
<div v-if="canEdit && !impersonating" class="creator-drama-card-actions">
|
<div v-if="canEdit && !impersonating" class="creator-drama-card-actions">
|
||||||
<el-button size="small" type="primary" @click="openEdit(row)">编辑</el-button>
|
|
||||||
<el-dropdown
|
<el-dropdown
|
||||||
v-if="submitOptions(row).length"
|
|
||||||
trigger="click"
|
trigger="click"
|
||||||
@command="(type) => submit(row, type)"
|
@command="(command) => handleRowAction(row, command)"
|
||||||
|
>
|
||||||
|
<el-button size="small" type="primary" plain
|
||||||
|
>操作 <span class="creator-action-chevron">⌄</span></el-button
|
||||||
>
|
>
|
||||||
<el-button size="small">提交审核</el-button>
|
|
||||||
<template #dropdown>
|
<template #dropdown>
|
||||||
<el-dropdown-menu>
|
<el-dropdown-menu>
|
||||||
|
<el-dropdown-item command="edit">编辑作品</el-dropdown-item>
|
||||||
<el-dropdown-item
|
<el-dropdown-item
|
||||||
v-for="type in submitOptions(row)"
|
v-for="type in submitOptions(row)"
|
||||||
:key="type"
|
:key="type"
|
||||||
:command="type"
|
:command="type"
|
||||||
|
>{{ submissionTypeText(type) }}</el-dropdown-item
|
||||||
>
|
>
|
||||||
{{ submissionTypeText(type) }}
|
<el-dropdown-item
|
||||||
</el-dropdown-item>
|
v-if="
|
||||||
|
row.submissionId &&
|
||||||
|
['SUBMITTED', 'REVIEWING'].includes(row.submissionStatus)
|
||||||
|
"
|
||||||
|
command="withdraw"
|
||||||
|
>撤回提交</el-dropdown-item
|
||||||
|
>
|
||||||
|
<el-dropdown-item command="delete" divided>删除作品</el-dropdown-item>
|
||||||
</el-dropdown-menu>
|
</el-dropdown-menu>
|
||||||
</template>
|
</template>
|
||||||
</el-dropdown>
|
</el-dropdown>
|
||||||
<el-button
|
|
||||||
v-if="
|
|
||||||
row.submissionId && ['SUBMITTED', 'REVIEWING'].includes(row.submissionStatus)
|
|
||||||
"
|
|
||||||
type="danger"
|
|
||||||
size="small"
|
|
||||||
@click="withdraw(row)"
|
|
||||||
>撤回</el-button
|
|
||||||
>
|
|
||||||
<el-button text type="danger" size="small" @click="remove(row)">删除</el-button>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
@@ -353,7 +374,10 @@ function openPublish() {
|
|||||||
</div>
|
</div>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
|
|
||||||
<el-tab-pane label="通知" name="notices">
|
<el-tab-pane name="notices">
|
||||||
|
<template #label
|
||||||
|
>通知 <span class="creator-tab-count">{{ notices.rows.length }}</span></template
|
||||||
|
>
|
||||||
<div v-loading="notices.loading" class="creator-notice-list">
|
<div v-loading="notices.loading" class="creator-notice-list">
|
||||||
<el-empty v-if="!notices.rows.length" description="还没有审核结果通知" />
|
<el-empty v-if="!notices.rows.length" description="还没有审核结果通知" />
|
||||||
<div
|
<div
|
||||||
|
|||||||
Reference in new issue
Block a user