File tree Expand file tree Collapse file tree 1 file changed +9
-13
lines changed
src/components/SimpleProcessDesignerV2/src/nodes-config Expand file tree Collapse file tree 1 file changed +9
-13
lines changed Original file line number Diff line number Diff line change 26
26
</div >
27
27
</template >
28
28
<div >
29
- <div class =" mb-3 font-size-16px" v-if =" currentNode.defaultFlow" >未满足其它条件时,将进入此分支(该分支不可编辑和删除)</div >
29
+ <div class =" mb-3 font-size-16px" v-if =" currentNode.defaultFlow"
30
+ >未满足其它条件时,将进入此分支(该分支不可编辑和删除)</div
31
+ >
30
32
<div v-else >
31
- <el-form
32
- ref =" formRef"
33
- :model =" currentNode"
34
- :rules =" formRules"
35
- label-position =" top"
36
- >
33
+ <el-form ref =" formRef" :model =" currentNode" :rules =" formRules" label-position =" top" >
37
34
<el-form-item label =" 配置方式" prop =" conditionType" >
38
- <el-radio-group
39
- v-model =" currentNode.conditionType"
40
- @change =" changeConditionType"
41
- >
35
+ <el-radio-group v-model =" currentNode.conditionType" @change =" changeConditionType" >
42
36
<el-radio
43
37
v-for =" (dict, index) in conditionConfigTypes"
44
38
:key =" index"
112
106
:key =" index"
113
107
:label =" item.title"
114
108
:value =" item.field"
109
+ :disabled =" !item.required"
115
110
/>
116
111
</el-select >
117
112
</div >
@@ -169,6 +164,7 @@ import {
169
164
} from ' ../consts'
170
165
import { getDefaultConditionNodeName } from ' ../utils'
171
166
import { useFormFields } from ' ../node'
167
+ import { BpmModelFormType } from ' @/utils/constants'
172
168
const message = useMessage () // 消息弹窗
173
169
defineOptions ({
174
170
name: ' ConditionNodeConfig'
@@ -177,8 +173,8 @@ const formType = inject<Ref<number>>('formType') // 表单类型
177
173
const conditionConfigTypes = computed (() => {
178
174
return CONDITION_CONFIG_TYPES .filter ((item ) => {
179
175
// 业务表单暂时去掉条件规则选项
180
- if (formType ?.value !== 10 ) {
181
- return item . value === ConditionType . RULE
176
+ if (formType ?.value === BpmModelFormType . CUSTOM && item . value === ConditionType . RULE ) {
177
+ return false
182
178
} else {
183
179
return true
184
180
}
You can’t perform that action at this time.
0 commit comments