remove 删除无用代码
This commit is contained in:
parent
6fd3850f7c
commit
ae39338bf7
@ -9,11 +9,6 @@ export interface CategoryVO {
|
|||||||
*/
|
*/
|
||||||
categoryName: string;
|
categoryName: string;
|
||||||
|
|
||||||
/**
|
|
||||||
* 分类编码
|
|
||||||
*/
|
|
||||||
categoryCode: string;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 父级id
|
* 父级id
|
||||||
*/
|
*/
|
||||||
@ -38,11 +33,6 @@ export interface CategoryForm extends BaseEntity {
|
|||||||
*/
|
*/
|
||||||
categoryName?: string;
|
categoryName?: string;
|
||||||
|
|
||||||
/**
|
|
||||||
* 分类编码
|
|
||||||
*/
|
|
||||||
categoryCode?: string;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 父级id
|
* 父级id
|
||||||
*/
|
*/
|
||||||
@ -59,9 +49,4 @@ export interface CategoryQuery extends PageQuery {
|
|||||||
* 分类名称
|
* 分类名称
|
||||||
*/
|
*/
|
||||||
categoryName?: string;
|
categoryName?: string;
|
||||||
|
|
||||||
/**
|
|
||||||
* 分类编码
|
|
||||||
*/
|
|
||||||
categoryCode?: string;
|
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
import { DefinitionConfigVO } from '@/api/workflow/definitionConfig/types';
|
|
||||||
export interface FlowDefinitionQuery extends PageQuery {
|
export interface FlowDefinitionQuery extends PageQuery {
|
||||||
flowCode?: string;
|
flowCode?: string;
|
||||||
flowName?: string;
|
flowName?: string;
|
||||||
categoryCode?: string;
|
category: string;
|
||||||
isPublish?: number;
|
isPublish?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -15,7 +14,6 @@ export interface FlowDefinitionVo {
|
|||||||
activityStatus: boolean;
|
activityStatus: boolean;
|
||||||
createTime: Date;
|
createTime: Date;
|
||||||
updateTime: Date;
|
updateTime: Date;
|
||||||
wfDefinitionConfigVo: DefinitionConfigVO;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface FlowDefinitionForm {
|
export interface FlowDefinitionForm {
|
||||||
|
@ -1,53 +0,0 @@
|
|||||||
import request from '@/utils/request';
|
|
||||||
import { AxiosPromise } from 'axios';
|
|
||||||
import { DefinitionConfigVO, DefinitionConfigForm } from '@/api/workflow/definitionConfig/types';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 查询表单配置详细
|
|
||||||
* @param definitionId
|
|
||||||
*/
|
|
||||||
export const getByDefId = (definitionId: string | number): AxiosPromise<DefinitionConfigVO> => {
|
|
||||||
return request({
|
|
||||||
url: '/workflow/defConfig/getByDefId/' + definitionId,
|
|
||||||
method: 'get'
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 新增表单配置
|
|
||||||
* @param data
|
|
||||||
*/
|
|
||||||
export const saveOrUpdate = (data: DefinitionConfigForm) => {
|
|
||||||
return request({
|
|
||||||
url: '/workflow/defConfig/saveOrUpdate',
|
|
||||||
method: 'post',
|
|
||||||
data: data
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 删除表单配置
|
|
||||||
* @param id
|
|
||||||
*/
|
|
||||||
export const deldefinitionConfig = (id: string | number | Array<string | number>) => {
|
|
||||||
return request({
|
|
||||||
url: '/workflow/defConfig/' + id,
|
|
||||||
method: 'delete'
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 查询流程定义配置排除当前查询的流程定义
|
|
||||||
* @param tableName
|
|
||||||
* @param definitionId
|
|
||||||
*/
|
|
||||||
export const getByTableNameNotDefId = (tableName: string, definitionId: string | number) => {
|
|
||||||
return request({
|
|
||||||
url: `/workflow/defConfig/getByTableNameNotDefId`,
|
|
||||||
method: 'get',
|
|
||||||
params: {
|
|
||||||
tableName: tableName,
|
|
||||||
definitionId: definitionId
|
|
||||||
}
|
|
||||||
});
|
|
||||||
};
|
|
@ -1,102 +0,0 @@
|
|||||||
import { FormManageVO } from '@/api/workflow/formManage/types';
|
|
||||||
|
|
||||||
export interface DefinitionConfigVO {
|
|
||||||
/**
|
|
||||||
* 主键
|
|
||||||
*/
|
|
||||||
id: string | number;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 表名
|
|
||||||
*/
|
|
||||||
tableName?: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 流程定义ID
|
|
||||||
*/
|
|
||||||
definitionId: string | number;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 流程KEY
|
|
||||||
*/
|
|
||||||
processKey: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 流程版本
|
|
||||||
*/
|
|
||||||
version?: string | number;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 备注
|
|
||||||
*/
|
|
||||||
remark: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 表单管理
|
|
||||||
*/
|
|
||||||
wfFormManageVo: FormManageVO;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface DefinitionConfigForm extends BaseEntity {
|
|
||||||
/**
|
|
||||||
* 主键
|
|
||||||
*/
|
|
||||||
id?: string | number;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 表名
|
|
||||||
*/
|
|
||||||
tableName?: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 流程定义ID
|
|
||||||
*/
|
|
||||||
definitionId?: string | number;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 流程KEY
|
|
||||||
*/
|
|
||||||
processKey?: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 流程版本
|
|
||||||
*/
|
|
||||||
version?: string | number;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 备注
|
|
||||||
*/
|
|
||||||
remark?: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 表单管理
|
|
||||||
*/
|
|
||||||
wfFormManageVo?: FormManageVO;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface DefinitionConfigQuery extends PageQuery {
|
|
||||||
/**
|
|
||||||
* 表名
|
|
||||||
*/
|
|
||||||
tableName?: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 流程定义ID
|
|
||||||
*/
|
|
||||||
definitionId?: string | number;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 流程KEY
|
|
||||||
*/
|
|
||||||
processKey?: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 流程版本
|
|
||||||
*/
|
|
||||||
version?: string | number;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 表单管理
|
|
||||||
*/
|
|
||||||
wfFormManageVo: FormManageVO;
|
|
||||||
}
|
|
@ -1,76 +0,0 @@
|
|||||||
import request from '@/utils/request';
|
|
||||||
import { AxiosPromise } from 'axios';
|
|
||||||
import { FormManageVO, FormManageForm, FormManageQuery } from '@/api/workflow/formManage/types';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 查询表单管理列表
|
|
||||||
* @param query
|
|
||||||
* @returns {*}
|
|
||||||
*/
|
|
||||||
|
|
||||||
export const listFormManage = (query?: FormManageQuery): AxiosPromise<FormManageVO[]> => {
|
|
||||||
return request({
|
|
||||||
url: '/workflow/formManage/list',
|
|
||||||
method: 'get',
|
|
||||||
params: query
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 查询表单管理列表
|
|
||||||
* @param query
|
|
||||||
* @returns {*}
|
|
||||||
*/
|
|
||||||
|
|
||||||
export const selectListFormManage = (): AxiosPromise<FormManageVO[]> => {
|
|
||||||
return request({
|
|
||||||
url: '/workflow/formManage/list/selectList',
|
|
||||||
method: 'get'
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 查询表单管理详细
|
|
||||||
* @param id
|
|
||||||
*/
|
|
||||||
export const getFormManage = (id: string | number): AxiosPromise<FormManageVO> => {
|
|
||||||
return request({
|
|
||||||
url: '/workflow/formManage/' + id,
|
|
||||||
method: 'get'
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 新增表单管理
|
|
||||||
* @param data
|
|
||||||
*/
|
|
||||||
export const addFormManage = (data: FormManageForm) => {
|
|
||||||
return request({
|
|
||||||
url: '/workflow/formManage',
|
|
||||||
method: 'post',
|
|
||||||
data: data
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 修改表单管理
|
|
||||||
* @param data
|
|
||||||
*/
|
|
||||||
export const updateFormManage = (data: FormManageForm) => {
|
|
||||||
return request({
|
|
||||||
url: '/workflow/formManage',
|
|
||||||
method: 'put',
|
|
||||||
data: data
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 删除表单管理
|
|
||||||
* @param id
|
|
||||||
*/
|
|
||||||
export const delFormManage = (id: string | number | Array<string | number>) => {
|
|
||||||
return request({
|
|
||||||
url: '/workflow/formManage/' + id,
|
|
||||||
method: 'delete'
|
|
||||||
});
|
|
||||||
};
|
|
@ -1,69 +0,0 @@
|
|||||||
export interface FormManageVO {
|
|
||||||
/**
|
|
||||||
* 主键
|
|
||||||
*/
|
|
||||||
id: string | number;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 表单名称
|
|
||||||
*/
|
|
||||||
formName: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 表单类型
|
|
||||||
*/
|
|
||||||
formType: string;
|
|
||||||
/**
|
|
||||||
* 表单类型名称
|
|
||||||
*/
|
|
||||||
formTypeName: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 路由地址/表单ID
|
|
||||||
*/
|
|
||||||
router: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 备注
|
|
||||||
*/
|
|
||||||
remark: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface FormManageForm extends BaseEntity {
|
|
||||||
/**
|
|
||||||
* 主键
|
|
||||||
*/
|
|
||||||
id?: string | number;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 表单名称
|
|
||||||
*/
|
|
||||||
formName?: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 表单类型
|
|
||||||
*/
|
|
||||||
formType?: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 路由地址/表单ID
|
|
||||||
*/
|
|
||||||
router?: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 备注
|
|
||||||
*/
|
|
||||||
remark?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface FormManageQuery extends PageQuery {
|
|
||||||
/**
|
|
||||||
* 表单名称
|
|
||||||
*/
|
|
||||||
formName?: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 表单类型
|
|
||||||
*/
|
|
||||||
formType?: string;
|
|
||||||
}
|
|
@ -1,7 +1,7 @@
|
|||||||
import { FlowTaskVO } from '@/api/workflow/task/types';
|
import { FlowTaskVO } from '@/api/workflow/task/types';
|
||||||
|
|
||||||
export interface FlowInstanceQuery extends PageQuery {
|
export interface FlowInstanceQuery extends PageQuery {
|
||||||
categoryCode?: string;
|
category?: string;
|
||||||
nodeName?: string;
|
nodeName?: string;
|
||||||
flowCode?: string;
|
flowCode?: string;
|
||||||
flowName?: string;
|
flowName?: string;
|
||||||
|
@ -1,104 +0,0 @@
|
|||||||
import request from '@/utils/request';
|
|
||||||
import { AxiosPromise } from 'axios';
|
|
||||||
import { ModelForm, ModelQuery, ModelVO } from '@/api/workflow/model/types';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 查询模型列表
|
|
||||||
* @param query
|
|
||||||
* @returns {*}
|
|
||||||
*/
|
|
||||||
export const listModel = (query: ModelQuery): AxiosPromise<ModelVO[]> => {
|
|
||||||
return request({
|
|
||||||
url: '/workflow/model/list',
|
|
||||||
method: 'get',
|
|
||||||
params: query
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 查询模型信息
|
|
||||||
* @param query
|
|
||||||
* @returns {*}
|
|
||||||
*/
|
|
||||||
export const getInfo = (id: string): AxiosPromise<ModelForm> => {
|
|
||||||
return request({
|
|
||||||
url: '/workflow/model/getInfo/' + id,
|
|
||||||
method: 'get'
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 新增模型
|
|
||||||
* @param data
|
|
||||||
* @returns {*}
|
|
||||||
*/
|
|
||||||
export const addModel = (data: ModelForm): AxiosPromise<void> => {
|
|
||||||
return request({
|
|
||||||
url: '/workflow/model/save',
|
|
||||||
method: 'post',
|
|
||||||
data: data
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 修改模型信息
|
|
||||||
* @param data
|
|
||||||
* @returns {*}
|
|
||||||
*/
|
|
||||||
export function update(data: ModelForm): AxiosPromise<void> {
|
|
||||||
return request({
|
|
||||||
url: '/workflow/model/update',
|
|
||||||
method: 'put',
|
|
||||||
data: data
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 修改模型信息
|
|
||||||
* @param data
|
|
||||||
* @returns {*}
|
|
||||||
*/
|
|
||||||
export function editModelXml(data: ModelForm): AxiosPromise<void> {
|
|
||||||
return request({
|
|
||||||
url: '/workflow/model/editModelXml',
|
|
||||||
method: 'put',
|
|
||||||
data: data
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 按id删除模型
|
|
||||||
* @returns {*}
|
|
||||||
* @param id 模型id
|
|
||||||
*/
|
|
||||||
export function delModel(id: string | string[]): AxiosPromise<void> {
|
|
||||||
return request({
|
|
||||||
url: '/workflow/model/' + id,
|
|
||||||
method: 'delete'
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 模型部署
|
|
||||||
* @returns {*}
|
|
||||||
* @param id 模型id
|
|
||||||
*/
|
|
||||||
export const modelDeploy = (id: string): AxiosPromise<void> => {
|
|
||||||
return request({
|
|
||||||
url: `/workflow/model/modelDeploy/${id}`,
|
|
||||||
method: 'post'
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 复制模型
|
|
||||||
* @param data
|
|
||||||
* @returns {*}
|
|
||||||
*/
|
|
||||||
export const copyModel = (data: ModelForm): AxiosPromise<void> => {
|
|
||||||
return request({
|
|
||||||
url: '/workflow/model/copyModel',
|
|
||||||
method: 'post',
|
|
||||||
data: data
|
|
||||||
});
|
|
||||||
};
|
|
@ -1,66 +0,0 @@
|
|||||||
export interface ModelForm {
|
|
||||||
id: string;
|
|
||||||
name: string;
|
|
||||||
key: string;
|
|
||||||
categoryCode: string;
|
|
||||||
xml: string;
|
|
||||||
svg: string;
|
|
||||||
description: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface ModelQuery extends PageQuery {
|
|
||||||
name?: string;
|
|
||||||
key?: string;
|
|
||||||
categoryCode?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface OriginalPersistentState {
|
|
||||||
metaInfo: string;
|
|
||||||
editorSourceValueId: string;
|
|
||||||
createTime: string;
|
|
||||||
deploymentId?: string;
|
|
||||||
name: string;
|
|
||||||
tenantId: string;
|
|
||||||
category?: string;
|
|
||||||
version: number;
|
|
||||||
editorSourceExtraValueId?: string;
|
|
||||||
key: string;
|
|
||||||
lastUpdateTime: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface PersistentState {
|
|
||||||
metaInfo: string;
|
|
||||||
editorSourceValueId: string;
|
|
||||||
createTime: string;
|
|
||||||
deploymentId?: string;
|
|
||||||
name: string;
|
|
||||||
tenantId: string;
|
|
||||||
category?: string;
|
|
||||||
version: number;
|
|
||||||
editorSourceExtraValueId?: string;
|
|
||||||
key: string;
|
|
||||||
lastUpdateTime: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface ModelVO {
|
|
||||||
id: string;
|
|
||||||
revision: number;
|
|
||||||
originalPersistentState: OriginalPersistentState;
|
|
||||||
name: string;
|
|
||||||
key: string;
|
|
||||||
category?: string;
|
|
||||||
createTime: string;
|
|
||||||
lastUpdateTime: string;
|
|
||||||
version: number;
|
|
||||||
metaInfo: string;
|
|
||||||
deploymentId?: string;
|
|
||||||
editorSourceValueId: string;
|
|
||||||
editorSourceExtraValueId?: string;
|
|
||||||
tenantId: string;
|
|
||||||
persistentState: PersistentState;
|
|
||||||
revisionNext: number;
|
|
||||||
idPrefix: string;
|
|
||||||
inserted: boolean;
|
|
||||||
updated: boolean;
|
|
||||||
deleted: boolean;
|
|
||||||
}
|
|
@ -1,38 +0,0 @@
|
|||||||
import { FormManageVO } from '@/api/workflow/formManage/types';
|
|
||||||
|
|
||||||
export interface NodeConfigVO {
|
|
||||||
/**
|
|
||||||
* 主键
|
|
||||||
*/
|
|
||||||
id: string | number;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 表单id
|
|
||||||
*/
|
|
||||||
formId: string | number;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 表单类型
|
|
||||||
*/
|
|
||||||
formType: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 节点名称
|
|
||||||
*/
|
|
||||||
nodeName: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 节点id
|
|
||||||
*/
|
|
||||||
nodeId: string | number;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 流程定义id
|
|
||||||
*/
|
|
||||||
definitionId: string | number;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 表单管理
|
|
||||||
*/
|
|
||||||
wfFormManageVo: FormManageVO;
|
|
||||||
}
|
|
@ -144,17 +144,6 @@ export const terminationTask = (data: any) => {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* 查询流程变量
|
|
||||||
* @returns
|
|
||||||
*/
|
|
||||||
export const getInstanceVariable = (taskId: string) => {
|
|
||||||
return request({
|
|
||||||
url: `/workflow/task/getInstanceVariable/${taskId}`,
|
|
||||||
method: 'get'
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取可驳回得任务节点
|
* 获取可驳回得任务节点
|
||||||
* @returns
|
* @returns
|
||||||
@ -166,42 +155,6 @@ export const getBackTaskNode = (processInstanceId: string) => {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* 委托任务
|
|
||||||
* @returns
|
|
||||||
*/
|
|
||||||
export const delegateTask = (data: any) => {
|
|
||||||
return request({
|
|
||||||
url: `/workflow/task/delegateTask`,
|
|
||||||
method: 'post',
|
|
||||||
data: data
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 查询工作流任务用户选择加签人员
|
|
||||||
* @param taskId
|
|
||||||
* @returns {*}
|
|
||||||
*/
|
|
||||||
export const getTaskUserIdsByAddMultiInstance = (taskId: string) => {
|
|
||||||
return request({
|
|
||||||
url: '/workflow/task/getTaskUserIdsByAddMultiInstance/' + taskId,
|
|
||||||
method: 'get'
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 查询工作流选择减签人员
|
|
||||||
* @param taskId
|
|
||||||
* @returns {*}
|
|
||||||
*/
|
|
||||||
export const getListByDeleteMultiInstance = (taskId: string) => {
|
|
||||||
return request({
|
|
||||||
url: '/workflow/task/getListByDeleteMultiInstance/' + taskId,
|
|
||||||
method: 'get'
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 任务操作 操作类型,委派 delegateTask、转办 transferTask、加签 addSignature、减签 reductionSignature
|
* 任务操作 操作类型,委派 delegateTask、转办 transferTask、加签 addSignature、减签 reductionSignature
|
||||||
* @returns
|
* @returns
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
import { NodeConfigVO } from '@/api/workflow/nodeConfig/types';
|
|
||||||
import { DefinitionConfigVO } from '@/api/workflow/definitionConfig/types';
|
|
||||||
export interface TaskQuery extends PageQuery {
|
export interface TaskQuery extends PageQuery {
|
||||||
nodeName?: string;
|
nodeName?: string;
|
||||||
flowCode?: string;
|
flowCode?: string;
|
||||||
@ -29,8 +27,6 @@ export interface FlowTaskVO {
|
|||||||
nodeType: number;
|
nodeType: number;
|
||||||
nodeRatio: string | number;
|
nodeRatio: string | number;
|
||||||
version?: string;
|
version?: string;
|
||||||
wfNodeConfigVo?: NodeConfigVO;
|
|
||||||
wfDefinitionConfigVo?: DefinitionConfigVO;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface VariableVo {
|
export interface VariableVo {
|
||||||
|
@ -12,29 +12,5 @@ export default {
|
|||||||
taskId: routerJumpVo.taskId
|
taskId: routerJumpVo.taskId
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// if (routerJumpVo.wfNodeConfigVo && routerJumpVo.wfNodeConfigVo.formType === 'static' && routerJumpVo.wfNodeConfigVo.wfFormManageVo) {
|
|
||||||
// proxy.$tab.closePage(proxy.$route);
|
|
||||||
// proxy.$router.push({
|
|
||||||
// path: `${routerJumpVo.wfNodeConfigVo.wfFormManageVo.router}`,
|
|
||||||
// query: {
|
|
||||||
// id: routerJumpVo.businessKey,
|
|
||||||
// type: routerJumpVo.type,
|
|
||||||
// taskId: routerJumpVo.taskId
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
// } else if (routerJumpVo.wfNodeConfigVo && routerJumpVo.wfNodeConfigVo.formType === 'dynamic' && routerJumpVo.wfNodeConfigVo.wfFormManageVo) {
|
|
||||||
// proxy.$tab.closePage(proxy.$route);
|
|
||||||
// proxy.$router.push({
|
|
||||||
// path: `${routerJumpVo.wfNodeConfigVo.wfFormManageVo.router}`,
|
|
||||||
// query: {
|
|
||||||
// id: routerJumpVo.businessKey,
|
|
||||||
// type: routerJumpVo.type,
|
|
||||||
// taskId: routerJumpVo.taskId
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
// } else {
|
|
||||||
// proxy?.$modal.msgError('请到模型配置菜单!');
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -1,9 +1,4 @@
|
|||||||
import { NodeConfigVO } from '@/api/workflow/nodeConfig/types';
|
|
||||||
import { DefinitionConfigVO } from '@/api/workflow/definitionConfig/types';
|
|
||||||
|
|
||||||
export interface RouterJumpVo {
|
export interface RouterJumpVo {
|
||||||
wfNodeConfigVo: NodeConfigVO;
|
|
||||||
wfDefinitionConfigVo: DefinitionConfigVO;
|
|
||||||
businessKey: string;
|
businessKey: string;
|
||||||
taskId: string | number;
|
taskId: string | number;
|
||||||
type: string;
|
type: string;
|
||||||
@ -11,6 +6,6 @@ export interface RouterJumpVo {
|
|||||||
|
|
||||||
export interface StartProcessBo {
|
export interface StartProcessBo {
|
||||||
businessKey: string | number;
|
businessKey: string | number;
|
||||||
tableName: string;
|
flowCode: string;
|
||||||
variables: any;
|
variables: any;
|
||||||
}
|
}
|
||||||
|
@ -6,9 +6,6 @@
|
|||||||
<el-form-item label="分类名称" prop="categoryName">
|
<el-form-item label="分类名称" prop="categoryName">
|
||||||
<el-input v-model="queryParams.categoryName" placeholder="请输入分类名称" clearable @keyup.enter="handleQuery" />
|
<el-input v-model="queryParams.categoryName" placeholder="请输入分类名称" clearable @keyup.enter="handleQuery" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="分类编码" prop="categoryCode">
|
|
||||||
<el-input v-model="queryParams.categoryCode" placeholder="请输入分类编码" clearable @keyup.enter="handleQuery" />
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
|
<el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
|
||||||
<el-button icon="Refresh" @click="resetQuery">重置</el-button>
|
<el-button icon="Refresh" @click="resetQuery">重置</el-button>
|
||||||
@ -38,7 +35,6 @@
|
|||||||
:tree-props="{ children: 'children', hasChildren: 'hasChildren' }"
|
:tree-props="{ children: 'children', hasChildren: 'hasChildren' }"
|
||||||
>
|
>
|
||||||
<el-table-column label="分类名称" prop="categoryName" />
|
<el-table-column label="分类名称" prop="categoryName" />
|
||||||
<el-table-column label="分类编码" align="center" prop="categoryCode" />
|
|
||||||
<el-table-column label="排序" align="center" prop="sortNum" />
|
<el-table-column label="排序" align="center" prop="sortNum" />
|
||||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
@ -71,9 +67,6 @@
|
|||||||
<el-form-item label="分类名称" prop="categoryName">
|
<el-form-item label="分类名称" prop="categoryName">
|
||||||
<el-input v-model="form.categoryName" placeholder="请输入分类名称" />
|
<el-input v-model="form.categoryName" placeholder="请输入分类名称" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="分类编码" prop="categoryCode">
|
|
||||||
<el-input v-model="form.categoryCode" placeholder="请输入分类编码" />
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="排序" prop="sortNum">
|
<el-form-item label="排序" prop="sortNum">
|
||||||
<el-input-number v-model="form.sortNum" placeholder="请输入排序" controls-position="right" :min="0" />
|
<el-input-number v-model="form.sortNum" placeholder="请输入排序" controls-position="right" :min="0" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@ -119,7 +112,6 @@ const dialog = reactive<DialogOption>({
|
|||||||
const initFormData: CategoryForm = {
|
const initFormData: CategoryForm = {
|
||||||
id: undefined,
|
id: undefined,
|
||||||
categoryName: undefined,
|
categoryName: undefined,
|
||||||
categoryCode: undefined,
|
|
||||||
parentId: undefined,
|
parentId: undefined,
|
||||||
sortNum: 0
|
sortNum: 0
|
||||||
};
|
};
|
||||||
@ -129,13 +121,11 @@ const data = reactive<PageData<CategoryForm, CategoryQuery>>({
|
|||||||
queryParams: {
|
queryParams: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
categoryName: undefined,
|
categoryName: undefined
|
||||||
categoryCode: undefined
|
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
id: [{ required: true, message: '主键不能为空', trigger: 'blur' }],
|
id: [{ required: true, message: '主键不能为空', trigger: 'blur' }],
|
||||||
categoryName: [{ required: true, message: '分类名称不能为空', trigger: 'blur' }],
|
categoryName: [{ required: true, message: '分类名称不能为空', trigger: 'blur' }],
|
||||||
categoryCode: [{ required: true, message: '分类编码不能为空', trigger: 'blur' }],
|
|
||||||
parentId: [{ required: true, message: '父级id不能为空', trigger: 'blur' }]
|
parentId: [{ required: true, message: '父级id不能为空', trigger: 'blur' }]
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -89,7 +89,7 @@ const leaveFormRef = ref<ElFormInstance>();
|
|||||||
|
|
||||||
const submitFormData = ref<StartProcessBo>({
|
const submitFormData = ref<StartProcessBo>({
|
||||||
businessKey: '',
|
businessKey: '',
|
||||||
tableName: '',
|
flowCode: '',
|
||||||
variables: {}
|
variables: {}
|
||||||
});
|
});
|
||||||
const taskVariables = ref<Record<string, any>>({});
|
const taskVariables = ref<Record<string, any>>({});
|
||||||
@ -186,7 +186,7 @@ const submitForm = (status: string) => {
|
|||||||
//提交申请
|
//提交申请
|
||||||
const handleStartWorkFlow = async (data: LeaveVO) => {
|
const handleStartWorkFlow = async (data: LeaveVO) => {
|
||||||
try {
|
try {
|
||||||
submitFormData.value.tableName = 'test_leave';
|
submitFormData.value.flowCode = 'leaveFlow-serial1';
|
||||||
submitFormData.value.businessKey = data.id;
|
submitFormData.value.businessKey = data.id;
|
||||||
//流程变量
|
//流程变量
|
||||||
taskVariables.value = {
|
taskVariables.value = {
|
||||||
|
@ -75,14 +75,7 @@
|
|||||||
<el-tag v-else type="danger">失效</el-tag>
|
<el-tag v-else type="danger">失效</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column align="center" label="表名/表单KEY" width="120" :show-overflow-tooltip="true">
|
<el-table-column fixed="right" label="操作" align="center" width="245" class-name="small-padding fixed-width">
|
||||||
<template #default="scope">
|
|
||||||
<span v-if="scope.row.wfDefinitionConfigVo">
|
|
||||||
{{ scope.row.wfDefinitionConfigVo.tableName }}
|
|
||||||
</span>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column fixed="right" label="操作" align="center" width="320" class-name="small-padding fixed-width">
|
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-row :gutter="10" class="mb8">
|
<el-row :gutter="10" class="mb8">
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
@ -112,9 +105,6 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row :gutter="10" class="mb8">
|
<el-row :gutter="10" class="mb8">
|
||||||
<el-col :span="1.5">
|
|
||||||
<el-button link type="primary" size="small" icon="Tickets" @click="handleDefinitionConfigOpen(scope.row)">绑定业务</el-button>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button link type="primary" v-if="scope.row.isPublish === 0" icon="Pointer" size="small" @click="design(scope.row)"
|
<el-button link type="primary" v-if="scope.row.isPublish === 0" icon="Pointer" size="small" @click="design(scope.row)"
|
||||||
>流程设计</el-button
|
>流程设计</el-button
|
||||||
@ -196,7 +186,7 @@
|
|||||||
<el-tag v-else type="danger">失效</el-tag>
|
<el-tag v-else type="danger">失效</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" align="center" width="250" class-name="small-padding fixed-width">
|
<el-table-column label="操作" align="center" width="245" class-name="small-padding fixed-width">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-row :gutter="10" class="mb8">
|
<el-row :gutter="10" class="mb8">
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
@ -210,12 +200,12 @@
|
|||||||
{{ scope.row.activityStatus ? '挂起流程' : '激活流程' }}
|
{{ scope.row.activityStatus ? '挂起流程' : '激活流程' }}
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="1.5">
|
|
||||||
<el-button type="text" size="small" icon="Tickets" @click="handleDefinitionConfigOpen(scope.row)">绑定业务</el-button>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button link type="primary" icon="Delete" size="small" @click="handleDelete(scope.row)">删除流程</el-button>
|
<el-button link type="primary" icon="Delete" size="small" @click="handleDelete(scope.row)">删除流程</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
<el-col v-if="scope.row.isPublish === 0" :span="1.5">
|
||||||
|
<el-button link type="primary" icon="Pointer" size="small" @click="design(scope.row)">流程设计</el-button>
|
||||||
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row :gutter="10" class="mb8">
|
<el-row :gutter="10" class="mb8">
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
@ -224,43 +214,12 @@
|
|||||||
<el-col v-if="scope.row.isPublish !== 1" :span="1.5">
|
<el-col v-if="scope.row.isPublish !== 1" :span="1.5">
|
||||||
<el-button link type="primary" size="small" icon="CircleCheck" @click="handlePublish(scope.row)">发布流程</el-button>
|
<el-button link type="primary" size="small" icon="CircleCheck" @click="handlePublish(scope.row)">发布流程</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col v-if="scope.row.isPublish === 0" :span="1.5">
|
|
||||||
<el-button link type="primary" icon="Pointer" size="small" @click="design(scope.row)">流程设计</el-button>
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
</el-row>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
<!-- 表单配置 -->
|
|
||||||
<el-dialog
|
|
||||||
v-model="definitionConfigDialog.visible"
|
|
||||||
:title="definitionConfigDialog.title"
|
|
||||||
width="650px"
|
|
||||||
append-to-body
|
|
||||||
:close-on-click-modal="false"
|
|
||||||
>
|
|
||||||
<el-form :model="definitionConfigForm" label-width="auto">
|
|
||||||
<el-form-item label="流程KEY">
|
|
||||||
<el-input v-model="definitionConfigForm.processKey" disabled />
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="表名" prop="formId">
|
|
||||||
<el-input v-model="definitionConfigForm.tableName" placeholder="示例:test_leave" />
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="备注">
|
|
||||||
<el-input v-model="definitionConfigForm.remark" type="textarea" resize="none" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-form>
|
|
||||||
|
|
||||||
<template #footer>
|
|
||||||
<div class="dialog-footer">
|
|
||||||
<el-button @click="definitionConfigDialog.visible = false">取消</el-button>
|
|
||||||
<el-button type="primary" @click="handlerSaveForm">保存</el-button>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
</el-dialog>
|
|
||||||
|
|
||||||
<!-- 新增流程定义 -->
|
<!-- 新增流程定义 -->
|
||||||
<el-dialog v-model="modelDialog.visible" :title="modelDialog.title" width="650px" append-to-body :close-on-click-modal="false">
|
<el-dialog v-model="modelDialog.visible" :title="modelDialog.title" width="650px" append-to-body :close-on-click-modal="false">
|
||||||
<template #footer>
|
<template #footer>
|
||||||
@ -294,22 +253,19 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup name="processDefinition">
|
<script lang="ts" setup name="processDefinition">
|
||||||
import { listDefinition, definitionXml, deleteDefinition, active, importDef, getHisListByKey, publish, add, copy } from '@/api/workflow/definition';
|
import { listDefinition, deleteDefinition, active, importDef, getHisListByKey, publish, add, copy } from '@/api/workflow/definition';
|
||||||
import { getByTableNameNotDefId, getByDefId, saveOrUpdate } from '@/api/workflow/definitionConfig';
|
|
||||||
import { listCategory } from '@/api/workflow/category';
|
import { listCategory } from '@/api/workflow/category';
|
||||||
import { CategoryVO } from '@/api/workflow/category/types';
|
import { CategoryVO } from '@/api/workflow/category/types';
|
||||||
import { FlowDefinitionQuery, FlowDefinitionVo, FlowDefinitionForm } from '@/api/workflow/definition/types';
|
import { FlowDefinitionQuery, FlowDefinitionVo, FlowDefinitionForm } from '@/api/workflow/definition/types';
|
||||||
import { DefinitionConfigForm } from '@/api/workflow/definitionConfig/types';
|
|
||||||
import { UploadRequestOptions } from 'element-plus';
|
import { UploadRequestOptions } from 'element-plus';
|
||||||
|
|
||||||
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
||||||
|
|
||||||
const queryFormRef = ref<ElFormInstance>();
|
const queryFormRef = ref<ElFormInstance>();
|
||||||
const categoryTreeRef = ref<ElTreeInstance>();
|
const categoryTreeRef = ref<ElTreeInstance>();
|
||||||
const definitionConfigForm = ref<DefinitionConfigForm>({});
|
|
||||||
|
|
||||||
type CategoryOption = {
|
type CategoryOption = {
|
||||||
categoryCode: string;
|
id: string;
|
||||||
categoryName: string;
|
categoryName: string;
|
||||||
children?: CategoryOption[];
|
children?: CategoryOption[];
|
||||||
};
|
};
|
||||||
@ -341,11 +297,6 @@ const processDefinitionDialog = reactive<DialogOption>({
|
|||||||
title: '历史版本'
|
title: '历史版本'
|
||||||
});
|
});
|
||||||
|
|
||||||
const definitionConfigDialog = reactive<DialogOption>({
|
|
||||||
visible: false,
|
|
||||||
title: '流程定义配置'
|
|
||||||
});
|
|
||||||
|
|
||||||
const modelDialog = reactive<DialogOption>({
|
const modelDialog = reactive<DialogOption>({
|
||||||
visible: false,
|
visible: false,
|
||||||
title: '新增流程'
|
title: '新增流程'
|
||||||
@ -378,7 +329,7 @@ onMounted(() => {
|
|||||||
/** 节点单击事件 */
|
/** 节点单击事件 */
|
||||||
const handleNodeClick = (data: CategoryVO) => {
|
const handleNodeClick = (data: CategoryVO) => {
|
||||||
queryParams.value.category = data.id;
|
queryParams.value.category = data.id;
|
||||||
if (data.id === 'ALL') {
|
if (data.id === '0') {
|
||||||
queryParams.value.category = '';
|
queryParams.value.category = '';
|
||||||
}
|
}
|
||||||
handleQuery();
|
handleQuery();
|
||||||
@ -402,7 +353,7 @@ watchEffect(
|
|||||||
const getTreeselect = async () => {
|
const getTreeselect = async () => {
|
||||||
const res = await listCategory();
|
const res = await listCategory();
|
||||||
categoryOptions.value = [];
|
categoryOptions.value = [];
|
||||||
const data: CategoryOption = { id: 'ALL', categoryName: '顶级节点', children: [] };
|
const data: CategoryOption = { id: '0', categoryName: '顶级节点', children: [] };
|
||||||
data.children = proxy?.handleTree<CategoryOption>(res.data, 'id', 'parentId');
|
data.children = proxy?.handleTree<CategoryOption>(res.data, 'id', 'parentId');
|
||||||
categoryOptions.value.push(data);
|
categoryOptions.value.push(data);
|
||||||
};
|
};
|
||||||
@ -500,7 +451,7 @@ const handlerImportDefinition = (data: UploadRequestOptions): XMLHttpRequest =>
|
|||||||
let formData = new FormData();
|
let formData = new FormData();
|
||||||
uploadDialogLoading.value = true;
|
uploadDialogLoading.value = true;
|
||||||
formData.append('file', data.file);
|
formData.append('file', data.file);
|
||||||
formData.append('categoryId', selectCategory.value);
|
formData.append('category', selectCategory.value);
|
||||||
importDef(formData)
|
importDef(formData)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
uploadDialog.visible = false;
|
uploadDialog.visible = false;
|
||||||
@ -512,48 +463,6 @@ const handlerImportDefinition = (data: UploadRequestOptions): XMLHttpRequest =>
|
|||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
//打开流程定义配置
|
|
||||||
const handleDefinitionConfigOpen = async (row: FlowDefinitionVo) => {
|
|
||||||
definitionConfigDialog.visible = true;
|
|
||||||
definitionConfigForm.value.processKey = row.flowCode;
|
|
||||||
definitionConfigForm.value.definitionId = row.id;
|
|
||||||
definitionConfigForm.value.version = row.version;
|
|
||||||
const resp = await getByDefId(row.id);
|
|
||||||
if (resp.data) {
|
|
||||||
definitionConfigForm.value = resp.data;
|
|
||||||
} else {
|
|
||||||
definitionConfigForm.value.tableName = undefined;
|
|
||||||
definitionConfigForm.value.remark = undefined;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
//保存表单
|
|
||||||
const handlerSaveForm = async () => {
|
|
||||||
getByTableNameNotDefId(definitionConfigForm.value.tableName, definitionConfigForm.value.definitionId).then((res) => {
|
|
||||||
if (res.data && res.data.length > 0) {
|
|
||||||
ElMessageBox.confirm('表名已被【' + res.data[0].processKey + '】版本v' + res.data[0].version + '.0绑定确认后将会删除绑定的流程KEY!', '提示', {
|
|
||||||
confirmButtonText: '确认',
|
|
||||||
cancelButtonText: '取消',
|
|
||||||
type: 'warning'
|
|
||||||
}).then(() => {
|
|
||||||
saveOrUpdate(definitionConfigForm.value).then((resp) => {
|
|
||||||
if (resp.code === 200) {
|
|
||||||
proxy?.$modal.msgSuccess('操作成功');
|
|
||||||
definitionConfigDialog.visible = false;
|
|
||||||
getList();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
saveOrUpdate(definitionConfigForm.value).then((resp) => {
|
|
||||||
if (resp.code === 200) {
|
|
||||||
proxy?.$modal.msgSuccess('操作成功');
|
|
||||||
definitionConfigDialog.visible = false;
|
|
||||||
getList();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
};
|
|
||||||
/**
|
/**
|
||||||
* 设计流程
|
* 设计流程
|
||||||
* @param row
|
* @param row
|
||||||
|
@ -226,7 +226,7 @@ const processDefinitionDialog = reactive<DialogOption>({
|
|||||||
});
|
});
|
||||||
|
|
||||||
type CategoryOption = {
|
type CategoryOption = {
|
||||||
categoryCode: string;
|
id: string;
|
||||||
categoryName: string;
|
categoryName: string;
|
||||||
children?: CategoryOption[];
|
children?: CategoryOption[];
|
||||||
};
|
};
|
||||||
@ -247,14 +247,14 @@ const queryParams = ref<FlowInstanceQuery>({
|
|||||||
flowName: undefined,
|
flowName: undefined,
|
||||||
flowCode: undefined,
|
flowCode: undefined,
|
||||||
createByIds: [],
|
createByIds: [],
|
||||||
categoryCode: undefined
|
category: undefined
|
||||||
});
|
});
|
||||||
|
|
||||||
/** 节点单击事件 */
|
/** 节点单击事件 */
|
||||||
const handleNodeClick = (data: CategoryVO) => {
|
const handleNodeClick = (data: CategoryVO) => {
|
||||||
queryParams.value.categoryCode = data.categoryCode;
|
queryParams.value.category = data.id;
|
||||||
if (data.categoryCode === 'ALL') {
|
if (data.id === '0') {
|
||||||
queryParams.value.categoryCode = '';
|
queryParams.value.category = '';
|
||||||
}
|
}
|
||||||
handleQuery();
|
handleQuery();
|
||||||
};
|
};
|
||||||
@ -277,7 +277,7 @@ watchEffect(
|
|||||||
const getTreeselect = async () => {
|
const getTreeselect = async () => {
|
||||||
const res = await listCategory();
|
const res = await listCategory();
|
||||||
categoryOptions.value = [];
|
categoryOptions.value = [];
|
||||||
const data: CategoryOption = { categoryCode: 'ALL', categoryName: '顶级节点', children: [] };
|
const data: CategoryOption = { id: '0', categoryName: '顶级节点', children: [] };
|
||||||
data.children = proxy?.handleTree<CategoryOption>(res.data, 'id', 'parentId');
|
data.children = proxy?.handleTree<CategoryOption>(res.data, 'id', 'parentId');
|
||||||
categoryOptions.value.push(data);
|
categoryOptions.value.push(data);
|
||||||
};
|
};
|
||||||
@ -293,7 +293,7 @@ const handleQuery = () => {
|
|||||||
/** 重置按钮操作 */
|
/** 重置按钮操作 */
|
||||||
const resetQuery = () => {
|
const resetQuery = () => {
|
||||||
queryFormRef.value?.resetFields();
|
queryFormRef.value?.resetFields();
|
||||||
queryParams.value.categoryCode = '';
|
queryParams.value.category = '';
|
||||||
queryParams.value.pageNum = 1;
|
queryParams.value.pageNum = 1;
|
||||||
queryParams.value.pageSize = 10;
|
queryParams.value.pageSize = 10;
|
||||||
queryParams.value.createByIds = [];
|
queryParams.value.createByIds = [];
|
||||||
@ -369,8 +369,6 @@ const cancelPopover = async (index: any) => {
|
|||||||
/** 查看按钮操作 */
|
/** 查看按钮操作 */
|
||||||
const handleView = (row) => {
|
const handleView = (row) => {
|
||||||
const routerJumpVo = reactive<RouterJumpVo>({
|
const routerJumpVo = reactive<RouterJumpVo>({
|
||||||
wfDefinitionConfigVo: row.wfDefinitionConfigVo,
|
|
||||||
wfNodeConfigVo: row.wfNodeConfigVo,
|
|
||||||
businessKey: row.businessId,
|
businessKey: row.businessId,
|
||||||
taskId: row.id,
|
taskId: row.id,
|
||||||
type: 'view'
|
type: 'view'
|
||||||
|
@ -133,7 +133,7 @@ const categoryOptions = ref<CategoryOption[]>([]);
|
|||||||
const categoryName = ref('');
|
const categoryName = ref('');
|
||||||
|
|
||||||
interface CategoryOption {
|
interface CategoryOption {
|
||||||
categoryCode: string;
|
id: string;
|
||||||
categoryName: string;
|
categoryName: string;
|
||||||
children?: CategoryOption[];
|
children?: CategoryOption[];
|
||||||
}
|
}
|
||||||
@ -144,7 +144,7 @@ const queryParams = ref<FlowInstanceQuery>({
|
|||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
flowCode: undefined,
|
flowCode: undefined,
|
||||||
categoryCode: undefined
|
category: undefined
|
||||||
});
|
});
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
@ -154,9 +154,9 @@ onMounted(() => {
|
|||||||
|
|
||||||
/** 节点单击事件 */
|
/** 节点单击事件 */
|
||||||
const handleNodeClick = (data: CategoryVO) => {
|
const handleNodeClick = (data: CategoryVO) => {
|
||||||
queryParams.value.categoryCode = data.categoryCode;
|
queryParams.value.category = data.id;
|
||||||
if (data.categoryCode === 'ALL') {
|
if (data.id === '0') {
|
||||||
queryParams.value.categoryCode = '';
|
queryParams.value.category = '';
|
||||||
}
|
}
|
||||||
handleQuery();
|
handleQuery();
|
||||||
};
|
};
|
||||||
@ -179,7 +179,7 @@ watchEffect(
|
|||||||
const getTreeselect = async () => {
|
const getTreeselect = async () => {
|
||||||
const res = await listCategory();
|
const res = await listCategory();
|
||||||
categoryOptions.value = [];
|
categoryOptions.value = [];
|
||||||
const data: CategoryOption = { categoryCode: 'ALL', categoryName: '顶级节点', children: [] };
|
const data: CategoryOption = { id: '0', categoryName: '顶级节点', children: [] };
|
||||||
data.children = proxy?.handleTree<CategoryOption>(res.data, 'id', 'parentId');
|
data.children = proxy?.handleTree<CategoryOption>(res.data, 'id', 'parentId');
|
||||||
categoryOptions.value.push(data);
|
categoryOptions.value.push(data);
|
||||||
};
|
};
|
||||||
@ -191,7 +191,7 @@ const handleQuery = () => {
|
|||||||
/** 重置按钮操作 */
|
/** 重置按钮操作 */
|
||||||
const resetQuery = () => {
|
const resetQuery = () => {
|
||||||
queryFormRef.value?.resetFields();
|
queryFormRef.value?.resetFields();
|
||||||
queryParams.value.categoryCode = '';
|
queryParams.value.category = '';
|
||||||
queryParams.value.pageNum = 1;
|
queryParams.value.pageNum = 1;
|
||||||
queryParams.value.pageSize = 10;
|
queryParams.value.pageSize = 10;
|
||||||
handleQuery();
|
handleQuery();
|
||||||
@ -243,8 +243,6 @@ const handleCancelProcessApply = async (businessId: string) => {
|
|||||||
//办理
|
//办理
|
||||||
const handleOpen = async (row, type) => {
|
const handleOpen = async (row, type) => {
|
||||||
const routerJumpVo = reactive<RouterJumpVo>({
|
const routerJumpVo = reactive<RouterJumpVo>({
|
||||||
wfDefinitionConfigVo: row.wfDefinitionConfigVo,
|
|
||||||
wfNodeConfigVo: row.wfNodeConfigVo,
|
|
||||||
businessKey: row.businessId,
|
businessKey: row.businessId,
|
||||||
taskId: row.id,
|
taskId: row.id,
|
||||||
type: type
|
type: type
|
||||||
|
@ -88,7 +88,7 @@ const queryParams = ref<TaskQuery>({
|
|||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
nodeName: undefined,
|
nodeName: undefined,
|
||||||
flowName: undefined,
|
flowName: undefined,
|
||||||
flowCode: undefined,
|
flowCode: undefined
|
||||||
});
|
});
|
||||||
/** 搜索按钮操作 */
|
/** 搜索按钮操作 */
|
||||||
const handleQuery = () => {
|
const handleQuery = () => {
|
||||||
@ -120,8 +120,6 @@ const getTaskCopyList = () => {
|
|||||||
/** 查看按钮操作 */
|
/** 查看按钮操作 */
|
||||||
const handleView = (row) => {
|
const handleView = (row) => {
|
||||||
const routerJumpVo = reactive<RouterJumpVo>({
|
const routerJumpVo = reactive<RouterJumpVo>({
|
||||||
wfDefinitionConfigVo: row.wfDefinitionConfigVo,
|
|
||||||
wfNodeConfigVo: row.wfNodeConfigVo,
|
|
||||||
businessKey: row.businessId,
|
businessKey: row.businessId,
|
||||||
taskId: row.id,
|
taskId: row.id,
|
||||||
type: 'view'
|
type: 'view'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user