feat: Simple设计器-监听器-表单使用选择器
parent
7683aa2e7d
commit
65eee157b9
|
@ -249,6 +249,16 @@ export type ListenerMap = {
|
|||
type: number
|
||||
value: string
|
||||
}
|
||||
export enum ListenerMapTypeEnum {
|
||||
/**
|
||||
* 固定值
|
||||
*/
|
||||
FIXED_VALUE = 1,
|
||||
/**
|
||||
* 表单
|
||||
*/
|
||||
FROM_FORM = 2
|
||||
}
|
||||
export const LISTENER_MAP_TYPES = [
|
||||
{
|
||||
value: 1,
|
||||
|
|
|
@ -481,7 +481,24 @@
|
|||
</el-select>
|
||||
</div>
|
||||
<div class="mr-2">
|
||||
<el-input class="w-160px" v-model="item.value" />
|
||||
<el-input
|
||||
v-if="item.type === ListenerMapTypeEnum.FIXED_VALUE"
|
||||
class="w-160px"
|
||||
v-model="item.value"
|
||||
/>
|
||||
<el-select
|
||||
v-if="item.type === ListenerMapTypeEnum.FROM_FORM"
|
||||
class="w-160px!"
|
||||
v-model="item.value"
|
||||
>
|
||||
<el-option
|
||||
v-for="(field, fIdx) in formFieldOptions"
|
||||
:key="fIdx"
|
||||
:label="field.title"
|
||||
:value="field.field"
|
||||
:disabled="!field.required"
|
||||
/>
|
||||
</el-select>
|
||||
</div>
|
||||
<div class="mr-1 flex items-center">
|
||||
<Icon
|
||||
|
@ -524,7 +541,24 @@
|
|||
</el-select>
|
||||
</div>
|
||||
<div class="mr-2">
|
||||
<el-input class="w-160px" v-model="item.value" />
|
||||
<el-input
|
||||
v-if="item.type === ListenerMapTypeEnum.FIXED_VALUE"
|
||||
class="w-160px"
|
||||
v-model="item.value"
|
||||
/>
|
||||
<el-select
|
||||
v-if="item.type === ListenerMapTypeEnum.FROM_FORM"
|
||||
class="w-160px!"
|
||||
v-model="item.value"
|
||||
>
|
||||
<el-option
|
||||
v-for="(field, fIdx) in formFieldOptions"
|
||||
:key="fIdx"
|
||||
:label="field.title"
|
||||
:value="field.field"
|
||||
:disabled="!field.required"
|
||||
/>
|
||||
</el-select>
|
||||
</div>
|
||||
<div class="mr-1 flex items-center">
|
||||
<Icon
|
||||
|
@ -588,7 +622,8 @@ import {
|
|||
AssignEmptyHandlerType,
|
||||
FieldPermissionType,
|
||||
ProcessVariableEnum,
|
||||
LISTENER_MAP_TYPES
|
||||
LISTENER_MAP_TYPES,
|
||||
ListenerMapTypeEnum
|
||||
} from '../consts'
|
||||
|
||||
import {
|
||||
|
|
Loading…
Reference in New Issue