refactor: 质量检查操作按钮移入固定底部区域
This commit is contained in:
1 parent
c493d9338c
commit
75df688bd9
1 file changed
+12
-10
@@ -34,6 +34,7 @@ const { key, session, operation, blocked, run } = useQuality(
|
||||
() => open.value,
|
||||
() => emit('changed')
|
||||
)
|
||||
const formRef = ref<InstanceType<typeof AppForm> | null>(null)
|
||||
const action = ref<QualityAction>('validate')
|
||||
const attempts = ref<number | null>(1)
|
||||
const concurrency = ref<number | null>(1)
|
||||
@@ -136,6 +137,7 @@ const optionsExpanded = ref<string[]>(['options'])
|
||||
wide
|
||||
>
|
||||
<AppForm
|
||||
ref="formRef"
|
||||
:model="formModel"
|
||||
:rules="rules"
|
||||
:disabled="operation.pending"
|
||||
@@ -259,16 +261,7 @@ const optionsExpanded = ref<string[]>(['options'])
|
||||
<NCheckbox v-model:checked="acknowledged" :disabled="operation.pending" class="mt-4"
|
||||
>我已确认费用、处理范围,且同项目没有其他生成任务。</NCheckbox
|
||||
>
|
||||
<div class="dialog-footer">
|
||||
<NButton @click="open = false">关闭</NButton>
|
||||
<NButton
|
||||
type="primary"
|
||||
:loading="operation.pending"
|
||||
:disabled="blocked || !acknowledged || !repairAvailable"
|
||||
attr-type="submit"
|
||||
>{{ label }}</NButton
|
||||
>
|
||||
</div>
|
||||
|
||||
</AppForm>
|
||||
<p v-if="operation.pending" role="status" class="mt-3 text-xs text-muted">
|
||||
{{ operation.label }}进行中,请勿重复提交。
|
||||
@@ -289,6 +282,15 @@ const optionsExpanded = ref<string[]>(['options'])
|
||||
<p v-if="target?.kind !== 'batch'" class="mt-3 text-xs text-muted">
|
||||
校验回执保留在当前会话,可导出;素材列表不提供历史质量结果,刷新浏览器后需重新校验。
|
||||
</p>
|
||||
<template #footer>
|
||||
<NButton @click="open = false">关闭</NButton>
|
||||
<NButton
|
||||
type="primary"
|
||||
:loading="operation.pending"
|
||||
:disabled="blocked || !acknowledged || !repairAvailable"
|
||||
@click="formRef?.validate(submit)"
|
||||
>{{ label }}</NButton>
|
||||
</template>
|
||||
</AppDialog>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in new issue
Block a user