|
231 | 231 | </h5> |
232 | 232 | <div class="p-8-12 border-t-dashed lighter"> |
233 | 233 | <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 | + > |
236 | 241 | <MdPreview |
237 | 242 | v-if="file_content" |
238 | 243 | ref="editorRef" |
|
336 | 341 | <!-- 表单收集 --> |
337 | 342 | <template v-if="item.type === WorkflowType.FormNode"> |
338 | 343 | <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> |
340 | 349 |
|
341 | 350 | <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> |
346 | 361 | </div> |
347 | 362 | </div> |
348 | 363 | </template> |
@@ -453,7 +468,7 @@ import { arraySort } from '@/utils/utils' |
453 | 468 | import { iconComponent } from '@/workflow/icons/utils' |
454 | 469 | import { WorkflowType } from '@/enums/workflow' |
455 | 470 | import { getImgUrl } from '@/utils/utils' |
456 | | -
|
| 471 | +import DynamicsForm from '@/components/dynamics-form/index.vue' |
457 | 472 | const dialogVisible = ref(false) |
458 | 473 | const detail = ref<any[]>([]) |
459 | 474 |
|
|
0 commit comments