【缺陷修复】1、条件配置的表单字段必须为必填 2、配置方式 bug
parent
8e4d91f43e
commit
9bdafb0f6f
|
@ -26,19 +26,13 @@
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<div>
|
<div>
|
||||||
<div class="mb-3 font-size-16px" v-if="currentNode.defaultFlow">未满足其它条件时,将进入此分支(该分支不可编辑和删除)</div>
|
<div class="mb-3 font-size-16px" v-if="currentNode.defaultFlow"
|
||||||
|
>未满足其它条件时,将进入此分支(该分支不可编辑和删除)</div
|
||||||
|
>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
<el-form
|
<el-form ref="formRef" :model="currentNode" :rules="formRules" label-position="top">
|
||||||
ref="formRef"
|
|
||||||
:model="currentNode"
|
|
||||||
:rules="formRules"
|
|
||||||
label-position="top"
|
|
||||||
>
|
|
||||||
<el-form-item label="配置方式" prop="conditionType">
|
<el-form-item label="配置方式" prop="conditionType">
|
||||||
<el-radio-group
|
<el-radio-group v-model="currentNode.conditionType" @change="changeConditionType">
|
||||||
v-model="currentNode.conditionType"
|
|
||||||
@change="changeConditionType"
|
|
||||||
>
|
|
||||||
<el-radio
|
<el-radio
|
||||||
v-for="(dict, index) in conditionConfigTypes"
|
v-for="(dict, index) in conditionConfigTypes"
|
||||||
:key="index"
|
:key="index"
|
||||||
|
@ -112,6 +106,7 @@
|
||||||
:key="index"
|
:key="index"
|
||||||
:label="item.title"
|
:label="item.title"
|
||||||
:value="item.field"
|
:value="item.field"
|
||||||
|
:disabled ="!item.required"
|
||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</div>
|
</div>
|
||||||
|
@ -169,6 +164,7 @@ import {
|
||||||
} from '../consts'
|
} from '../consts'
|
||||||
import { getDefaultConditionNodeName } from '../utils'
|
import { getDefaultConditionNodeName } from '../utils'
|
||||||
import { useFormFields } from '../node'
|
import { useFormFields } from '../node'
|
||||||
|
import { BpmModelFormType } from '@/utils/constants'
|
||||||
const message = useMessage() // 消息弹窗
|
const message = useMessage() // 消息弹窗
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: 'ConditionNodeConfig'
|
name: 'ConditionNodeConfig'
|
||||||
|
@ -177,8 +173,8 @@ const formType = inject<Ref<number>>('formType') // 表单类型
|
||||||
const conditionConfigTypes = computed(() => {
|
const conditionConfigTypes = computed(() => {
|
||||||
return CONDITION_CONFIG_TYPES.filter((item) => {
|
return CONDITION_CONFIG_TYPES.filter((item) => {
|
||||||
// 业务表单暂时去掉条件规则选项
|
// 业务表单暂时去掉条件规则选项
|
||||||
if (formType?.value !== 10) {
|
if (formType?.value === BpmModelFormType.CUSTOM && item.value === ConditionType.RULE) {
|
||||||
return item.value === ConditionType.RULE
|
return false
|
||||||
} else {
|
} else {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue