feat(short-drama-agent-front): 接入独立来源复核闭环
This commit is contained in:
1 parent
7e149a10c0
commit
13efe5b786
9 files changed
+1312
-1
No files matched your search
@@ -4,7 +4,8 @@ import ContextNotice from '../../../components/ui/ContextNotice.vue'
|
||||
import IssueHint from '../../../components/ui/IssueHint.vue'
|
||||
import { productionMessage } from '../production-messages'
|
||||
import { useKeyframeVision } from '../keyframe-vision'
|
||||
import { computed, watch } from 'vue'
|
||||
import { computed, ref, watch } from 'vue'
|
||||
import SourceReviewDrawer from './SourceReviewDrawer.vue'
|
||||
import { useQuery } from '../../../composables/useQuery'
|
||||
import { qualityApi } from '../quality-api'
|
||||
import { NButton, NTag } from 'naive-ui'
|
||||
@@ -31,6 +32,15 @@ const props = defineProps<{
|
||||
validationPassed: boolean | null
|
||||
confirming: boolean
|
||||
}>()
|
||||
/** 用户显式打开来源复核,不能自动调用模型。 */
|
||||
const sourceReviewOpen = ref(false)
|
||||
watch(
|
||||
() => JSON.stringify([props.projectId, props.shotId, props.item.id]),
|
||||
() => {
|
||||
sourceReviewOpen.value = false
|
||||
},
|
||||
{ flush: 'sync' }
|
||||
)
|
||||
/** 用户显式触发候选审核、确认或免费恢复。 */
|
||||
const emit = defineEmits<{
|
||||
recover: []
|
||||
@@ -181,6 +191,13 @@ const canSelect = computed(
|
||||
</p>
|
||||
<IssueHint v-if="item.error" :messages="[productionMessage(item.error)]" type="error" />
|
||||
<!-- 以下是来源记录与独立的免费恢复入口 -->
|
||||
<NButton
|
||||
v-if="item.isPrimary && item.status === 'completed' && projectId"
|
||||
class="workspace-action-button mt-2"
|
||||
size="small"
|
||||
@click="sourceReviewOpen = true"
|
||||
>按当前来源人工复核</NButton
|
||||
>
|
||||
<p v-if="item.inputSnapshotStatus" class="mt-2 text-xs text-muted">
|
||||
{{
|
||||
{ recorded: '已保存生成输入', 'not-recorded': '历史生成输入未记录', invalid: '生成输入证据已失效' }[
|
||||
@@ -244,4 +261,11 @@ const canSelect = computed(
|
||||
</ContextNotice>
|
||||
</div>
|
||||
</article>
|
||||
<SourceReviewDrawer
|
||||
v-if="projectId && sourceReviewOpen"
|
||||
v-model:open="sourceReviewOpen"
|
||||
:project-id="projectId"
|
||||
:shot-id="shotId"
|
||||
:keyframe-id="item.id"
|
||||
/>
|
||||
</template>
|
||||
Reference in new issue
Block a user