fix(short-drama-agent-front): 修复首帧当前质量展示
This commit is contained in:
1 parent
13efe5b786
commit
8674ba0c83
18 files changed
+679
-137
No files matched your search
@@ -14,6 +14,7 @@ import { AppDialog } from '../../../components/ui'
|
||||
import { useKeyframeVision } from '../keyframe-vision'
|
||||
import { allowedTextLines, validQualityInput } from '../quality'
|
||||
import type { QualityAction, QualityInput, QualityTarget } from '../quality.types'
|
||||
import { useEffectiveKeyframeQuality } from '../effective-keyframe-quality'
|
||||
import { useQuality } from '../useQuality'
|
||||
import QualityResult from './QualityResult.vue'
|
||||
import KeyframeValidationHistory from './KeyframeValidationHistory.vue'
|
||||
@@ -49,6 +50,7 @@ const { key, session, operation, execution, blocked, run } = useQuality(
|
||||
() => {
|
||||
emit('changed')
|
||||
void videoQuery.refresh()
|
||||
void currentQuality.refresh()
|
||||
},
|
||||
id => emit('started', id)
|
||||
)
|
||||
@@ -59,6 +61,13 @@ const visionKey = computed(() =>
|
||||
: ''
|
||||
)
|
||||
const vision = useKeyframeVision(visionKey)
|
||||
/** 当前候选质量独立回读,不以本会话或后台回执作为当前结论。 */
|
||||
const currentQuality = useEffectiveKeyframeQuality(visionKey, vision)
|
||||
/** 人工审核完成后同步当前质量和外层资产。 */
|
||||
function onReviewed() {
|
||||
void currentQuality.refresh()
|
||||
emit('changed')
|
||||
}
|
||||
/** 有原参数时继续;没有原参数时保留只读核查。 */
|
||||
const visionBlocked = computed(() => !!visionKey.value && vision.blocked.value)
|
||||
/** 质量弹窗重新读取所选候选自身的权限,不以会话历史代替后端事实。 */
|
||||
@@ -486,10 +495,15 @@ const optionsExpanded = ref<string[]>(['options'])
|
||||
:observation="vision"
|
||||
:disabled="disabled || pending"
|
||||
initial-open
|
||||
@reviewed="emit('changed')"
|
||||
@reviewed="onReviewed"
|
||||
@busy="authorizationPending = $event"
|
||||
/>
|
||||
<QualityResult v-if="session.receipt" :receipt="session.receipt" @locate="emit('locate', $event)" />
|
||||
<QualityResult
|
||||
v-if="session.receipt"
|
||||
:receipt="session.receipt"
|
||||
:current-status="currentQuality.status.value"
|
||||
@locate="emit('locate', $event)"
|
||||
/>
|
||||
<NCollapse v-else-if="saved" class="mt-4" :default-expanded-names="['saved']"
|
||||
><NCollapseItem name="saved" :title="`本会话最近校验 · ${saved.passed ? '通过' : '未通过'}`"
|
||||
><p>{{ saved.summary }}</p>
|
||||
|
||||
Reference in new issue
Block a user