fix: 手部质量诊断改为显式点击查询避免设置弹窗产生额外请求
This commit is contained in:
1 parent
c17c7533b4
commit
5d9cbe1ba0
1 file changed
+3
-4
@@ -66,11 +66,10 @@ const summary = computed(() => snapshot.value?.taskSummary)
|
|||||||
const validation = computed(() => result.value?.storyboardShotValidation ?? snapshot.value?.storyboardShotValidation)
|
const validation = computed(() => result.value?.storyboardShotValidation ?? snapshot.value?.storyboardShotValidation)
|
||||||
const projectId = computed(() => project.value?.id ?? '')
|
const projectId = computed(() => project.value?.id ?? '')
|
||||||
const operation = computed(() => getOperation(projectId.value))
|
const operation = computed(() => getOperation(projectId.value))
|
||||||
watch([toolsOpen, projectId], ([open, id]) => {
|
watch([toolsOpen, projectId], () => {
|
||||||
++handDiagnosticsVersion
|
++handDiagnosticsVersion
|
||||||
handDiagnostics.value = null
|
handDiagnostics.value = null
|
||||||
handDiagnosticsBusy.value = false
|
handDiagnosticsBusy.value = false
|
||||||
if (open && id) void loadHandDiagnostics(id)
|
|
||||||
})
|
})
|
||||||
|
|
||||||
const backgroundExecution = useWorkflowExecution(projectId, 'breakdown')
|
const backgroundExecution = useWorkflowExecution(projectId, 'breakdown')
|
||||||
@@ -405,10 +404,10 @@ const rules = {
|
|||||||
@dismiss="backgroundExecution.dismiss"
|
@dismiss="backgroundExecution.dismiss"
|
||||||
/>
|
/>
|
||||||
<!-- 手部动作诊断按需读取,历史镜头缺少证据时不误报为安全。 -->
|
<!-- 手部动作诊断按需读取,历史镜头缺少证据时不误报为安全。 -->
|
||||||
<section v-if="handDiagnostics || handDiagnosticsBusy" class="workspace-panel">
|
<section class="workspace-panel">
|
||||||
<div class="flex flex-wrap items-center justify-between gap-3">
|
<div class="flex flex-wrap items-center justify-between gap-3">
|
||||||
<h3 class="text-sm font-medium">手部动作质量</h3>
|
<h3 class="text-sm font-medium">手部动作质量</h3>
|
||||||
<NButton text :loading="handDiagnosticsBusy" :disabled="!projectId" @click="loadHandDiagnostics(projectId)">刷新</NButton>
|
<NButton text :loading="handDiagnosticsBusy" :disabled="!projectId || handDiagnosticsBusy" @click="loadHandDiagnostics(projectId)">{{ handDiagnostics ? '刷新' : '查看诊断' }}</NButton>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="handDiagnostics" class="mt-3 flex flex-wrap gap-x-4 gap-y-2 text-xs text-muted">
|
<div v-if="handDiagnostics" class="mt-3 flex flex-wrap gap-x-4 gap-y-2 text-xs text-muted">
|
||||||
<span>镜头 {{ handDiagnostics.shotCount }}</span>
|
<span>镜头 {{ handDiagnostics.shotCount }}</span>
|
||||||
|
|||||||
Reference in new issue
Block a user