Merge branch 'main' of https://github.com/maxkb-dev/maxkb
This commit is contained in:
commit
18b0e861a7
@ -4,7 +4,7 @@
|
|||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "run-p type-check build-only",
|
"build": "run-p --max_old_space_size=4096 type-check build-only",
|
||||||
"preview": "vite preview",
|
"preview": "vite preview",
|
||||||
"test:unit": "vitest",
|
"test:unit": "vitest",
|
||||||
"build-only": "vite build",
|
"build-only": "vite build",
|
||||||
|
|||||||
@ -231,8 +231,13 @@
|
|||||||
</h5>
|
</h5>
|
||||||
<div class="p-8-12 border-t-dashed lighter">
|
<div class="p-8-12 border-t-dashed lighter">
|
||||||
<el-scrollbar height="150">
|
<el-scrollbar height="150">
|
||||||
<el-card shadow="never" style="--el-card-padding: 8px" v-for="(file_content, index) in item.content"
|
<el-card
|
||||||
:key="index" class="mb-8">
|
shadow="never"
|
||||||
|
style="--el-card-padding: 8px"
|
||||||
|
v-for="(file_content, index) in item.content"
|
||||||
|
:key="index"
|
||||||
|
class="mb-8"
|
||||||
|
>
|
||||||
<MdPreview
|
<MdPreview
|
||||||
v-if="file_content"
|
v-if="file_content"
|
||||||
ref="editorRef"
|
ref="editorRef"
|
||||||
@ -336,13 +341,23 @@
|
|||||||
<!-- 表单收集 -->
|
<!-- 表单收集 -->
|
||||||
<template v-if="item.type === WorkflowType.FormNode">
|
<template v-if="item.type === WorkflowType.FormNode">
|
||||||
<div class="card-never border-r-4">
|
<div class="card-never border-r-4">
|
||||||
<h5 class="p-8-12">参数输入</h5>
|
<h5 class="p-8-12">
|
||||||
|
参数输入<span style="color: #f54a45">{{
|
||||||
|
item.is_submit ? '' : '(用户未提交)'
|
||||||
|
}}</span>
|
||||||
|
</h5>
|
||||||
|
|
||||||
<div class="p-8-12 border-t-dashed lighter">
|
<div class="p-8-12 border-t-dashed lighter">
|
||||||
<div v-for="(f, i) in item.form_field_list" :key="i" class="mb-8">
|
<DynamicsForm
|
||||||
<span class="color-secondary">{{ f.label.label }}:</span>
|
:disabled="true"
|
||||||
{{ (item.form_data?item.form_data:{})[f.field] }}
|
label-position="top"
|
||||||
</div>
|
require-asterisk-position="right"
|
||||||
|
ref="dynamicsFormRef"
|
||||||
|
:render_data="item.form_field_list"
|
||||||
|
label-suffix=":"
|
||||||
|
v-model="item.form_data"
|
||||||
|
:model="item.form_data"
|
||||||
|
></DynamicsForm>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -453,7 +468,7 @@ import { arraySort } from '@/utils/utils'
|
|||||||
import { iconComponent } from '@/workflow/icons/utils'
|
import { iconComponent } from '@/workflow/icons/utils'
|
||||||
import { WorkflowType } from '@/enums/workflow'
|
import { WorkflowType } from '@/enums/workflow'
|
||||||
import { getImgUrl } from '@/utils/utils'
|
import { getImgUrl } from '@/utils/utils'
|
||||||
|
import DynamicsForm from '@/components/dynamics-form/index.vue'
|
||||||
const dialogVisible = ref(false)
|
const dialogVisible = ref(false)
|
||||||
const detail = ref<any[]>([])
|
const detail = ref<any[]>([])
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user