mirror of
https://gitee.com/myxzgzs/boyue-ui-admin-vue3
synced 2025-08-08 08:22:41 +08:00
Merge remote-tracking branch 'yudao/feature/bpm' into feature/bpm-子流程
This commit is contained in:
commit
dc577fc0f6
@ -756,6 +756,7 @@ export enum TriggerTypeEnum {
|
||||
* 发送 HTTP 请求触发器
|
||||
*/
|
||||
HTTP_REQUEST = 1,
|
||||
// TODO @jason:要不把 FORM_UPDATE、FORM_DELETE 调整从 10、11 这样?
|
||||
/**
|
||||
* 表单数据更新触发器
|
||||
*/
|
||||
@ -764,6 +765,7 @@ export enum TriggerTypeEnum {
|
||||
* 表单数据删除触发器
|
||||
*/
|
||||
FORM_DELETE = 3,
|
||||
// TODO @jason:1)HTTP_CALLBACK 这个枚举值?然后,相关注释,朝着“HTTP 回调”走;2)枚举值改成 2?
|
||||
/**
|
||||
* 发起异步 HTTP 请求
|
||||
*/
|
||||
@ -795,7 +797,7 @@ export type FormTriggerSetting = {
|
||||
// 条件组
|
||||
conditionGroups?: ConditionGroup
|
||||
// 更新表单字段配置
|
||||
updateFormFields?: Record<string, any>,
|
||||
updateFormFields?: Record<string, any>
|
||||
// 删除表单字段配置
|
||||
deleteFields?: string[]
|
||||
}
|
||||
|
@ -103,6 +103,7 @@
|
||||
<Icon icon="ep:plus" class="mr-5px" />添加一行
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
<!-- TODO @lesan:async、source、target 几个字段,会告警 -->
|
||||
<el-form-item
|
||||
v-if="configForm.async === false"
|
||||
label="子→主变量传递"
|
||||
@ -159,6 +160,7 @@
|
||||
<Icon icon="ep:plus" class="mr-5px" />添加一行
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
<!-- TODO @lesan:startUserType、startUserEmptyType 要不走写下枚举类? -->
|
||||
<el-form-item label="子流程发起人" prop="startUserType">
|
||||
<el-radio-group v-model="configForm.startUserType">
|
||||
<el-radio :value="1">同主流程发起人</el-radio>
|
||||
@ -332,6 +334,7 @@ const saveConfig = async () => {
|
||||
if (!formRef) return false
|
||||
const valid = await formRef.value.validate()
|
||||
if (!valid) return false
|
||||
// TODO @lesan:这里的 option 黄色告警,也处理下哈
|
||||
const childInfo = childProcessOptions.value.find(
|
||||
(option) => option.key === configForm.value.calledProcessDefinitionKey
|
||||
)
|
||||
@ -375,6 +378,7 @@ const saveConfig = async () => {
|
||||
return true
|
||||
}
|
||||
// 显示子流程节点配置, 由父组件传过来
|
||||
// TODO @lesan:inVariables、outVariables 红色告警
|
||||
const showChildProcessNodeConfig = (node: SimpleFlowNode) => {
|
||||
nodeName.value = node.name
|
||||
if (node.childProcessSetting) {
|
||||
@ -417,6 +421,7 @@ const showChildProcessNodeConfig = (node: SimpleFlowNode) => {
|
||||
|
||||
defineExpose({ openDrawer, showChildProcessNodeConfig }) // 暴露方法给父组件
|
||||
|
||||
// TODO @lesan:这里的 arr 黄色告警,也处理下哈,可以用 cursor quick fix 哈
|
||||
const addVariable = (arr) => {
|
||||
arr.push({
|
||||
source: '',
|
||||
|
@ -36,6 +36,7 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<!-- HTTP 请求触发器 -->
|
||||
<!-- TODO @jason:可以考虑用 [].include 更简洁 -->
|
||||
<div
|
||||
v-if="
|
||||
(configForm.type === TriggerTypeEnum.HTTP_REQUEST ||
|
||||
@ -408,7 +409,8 @@ const changeTriggerType = () => {
|
||||
|
||||
if (configForm.value.type === TriggerTypeEnum.ASYNC_HTTP_REQUEST) {
|
||||
configForm.value.httpRequestSetting =
|
||||
originalSetting?.type === TriggerTypeEnum.ASYNC_HTTP_REQUEST && originalSetting.httpRequestSetting
|
||||
originalSetting?.type === TriggerTypeEnum.ASYNC_HTTP_REQUEST &&
|
||||
originalSetting.httpRequestSetting
|
||||
? originalSetting.httpRequestSetting
|
||||
: {
|
||||
url: '',
|
||||
|
@ -66,6 +66,7 @@ import { SimpleFlowNode, NodeType, NODE_DEFAULT_TEXT } from '../consts'
|
||||
import NodeHandler from '../NodeHandler.vue'
|
||||
import { useNodeName2, useWatchNode, useTaskStatusClass } from '../node'
|
||||
import ChildProcessNodeConfig from '../nodes-config/ChildProcessNodeConfig.vue'
|
||||
|
||||
defineOptions({
|
||||
name: 'ChildProcessNode'
|
||||
})
|
||||
@ -86,6 +87,7 @@ const currentNode = useWatchNode(props)
|
||||
// 节点名称编辑
|
||||
const { showInput, blurEvent, clickTitle } = useNodeName2(currentNode, NodeType.CHILD_PROCESS_NODE)
|
||||
const nodeSetting = ref()
|
||||
|
||||
// 打开节点配置
|
||||
const openNodeConfig = () => {
|
||||
if (readonly) {
|
||||
|
@ -157,7 +157,7 @@ const initProcessInfo = async (row: any, formVariables?: any) => {
|
||||
}
|
||||
|
||||
/** 预测流程节点会因为输入的参数值而产生新的预测结果值,所以需重新预测一次 */
|
||||
// TODO @芋艿:这里我执行填写表单的时候不知道为啥一直报错,先注释了
|
||||
// TODO @芋艿:这里我执行填写表单的时候不知道为啥一直报错,先注释了 @lesan:可以和群里的小北说下
|
||||
// watch(
|
||||
// detailForm.value,
|
||||
// (newValue) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user