File tree Expand file tree Collapse file tree 2 files changed +48
-3
lines changed
src/components/SimpleProcessDesignerV2/src Expand file tree Collapse file tree 2 files changed +48
-3
lines changed Original file line number Diff line number Diff line change @@ -249,6 +249,16 @@ export type ListenerMap = {
249
249
type : number
250
250
value : string
251
251
}
252
+ export enum ListenerMapTypeEnum {
253
+ /**
254
+ * 固定值
255
+ */
256
+ FIXED_VALUE = 1 ,
257
+ /**
258
+ * 表单
259
+ */
260
+ FROM_FORM = 2
261
+ }
252
262
export const LISTENER_MAP_TYPES = [
253
263
{
254
264
value : 1 ,
Original file line number Diff line number Diff line change 481
481
</el-select >
482
482
</div >
483
483
<div class =" mr-2" >
484
- <el-input class =" w-160px" v-model =" item.value" />
484
+ <el-input
485
+ v-if =" item.type === ListenerMapTypeEnum.FIXED_VALUE"
486
+ class =" w-160px"
487
+ v-model =" item.value"
488
+ />
489
+ <el-select
490
+ v-if =" item.type === ListenerMapTypeEnum.FROM_FORM"
491
+ class =" w-160px!"
492
+ v-model =" item.value"
493
+ >
494
+ <el-option
495
+ v-for =" (field, fIdx) in formFieldOptions"
496
+ :key =" fIdx"
497
+ :label =" field.title"
498
+ :value =" field.field"
499
+ :disabled =" !field.required"
500
+ />
501
+ </el-select >
485
502
</div >
486
503
<div class =" mr-1 flex items-center" >
487
504
<Icon
524
541
</el-select >
525
542
</div >
526
543
<div class =" mr-2" >
527
- <el-input class =" w-160px" v-model =" item.value" />
544
+ <el-input
545
+ v-if =" item.type === ListenerMapTypeEnum.FIXED_VALUE"
546
+ class =" w-160px"
547
+ v-model =" item.value"
548
+ />
549
+ <el-select
550
+ v-if =" item.type === ListenerMapTypeEnum.FROM_FORM"
551
+ class =" w-160px!"
552
+ v-model =" item.value"
553
+ >
554
+ <el-option
555
+ v-for =" (field, fIdx) in formFieldOptions"
556
+ :key =" fIdx"
557
+ :label =" field.title"
558
+ :value =" field.field"
559
+ :disabled =" !field.required"
560
+ />
561
+ </el-select >
528
562
</div >
529
563
<div class =" mr-1 flex items-center" >
530
564
<Icon
@@ -588,7 +622,8 @@ import {
588
622
AssignEmptyHandlerType ,
589
623
FieldPermissionType ,
590
624
ProcessVariableEnum ,
591
- LISTENER_MAP_TYPES
625
+ LISTENER_MAP_TYPES ,
626
+ ListenerMapTypeEnum
592
627
} from ' ../consts'
593
628
594
629
import {
You can’t perform that action at this time.
0 commit comments