feat(short-drama-agent-front): 接入素材预览审核并完善创作流程
This commit is contained in:
1 parent
f8b0fbb8ca
commit
dc8bb17a23
66 files changed
+2864
-632
No files matched your search
@@ -1,4 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import ImageValidationPanel from '../../subject-images/components/ImageValidationPanel.vue'
|
||||
import type { IdentityValidationResult } from '../types'
|
||||
import { NButton, NTag } from 'naive-ui'
|
||||
import { LoaderCircle } from '@lucide/vue'
|
||||
import { computed, ref, watch } from 'vue'
|
||||
@@ -24,6 +26,8 @@ const props = defineProps<{
|
||||
pendingOperation?: IdentityImageOperation | null
|
||||
/** 重新生成暂不可用的具体恢复步骤。 */
|
||||
retryDisabledReason?: string
|
||||
/** 本主体最近一次显式图片审核结果。 */
|
||||
validationResult?: IdentityValidationResult | null
|
||||
}>()
|
||||
/** 图片操作交给父页面核验并执行,浏览候选不会修改母版。 */
|
||||
const emit = defineEmits<{
|
||||
@@ -133,6 +137,12 @@ defineExpose({ openCandidates, closeCandidates })
|
||||
@regenerate="regenerate"
|
||||
/>
|
||||
</div>
|
||||
<!-- 以下是主页面图片本次审核证据模块 -->
|
||||
<ImageValidationPanel
|
||||
v-if="validationResult && images.some(image => image.id === validationResult?.imageId) && !candidatesOpen"
|
||||
class="mt-5"
|
||||
:result="validationResult"
|
||||
/>
|
||||
<!-- 以下是与镜头生产一致的底部图片操作模块 -->
|
||||
<div class="identity-gallery-actions">
|
||||
<NButton v-if="managedCandidates.length" @click="openCandidates"
|
||||
@@ -147,6 +157,7 @@ defineExpose({ openCandidates, closeCandidates })
|
||||
title="身份候选管理"
|
||||
:description="`${subjectName} 的其他候选与辅助参考图;已在主页面展示的图片不重复列出。辅助参考图不能设为母版。`"
|
||||
:width="candidatesWidth"
|
||||
:busy="!!pendingOperation"
|
||||
>
|
||||
<div class="identity-candidate-grid">
|
||||
<IdentityImageCard
|
||||
@@ -165,6 +176,12 @@ defineExpose({ openCandidates, closeCandidates })
|
||||
@regenerate="regenerate"
|
||||
/>
|
||||
</div>
|
||||
<!-- 以下是候选管理中的审核证据模块 -->
|
||||
<ImageValidationPanel
|
||||
v-if="validationResult && managedCandidates.some(image => image.id === validationResult?.imageId)"
|
||||
class="mt-5"
|
||||
:result="validationResult"
|
||||
/>
|
||||
</AppDialog>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
Reference in new issue
Block a user