28
28
<div >
29
29
<el-form ref =" formRef" :model =" configForm" label-position =" top" :rules =" formRules" >
30
30
<el-form-item label =" 是否异步" prop =" async" >
31
- <el-switch
32
- v-model =" configForm.async"
33
- active-text =" 异步"
34
- inactive-text =" 不异步"
35
- />
31
+ <el-switch v-model =" configForm.async" active-text =" 异步" inactive-text =" 不异步" />
36
32
</el-form-item >
37
33
<el-form-item label =" 选择子流程" prop =" calledProcessDefinitionKey" >
38
34
<el-select
107
103
<Icon icon =" ep:plus" class =" mr-5px" />添加一行
108
104
</el-button >
109
105
</el-form-item >
106
+ <!-- TODO @lesan:async、source、target 几个字段,会告警 -->
110
107
<el-form-item
111
108
v-if =" configForm.async === false"
112
109
label =" 子→主变量传递"
163
160
<Icon icon =" ep:plus" class =" mr-5px" />添加一行
164
161
</el-button >
165
162
</el-form-item >
163
+ <!-- TODO @lesan:startUserType、startUserEmptyType 要不走写下枚举类? -->
166
164
<el-form-item label =" 子流程发起人" prop =" startUserType" >
167
165
<el-radio-group v-model =" configForm.startUserType" >
168
166
<el-radio :value =" 1" >同主流程发起人</el-radio >
@@ -213,6 +211,7 @@ import { getForm } from '@/api/bpm/form'
213
211
import { SimpleFlowNode , NodeType } from ' ../consts'
214
212
import { useWatchNode , useDrawer , useNodeName , useFormFieldsAndStartUser } from ' ../node'
215
213
import { parseFormFields } from ' @/components/FormCreate/src/utils'
214
+
216
215
defineOptions ({
217
216
name: ' ChildProcessNodeConfig'
218
217
})
@@ -264,6 +263,7 @@ const saveConfig = async () => {
264
263
if (! formRef ) return false
265
264
const valid = await formRef .value .validate ()
266
265
if (! valid ) return false
266
+ // TODO @lesan:这里的 option 黄色告警,也处理下哈
267
267
const childInfo = childProcessOptions .value .find (
268
268
(option ) => option .key === configForm .value .calledProcessDefinitionKey
269
269
)
@@ -286,11 +286,11 @@ const saveConfig = async () => {
286
286
return true
287
287
}
288
288
// 显示子流程节点配置, 由父组件传过来
289
+ // TODO @lesan:inVariables、outVariables 红色告警
289
290
const showChildProcessNodeConfig = (node : SimpleFlowNode ) => {
290
291
nodeName .value = node .name
291
292
if (node .childProcessSetting ) {
292
- configForm .value .async =
293
- node .childProcessSetting .async
293
+ configForm .value .async = node .childProcessSetting .async
294
294
configForm .value .calledProcessDefinitionKey =
295
295
node .childProcessSetting .calledProcessDefinitionKey
296
296
configForm .value .skipStartUserNode = node .childProcessSetting .skipStartUserNode
@@ -305,6 +305,7 @@ const showChildProcessNodeConfig = (node: SimpleFlowNode) => {
305
305
306
306
defineExpose ({ openDrawer , showChildProcessNodeConfig }) // 暴露方法给父组件
307
307
308
+ // TODO @lesan:这里的 arr 黄色告警,也处理下哈,可以用 cursor quick fix 哈
308
309
const addVariable = (arr ) => {
309
310
arr .push ({
310
311
source: ' ' ,
0 commit comments