feat: 同步动作与首帧编辑能力并统一工作区反馈
接入动作时间轴、密度审计、人工视线目标和后台首帧编辑;独立读取已保存提示词,并在首帧晋升前重新核对持久化质量状态。 统一 NMessage 结果反馈、局部 loading 和业务说明间距,保留真实长任务进度与部分失败语义。 验证:pnpm check(49 个文件、393 项测试)、pnpm build;当前环境无法完成 localhost 浏览器验收及真实后端联调。
This commit is contained in:
1 parent
83482a70c5
commit
7a60db3ced
76 files changed
+2485
-457
No files matched your search
@@ -1,10 +1,12 @@
|
||||
<script setup lang="ts">
|
||||
import ContextNotice from '../../../components/ui/ContextNotice.vue'
|
||||
|
||||
import IssueHint from '../../../components/ui/IssueHint.vue'
|
||||
import { productionMessage } from '../production-messages'
|
||||
import { computed } from 'vue'
|
||||
import { useQuery } from '../../../composables/useQuery'
|
||||
import { qualityApi } from '../quality-api'
|
||||
import { NAlert, NButton, NTag } from 'naive-ui'
|
||||
import { NButton, NTag } from 'naive-ui'
|
||||
import { AssetImage, AssetOpenLink, StatusBadge } from '../../../components/ui'
|
||||
import { formatDate } from '../../../lib/format'
|
||||
import { productionStatusLabel } from '../model'
|
||||
@@ -19,10 +21,12 @@ const props = defineProps<{
|
||||
shotNo: number
|
||||
stale: boolean
|
||||
blocked: boolean
|
||||
/** 只在当前源图编辑任务运行期间显示局部加载。 */
|
||||
editing?: boolean
|
||||
validationPassed: boolean | null
|
||||
confirming: boolean
|
||||
}>()
|
||||
const emit = defineEmits<{ quality: []; select: []; confirm: []; cancel: []; history: [] }>()
|
||||
const emit = defineEmits<{ quality: []; edit: []; select: []; confirm: []; cancel: []; history: [] }>()
|
||||
/** 质量状态以数据库为准;会话内检查仅在历史状态未知时兜底。 */
|
||||
const reviewKey = computed(() =>
|
||||
props.item.status === 'completed' ? JSON.stringify([props.shotId, props.item.id, props.reviewRevision ?? 0]) : ''
|
||||
@@ -96,6 +100,15 @@ const canSelect = computed(
|
||||
<NButton text size="small" @click="emit('quality')">
|
||||
{{ validationPassed === null ? '质量检查' : '重新检查' }}
|
||||
</NButton>
|
||||
<NButton
|
||||
v-if="item.source !== 'provider_variant'"
|
||||
text
|
||||
size="small"
|
||||
:disabled="blocked"
|
||||
:loading="editing"
|
||||
@click="emit('edit')"
|
||||
>编辑此首帧</NButton
|
||||
>
|
||||
<NButton v-if="item.status === 'completed'" text size="small" @click="emit('history')"
|
||||
>查看首帧校验历史</NButton
|
||||
>
|
||||
@@ -103,13 +116,13 @@ const canSelect = computed(
|
||||
设为主首帧
|
||||
</NButton>
|
||||
</div>
|
||||
<NAlert v-if="confirming" type="info" :show-icon="false" class="mt-2 text-xs">
|
||||
<p>该候选已通过本次质量检查。确认让后续视频使用此首帧?</p>
|
||||
<ContextNotice v-if="confirming" type="info" :show-icon="false" class="mt-2 text-xs">
|
||||
<p>该候选已满足当前质量要求。确认让后续视频使用此首帧?</p>
|
||||
<div class="mt-2 flex gap-3">
|
||||
<NButton type="primary" @click="emit('confirm')">确认切换</NButton>
|
||||
<NButton text size="small" @click="emit('cancel')">取消</NButton>
|
||||
</div>
|
||||
</NAlert>
|
||||
</ContextNotice>
|
||||
</div>
|
||||
</article>
|
||||
</template>
|
||||
Reference in new issue
Block a user