feat(short-drama-agent-front): 接入图片持续授权与视频费用审计
This commit is contained in:
1 parent
3915566994
commit
1e9ef33d1d
39 files changed
+3442
-51
No files matched your search
@@ -8,7 +8,7 @@ import ContextNotice from '../../../components/ui/ContextNotice.vue'
|
||||
import IssueHint from '../../../components/ui/IssueHint.vue'
|
||||
import { useActionMessage } from '../../../components/ui/useActionMessage'
|
||||
import ProviderInputInspector from './ProviderInputInspector.vue'
|
||||
import { NButton, NCheckbox, NCollapse, NCollapseItem, NSelect, NTag } from 'naive-ui'
|
||||
import { NButton, NCheckbox, NCollapse, NCollapseItem, NSelect, NTag, NTabs, NTabPane } from 'naive-ui'
|
||||
import { computed, onScopeDispose, ref, watch } from 'vue'
|
||||
import { ImagePlus, RefreshCw } from '@lucide/vue'
|
||||
import { AssetImage } from '../../../components/ui'
|
||||
@@ -43,9 +43,10 @@ import KeyframeCard from './KeyframeCard.vue'
|
||||
import VideoCard from './VideoCard.vue'
|
||||
import ProductionStageStatus from './ProductionStageStatus.vue'
|
||||
import QualityDialog from './QualityDialog.vue'
|
||||
import VideoAuditPanel from './VideoAuditPanel.vue'
|
||||
import VideoQualityDiagnostics from './VideoQualityDiagnostics.vue'
|
||||
import KeyframeValidationHistory from './KeyframeValidationHistory.vue'
|
||||
import { AppDialog } from '../../../components/ui'
|
||||
import { AppDialog, AppDrawer } from '../../../components/ui'
|
||||
import ModelCapabilities from './ModelCapabilities.vue'
|
||||
import type { QualityTarget } from '../quality.types'
|
||||
import KeyframeInputDetails from './KeyframeInputDetails.vue'
|
||||
@@ -253,6 +254,12 @@ const candidatesOpen = ref(false)
|
||||
const videoCandidatesOpen = ref(false)
|
||||
/** 仅点击视频卡片入口后显示已有质量记录。 */
|
||||
const videoHistoryOpen = ref(false)
|
||||
/** 费用审计和原质量共用视频详情,独立标签与固定底栏。 */
|
||||
const videoHistoryTab = ref('quality')
|
||||
/** 费用事务提交期间锁住关闭及切换。 */
|
||||
const videoAuditBusy = ref(false)
|
||||
/** 固定底栏调用当前原任务表单。 */
|
||||
const videoAuditForm = ref<InstanceType<typeof VideoAuditPanel> | null>(null)
|
||||
/** 当前查看记录的视频 ID,按资产隔离主视频和候选。 */
|
||||
const videoHistoryId = ref('')
|
||||
/** 历史弹窗按用户选择的候选独立判断过期,不套用主视频结论。 */
|
||||
@@ -331,9 +338,11 @@ function openQuality(kind: 'keyframe' | 'video', assetId: string, repair = false
|
||||
/**
|
||||
* 从主视频或候选卡片打开只读记录,关闭候选弹窗以避免弹窗叠加。
|
||||
* @param videoId 当前选中视频 ID
|
||||
* @param tab 本次打开的记录分类
|
||||
*/
|
||||
function openVideoHistory(videoId: string) {
|
||||
function openVideoHistory(videoId: string, tab: 'quality' | 'audit' = 'quality') {
|
||||
videoCandidatesOpen.value = false
|
||||
videoHistoryTab.value = tab
|
||||
videoHistoryId.value = videoId
|
||||
videoHistoryOpen.value = true
|
||||
}
|
||||
@@ -868,6 +877,7 @@ defineExpose({ inspectSpecs, inspecting })
|
||||
@quality="openQuality('video', currentVideo.id)"
|
||||
@repair="openQuality('video', currentVideo.id, true)"
|
||||
@history="openVideoHistory(currentVideo.id)"
|
||||
@audit="openVideoHistory(currentVideo.id, 'audit')"
|
||||
/>
|
||||
</div>
|
||||
<p v-else class="mt-4 text-xs text-muted">
|
||||
@@ -1156,6 +1166,7 @@ defineExpose({ inspectSpecs, inspecting })
|
||||
@quality="openQuality('video', item.id)"
|
||||
@repair="openQuality('video', item.id, true)"
|
||||
@history="openVideoHistory(item.id)"
|
||||
@audit="openVideoHistory(item.id, 'audit')"
|
||||
@select="confirmingVideo = item.id"
|
||||
@confirm="setPrimaryVideo"
|
||||
@cancel="confirmingVideo = ''"
|
||||
@@ -1164,16 +1175,44 @@ defineExpose({ inspectSpecs, inspecting })
|
||||
<p v-else class="text-xs text-muted">暂无其它视频候选。</p>
|
||||
</AppDialog>
|
||||
<!-- 以下是指定视频质量记录弹窗模块,打开后直接展示结果与修改建议 -->
|
||||
<AppDialog v-model:open="videoHistoryOpen" title="视频质量记录" description="免费查看视频检查记录。" wide>
|
||||
<VideoQualityDiagnostics
|
||||
v-if="videoHistoryOpen && videoHistoryId"
|
||||
:key="`${shot.shotId}:${videoHistoryId}`"
|
||||
:shot-id="shot.shotId"
|
||||
:video-id="videoHistoryId"
|
||||
:stale="videoHistoryStale"
|
||||
:stale-reason="videoHistoryId === currentVideo?.id ? videoStaleReason : videoHistoryAsset?.staleReason"
|
||||
/>
|
||||
</AppDialog>
|
||||
<AppDrawer v-model:open="videoHistoryOpen" title="视频记录" :busy="videoAuditBusy">
|
||||
<NTabs v-if="videoHistoryOpen && videoHistoryId" v-model:value="videoHistoryTab" type="line">
|
||||
<NTabPane name="quality" tab="视频质量" :disabled="videoAuditBusy" display-directive="show:lazy">
|
||||
<VideoQualityDiagnostics
|
||||
:key="`${shot.shotId}:${videoHistoryId}:${reviewRevision}`"
|
||||
:shot-id="shot.shotId"
|
||||
:video-id="videoHistoryId"
|
||||
:stale="videoHistoryStale"
|
||||
:stale-reason="
|
||||
videoHistoryId === currentVideo?.id ? videoStaleReason : videoHistoryAsset?.staleReason
|
||||
"
|
||||
/>
|
||||
</NTabPane>
|
||||
<NTabPane name="audit" tab="费用审计" :disabled="videoAuditBusy" display-directive="show:lazy">
|
||||
<VideoAuditPanel
|
||||
ref="videoAuditForm"
|
||||
:key="`${shot.shotId}:${videoHistoryId}`"
|
||||
:project-id="projectId"
|
||||
:shot-id="shot.shotId"
|
||||
:video-id="videoHistoryId"
|
||||
:disabled="disabled"
|
||||
@busy="videoAuditBusy = $event"
|
||||
@changed="refreshAfterReview"
|
||||
/>
|
||||
</NTabPane>
|
||||
</NTabs>
|
||||
<template #footer>
|
||||
<NButton :disabled="videoAuditBusy" @click="videoHistoryOpen = false">关闭</NButton>
|
||||
<NButton
|
||||
v-if="videoHistoryTab === 'audit' && videoAuditForm"
|
||||
type="primary"
|
||||
:disabled="!videoAuditForm.canSubmit"
|
||||
:loading="videoAuditBusy"
|
||||
@click="videoAuditForm.submit()"
|
||||
>{{ videoAuditForm.submitLabel }}</NButton
|
||||
>
|
||||
</template>
|
||||
</AppDrawer>
|
||||
<AppDialog v-model:open="historyOpen" title="首帧记录" :busy="historyAuthorizationPending" wide>
|
||||
<div v-if="historyOpen && historyKeyframeId" :key="historyKeyframeId" class="workspace-section-stack">
|
||||
<!-- 以下是按需读取的候选生成证据 -->
|
||||
|
||||
Reference in new issue
Block a user