From 0e814840b18f025a59b92bd9953d201a1ace1ba0 Mon Sep 17 00:00:00 2001
From: Zhou Weidong <502333560@qq.com>
Date: Wed, 21 Oct 2026 15:59:08 +0800
Subject: [PATCH] =?UTF-8?q?feat(admin):=20=E5=89=A7=E9=9B=86=E5=88=97?=
=?UTF-8?q?=E8=A1=A8=E5=B1=95=E7=A4=BA=E5=88=86=E9=9B=86=E4=BA=92=E5=8A=A8?=
=?UTF-8?q?=E6=95=B0=E6=8D=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/admin/types.ts | 5 ++
.../contentManagement/DramaManagementView.vue | 17 +++----
.../EpisodeManagementView.vue | 48 ++++++++++++++++++-
3 files changed, 58 insertions(+), 12 deletions(-)
diff --git a/src/api/admin/types.ts b/src/api/admin/types.ts
index 632951a..8056e89 100644
--- a/src/api/admin/types.ts
+++ b/src/api/admin/types.ts
@@ -77,6 +77,10 @@ export interface EpisodeItem {
status: string
statusText: string
views?: number
+ likeCount?: number
+ commentCount?: number
+ favoriteCount?: number
+ heat?: number
sort?: number
}
@@ -89,6 +93,7 @@ export interface EpisodeSaveData {
videoUrl?: string
isFree?: boolean
unlockCoin?: number
+ likeCount?: number
status?: string
sort?: number
}
diff --git a/src/views/contentManagement/DramaManagementView.vue b/src/views/contentManagement/DramaManagementView.vue
index d914ec6..fd63ee5 100644
--- a/src/views/contentManagement/DramaManagementView.vue
+++ b/src/views/contentManagement/DramaManagementView.vue
@@ -43,6 +43,7 @@ const coverError = ref('')
const coverFileName = ref('')
const editingId = ref(null)
const editingCommentCount = ref(0)
+const editingLikeCount = ref(0)
const formRef = ref()
const form = reactive({
title: '',
@@ -52,7 +53,6 @@ const form = reactive({
freeEpisodes: 3,
unlockCoin: 0,
favoriteCount: 0,
- likeCount: 0,
heat: 0,
isHot: false,
cover: ''
@@ -162,7 +162,6 @@ function openCreate() {
freeEpisodes: 3,
unlockCoin: 0,
favoriteCount: 0,
- likeCount: 0,
heat: 0,
isHot: false,
cover: ''
@@ -170,6 +169,7 @@ function openCreate() {
coverFileName.value = ''
coverError.value = ''
editingCommentCount.value = 0
+ editingLikeCount.value = 0
dialogVisible.value = true
resetValidation()
}
@@ -184,7 +184,6 @@ function openEdit(row) {
freeEpisodes: row.freeEpisodes ?? 3,
unlockCoin: row.unlockCoin ?? 0,
favoriteCount: row.favoriteCount ?? 0,
- likeCount: row.likeCount ?? 0,
heat: row.views ?? 0,
isHot: !!row.isHot,
cover: row.cover || ''
@@ -192,6 +191,7 @@ function openEdit(row) {
coverFileName.value = row.cover ? coverBasename(row.cover) : ''
coverError.value = ''
editingCommentCount.value = row.commentCount ?? 0
+ editingLikeCount.value = row.likeCount ?? 0
dialogVisible.value = true
resetValidation()
}
@@ -606,13 +606,8 @@ onMounted(async () => {
/>
全剧分集汇总,只读 实时统计,不可编辑 全剧汇总,实时统计,只读
按集实时统计,不可编辑
+