Skip to content

Commit e3a7ec7

Browse files
committed
feat: 执行详情表单收集显示样式修改
1 parent 8664840 commit e3a7ec7

File tree

1 file changed

+23
-8
lines changed

1 file changed

+23
-8
lines changed

ui/src/components/ai-chat/ExecutionDetailDialog.vue

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,13 @@
231231
</h5>
232232
<div class="p-8-12 border-t-dashed lighter">
233233
<el-scrollbar height="150">
234-
<el-card shadow="never" style="--el-card-padding: 8px" v-for="(file_content, index) in item.content"
235-
:key="index" class="mb-8">
234+
<el-card
235+
shadow="never"
236+
style="--el-card-padding: 8px"
237+
v-for="(file_content, index) in item.content"
238+
:key="index"
239+
class="mb-8"
240+
>
236241
<MdPreview
237242
v-if="file_content"
238243
ref="editorRef"
@@ -336,13 +341,23 @@
336341
<!-- 表单收集 -->
337342
<template v-if="item.type === WorkflowType.FormNode">
338343
<div class="card-never border-r-4">
339-
<h5 class="p-8-12">参数输入</h5>
344+
<h5 class="p-8-12">
345+
参数输入<span style="color: #f54a45">{{
346+
item.is_submit ? '' : '(用户未提交)'
347+
}}</span>
348+
</h5>
340349

341350
<div class="p-8-12 border-t-dashed lighter">
342-
<div v-for="(f, i) in item.form_field_list" :key="i" class="mb-8">
343-
<span class="color-secondary">{{ f.label.label }}:</span>
344-
{{ (item.form_data?item.form_data:{})[f.field] }}
345-
</div>
351+
<DynamicsForm
352+
:disabled="true"
353+
label-position="top"
354+
require-asterisk-position="right"
355+
ref="dynamicsFormRef"
356+
:render_data="item.form_field_list"
357+
label-suffix=":"
358+
v-model="item.form_data"
359+
:model="item.form_data"
360+
></DynamicsForm>
346361
</div>
347362
</div>
348363
</template>
@@ -453,7 +468,7 @@ import { arraySort } from '@/utils/utils'
453468
import { iconComponent } from '@/workflow/icons/utils'
454469
import { WorkflowType } from '@/enums/workflow'
455470
import { getImgUrl } from '@/utils/utils'
456-
471+
import DynamicsForm from '@/components/dynamics-form/index.vue'
457472
const dialogVisible = ref(false)
458473
const detail = ref<any[]>([])
459474

0 commit comments

Comments
 (0)