Skip to content

Commit e354db7

Browse files
JavaLionLigitee-org
authored andcommitted
!121 ♥️发布 2.2.0-BETA 公测版本
Merge pull request !121 from 疯狂的狮子Li/dev
2 parents a63543a + 61df97c commit e354db7

File tree

34 files changed

+224
-252
lines changed

34 files changed

+224
-252
lines changed

.env.production

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ VITE_APP_CONTEXT_PATH = '/'
1111
VITE_APP_MONITRO_ADMIN = '/admin/applications'
1212

1313
# SnailJob 控制台地址
14-
VITE_APP_SNAILJOB_ADMIN = 'http://localhost:8800/snail-job'
14+
VITE_APP_SNAILJOB_ADMIN = '/snail-job'
1515

1616
# 生产环境
1717
VITE_APP_BASE_API = '/prod-api'

package.json

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,12 @@
2020
"dependencies": {
2121
"@element-plus/icons-vue": "2.3.1",
2222
"@highlightjs/vue-plugin": "2.1.0",
23-
"@lezer/common": "1.2.1",
2423
"@vueup/vue-quill": "1.2.0",
2524
"@vueuse/core": "10.9.0",
2625
"animate.css": "4.1.1",
2726
"await-to-js": "3.0.0",
2827
"axios": "1.6.8",
2928
"bpmn-js": "16.4.0",
30-
"camunda-bpmn-js-behaviors": "1.2.2",
31-
"camunda-bpmn-moddle": "7.0.1",
3229
"crypto-js": "4.2.0",
3330
"diagram-js": "12.3.0",
3431
"didi": "9.0.2",
@@ -40,21 +37,15 @@
4037
"image-conversion": "^2.1.1",
4138
"js-cookie": "3.0.5",
4239
"jsencrypt": "3.3.2",
43-
"moddle": "6.2.3",
4440
"nprogress": "0.2.0",
45-
"path-browserify": "1.0.1",
46-
"path-to-regexp": "6.2.1",
4741
"pinia": "2.1.7",
48-
"preact": "10.19.7",
4942
"screenfull": "6.0.2",
50-
"vform3-builds": "3.0.10",
5143
"vue": "3.4.25",
5244
"vue-cropper": "1.1.1",
5345
"vue-i18n": "9.10.2",
5446
"vue-router": "4.3.2",
5547
"vue-types": "5.1.1",
56-
"vxe-table": "4.5.22",
57-
"zeebe-bpmn-moddle": "1.0.0"
48+
"vxe-table": "4.5.22"
5849
},
5950
"devDependencies": {
6051
"@iconify/json": "2.2.201",
@@ -64,7 +55,6 @@
6455
"@types/js-cookie": "3.0.6",
6556
"@types/node": "18.18.2",
6657
"@types/nprogress": "0.2.3",
67-
"@types/path-browserify": "1.0.2",
6858
"@typescript-eslint/eslint-plugin": "7.3.1",
6959
"@typescript-eslint/parser": "7.3.1",
7060
"@unocss/preset-attributify": "0.58.6",

src/api/workflow/leave/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { LeaveVO, LeaveQuery, LeaveForm } from '@/api/workflow/leave/types';
1010

1111
export const listLeave = (query?: LeaveQuery): AxiosPromise<LeaveVO[]> => {
1212
return request({
13-
url: '/demo/leave/list',
13+
url: '/workflow/leave/list',
1414
method: 'get',
1515
params: query
1616
});
@@ -22,7 +22,7 @@ export const listLeave = (query?: LeaveQuery): AxiosPromise<LeaveVO[]> => {
2222
*/
2323
export const getLeave = (id: string | number): AxiosPromise<LeaveVO> => {
2424
return request({
25-
url: '/demo/leave/' + id,
25+
url: '/workflow/leave/' + id,
2626
method: 'get'
2727
});
2828
};
@@ -33,7 +33,7 @@ export const getLeave = (id: string | number): AxiosPromise<LeaveVO> => {
3333
*/
3434
export const addLeave = (data: LeaveForm): AxiosPromise<LeaveVO> => {
3535
return request({
36-
url: '/demo/leave',
36+
url: '/workflow/leave',
3737
method: 'post',
3838
data: data
3939
});
@@ -45,7 +45,7 @@ export const addLeave = (data: LeaveForm): AxiosPromise<LeaveVO> => {
4545
*/
4646
export const updateLeave = (data: LeaveForm): AxiosPromise<LeaveVO> => {
4747
return request({
48-
url: '/demo/leave',
48+
url: '/workflow/leave',
4949
method: 'put',
5050
data: data
5151
});
@@ -57,7 +57,7 @@ export const updateLeave = (data: LeaveForm): AxiosPromise<LeaveVO> => {
5757
*/
5858
export const delLeave = (id: string | number | Array<string | number>) => {
5959
return request({
60-
url: '/demo/leave/' + id,
60+
url: '/workflow/leave/' + id,
6161
method: 'delete'
6262
});
6363
};

src/api/workflow/leave/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export interface LeaveVO {
55
endDate: string;
66
leaveDays: number;
77
remark: string;
8-
processInstanceVo: any;
8+
status?: string;
99
}
1010

1111
export interface LeaveForm extends BaseEntity {
@@ -15,7 +15,7 @@ export interface LeaveForm extends BaseEntity {
1515
endDate?: string;
1616
leaveDays?: number;
1717
remark?: string;
18-
processInstanceVo?: any;
18+
status?: string;
1919
}
2020

2121
export interface LeaveQuery extends PageQuery {

src/api/workflow/processInstance/index.ts

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -29,33 +29,33 @@ export const getPageByFinish = (query: ProcessInstanceQuery): AxiosPromise<Proce
2929
};
3030

3131
/**
32-
* 通过流程实例id获取历史流程图
32+
* 通过业务id获取历史流程图
3333
*/
34-
export const getHistoryImage = (processInstanceId: string) => {
34+
export const getHistoryImage = (businessKey: string) => {
3535
return request({
36-
url: `/workflow/processInstance/getHistoryImage/${processInstanceId}` + '?t' + Math.random(),
36+
url: `/workflow/processInstance/getHistoryImage/${businessKey}` + '?t' + Math.random(),
3737
method: 'get'
3838
});
3939
};
4040

4141
/**
42-
* 通过流程实例id获取历史流程图运行中,历史等节点
42+
* 通过业务id获取历史流程图运行中,历史等节点
4343
*/
44-
export const getHistoryList = (instanceId: string): AxiosPromise<Record<string, any>> => {
44+
export const getHistoryList = (businessKey: string): AxiosPromise<Record<string, any>> => {
4545
return request({
46-
url: `/workflow/processInstance/getHistoryList/${instanceId}` + '?t' + Math.random(),
46+
url: `/workflow/processInstance/getHistoryList/${businessKey}` + '?t' + Math.random(),
4747
method: 'get'
4848
});
4949
};
5050

5151
/**
5252
* 获取审批记录
53-
* @param processInstanceId 流程实例id
53+
* @param businessKey 业务id
5454
* @returns
5555
*/
56-
export const getHistoryRecord = (processInstanceId: string) => {
56+
export const getHistoryRecord = (businessKey: string) => {
5757
return request({
58-
url: `/workflow/processInstance/getHistoryRecord/${processInstanceId}`,
58+
url: `/workflow/processInstance/getHistoryRecord/${businessKey}`,
5959
method: 'get'
6060
});
6161
};
@@ -75,24 +75,24 @@ export const deleteRunInstance = (data: object) => {
7575

7676
/**
7777
* 运行中的实例 删除程实例,删除历史记录,删除业务与流程关联信息
78-
* @param processInstanceId 流程实例id
78+
* @param businessKey 业务id
7979
* @returns
8080
*/
81-
export const deleteRunAndHisInstance = (processInstanceId: string | string[]) => {
81+
export const deleteRunAndHisInstance = (businessKey: string | string[]) => {
8282
return request({
83-
url: `/workflow/processInstance/deleteRunAndHisInstance/${processInstanceId}`,
83+
url: `/workflow/processInstance/deleteRunAndHisInstance/${businessKey}`,
8484
method: 'delete'
8585
});
8686
};
8787

8888
/**
8989
* 已完成的实例 删除程实例,删除历史记录,删除业务与流程关联信息
90-
* @param processInstanceId 流程实例id
90+
* @param businessKey 业务id
9191
* @returns
9292
*/
93-
export const deleteFinishAndHisInstance = (processInstanceId: string | string[]) => {
93+
export const deleteFinishAndHisInstance = (businessKey: string | string[]) => {
9494
return request({
95-
url: `/workflow/processInstance/deleteFinishAndHisInstance/${processInstanceId}`,
95+
url: `/workflow/processInstance/deleteFinishAndHisInstance/${businessKey}`,
9696
method: 'delete'
9797
});
9898
};
@@ -112,12 +112,12 @@ export const getPageByCurrent = (query: ProcessInstanceQuery): AxiosPromise<Proc
112112

113113
/**
114114
* 撤销流程
115-
* @param processInstanceId 流程实例id
115+
* @param businessKey 业务id
116116
* @returns
117117
*/
118-
export const cancelProcessApply = (processInstanceId: string) => {
118+
export const cancelProcessApply = (businessKey: string) => {
119119
return request({
120-
url: `/workflow/processInstance/cancelProcessApply/${processInstanceId}`,
120+
url: `/workflow/processInstance/cancelProcessApply/${businessKey}`,
121121
method: 'post'
122122
});
123123
};
Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
import { RouterJumpVo } from '@/api/workflow/workflowCommon/types';
22

33
export default {
4-
routerJump(routerJumpVo: RouterJumpVo,proxy){
5-
if (routerJumpVo.wfNodeConfigVo && routerJumpVo.wfNodeConfigVo.formType === 'static' && routerJumpVo.wfNodeConfigVo.wfFormManageVo) {
6-
proxy.$tab.closePage(proxy.$route);
7-
proxy.$router.push({
8-
path: `${routerJumpVo.wfNodeConfigVo.wfFormManageVo.router}`,
9-
query: {
10-
id: routerJumpVo.businessKey,
11-
type: routerJumpVo.type,
12-
taskId: routerJumpVo.taskId
13-
}
14-
});
15-
} else if (routerJumpVo.wfNodeConfigVo && routerJumpVo.wfNodeConfigVo.formType === 'dynamic' && routerJumpVo.wfNodeConfigVo.wfFormManageVo) {
16-
proxy.$tab.closePage(proxy.$route);
17-
proxy.$router.push({
18-
path: `${routerJumpVo.wfNodeConfigVo.wfFormManageVo.router}`,
19-
query: {
20-
id: routerJumpVo.businessKey,
21-
type: routerJumpVo.type,
22-
taskId: routerJumpVo.taskId
23-
}
24-
});
25-
}else {
26-
proxy?.$modal.msgError('请到模型配置菜单!');
4+
routerJump(routerJumpVo: RouterJumpVo, proxy) {
5+
if (routerJumpVo.wfNodeConfigVo && routerJumpVo.wfNodeConfigVo.formType === 'static' && routerJumpVo.wfNodeConfigVo.wfFormManageVo) {
6+
proxy.$tab.closePage(proxy.$route);
7+
proxy.$router.push({
8+
path: `${routerJumpVo.wfNodeConfigVo.wfFormManageVo.router}`,
9+
query: {
10+
id: routerJumpVo.businessKey,
11+
type: routerJumpVo.type,
12+
taskId: routerJumpVo.taskId
2713
}
14+
});
15+
} else if (routerJumpVo.wfNodeConfigVo && routerJumpVo.wfNodeConfigVo.formType === 'dynamic' && routerJumpVo.wfNodeConfigVo.wfFormManageVo) {
16+
proxy.$tab.closePage(proxy.$route);
17+
proxy.$router.push({
18+
path: `${routerJumpVo.wfNodeConfigVo.wfFormManageVo.router}`,
19+
query: {
20+
id: routerJumpVo.businessKey,
21+
type: routerJumpVo.type,
22+
taskId: routerJumpVo.taskId
23+
}
24+
});
25+
} else {
26+
proxy?.$modal.msgError('请到模型配置菜单!');
2827
}
29-
}
28+
}
29+
};

src/bpmn/hooks/usePanel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import showConfig from '../assets/showConfig';
2-
import { ModdleElement } from 'bpmn';
2+
import type { ModdleElement } from 'bpmn';
33
import useModelerStore from '@/store/modules/modeler';
44
import { MultiInstanceTypeEnum } from '@/enums/bpmn/IndexEnums';
55
interface Options {

src/bpmn/hooks/useParseElement.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ModdleElement } from 'bpmn';
1+
import type { ModdleElement } from 'bpmn';
22

33
interface Options {
44
element: ModdleElement;

src/bpmn/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ import 'bpmn-js/dist/assets/bpmn-font/css/bpmn.css';
9090
import 'bpmn-js/dist/assets/bpmn-font/css/bpmn-codes.css';
9191
import 'bpmn-js/dist/assets/bpmn-font/css/bpmn-embedded.css';
9292
import './assets/style/index.scss';
93-
import { Canvas, Modeler } from 'bpmn';
93+
import type { Canvas, Modeler } from 'bpmn';
9494
import PropertyPanel from './panel/index.vue';
9595
import BpmnModeler from 'bpmn-js/lib/Modeler.js';
9696
import defaultXML from './assets/defaultXML';

src/bpmn/panel/GatewayPanel.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
<script setup lang="ts">
4242
import useParseElement from '../hooks/useParseElement';
4343
import usePanel from '../hooks/usePanel';
44-
import { Modeler, ModdleElement } from 'bpmn';
45-
import { GatewayPanel } from 'bpmnDesign';
44+
import type { Modeler, ModdleElement } from 'bpmn';
45+
import type { GatewayPanel } from 'bpmnDesign';
4646
import ExecutionListener from './property/ExecutionListener.vue';
4747
4848
interface PropType {

0 commit comments

Comments
 (0)