feat: Production 页面展示串联后台任务状态
This commit is contained in:
1 parent
f8e08b8574
commit
6ae915e429
1 file changed
+11
@@ -5,12 +5,14 @@ import ConfirmAction from '../../workflows/ConfirmAction.vue'
|
||||
import { downloadText, formatDate } from '../../../lib/format'
|
||||
import { useAdvancedProduction } from '../useAdvancedProduction'
|
||||
import ProductionPlanPanel from './ProductionPlanPanel.vue'
|
||||
import WorkflowExecutionPanel from '../../workflows/WorkflowExecutionPanel.vue'
|
||||
|
||||
/** 高级入口默认展示真实流程边界,但不会在挂载时触发预检或生成。 */
|
||||
const {
|
||||
id,
|
||||
operation,
|
||||
session,
|
||||
execution,
|
||||
checking,
|
||||
error,
|
||||
check,
|
||||
@@ -82,6 +84,15 @@ function exportReceipt() {
|
||||
@confirm="start"
|
||||
/>
|
||||
</div>
|
||||
<WorkflowExecutionPanel
|
||||
v-if="execution.executionId.value"
|
||||
title="串联生产后台任务"
|
||||
:execution="execution.query.data.value"
|
||||
:loading="execution.query.loading.value"
|
||||
:error="execution.query.error.value"
|
||||
@refresh="execution.query.refresh"
|
||||
@dismiss="execution.dismiss"
|
||||
/>
|
||||
<NAlert v-if="error" type="error" class="mt-3" :show-icon="false">{{ error }}</NAlert>
|
||||
<NAlert
|
||||
v-if="operation.label === '高级串联生产' && operation.error"
|
||||
|
||||
Reference in new issue
Block a user