Skip to content

Commit 1b46739

Browse files
JavaLionLigitee-org
authored andcommitted
!241 发布 5.5.0-2.5.0 喜迎国庆
Merge pull request !241 from 疯狂的狮子Li/dev
2 parents b000788 + 88056a5 commit 1b46739

File tree

42 files changed

+1111
-177
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1111
-177
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://json.schemastore.org/package",
33
"name": "ruoyi-vue-plus",
4-
"version": "5.4.1-2.4.1",
4+
"version": "5.5.0-2.5.0",
55
"description": "RuoYi-Vue-Plus多租户管理系统",
66
"author": "LionLi",
77
"license": "MIT",

src/api/system/dept/index.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,6 @@ export const getDept = (deptId: string | number): AxiosPromise<DeptVO> => {
3838
});
3939
};
4040

41-
// 查询部门下拉树结构
42-
export const treeselect = (): AxiosPromise<DeptTreeVO[]> => {
43-
return request({
44-
url: '/system/dept/treeselect',
45-
method: 'get'
46-
});
47-
};
48-
4941
// 新增部门
5042
export const addDept = (data: DeptForm) => {
5143
return request({

src/api/system/post/index.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import request from '@/utils/request';
22
import { PostForm, PostQuery, PostVO } from './types';
33
import { AxiosPromise } from 'axios';
4+
import { DeptTreeVO } from '../dept/types';
45

56
// 查询岗位列表
67
export function listPost(query: PostQuery): AxiosPromise<PostVO[]> {
@@ -56,3 +57,13 @@ export function delPost(postId: string | number | (string | number)[]) {
5657
method: 'delete'
5758
});
5859
}
60+
61+
/**
62+
* 查询部门下拉树结构
63+
*/
64+
export const deptTreeSelect = (): AxiosPromise<DeptTreeVO[]> => {
65+
return request({
66+
url: '/system/post/deptTree',
67+
method: 'get'
68+
});
69+
};

src/api/system/user/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { DeptTreeVO, DeptVO } from './../dept/types';
1+
import { DeptTreeVO } from './../dept/types';
22
import { RoleVO } from '@/api/system/role/types';
33
import request from '@/utils/request';
44
import { AxiosPromise } from 'axios';

src/api/system/user/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export interface UserQuery extends PageQuery {
2020
status?: string;
2121
deptId?: string | number;
2222
roleId?: string | number;
23-
userIds?: string;
23+
userIds?: string | number | (string | number)[] | undefined;
2424
}
2525

2626
/**

src/api/workflow/definition/types.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ export interface FlowDefinitionForm {
2222
flowName: string;
2323
flowCode: string;
2424
category: string;
25+
ext: string;
2526
formPath: string;
27+
formCustom: string;
28+
modelValue: string;
2629
}
2730

2831
export interface definitionXmlVO {

src/api/workflow/instance/index.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,18 @@ export const deleteByInstanceIds = (instanceIds: Array<string | number> | string
8787
method: 'delete'
8888
});
8989
};
90+
91+
/**
92+
* 删除历史流程实例
93+
* @param instanceIds
94+
*/
95+
export const deleteHisByInstanceIds = (instanceIds: Array<string | number> | string | number) => {
96+
return request({
97+
url: `/workflow/instance/deleteHisByInstanceIds/${instanceIds}`,
98+
method: 'delete'
99+
});
100+
};
101+
90102
/**
91103
* 作废流程
92104
* @param data 参数
@@ -99,3 +111,15 @@ export const invalid = (data: any) => {
99111
data: data
100112
});
101113
};
114+
/**
115+
* 修改流程变量
116+
* @param data 参数
117+
* @returns
118+
*/
119+
export const updateVariable = (data: any) => {
120+
return request({
121+
url: `/workflow/instance/updateVariable`,
122+
method: 'put',
123+
data: data
124+
});
125+
};

src/api/workflow/instance/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,6 @@ export interface FlowInstanceVO extends BaseEntity {
2323
flowStatus: string;
2424
flowStatusName: string;
2525
flowTaskList: FlowTaskVO[];
26+
businessCode: string;
27+
businessTitle: string;
2628
}

src/api/workflow/leave/index.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,18 @@ export const addLeave = (data: LeaveForm): AxiosPromise<LeaveVO> => {
3939
});
4040
};
4141

42+
/**
43+
* 提交请假并发起流程
44+
* @param data
45+
*/
46+
export const submitAndFlowStart = (data: LeaveForm): AxiosPromise<LeaveVO> => {
47+
return request({
48+
url: '/workflow/leave/submitAndFlowStart',
49+
method: 'post',
50+
data: data
51+
});
52+
};
53+
4254
/**
4355
* 修改请假
4456
* @param data

src/api/workflow/leave/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
export interface LeaveVO {
22
id: string | number;
3+
applyCode?: string;
34
leaveType: string;
45
startDate: string;
56
endDate: string;
@@ -10,6 +11,7 @@ export interface LeaveVO {
1011

1112
export interface LeaveForm extends BaseEntity {
1213
id?: string | number;
14+
applyCode?: string;
1315
leaveType?: string;
1416
startDate?: string;
1517
endDate?: string;

0 commit comments

Comments
 (0)