@jiangood/springboot-admin-starter 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config/dist/config.js +32 -0
- package/config/dist/index.js +0 -1
- package/config/dist/plugins/form-plugin.js +2 -2
- package/package.json +12 -10
- package/src/forms/demoForm.jsx +5 -5
- package/src/framework/components/DownloadFileButton.jsx +2 -2
- package/src/framework/components/Ellipsis.jsx +2 -2
- package/src/framework/components/LinkButton.d.ts +4 -4
- package/src/framework/components/LinkButton.jsx +6 -9
- package/src/framework/components/Page/index.jsx +2 -2
- package/src/framework/components/PageLoading.tsx +27 -0
- package/src/framework/components/ProTable/components/ToolBar/index.jsx +6 -7
- package/src/framework/components/ProTable/index.d.ts +5 -1
- package/src/framework/components/ProTable/index.jsx +4 -6
- package/src/framework/components/ProTable/index.less +0 -1
- package/src/framework/components/ValueType/registry.jsx +9 -20
- package/src/framework/components/{index.js → index.ts} +2 -10
- package/src/framework/components/system/ButtonList.jsx +35 -0
- package/src/framework/components/system/HasPerm.tsx +14 -0
- package/src/framework/components/system/index.tsx +29 -0
- package/src/framework/components/view/ViewBooleanEnableDisable.tsx +20 -0
- package/src/framework/components/view/ViewEllipsis.jsx +2 -2
- package/src/framework/components/view/ViewFile.jsx +1 -2
- package/src/framework/components/view/ViewImage.jsx +2 -3
- package/src/framework/components/view/ViewText.tsx +16 -0
- package/src/framework/components/view/{index.js → index.ts} +0 -2
- package/src/framework/field-components/FieldBoolean.d.ts +13 -0
- package/src/framework/field-components/FieldBoolean.jsx +76 -0
- package/src/framework/field-components/FieldDate.d.ts +25 -0
- package/src/framework/field-components/FieldDate.jsx +109 -0
- package/src/framework/field-components/FieldDateRange.d.ts +6 -0
- package/src/framework/field-components/FieldDateRange.jsx +101 -0
- package/src/framework/field-components/FieldDictSelect.d.ts +13 -0
- package/src/framework/field-components/FieldDictSelect.jsx +16 -0
- package/src/framework/field-components/FieldEditor.d.ts +10 -0
- package/src/framework/field-components/FieldEditor.jsx +58 -0
- package/src/framework/field-components/FieldPercent.d.ts +12 -0
- package/src/framework/field-components/FieldPercent.jsx +27 -0
- package/src/framework/field-components/FieldRemoteSelect.d.ts +13 -0
- package/src/framework/field-components/FieldRemoteSelect.jsx +87 -0
- package/src/framework/field-components/FieldRemoteSelectMultiple.d.ts +13 -0
- package/src/framework/field-components/FieldRemoteSelectMultiple.jsx +86 -0
- package/src/framework/field-components/FieldRemoteSelectMultipleInline.d.ts +20 -0
- package/src/framework/field-components/FieldRemoteSelectMultipleInline.jsx +86 -0
- package/src/framework/field-components/FieldRemoteTree.d.ts +21 -0
- package/src/framework/field-components/FieldRemoteTree.jsx +45 -0
- package/src/framework/field-components/FieldRemoteTreeCascader.d.ts +23 -0
- package/src/framework/field-components/FieldRemoteTreeCascader.jsx +61 -0
- package/src/framework/field-components/FieldRemoteTreeSelect.d.ts +17 -0
- package/src/framework/field-components/FieldRemoteTreeSelect.jsx +67 -0
- package/src/framework/field-components/FieldRemoteTreeSelectMultiple.d.ts +17 -0
- package/src/framework/field-components/FieldRemoteTreeSelectMultiple.jsx +68 -0
- package/src/framework/field-components/FieldSysOrgTree.d.ts +12 -0
- package/src/framework/field-components/FieldSysOrgTree.jsx +23 -0
- package/src/framework/field-components/FieldSysOrgTreeSelect.d.ts +12 -0
- package/src/framework/field-components/FieldSysOrgTreeSelect.jsx +23 -0
- package/src/framework/{components/field/FieldEditTable/index.d.ts → field-components/FieldTable.d.ts} +5 -2
- package/src/framework/{components/field/FieldEditTable/index.jsx → field-components/FieldTable.jsx} +29 -21
- package/src/framework/{components/field/select/FieldTableSelect/index.d.ts → field-components/FieldTableSelect.d.ts} +4 -14
- package/src/framework/field-components/FieldTableSelect.jsx +59 -0
- package/src/framework/{components/field/upload → field-components}/FieldUploadFile.d.ts +0 -1
- package/src/framework/{components/field/upload → field-components}/FieldUploadFile.jsx +5 -9
- package/src/framework/field-components/index.ts +20 -0
- package/src/framework/{components/OrgTree.jsx → field-components/system/OrgTree.tsx} +8 -7
- package/src/framework/{components/RoleTree.jsx → field-components/system/RoleTree.tsx} +3 -3
- package/src/framework/field-components/system/index.ts +2 -0
- package/src/framework/index.ts +4 -0
- package/src/framework/utils/ArrUtils.ts +229 -0
- package/src/framework/utils/ColorsUtils.ts +378 -0
- package/src/framework/utils/{date.js → DateUtils.ts} +69 -69
- package/src/framework/utils/DeviceUtils.ts +46 -0
- package/src/framework/utils/DomUtils.ts +50 -0
- package/src/framework/utils/EventBusUtils.ts +143 -0
- package/src/framework/utils/MessageUtils.tsx +182 -0
- package/src/framework/utils/ObjectUtils.ts +113 -0
- package/src/framework/utils/StorageUtils.ts +67 -0
- package/src/framework/utils/StringUtils.ts +410 -0
- package/src/framework/utils/TreeUtils.ts +248 -0
- package/src/framework/utils/UrlUtils.ts +152 -0
- package/src/framework/utils/UuidUtils.ts +88 -0
- package/src/framework/utils/ValidateUtils.ts +28 -0
- package/src/framework/utils/index.ts +16 -0
- package/src/framework/utils/system/DictUtils.ts +97 -0
- package/src/framework/utils/system/FormRegistryUtils.ts +77 -0
- package/src/framework/utils/system/HttpUtils.ts +246 -0
- package/src/framework/utils/system/PageUtils.ts +153 -0
- package/src/framework/utils/system/PermUtils.ts +79 -0
- package/src/framework/utils/system/SysUtils.ts +97 -0
- package/src/framework/utils/system/ThemeUtils.ts +27 -0
- package/src/framework/utils/system/index.ts +7 -0
- package/src/framework/view-components/ViewBoolean.jsx +4 -0
- package/src/framework/view-components/index.js +3 -0
- package/src/layouts/PageRender.jsx +2 -2
- package/src/layouts/admin/HeaderRight.jsx +9 -9
- package/src/layouts/admin/TabPageRender.jsx +2 -2
- package/src/layouts/admin/index.jsx +27 -40
- package/src/layouts/admin/index.less +2 -1
- package/src/layouts/index.jsx +30 -38
- package/src/layouts/index.less +0 -21
- package/src/loading.jsx +2 -2
- package/src/{components → pages/flowable}/InstanceInfo.jsx +5 -4
- package/src/pages/flowable/design/customTranslate/customTranslate.js +16 -0
- package/src/pages/flowable/design/customTranslate/translations-properties-panel.js +10 -0
- package/src/pages/flowable/design/customTranslate/translations.js +144 -0
- package/src/pages/flowable/design/descriptors/flowable.json +1109 -0
- package/src/pages/flowable/design/index.jsx +61 -234
- package/src/pages/flowable/design/provider/FlowablePropertiesProvider.js +75 -0
- package/src/pages/flowable/design/provider/index.js +6 -0
- package/src/pages/flowable/design/provider/properties/ConditionDesign.jsx +175 -0
- package/src/pages/flowable/design/provider/properties/ConditionProps.jsx +76 -0
- package/src/pages/flowable/design/provider/properties/DelegateExpressionProps.js +54 -0
- package/src/pages/flowable/design/provider/properties/FormProps.js +55 -0
- package/src/pages/flowable/design/provider/properties/MultiInstanceProps.js +100 -0
- package/src/pages/flowable/design/provider/properties/UserTaskForm.jsx +48 -0
- package/src/pages/flowable/design/provider/properties/utils.jsx +35 -0
- package/src/pages/flowable/index.jsx +28 -69
- package/src/pages/flowable/monitor/definition.jsx +87 -0
- package/src/pages/flowable/monitor/instance/index.jsx +177 -0
- package/src/pages/flowable/monitor/instance/view.jsx +102 -0
- package/src/pages/flowable/monitor/task.jsx +93 -0
- package/src/pages/flowable/task/form.jsx +5 -5
- package/src/pages/flowable/task/index.jsx +5 -5
- package/src/pages/flowable/test/index.jsx +13 -10
- package/src/pages/index.jsx +8 -13
- package/src/pages/login.jsx +8 -8
- package/src/pages/{api/doc.jsx → system/api/ApiDoc.jsx} +56 -47
- package/src/pages/system/api/index.jsx +268 -0
- package/src/pages/system/api/perm.jsx +69 -0
- package/src/pages/system/config/index.jsx +3 -3
- package/src/pages/system/dict/Dict.jsx +2 -3
- package/src/pages/system/dict/DictItem.jsx +5 -5
- package/src/pages/system/file/index.jsx +13 -5
- package/src/pages/{job → system/job}/index.jsx +124 -39
- package/src/pages/system/log/index.jsx +3 -3
- package/src/pages/system/org/index.jsx +11 -12
- package/src/pages/system/role/index.jsx +11 -11
- package/src/pages/system/role/perm.jsx +8 -8
- package/src/pages/system/sysManual/index.jsx +6 -6
- package/src/pages/system/user/UserPerm.jsx +7 -42
- package/src/pages/system/user/index.jsx +13 -17
- package/src/pages/test.jsx +188 -3
- package/src/pages/ureport/index.jsx +4 -4
- package/src/pages/userCenter/ChangePassword.jsx +3 -4
- package/src/pages/userCenter/index.jsx +2 -2
- package/src/pages/userCenter/manual.jsx +3 -7
- package/src/pages/userCenter/message.jsx +5 -5
- package/config/dist/config.local.js +0 -23
- package/src/components/InstanceStatusInfo.jsx +0 -79
- package/src/components/StreamLog.jsx +0 -27
- package/src/components/flow/BpmnUtils.js +0 -85
- package/src/components/flow/customTranslate/customTranslate.js +0 -19
- package/src/components/flow/customTranslate/translations.js +0 -79
- package/src/components/flow/design/form/ConditionForm.jsx +0 -316
- package/src/components/flow/design/form/ServiceTaskForm.jsx +0 -55
- package/src/components/flow/design/form/TimerEventDefinitionForm.jsx +0 -62
- package/src/components/flow/design/form/UserTaskForm.jsx +0 -211
- package/src/components/flow/design/palette.js +0 -39
- package/src/components/monitor/AllDefinition.jsx +0 -46
- package/src/components/monitor/AllInstance.jsx +0 -76
- package/src/forms/driverForm.jsx +0 -18
- package/src/framework/components/ButtonList.jsx +0 -91
- package/src/framework/components/Echarts/index.d.ts +0 -10
- package/src/framework/components/Echarts/index.jsx +0 -49
- package/src/framework/components/EditTable/index.d.ts +0 -11
- package/src/framework/components/EditTable/index.jsx +0 -85
- package/src/framework/components/FieldRemoteTree.jsx +0 -20
- package/src/framework/components/HasPerm.jsx +0 -18
- package/src/framework/components/ImageView.d.ts +0 -12
- package/src/framework/components/ImageView.jsx +0 -64
- package/src/framework/components/MsgBox.jsx +0 -180
- package/src/framework/components/PageLoading.jsx +0 -31
- package/src/framework/components/Panel/index.d.ts +0 -11
- package/src/framework/components/Panel/index.jsx +0 -24
- package/src/framework/components/Panel/index.less +0 -0
- package/src/framework/components/field/FieldAutoTime/index.tsx +0 -46
- package/src/framework/components/field/FieldBoolean/index.tsx +0 -92
- package/src/framework/components/field/FieldEditTable/index.less +0 -29
- package/src/framework/components/field/FieldEditor.jsx +0 -48
- package/src/framework/components/field/FieldFileBase64/index.d.ts +0 -15
- package/src/framework/components/field/FieldFileBase64/index.jsx +0 -23
- package/src/framework/components/field/FieldImageBase64/index.d.ts +0 -15
- package/src/framework/components/field/FieldImageBase64/index.jsx +0 -22
- package/src/framework/components/field/FieldInput.jsx +0 -13
- package/src/framework/components/field/FieldOrgTree/index.tsx +0 -45
- package/src/framework/components/field/FieldPassword.jsx +0 -11
- package/src/framework/components/field/FieldProps.ts +0 -19
- package/src/framework/components/field/FieldRemoteTreeCascader.jsx +0 -75
- package/src/framework/components/field/FieldRemoteTreeCheckable.jsx +0 -81
- package/src/framework/components/field/FieldRemoteTreeMultipleSelect.jsx +0 -100
- package/src/framework/components/field/FieldRemoteTreeSelect.jsx +0 -82
- package/src/framework/components/field/FieldSelectPosition/index.tsx +0 -85
- package/src/framework/components/field/FieldTree.jsx +0 -45
- package/src/framework/components/field/dict/index.tsx +0 -110
- package/src/framework/components/field/flat-multiple-select/index.d.ts +0 -4
- package/src/framework/components/field/flat-multiple-select/index.jsx +0 -116
- package/src/framework/components/field/flat-multiple-select/index.less +0 -12
- package/src/framework/components/field/flat-select/index.d.ts +0 -4
- package/src/framework/components/field/flat-select/index.jsx +0 -107
- package/src/framework/components/field/flat-select/index.less +0 -12
- package/src/framework/components/field/index.js +0 -33
- package/src/framework/components/field/input-number-percent/index.d.ts +0 -11
- package/src/framework/components/field/input-number-percent/index.jsx +0 -28
- package/src/framework/components/field/select/FieldSelect/index.d.ts +0 -39
- package/src/framework/components/field/select/FieldSelect/index.jsx +0 -156
- package/src/framework/components/field/select/FieldTableSelect/index.jsx +0 -155
- package/src/framework/components/field/select/index.jsx +0 -2
- package/src/framework/components/field/switch-y-n/index.d.ts +0 -11
- package/src/framework/components/field/switch-y-n/index.jsx +0 -31
- package/src/framework/components/field/text/index.tsx +0 -7
- package/src/framework/components/field/time/DatePickerString.tsx +0 -37
- package/src/framework/components/field/time/DateTimePickerString.tsx +0 -42
- package/src/framework/components/field/time/FieldDateRange.d.ts +0 -9
- package/src/framework/components/field/time/FieldDateRange.jsx +0 -49
- package/src/framework/components/field/time/HHmmPickerString.tsx +0 -42
- package/src/framework/components/field/time/MonthPickerString.tsx +0 -45
- package/src/framework/components/field/time/TimePickerTool.ts +0 -14
- package/src/framework/components/field/time/YearPickerString.tsx +0 -41
- package/src/framework/components/field/time/YearQuarterString.tsx +0 -38
- package/src/framework/components/field/time/index.tsx +0 -7
- package/src/framework/components/field/upload/FieldUploadCropImage/index.d.ts +0 -22
- package/src/framework/components/field/upload/FieldUploadCropImage/index.jsx +0 -11
- package/src/framework/components/field/upload/FieldUploadImage.d.ts +0 -7
- package/src/framework/components/field/upload/FieldUploadImage.jsx +0 -16
- package/src/framework/components/field/upload/index.jsx +0 -3
- package/src/framework/components/system.jsx +0 -29
- package/src/framework/components/view/ViewBoolean.jsx +0 -15
- package/src/framework/components/view/ViewBooleanEnableDisable.jsx +0 -16
- package/src/framework/components/view/ViewText.jsx +0 -9
- package/src/framework/index.js +0 -3
- package/src/framework/system/dict.js +0 -88
- package/src/framework/system/formRegistry.js +0 -58
- package/src/framework/system/http.jsx +0 -290
- package/src/framework/system/index.js +0 -13
- package/src/framework/system/page.js +0 -109
- package/src/framework/system/permission.js +0 -44
- package/src/framework/system/sys.js +0 -60
- package/src/framework/system/theme.js +0 -17
- package/src/framework/utils/arr.js +0 -118
- package/src/framework/utils/browser.js +0 -24
- package/src/framework/utils/color.js +0 -269
- package/src/framework/utils/debounce.js +0 -33
- package/src/framework/utils/dom.js +0 -16
- package/src/framework/utils/eventBus.js +0 -70
- package/src/framework/utils/html.js +0 -13
- package/src/framework/utils/index.js +0 -17
- package/src/framework/utils/obj.js +0 -72
- package/src/framework/utils/storage.js +0 -37
- package/src/framework/utils/str.js +0 -297
- package/src/framework/utils/tree.js +0 -175
- package/src/framework/utils/uid.js +0 -76
- package/src/framework/utils/url.js +0 -84
- package/src/framework/utils/validate.js +0 -9
- package/src/pages/api/accessLog/index.jsx +0 -108
- package/src/pages/api/accountResource/index.jsx +0 -149
- package/src/pages/api/index.jsx +0 -163
- package/src/pages/api/resource.jsx +0 -18
- package/src/pages/flowable/instance/view.jsx +0 -13
- package/src/pages/flowable/monitor.jsx +0 -106
- package/src/pages/flowable/test/form.jsx +0 -31
- package/src/pages/job/logList.jsx +0 -100
- package/src/pages/job/status.jsx +0 -84
- /package/src/framework/components/{ButtonList.d.ts → system/ButtonList.d.ts} +0 -0
- /package/src/framework/{components/EditTable/index.less → field-components/FieldTable.less} +0 -0
- /package/src/framework/{components/view → view-components}/ViewPassword.jsx +0 -0
- /package/src/{index.js → index.ts} +0 -0
- /package/src/{components/flow → pages/flowable}/design/contextPad.js +0 -0
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import {Button, Popconfirm, Space} from "antd";
|
|
2
|
+
import {HttpUtils, PageUtils, ProTable} from "../../../../framework";
|
|
3
|
+
import React from "react";
|
|
4
|
+
|
|
5
|
+
export default class extends React.Component {
|
|
6
|
+
|
|
7
|
+
columns = [
|
|
8
|
+
{
|
|
9
|
+
title: 'ID',
|
|
10
|
+
dataIndex: 'id',
|
|
11
|
+
key: 'id',
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
title: '流程定义ID',
|
|
15
|
+
dataIndex: 'processDefinitionId',
|
|
16
|
+
key: 'processDefinitionId',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
title: '流程定义名称',
|
|
20
|
+
dataIndex: 'processDefinitionName',
|
|
21
|
+
key: 'processDefinitionName',
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
title: '流程定义键',
|
|
25
|
+
dataIndex: 'processDefinitionKey',
|
|
26
|
+
key: 'processDefinitionKey',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
title: '流程定义版本',
|
|
30
|
+
dataIndex: 'processDefinitionVersion',
|
|
31
|
+
key: 'processDefinitionVersion',
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
title: '流程定义分类',
|
|
35
|
+
dataIndex: 'processDefinitionCategory',
|
|
36
|
+
key: 'processDefinitionCategory',
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
title: '部署ID',
|
|
40
|
+
dataIndex: 'deploymentId',
|
|
41
|
+
key: 'deploymentId',
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
title: '业务键',
|
|
45
|
+
dataIndex: 'businessKey',
|
|
46
|
+
key: 'businessKey',
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
title: '业务状态',
|
|
50
|
+
dataIndex: 'businessStatus',
|
|
51
|
+
key: 'businessStatus',
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
title: '是否挂起',
|
|
55
|
+
dataIndex: 'suspended',
|
|
56
|
+
key: 'suspended',
|
|
57
|
+
render: (value) => value ? '是' : '否',
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
title: '流程变量',
|
|
61
|
+
dataIndex: 'processVariables',
|
|
62
|
+
key: 'processVariables',
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
title: '租户ID',
|
|
66
|
+
dataIndex: 'tenantId',
|
|
67
|
+
key: 'tenantId',
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
title: '名称',
|
|
71
|
+
dataIndex: 'name',
|
|
72
|
+
key: 'name',
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
title: '描述',
|
|
76
|
+
dataIndex: 'description',
|
|
77
|
+
key: 'description',
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
title: '本地化名称',
|
|
81
|
+
dataIndex: 'localizedName',
|
|
82
|
+
key: 'localizedName',
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
title: '本地化描述',
|
|
86
|
+
dataIndex: 'localizedDescription',
|
|
87
|
+
key: 'localizedDescription',
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
title: '开始时间',
|
|
91
|
+
dataIndex: 'startTime',
|
|
92
|
+
key: 'startTime',
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
title: '启动用户ID',
|
|
96
|
+
dataIndex: 'startUserId',
|
|
97
|
+
key: 'startUserId',
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
title: '回调ID',
|
|
101
|
+
dataIndex: 'callbackId',
|
|
102
|
+
key: 'callbackId',
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
title: '回调类型',
|
|
106
|
+
dataIndex: 'callbackType',
|
|
107
|
+
key: 'callbackType',
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
title: '父ID',
|
|
111
|
+
dataIndex: 'parentId',
|
|
112
|
+
key: 'parentId',
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
title: '根流程实例ID',
|
|
116
|
+
dataIndex: 'rootProcessInstanceId',
|
|
117
|
+
key: 'rootProcessInstanceId',
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
title: '活动ID',
|
|
121
|
+
dataIndex: 'activityId',
|
|
122
|
+
key: 'activityId',
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
title: '当前活动ID',
|
|
126
|
+
dataIndex: 'currentActivityId',
|
|
127
|
+
key: 'currentActivityId',
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
title: '当前活动名称',
|
|
131
|
+
dataIndex: 'currentActivityName',
|
|
132
|
+
key: 'currentActivityName',
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
title: '当前活动类型',
|
|
136
|
+
dataIndex: 'currentActivityType',
|
|
137
|
+
key: 'currentActivityType',
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
title: '当前活动行为类型',
|
|
141
|
+
dataIndex: 'currentActivityBehaviorType',
|
|
142
|
+
key: 'currentActivityBehaviorType',
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
dataIndex: 'options',
|
|
146
|
+
title: '操作',
|
|
147
|
+
fixed: 'right',
|
|
148
|
+
render: (_, r) => {
|
|
149
|
+
return <Space>
|
|
150
|
+
<Button size='small' onClick={() => PageUtils.open(`/flowable/monitor/instance/view?id=${r.id}`, '查看流程')}>查看</Button>
|
|
151
|
+
<Popconfirm title={'关闭流程'}
|
|
152
|
+
onConfirm={() => this.close(r.id)}>
|
|
153
|
+
<Button size='small' >终止</Button>
|
|
154
|
+
</Popconfirm></Space>
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
]
|
|
159
|
+
|
|
160
|
+
close = (id) => {
|
|
161
|
+
HttpUtils.get('admin/flowable/monitor/processInstance/close', {id}).then((rs) => {
|
|
162
|
+
this.tableRef.current.reload()
|
|
163
|
+
})
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
tableRef = React.createRef()
|
|
167
|
+
|
|
168
|
+
render() {
|
|
169
|
+
return <ProTable
|
|
170
|
+
actionRef={this.tableRef}
|
|
171
|
+
columns={this.columns}
|
|
172
|
+
request={(params) => HttpUtils.get('admin/flowable/monitor/instancePage', params)}
|
|
173
|
+
>
|
|
174
|
+
|
|
175
|
+
</ProTable>
|
|
176
|
+
}
|
|
177
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import {Gap, HttpUtils, Page, PageUtils, ProTable} from "../../../../framework";
|
|
3
|
+
import {Card, Empty, Skeleton, Table} from "antd";
|
|
4
|
+
|
|
5
|
+
export default class extends React.Component {
|
|
6
|
+
state = {
|
|
7
|
+
instanceCommentList: [],
|
|
8
|
+
vars: {},
|
|
9
|
+
|
|
10
|
+
id: null,
|
|
11
|
+
starter: null,
|
|
12
|
+
startTime: null,
|
|
13
|
+
name: null,
|
|
14
|
+
|
|
15
|
+
data: {
|
|
16
|
+
commentList: [],
|
|
17
|
+
img: null
|
|
18
|
+
},
|
|
19
|
+
loading: true,
|
|
20
|
+
|
|
21
|
+
errorMsg: null
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
componentDidMount() {
|
|
26
|
+
const {businessKey, id} = PageUtils.currentParams()
|
|
27
|
+
|
|
28
|
+
HttpUtils.get("admin/flowable/my/getInstanceInfo", {id, businessKey}).then(rs => {
|
|
29
|
+
this.setState(rs)
|
|
30
|
+
this.setState({data: rs})
|
|
31
|
+
}).catch(e => {
|
|
32
|
+
this.setState({errorMsg: e})
|
|
33
|
+
}).finally(() => {
|
|
34
|
+
this.setState({loading: false})
|
|
35
|
+
})
|
|
36
|
+
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
render() {
|
|
41
|
+
|
|
42
|
+
if (this.state.errorMsg) {
|
|
43
|
+
return <Empty description={this.state.errorMsg}></Empty>
|
|
44
|
+
}
|
|
45
|
+
const {id} = PageUtils.currentParams()
|
|
46
|
+
|
|
47
|
+
const {data, loading} = this.state
|
|
48
|
+
const {commentList, img} = data
|
|
49
|
+
if (loading) {
|
|
50
|
+
return <Skeleton/>
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
return <Page padding>
|
|
55
|
+
<Card title='流程图'>
|
|
56
|
+
<img src={img} style={{maxWidth: '100%'}}/>
|
|
57
|
+
</Card>
|
|
58
|
+
<Gap/>
|
|
59
|
+
<Card title='审批记录'>
|
|
60
|
+
<Table dataSource={commentList}
|
|
61
|
+
size='small'
|
|
62
|
+
pagination={false}
|
|
63
|
+
rowKey='id'
|
|
64
|
+
columns={[
|
|
65
|
+
{
|
|
66
|
+
dataIndex: 'content',
|
|
67
|
+
title: '操作'
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
dataIndex: 'user',
|
|
71
|
+
title: '处理人'
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
dataIndex: 'time',
|
|
75
|
+
title: '处理时间'
|
|
76
|
+
},
|
|
77
|
+
]}
|
|
78
|
+
/>
|
|
79
|
+
</Card>
|
|
80
|
+
|
|
81
|
+
<Gap/>
|
|
82
|
+
<Card title='流程变量'>
|
|
83
|
+
<ProTable columns={[
|
|
84
|
+
{
|
|
85
|
+
dataIndex: 'key',
|
|
86
|
+
title: '变量名'
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
dataIndex: 'value',
|
|
90
|
+
title: '变量值'
|
|
91
|
+
},
|
|
92
|
+
]}
|
|
93
|
+
rowKey='key'
|
|
94
|
+
request={() => HttpUtils.get('admin/flowable/monitor/instance/vars', {id})}
|
|
95
|
+
></ProTable>
|
|
96
|
+
|
|
97
|
+
</Card>
|
|
98
|
+
</Page>
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import {FieldUserSelect, HttpUtils, Page, ProTable} from "../../../framework";
|
|
2
|
+
import {Button, Form, Modal} from "antd";
|
|
3
|
+
import React from "react";
|
|
4
|
+
|
|
5
|
+
export default class extends React.Component {
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
state = {
|
|
9
|
+
assigneeFormOpen:false,
|
|
10
|
+
assigneeFormValues:{}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
assigneeFormRef = React.createRef()
|
|
14
|
+
taskTableRef = React.createRef()
|
|
15
|
+
|
|
16
|
+
onClickSetAssignee = id => {
|
|
17
|
+
this.setState({assigneeFormOpen:true,assigneeFormValues:{taskId:id}})
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
submitSetAssignee = values => {
|
|
21
|
+
HttpUtils.post('admin/flowable/monitor/setAssignee',values).then(()=>{
|
|
22
|
+
this.setState({assigneeFormOpen:false})
|
|
23
|
+
this.taskTableRef.current.reload()
|
|
24
|
+
})
|
|
25
|
+
};
|
|
26
|
+
render() {
|
|
27
|
+
return <Page padding>
|
|
28
|
+
<ProTable
|
|
29
|
+
actionRef={this.taskTableRef}
|
|
30
|
+
columns={[
|
|
31
|
+
{
|
|
32
|
+
dataIndex: 'id',
|
|
33
|
+
title: '任务标识',
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
dataIndex: 'name',
|
|
37
|
+
title: '名称',
|
|
38
|
+
},
|
|
39
|
+
|
|
40
|
+
{
|
|
41
|
+
dataIndex: 'processDefinitionId',
|
|
42
|
+
title: '定义'
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
dataIndex: 'processInstanceId',
|
|
46
|
+
title: '实例'
|
|
47
|
+
},
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
{
|
|
51
|
+
dataIndex: 'assigneeLabel',
|
|
52
|
+
title: '处理人'
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
dataIndex: 'startTime',
|
|
56
|
+
title: '开始时间'
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
dataIndex: 'tenantId',
|
|
60
|
+
title: '租户'
|
|
61
|
+
},
|
|
62
|
+
|
|
63
|
+
{
|
|
64
|
+
dataIndex:'id',
|
|
65
|
+
render:(id)=>{
|
|
66
|
+
return <Button size='small' onClick={()=>this.onClickSetAssignee(id)}>指定处理人</Button>
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
]}
|
|
70
|
+
request={(params) => HttpUtils.get('admin/flowable/monitor/task', params)}
|
|
71
|
+
>
|
|
72
|
+
<Form.Item label='受理人' name='assignee'>
|
|
73
|
+
<FieldUserSelect />
|
|
74
|
+
</Form.Item>
|
|
75
|
+
</ProTable>
|
|
76
|
+
<Modal title='指定处理人'
|
|
77
|
+
open={this.state.assigneeFormOpen}
|
|
78
|
+
onOk={()=>this.assigneeFormRef.current.submit()}
|
|
79
|
+
onCancel={()=>this.setState({assigneeFormOpen:false})}
|
|
80
|
+
destroyOnHidden
|
|
81
|
+
>
|
|
82
|
+
<Form ref={this.assigneeFormRef} onFinish={this.submitSetAssignee} initialValues={this.state.assigneeFormValues}>
|
|
83
|
+
<Form.Item name='taskId' noStyle>
|
|
84
|
+
</Form.Item>
|
|
85
|
+
<Form.Item name='assignee' label='用户'>
|
|
86
|
+
<FieldUserSelect />
|
|
87
|
+
</Form.Item>
|
|
88
|
+
</Form>
|
|
89
|
+
</Modal>
|
|
90
|
+
</Page>
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import {Button, Card, Form, Input, message, Radio, Spin, Splitter,} from "antd";
|
|
3
|
-
import InstanceInfo from "../../../components/InstanceInfo";
|
|
4
3
|
import {history} from "umi";
|
|
5
|
-
import {
|
|
4
|
+
import {HttpUtils, Page, PageUtils} from "../../../framework";
|
|
5
|
+
import InstanceInfo from "../InstanceInfo";
|
|
6
6
|
|
|
7
7
|
export default class extends React.Component {
|
|
8
8
|
|
|
@@ -20,10 +20,10 @@ export default class extends React.Component {
|
|
|
20
20
|
externalFormRef = React.createRef()
|
|
21
21
|
|
|
22
22
|
componentDidMount() {
|
|
23
|
-
const {taskId, instanceId, formKey} =
|
|
23
|
+
const {taskId, instanceId, formKey} = PageUtils.currentParams()
|
|
24
24
|
this.setState({taskId, instanceId, formKey})
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
HttpUtils.get('admin/flowable/my/taskInfo', {id: taskId}).then(rs=>{
|
|
27
27
|
console.log('任务信息',rs)
|
|
28
28
|
this.setState({taskInfo:rs})
|
|
29
29
|
})
|
|
@@ -41,7 +41,7 @@ export default class extends React.Component {
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
value.taskId = this.state.taskId
|
|
44
|
-
await
|
|
44
|
+
await HttpUtils.post("admin//flowable/my/handleTask", value)
|
|
45
45
|
history.replace('/flowable/task')
|
|
46
46
|
} catch (error) {
|
|
47
47
|
message.error(error)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import {Button, Modal, Tabs} from "antd";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import {HttpUtils, LinkButton, Page, PageLoading, ProTable} from "../../../framework";
|
|
4
|
+
import InstanceInfo from "../InstanceInfo";
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
export default class extends React.Component {
|
|
@@ -31,7 +31,7 @@ export default class extends React.Component {
|
|
|
31
31
|
|
|
32
32
|
renderTodo = () => <ProTable
|
|
33
33
|
showToolbarSearch={false}
|
|
34
|
-
request={(params) =>
|
|
34
|
+
request={(params) => HttpUtils.get("admin/flowable/my/todoTaskPage", params)}
|
|
35
35
|
columns={[
|
|
36
36
|
|
|
37
37
|
{
|
|
@@ -84,7 +84,7 @@ export default class extends React.Component {
|
|
|
84
84
|
|
|
85
85
|
renderDone = () => <ProTable
|
|
86
86
|
showToolbarSearch={false}
|
|
87
|
-
request={(params) =>
|
|
87
|
+
request={(params) => HttpUtils.get("admin/flowable/my/doneTaskPage", params)}
|
|
88
88
|
columns={[
|
|
89
89
|
{
|
|
90
90
|
title: '流程名称',
|
|
@@ -138,7 +138,7 @@ export default class extends React.Component {
|
|
|
138
138
|
/>;
|
|
139
139
|
|
|
140
140
|
renderMyStart = () => <ProTable
|
|
141
|
-
request={(params) =>
|
|
141
|
+
request={(params) => HttpUtils.get("admin/flowable/my/myInstance", params)}
|
|
142
142
|
columns={[
|
|
143
143
|
|
|
144
144
|
{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import {Button, Card, Form, Input} from "antd";
|
|
3
|
-
import {
|
|
3
|
+
import {HttpUtils, MessageUtils, PageLoading, PageUtils, StringUtils} from "../../../framework";
|
|
4
4
|
|
|
5
5
|
export default class extends React.Component {
|
|
6
6
|
|
|
@@ -10,12 +10,11 @@ export default class extends React.Component {
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
componentDidMount() {
|
|
13
|
-
let params =
|
|
13
|
+
let params = PageUtils.currentParams()
|
|
14
14
|
const id = this.id = params.id
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
HttpUtils.get('admin/flowable/test/get', {id}).then(rs=>{
|
|
17
17
|
this.setState({model: rs})
|
|
18
|
-
|
|
19
18
|
})
|
|
20
19
|
|
|
21
20
|
}
|
|
@@ -26,13 +25,16 @@ export default class extends React.Component {
|
|
|
26
25
|
return <PageLoading />
|
|
27
26
|
}
|
|
28
27
|
|
|
29
|
-
return <Card title={'流程测试 / 【' + this.state.model.name + "】 / " + this.state.model.
|
|
28
|
+
return <Card title={'流程测试 / 【' + this.state.model.name + "】 / " + this.state.model.key }>
|
|
30
29
|
<Form onFinish={this.onFinish} layout='vertical' >
|
|
31
|
-
<Form.Item name='
|
|
30
|
+
<Form.Item name='key' noStyle initialValue={this.state.model.key}>
|
|
31
|
+
</Form.Item>
|
|
32
|
+
|
|
33
|
+
<Form.Item name='id' label='业务标识(相当于业务表的id)' rules={[{required: true}]} initialValue={StringUtils.random(16)}>
|
|
32
34
|
<Input />
|
|
33
35
|
</Form.Item>
|
|
34
36
|
|
|
35
|
-
{this.state.model.
|
|
37
|
+
{this.state.model.variables.map(item=><Form.Item key={item.name} name={item.name} label={item.label}>
|
|
36
38
|
<Input />
|
|
37
39
|
</Form.Item>)}
|
|
38
40
|
|
|
@@ -46,9 +48,10 @@ export default class extends React.Component {
|
|
|
46
48
|
}
|
|
47
49
|
|
|
48
50
|
onFinish = values => {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
51
|
+
HttpUtils.post('admin/flowable/test/submit', values).then(rs=>{
|
|
52
|
+
MessageUtils.confirm('跳转任务列表?').then(()=>{
|
|
53
|
+
PageUtils.open('/flowable/monitor/task')
|
|
54
|
+
})
|
|
52
55
|
})
|
|
53
56
|
};
|
|
54
57
|
}
|
package/src/pages/index.jsx
CHANGED
|
@@ -1,25 +1,20 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import {Card} from "antd";
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export default class extends React.Component {
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
}
|
|
7
|
+
state = {}
|
|
9
8
|
|
|
10
|
-
|
|
9
|
+
render() {
|
|
11
10
|
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
return <Card>
|
|
12
|
+
欢迎使用本系统
|
|
14
13
|
|
|
15
|
-
<Space>
|
|
16
|
-
<Button onClick={()=>MsgBox.alert('你好')}>alert</Button>
|
|
17
|
-
<Button onClick={()=>MsgBox.confirm('你好')}>comfirm</Button>
|
|
18
|
-
<Button onClick={()=>MsgBox.prompt('你好')}>prompt</Button>
|
|
19
14
|
|
|
20
|
-
</Space>
|
|
21
15
|
|
|
22
|
-
|
|
23
|
-
|
|
16
|
+
|
|
17
|
+
</Card>
|
|
18
|
+
}
|
|
24
19
|
|
|
25
20
|
}
|
package/src/pages/login.jsx
CHANGED
|
@@ -3,7 +3,7 @@ import {Button, Form, Input, message, Space} from 'antd';
|
|
|
3
3
|
import {LockOutlined, SafetyCertificateOutlined, UserOutlined, WarningOutlined} from '@ant-design/icons';
|
|
4
4
|
import "./login.less"
|
|
5
5
|
import {history} from 'umi';
|
|
6
|
-
import {
|
|
6
|
+
import {HttpUtils, MessageUtils, PageUtils, SysUtils} from "../framework";
|
|
7
7
|
import {JSEncrypt} from "jsencrypt";
|
|
8
8
|
|
|
9
9
|
|
|
@@ -20,7 +20,7 @@ export default class login extends React.Component {
|
|
|
20
20
|
|
|
21
21
|
async componentDidMount() {
|
|
22
22
|
console.log('渲染登录页面')
|
|
23
|
-
const redirect =
|
|
23
|
+
const redirect = PageUtils.currentParams()['redirect']
|
|
24
24
|
if(redirect){
|
|
25
25
|
console.log('重定向参数',redirect)
|
|
26
26
|
this.redirect = decodeURIComponent(redirect)
|
|
@@ -29,7 +29,7 @@ export default class login extends React.Component {
|
|
|
29
29
|
|
|
30
30
|
{
|
|
31
31
|
// 内部系统登录
|
|
32
|
-
let token =
|
|
32
|
+
let token = PageUtils.currentParams().token
|
|
33
33
|
if (token) {
|
|
34
34
|
token = window.location.search
|
|
35
35
|
this.submit({token})
|
|
@@ -37,12 +37,12 @@ export default class login extends React.Component {
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
if (localStorage.length === 0) {
|
|
40
|
-
|
|
40
|
+
MessageUtils.alert('站点数据缺失,刷新当前页面...')
|
|
41
41
|
window.location.reload()
|
|
42
42
|
return
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
const siteInfo =
|
|
45
|
+
const siteInfo = SysUtils.getSiteInfo()
|
|
46
46
|
this.setState({siteInfo})
|
|
47
47
|
}
|
|
48
48
|
|
|
@@ -61,7 +61,7 @@ export default class login extends React.Component {
|
|
|
61
61
|
values.password = crypt.encrypt(values.password)
|
|
62
62
|
|
|
63
63
|
|
|
64
|
-
|
|
64
|
+
HttpUtils.postForm('/admin/auth/login', values).then(rs => {
|
|
65
65
|
console.log('登录结果', rs)
|
|
66
66
|
history.push(this.redirect)
|
|
67
67
|
}).catch(e=>{
|
|
@@ -78,7 +78,7 @@ export default class login extends React.Component {
|
|
|
78
78
|
|
|
79
79
|
const pageStyle = {}
|
|
80
80
|
if(siteInfo.loginBackground){
|
|
81
|
-
let url =
|
|
81
|
+
let url = 'admin/sysFile/preview/' + siteInfo.loginBackground;
|
|
82
82
|
pageStyle.backgroundImage = 'url("'+url+'")'
|
|
83
83
|
}
|
|
84
84
|
|
|
@@ -109,7 +109,7 @@ export default class login extends React.Component {
|
|
|
109
109
|
<Space style={{alignItems: 'center'}}>
|
|
110
110
|
<Input size='large' placeholder='验证码' prefix={<SafetyCertificateOutlined/>}/>
|
|
111
111
|
<img height={36} width={100}
|
|
112
|
-
src={
|
|
112
|
+
src={"/admin/auth/captchaImage?_random=" + this.state.random} onClick={() => {
|
|
113
113
|
this.setState({random: Math.random()})
|
|
114
114
|
}}></img>
|
|
115
115
|
</Space>
|