feat: 更改HttpRequestParam相关命名
parent
e3db7d3014
commit
d2954776a5
|
@ -246,15 +246,15 @@ export type AssignEmptyHandler = {
|
||||||
export type ListenerHandler = {
|
export type ListenerHandler = {
|
||||||
enable: boolean
|
enable: boolean
|
||||||
path?: string
|
path?: string
|
||||||
header?: ListenerParam[]
|
header?: HttpRequestParam[]
|
||||||
body?: ListenerParam[]
|
body?: HttpRequestParam[]
|
||||||
}
|
}
|
||||||
export type ListenerParam = {
|
export type HttpRequestParam = {
|
||||||
key: string
|
key: string
|
||||||
type: number
|
type: number
|
||||||
value: string
|
value: string
|
||||||
}
|
}
|
||||||
export enum ListenerParamTypeEnum {
|
export enum BpmHttpRequestParamTypeEnum {
|
||||||
/**
|
/**
|
||||||
* 固定值
|
* 固定值
|
||||||
*/
|
*/
|
||||||
|
@ -264,7 +264,7 @@ export enum ListenerParamTypeEnum {
|
||||||
*/
|
*/
|
||||||
FROM_FORM = 2
|
FROM_FORM = 2
|
||||||
}
|
}
|
||||||
export const LISTENER_MAP_TYPES = [
|
export const BPM_HTTP_REQUEST_PARAM_TYPES = [
|
||||||
{
|
{
|
||||||
value: 1,
|
value: 1,
|
||||||
label: '固定值'
|
label: '固定值'
|
||||||
|
@ -710,7 +710,7 @@ export type RouterSetting = {
|
||||||
conditionGroups: ConditionGroup
|
conditionGroups: ConditionGroup
|
||||||
}
|
}
|
||||||
|
|
||||||
// ==================== 触发器相关定义 ====================
|
// ==================== 触发器相关定义 ====================
|
||||||
/**
|
/**
|
||||||
* 触发器节点结构定义
|
* 触发器节点结构定义
|
||||||
*/
|
*/
|
||||||
|
@ -736,9 +736,9 @@ export type HttpRequestTriggerSetting = {
|
||||||
// 请求 URL
|
// 请求 URL
|
||||||
url: string
|
url: string
|
||||||
// 请求头参数设置
|
// 请求头参数设置
|
||||||
header?: ListenerParam[] // TODO 需要重命名一下
|
header?: HttpRequestParam[]
|
||||||
// 请求体参数设置
|
// 请求体参数设置
|
||||||
body?: ListenerParam[]
|
body?: HttpRequestParam[]
|
||||||
}
|
}
|
||||||
|
|
||||||
export const TRIGGER_TYPES: DictDataVO[] = [
|
export const TRIGGER_TYPES: DictDataVO[] = [
|
||||||
|
|
|
@ -14,7 +14,7 @@ import {
|
||||||
AssignStartUserHandlerType,
|
AssignStartUserHandlerType,
|
||||||
AssignEmptyHandlerType,
|
AssignEmptyHandlerType,
|
||||||
FieldPermissionType,
|
FieldPermissionType,
|
||||||
ListenerParam
|
HttpRequestParam
|
||||||
} from './consts'
|
} from './consts'
|
||||||
import { parseFormFields } from '@/components/FormCreate/src/utils'
|
import { parseFormFields } from '@/components/FormCreate/src/utils'
|
||||||
|
|
||||||
|
@ -139,20 +139,20 @@ export type UserTaskFormType = {
|
||||||
taskCreateListenerEnable?: boolean
|
taskCreateListenerEnable?: boolean
|
||||||
taskCreateListenerPath?: string
|
taskCreateListenerPath?: string
|
||||||
taskCreateListener?: {
|
taskCreateListener?: {
|
||||||
header: ListenerParam[],
|
header: HttpRequestParam[],
|
||||||
body: ListenerParam[]
|
body: HttpRequestParam[]
|
||||||
}
|
}
|
||||||
taskAssignListenerEnable?: boolean
|
taskAssignListenerEnable?: boolean
|
||||||
taskAssignListenerPath?: string
|
taskAssignListenerPath?: string
|
||||||
taskAssignListener?: {
|
taskAssignListener?: {
|
||||||
header: ListenerParam[],
|
header: HttpRequestParam[],
|
||||||
body: ListenerParam[]
|
body: HttpRequestParam[]
|
||||||
}
|
}
|
||||||
taskCompleteListenerEnable?: boolean
|
taskCompleteListenerEnable?: boolean
|
||||||
taskCompleteListenerPath?: string
|
taskCompleteListenerPath?: string
|
||||||
taskCompleteListener?:{
|
taskCompleteListener?:{
|
||||||
header: ListenerParam[],
|
header: HttpRequestParam[],
|
||||||
body: ListenerParam[]
|
body: HttpRequestParam[]
|
||||||
}
|
}
|
||||||
signEnable: boolean
|
signEnable: boolean
|
||||||
reasonRequire: boolean
|
reasonRequire: boolean
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
<div class="mr-2">
|
<div class="mr-2">
|
||||||
<el-select class="w-100px!" v-model="item.type">
|
<el-select class="w-100px!" v-model="item.type">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="types in LISTENER_MAP_TYPES"
|
v-for="types in BPM_HTTP_REQUEST_PARAM_TYPES"
|
||||||
:key="types.value"
|
:key="types.value"
|
||||||
:label="types.label"
|
:label="types.label"
|
||||||
:value="types.value"
|
:value="types.value"
|
||||||
|
@ -33,7 +33,7 @@
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<el-input
|
<el-input
|
||||||
v-if="item.type === ListenerParamTypeEnum.FIXED_VALUE"
|
v-if="item.type === BpmHttpRequestParamTypeEnum.FIXED_VALUE"
|
||||||
class="w-160px"
|
class="w-160px"
|
||||||
v-model="item.value"
|
v-model="item.value"
|
||||||
/>
|
/>
|
||||||
|
@ -47,7 +47,7 @@
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<el-select
|
<el-select
|
||||||
v-if="item.type === ListenerParamTypeEnum.FROM_FORM"
|
v-if="item.type === BpmHttpRequestParamTypeEnum.FROM_FORM"
|
||||||
class="w-160px!"
|
class="w-160px!"
|
||||||
v-model="item.value"
|
v-model="item.value"
|
||||||
>
|
>
|
||||||
|
@ -86,7 +86,7 @@
|
||||||
<div class="mr-2">
|
<div class="mr-2">
|
||||||
<el-select class="w-100px!" v-model="item.type">
|
<el-select class="w-100px!" v-model="item.type">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="types in LISTENER_MAP_TYPES"
|
v-for="types in BPM_HTTP_REQUEST_PARAM_TYPES"
|
||||||
:key="types.value"
|
:key="types.value"
|
||||||
:label="types.label"
|
:label="types.label"
|
||||||
:value="types.value"
|
:value="types.value"
|
||||||
|
@ -103,7 +103,7 @@
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<el-input
|
<el-input
|
||||||
v-if="item.type === ListenerParamTypeEnum.FIXED_VALUE"
|
v-if="item.type === BpmHttpRequestParamTypeEnum.FIXED_VALUE"
|
||||||
class="w-160px"
|
class="w-160px"
|
||||||
v-model="item.value"
|
v-model="item.value"
|
||||||
/>
|
/>
|
||||||
|
@ -117,7 +117,7 @@
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<el-select
|
<el-select
|
||||||
v-if="item.type === ListenerParamTypeEnum.FROM_FORM"
|
v-if="item.type === BpmHttpRequestParamTypeEnum.FROM_FORM"
|
||||||
class="w-160px!"
|
class="w-160px!"
|
||||||
v-model="item.value"
|
v-model="item.value"
|
||||||
>
|
>
|
||||||
|
@ -141,7 +141,7 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ListenerParam, LISTENER_MAP_TYPES, ListenerParamTypeEnum } from '../../consts'
|
import { HttpRequestParam, BPM_HTTP_REQUEST_PARAM_TYPES, BpmHttpRequestParamTypeEnum } from '../../consts'
|
||||||
import { useFormFields } from '../../node'
|
import { useFormFields } from '../../node'
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: 'HttpRequestParamSetting'
|
name: 'HttpRequestParamSetting'
|
||||||
|
@ -149,12 +149,12 @@ defineOptions({
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
header: {
|
header: {
|
||||||
type: Array as () => ListenerParam[],
|
type: Array as () => HttpRequestParam[],
|
||||||
required: false,
|
required: false,
|
||||||
default: () => []
|
default: () => []
|
||||||
},
|
},
|
||||||
body: {
|
body: {
|
||||||
type: Array as () => ListenerParam[],
|
type: Array as () => HttpRequestParam[],
|
||||||
required: false,
|
required: false,
|
||||||
default: () => []
|
default: () => []
|
||||||
},
|
},
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
>
|
>
|
||||||
<el-input v-model="configForm[`task${listener.type}ListenerPath`]" />
|
<el-input v-model="configForm[`task${listener.type}ListenerPath`]" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<HttpRequestParamSetting
|
<HttpRequestParamSetting
|
||||||
:header="configForm[`task${listener.type}Listener`].header"
|
:header="configForm[`task${listener.type}Listener`].header"
|
||||||
:body="configForm[`task${listener.type}Listener`].body"
|
:body="configForm[`task${listener.type}Listener`].body"
|
||||||
:bind="`task${listener.type}Listener`"
|
:bind="`task${listener.type}Listener`"
|
||||||
|
@ -42,7 +42,6 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
// import { LISTENER_MAP_TYPES, ListenerParamTypeEnum } from '../../consts'
|
|
||||||
import HttpRequestParamSetting from './HttpRequestParamSetting.vue'
|
import HttpRequestParamSetting from './HttpRequestParamSetting.vue'
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
modelValue: {
|
modelValue: {
|
||||||
|
|
Loading…
Reference in New Issue