@vef-framework-react/approval 2.29.0 → 2.31.0
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/dist/cjs/api/admin-api.cjs +1 -1
- package/dist/cjs/api/flow-api.cjs +1 -1
- package/dist/cjs/api/instance-api.cjs +1 -1
- package/dist/cjs/api/my-api.cjs +1 -1
- package/dist/cjs/components/action-dialog/index.cjs +1 -1
- package/dist/cjs/components/action-dialog/user-selection.cjs +1 -0
- package/dist/cjs/components/annotations/composers.cjs +1 -0
- package/dist/cjs/components/annotations/field-anchor.cjs +1 -0
- package/dist/cjs/components/annotations/index.cjs +1 -0
- package/dist/cjs/components/annotations/use-annotations.cjs +1 -0
- package/dist/cjs/components/business-form.cjs +1 -0
- package/dist/cjs/components/capped-modal.cjs +1 -0
- package/dist/cjs/components/detail/action-modals.cjs +1 -1
- package/dist/cjs/components/detail/admin.cjs +1 -1
- package/dist/cjs/components/detail/index.cjs +1 -1
- package/dist/cjs/components/flow-graph/node.cjs +1 -1
- package/dist/cjs/components/flow-graph/people-overlay.cjs +1 -1
- package/dist/cjs/components/form-panel/index.cjs +1 -1
- package/dist/cjs/components/format.cjs +1 -1
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/components/instance-list-title.cjs +1 -0
- package/dist/cjs/components/principal/index.cjs +1 -1
- package/dist/cjs/components/status/colors.cjs +1 -1
- package/dist/cjs/components/status/index.cjs +1 -1
- package/dist/cjs/components/status/labels.cjs +1 -1
- package/dist/cjs/components/timeline/index.cjs +1 -1
- package/dist/cjs/components/user/index.cjs +1 -1
- package/dist/cjs/components/void/direct-dialog.cjs +1 -0
- package/dist/cjs/components/void/form.cjs +1 -0
- package/dist/cjs/components/void/request-renderer.cjs +1 -0
- package/dist/cjs/components/void/summary.cjs +1 -0
- package/dist/cjs/components/void/use-refresh.cjs +1 -0
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/pages/admin-page/apply-handovers.cjs +1 -0
- package/dist/cjs/pages/admin-page/index.cjs +1 -1
- package/dist/cjs/pages/admin-page/instances.cjs +1 -1
- package/dist/cjs/pages/admin-page/metrics.cjs +1 -1
- package/dist/cjs/pages/admin-page/tasks.cjs +1 -1
- package/dist/cjs/pages/category-page/index.cjs +1 -1
- package/dist/cjs/pages/delegation-page/index.cjs +1 -1
- package/dist/cjs/pages/flow-page/columns.cjs +1 -1
- package/dist/cjs/pages/flow-page/designer/basic-step.cjs +1 -1
- package/dist/cjs/pages/flow-page/designer/field-catalog.cjs +1 -0
- package/dist/cjs/pages/flow-page/designer/form-step.cjs +1 -1
- package/dist/cjs/pages/flow-page/designer/index.cjs +1 -1
- package/dist/cjs/pages/flow-page/designer/review-step.cjs +1 -1
- package/dist/cjs/pages/flow-page/designer/types.cjs +1 -1
- package/dist/cjs/pages/flow-page/designer/void-policy.cjs +1 -0
- package/dist/cjs/pages/flow-page/index.cjs +1 -1
- package/dist/cjs/pages/index.cjs +1 -1
- package/dist/cjs/pages/initiate-page/index.cjs +1 -1
- package/dist/cjs/pages/initiate-page/start-drawer.cjs +1 -1
- package/dist/cjs/pages/my-instances-page/index.cjs +1 -1
- package/dist/cjs/pages/task-center-page/index.cjs +1 -1
- package/dist/cjs/permissions.cjs +1 -1
- package/dist/cjs/plugins/index.cjs +1 -1
- package/dist/cjs/types/annotation.cjs +1 -0
- package/dist/cjs/types/detail.cjs +1 -0
- package/dist/cjs/types/enums.cjs +1 -1
- package/dist/cjs/types/index.cjs +1 -1
- package/dist/cjs/types/void.cjs +1 -0
- package/dist/es/api/admin-api.js +5 -2
- package/dist/es/api/category-api.js +1 -1
- package/dist/es/api/delegation-api.js +1 -1
- package/dist/es/api/flow-api.js +19 -15
- package/dist/es/api/index.js +1 -1
- package/dist/es/api/instance-api.js +3 -1
- package/dist/es/api/my-api.js +2 -1
- package/dist/es/api/query.js +1 -1
- package/dist/es/components/action-dialog/index.js +64 -41
- package/dist/es/components/action-dialog/user-selection.js +48 -0
- package/dist/es/components/annotations/composers.js +231 -0
- package/dist/es/components/annotations/field-anchor.js +18 -0
- package/dist/es/components/annotations/index.js +271 -0
- package/dist/es/components/annotations/use-annotations.js +77 -0
- package/dist/es/components/business-form.js +36 -0
- package/dist/es/components/capped-modal.js +27 -0
- package/dist/es/components/detail/action-modals.js +120 -132
- package/dist/es/components/detail/admin.js +109 -74
- package/dist/es/components/detail/drawer.js +1 -1
- package/dist/es/components/detail/index.js +298 -233
- package/dist/es/components/flow-graph/index.js +1 -1
- package/dist/es/components/flow-graph/node.js +26 -26
- package/dist/es/components/flow-graph/people-overlay.js +104 -100
- package/dist/es/components/flow-graph/people.js +1 -1
- package/dist/es/components/form-panel/index.js +10 -9
- package/dist/es/components/format.js +7 -4
- package/dist/es/components/icon.js +1 -1
- package/dist/es/components/index.js +11 -8
- package/dist/es/components/instance-list-title.js +31 -0
- package/dist/es/components/principal/index.js +4 -2
- package/dist/es/components/status/colors.js +3 -2
- package/dist/es/components/status/index.js +14 -14
- package/dist/es/components/status/labels.js +7 -3
- package/dist/es/components/timeline/index.js +79 -69
- package/dist/es/components/user/index.js +32 -25
- package/dist/es/components/void/direct-dialog.js +62 -0
- package/dist/es/components/void/form.js +100 -0
- package/dist/es/components/void/request-renderer.js +91 -0
- package/dist/es/components/void/summary.js +142 -0
- package/dist/es/components/void/use-refresh.js +22 -0
- package/dist/es/index.js +33 -27
- package/dist/es/pages/admin-page/apply-handovers.js +185 -0
- package/dist/es/pages/admin-page/index.js +50 -43
- package/dist/es/pages/admin-page/instances.js +50 -52
- package/dist/es/pages/admin-page/metrics.js +34 -33
- package/dist/es/pages/admin-page/projections.js +1 -1
- package/dist/es/pages/admin-page/tasks.js +59 -57
- package/dist/es/pages/category-page/columns.js +1 -1
- package/dist/es/pages/category-page/form.js +1 -1
- package/dist/es/pages/category-page/index.js +21 -21
- package/dist/es/pages/delegation-page/columns.js +1 -1
- package/dist/es/pages/delegation-page/form.js +1 -1
- package/dist/es/pages/delegation-page/index.js +19 -19
- package/dist/es/pages/flow-page/columns.js +6 -6
- package/dist/es/pages/flow-page/designer/basic-step.js +202 -146
- package/dist/es/pages/flow-page/designer/field-catalog.js +47 -0
- package/dist/es/pages/flow-page/designer/flow-step.js +1 -1
- package/dist/es/pages/flow-page/designer/form-step.js +14 -14
- package/dist/es/pages/flow-page/designer/index.js +248 -204
- package/dist/es/pages/flow-page/designer/review-step.js +38 -60
- package/dist/es/pages/flow-page/designer/types.js +13 -5
- package/dist/es/pages/flow-page/designer/void-policy.js +135 -0
- package/dist/es/pages/flow-page/index.js +18 -18
- package/dist/es/pages/flow-page/search.js +1 -1
- package/dist/es/pages/flow-page/versions.js +1 -1
- package/dist/es/pages/index.js +9 -9
- package/dist/es/pages/initiate-page/index.js +133 -86
- package/dist/es/pages/initiate-page/start-drawer.js +153 -64
- package/dist/es/pages/my-instances-page/index.js +57 -77
- package/dist/es/pages/task-center-page/index.js +73 -68
- package/dist/es/pages/task-center-page/search.js +1 -1
- package/dist/es/permissions.js +6 -3
- package/dist/es/plugins/form-context.js +1 -1
- package/dist/es/plugins/index.js +33 -21
- package/dist/es/types/annotation.js +18 -0
- package/dist/es/types/detail.js +7 -0
- package/dist/es/types/enums.js +3 -2
- package/dist/es/types/index.js +6 -3
- package/dist/es/types/void.js +5 -0
- package/dist/types/api/admin-api.d.ts +4 -1
- package/dist/types/api/flow-api.d.ts +4 -2
- package/dist/types/api/instance-api.d.ts +5 -1
- package/dist/types/api/my-api.d.ts +2 -1
- package/dist/types/components/action-dialog/index.d.ts +8 -2
- package/dist/types/components/action-dialog/user-selection.d.ts +18 -0
- package/dist/types/components/annotations/composers.d.ts +14 -0
- package/dist/types/components/annotations/field-anchor.d.ts +3 -0
- package/dist/types/components/annotations/index.d.ts +22 -0
- package/dist/types/components/annotations/use-annotations.d.ts +24 -0
- package/dist/types/components/business-form.d.ts +14 -0
- package/dist/types/components/capped-modal.d.ts +2 -0
- package/dist/types/components/detail/admin.d.ts +2 -1
- package/dist/types/components/form-panel/index.d.ts +3 -2
- package/dist/types/components/format.d.ts +1 -0
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/components/instance-list-title.d.ts +5 -0
- package/dist/types/components/timeline/index.d.ts +3 -1
- package/dist/types/components/user/index.d.ts +4 -0
- package/dist/types/components/void/direct-dialog.d.ts +8 -0
- package/dist/types/components/void/form.d.ts +27 -0
- package/dist/types/components/void/request-renderer.d.ts +3 -0
- package/dist/types/components/void/summary.d.ts +16 -0
- package/dist/types/components/void/use-refresh.d.ts +4 -0
- package/dist/types/index.d.ts +3 -3
- package/dist/types/pages/admin-page/apply-handovers.d.ts +3 -0
- package/dist/types/pages/admin-page/index.d.ts +2 -0
- package/dist/types/pages/admin-page/instances.d.ts +2 -1
- package/dist/types/pages/flow-page/designer/basic-step.d.ts +7 -2
- package/dist/types/pages/flow-page/designer/field-catalog.d.ts +5 -0
- package/dist/types/pages/flow-page/designer/review-step.d.ts +2 -1
- package/dist/types/pages/flow-page/designer/types.d.ts +13 -2
- package/dist/types/pages/flow-page/designer/void-policy.d.ts +14 -0
- package/dist/types/pages/initiate-page/start-drawer.d.ts +7 -1
- package/dist/types/permissions.d.ts +8 -0
- package/dist/types/plugins/index.d.ts +39 -4
- package/dist/types/types/admin.d.ts +27 -0
- package/dist/types/types/annotation.d.ts +60 -0
- package/dist/types/types/detail.d.ts +8 -1
- package/dist/types/types/enums.d.ts +5 -10
- package/dist/types/types/flow.d.ts +25 -5
- package/dist/types/types/index.d.ts +3 -1
- package/dist/types/types/instance.d.ts +1 -2
- package/dist/types/types/my.d.ts +16 -0
- package/dist/types/types/void.d.ts +58 -0
- package/package.json +8 -7
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.31.0 made by Venus | 2026-11-19T01:43:39.549Z */
|
|
2
2
|
import { useAdminApprovalApi as e } from "../../api/admin-api.js";
|
|
3
|
-
import {
|
|
4
|
-
import { TASK_STATUS_OPTIONS as
|
|
5
|
-
import { TaskStatusTag as
|
|
6
|
-
import { UserLabel as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { useMutation as
|
|
10
|
-
import { useState as
|
|
11
|
-
import { Crud as
|
|
12
|
-
import { Fragment as
|
|
3
|
+
import { displayInstanceTitle as t, formatTimestamp as n } from "../../components/format.js";
|
|
4
|
+
import { TASK_STATUS_OPTIONS as r } from "../../components/status/labels.js";
|
|
5
|
+
import { TaskStatusTag as i } from "../../components/status/index.js";
|
|
6
|
+
import { PredecessorLabel as a, UserLabel as o } from "../../components/user/index.js";
|
|
7
|
+
import { ActionBody as s, ActionDialog as c, ActionFooter as l } from "../../components/action-dialog/index.js";
|
|
8
|
+
import { UserActionField as u, useUserAction as d } from "../../components/action-dialog/user-selection.js";
|
|
9
|
+
import { useMutation as f } from "@vef-framework-react/core";
|
|
10
|
+
import { useState as p } from "react";
|
|
11
|
+
import { Crud as m, Flex as h, Input as g, Labeled as _, OperationButton as v, Text as y, showSuccessMessage as b, useFormContext as x } from "@vef-framework-react/components";
|
|
12
|
+
import { Fragment as S, jsx as C, jsxs as w } from "@emotion/react/jsx-runtime";
|
|
13
13
|
//#region src/pages/admin-page/tasks.tsx
|
|
14
|
-
var
|
|
14
|
+
var T = [
|
|
15
15
|
{
|
|
16
16
|
title: "审批单",
|
|
17
17
|
dataIndex: "instanceTitle",
|
|
18
|
-
render: (e) => /* @__PURE__ */
|
|
18
|
+
render: (e, n) => /* @__PURE__ */ C(y, { children: t(e, n.instanceNo) })
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
title: "所属流程",
|
|
@@ -31,118 +31,120 @@ var S = [
|
|
|
31
31
|
title: "处理人",
|
|
32
32
|
dataIndex: "assignee",
|
|
33
33
|
width: 150,
|
|
34
|
-
render: (e) => /* @__PURE__ */
|
|
34
|
+
render: (e, t) => /* @__PURE__ */ w(h, {
|
|
35
|
+
align: "center",
|
|
36
|
+
gap: "small",
|
|
37
|
+
wrap: "wrap",
|
|
38
|
+
children: [/* @__PURE__ */ C(o, { user: e }), t.predecessor && /* @__PURE__ */ C(a, { user: t.predecessor })]
|
|
39
|
+
})
|
|
35
40
|
},
|
|
36
41
|
{
|
|
37
42
|
title: "状态",
|
|
38
43
|
dataIndex: "status",
|
|
39
44
|
width: 100,
|
|
40
|
-
render: (e) => /* @__PURE__ */
|
|
45
|
+
render: (e) => /* @__PURE__ */ C(i, { status: e })
|
|
41
46
|
},
|
|
42
47
|
{
|
|
43
48
|
title: "创建时间",
|
|
44
49
|
dataIndex: "createdAt",
|
|
45
50
|
width: 160,
|
|
46
|
-
render: (e) =>
|
|
51
|
+
render: (e) => n(e)
|
|
47
52
|
},
|
|
48
53
|
{
|
|
49
54
|
title: "完成时间",
|
|
50
55
|
dataIndex: "finishedAt",
|
|
51
56
|
width: 160,
|
|
52
|
-
render: (e) =>
|
|
57
|
+
render: (e) => n(e)
|
|
53
58
|
}
|
|
54
59
|
];
|
|
55
|
-
function
|
|
56
|
-
let { AppField: e } =
|
|
57
|
-
return /* @__PURE__ */
|
|
58
|
-
/* @__PURE__ */
|
|
60
|
+
function E() {
|
|
61
|
+
let { AppField: e } = x();
|
|
62
|
+
return /* @__PURE__ */ w(S, { children: [
|
|
63
|
+
/* @__PURE__ */ C(e, {
|
|
59
64
|
name: "assigneeId",
|
|
60
|
-
children: (e) => /* @__PURE__ */
|
|
65
|
+
children: (e) => /* @__PURE__ */ C(e.Input, {
|
|
61
66
|
allowClear: !0,
|
|
62
67
|
noWrapper: !0,
|
|
63
68
|
placeholder: "处理人 ID"
|
|
64
69
|
})
|
|
65
70
|
}),
|
|
66
|
-
/* @__PURE__ */
|
|
71
|
+
/* @__PURE__ */ C(e, {
|
|
67
72
|
name: "instanceId",
|
|
68
|
-
children: (e) => /* @__PURE__ */
|
|
73
|
+
children: (e) => /* @__PURE__ */ C(e.Input, {
|
|
69
74
|
allowClear: !0,
|
|
70
75
|
noWrapper: !0,
|
|
71
76
|
placeholder: "实例 ID"
|
|
72
77
|
})
|
|
73
78
|
}),
|
|
74
|
-
/* @__PURE__ */
|
|
79
|
+
/* @__PURE__ */ C(e, {
|
|
75
80
|
name: "status",
|
|
76
|
-
children: (e) => /* @__PURE__ */
|
|
81
|
+
children: (e) => /* @__PURE__ */ C(e.Select, {
|
|
77
82
|
allowClear: !0,
|
|
78
83
|
noWrapper: !0,
|
|
79
|
-
options:
|
|
84
|
+
options: r,
|
|
80
85
|
placeholder: "状态",
|
|
81
86
|
style: { minWidth: 110 }
|
|
82
87
|
})
|
|
83
88
|
})
|
|
84
89
|
] });
|
|
85
90
|
}
|
|
86
|
-
function
|
|
87
|
-
let
|
|
88
|
-
return /* @__PURE__ */
|
|
91
|
+
function D({ onClose: e, onConfirm: t }) {
|
|
92
|
+
let n = d(e), [r, i] = p(""), { submitting: a, run: o } = n, c = n.userIds[0];
|
|
93
|
+
return /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ w(s, {
|
|
89
94
|
gap: 12,
|
|
90
95
|
style: { paddingBlock: 8 },
|
|
91
|
-
children: [/* @__PURE__ */
|
|
96
|
+
children: [/* @__PURE__ */ C(u, {
|
|
92
97
|
label: "改派给",
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
value: n,
|
|
97
|
-
onChange: r
|
|
98
|
-
})
|
|
99
|
-
}), /* @__PURE__ */ b(p, {
|
|
98
|
+
maxCount: 1,
|
|
99
|
+
selection: n
|
|
100
|
+
}), /* @__PURE__ */ C(_, {
|
|
100
101
|
label: "改派原因",
|
|
101
|
-
children: /* @__PURE__ */
|
|
102
|
+
children: /* @__PURE__ */ C(g.TextArea, {
|
|
102
103
|
maxLength: 2e3,
|
|
103
104
|
placeholder: "请输入改派原因(可选)",
|
|
104
105
|
rows: 3,
|
|
105
|
-
value:
|
|
106
|
-
onChange: (e) =>
|
|
106
|
+
value: r,
|
|
107
|
+
onChange: (e) => i(e.target.value)
|
|
107
108
|
})
|
|
108
109
|
})]
|
|
109
|
-
}), /* @__PURE__ */
|
|
110
|
-
disabled:
|
|
110
|
+
}), /* @__PURE__ */ C(l, {
|
|
111
|
+
disabled: c === void 0 || n.failure?.requiresNewSelection,
|
|
111
112
|
okText: "改派",
|
|
112
|
-
submitting:
|
|
113
|
+
submitting: a,
|
|
113
114
|
onCancel: e,
|
|
114
|
-
onOk: () =>
|
|
115
|
+
onOk: () => c !== void 0 && void o(() => t(c, r))
|
|
115
116
|
})] });
|
|
116
117
|
}
|
|
117
|
-
function
|
|
118
|
-
return /* @__PURE__ */
|
|
118
|
+
function O({ open: e, onClose: t, onConfirm: n }) {
|
|
119
|
+
return /* @__PURE__ */ C(c, {
|
|
119
120
|
open: e,
|
|
120
121
|
title: "改派任务",
|
|
121
122
|
onClose: t,
|
|
122
|
-
children: /* @__PURE__ */
|
|
123
|
+
children: /* @__PURE__ */ C(D, {
|
|
123
124
|
onClose: t,
|
|
124
125
|
onConfirm: n
|
|
125
126
|
})
|
|
126
127
|
});
|
|
127
128
|
}
|
|
128
|
-
function
|
|
129
|
-
let n = e(), [r, i] =
|
|
129
|
+
function k({ reassignPermission: t }) {
|
|
130
|
+
let n = e(), [r, i] = p(null), [a, o] = p(0), s = f({
|
|
130
131
|
mutationFn: n.reassignTask,
|
|
131
132
|
meta: {
|
|
132
133
|
shouldShowSuccessFeedback: !1,
|
|
134
|
+
shouldShowErrorFeedback: !1,
|
|
133
135
|
invalidates: [[n.findTasks.key]]
|
|
134
136
|
}
|
|
135
137
|
});
|
|
136
|
-
return /* @__PURE__ */
|
|
137
|
-
basicSearch: /* @__PURE__ */
|
|
138
|
+
return /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C(m, {
|
|
139
|
+
basicSearch: /* @__PURE__ */ C(E, {}),
|
|
138
140
|
columnSettings: { storageKey: "approval.admin.tasks" },
|
|
139
141
|
queryFn: n.findTasks,
|
|
140
142
|
rowKey: "taskId",
|
|
141
|
-
tableColumns:
|
|
143
|
+
tableColumns: T,
|
|
142
144
|
operationColumn: {
|
|
143
145
|
width: 100,
|
|
144
146
|
render(e) {
|
|
145
|
-
return e.status === "pending" ? /* @__PURE__ */
|
|
147
|
+
return e.status === "pending" ? /* @__PURE__ */ C(v, {
|
|
146
148
|
color: "primary",
|
|
147
149
|
requiredPermissions: t,
|
|
148
150
|
onClick: () => i(e.taskId),
|
|
@@ -150,7 +152,7 @@ function E({ reassignPermission: t }) {
|
|
|
150
152
|
}) : null;
|
|
151
153
|
}
|
|
152
154
|
}
|
|
153
|
-
}, String(a)), /* @__PURE__ */
|
|
155
|
+
}, String(a)), /* @__PURE__ */ C(O, {
|
|
154
156
|
open: r !== null,
|
|
155
157
|
onClose: () => i(null),
|
|
156
158
|
onConfirm: async (e, t) => {
|
|
@@ -158,9 +160,9 @@ function E({ reassignPermission: t }) {
|
|
|
158
160
|
taskId: r,
|
|
159
161
|
newAssigneeId: e,
|
|
160
162
|
reason: t.trim() || void 0
|
|
161
|
-
}),
|
|
163
|
+
}), b("已改派"), o((e) => e + 1));
|
|
162
164
|
}
|
|
163
165
|
})] });
|
|
164
166
|
}
|
|
165
167
|
//#endregion
|
|
166
|
-
export {
|
|
168
|
+
export { k as TasksPanel };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.31.0 made by Venus | 2026-11-19T01:43:39.549Z */
|
|
2
2
|
import { formatTimestamp as e } from "../../components/format.js";
|
|
3
3
|
import { FlowIcon as t } from "../../components/icon.js";
|
|
4
4
|
import { Flex as n, Tag as r, Text as i } from "@vef-framework-react/components";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.31.0 made by Venus | 2026-11-19T01:43:39.549Z */
|
|
2
2
|
import { Grid as e, useFormContext as t } from "@vef-framework-react/components";
|
|
3
3
|
import { jsx as n, jsxs as r } from "@emotion/react/jsx-runtime";
|
|
4
4
|
import { z as i } from "@vef-framework-react/shared";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.31.0 made by Venus | 2026-11-19T01:43:39.549Z */
|
|
2
2
|
import { useCategoryApi as e } from "../../api/category-api.js";
|
|
3
3
|
import { APPROVAL_PERMISSIONS as t } from "../../permissions.js";
|
|
4
4
|
import { categoryColumns as n } from "./columns.js";
|
|
@@ -6,8 +6,8 @@ import { CategoryForm as r, buildCategoryTreeOptions as i } from "./form.js";
|
|
|
6
6
|
import { useQuery as a } from "@vef-framework-react/core";
|
|
7
7
|
import { useMemo as o } from "react";
|
|
8
8
|
import { ActionButton as s, CrudPage as c, Icon as l, OperationButton as u, PermissionGate as d, createCrudKit as f, useFormContext as p } from "@vef-framework-react/components";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
9
|
+
import { Fragment as m, jsx as h, jsxs as g } from "@emotion/react/jsx-runtime";
|
|
10
|
+
import { EditIcon as _, PlusIcon as v, TrashIcon as y } from "lucide-react";
|
|
11
11
|
//#region src/pages/category-page/index.tsx
|
|
12
12
|
var b = {
|
|
13
13
|
xxs: "100vw",
|
|
@@ -28,9 +28,9 @@ function C(e) {
|
|
|
28
28
|
}
|
|
29
29
|
function w() {
|
|
30
30
|
let { AppField: e } = p();
|
|
31
|
-
return /* @__PURE__ */
|
|
31
|
+
return /* @__PURE__ */ h(e, {
|
|
32
32
|
name: "name",
|
|
33
|
-
children: (e) => /* @__PURE__ */
|
|
33
|
+
children: (e) => /* @__PURE__ */ h(e.Input, {
|
|
34
34
|
allowClear: !0,
|
|
35
35
|
noWrapper: !0,
|
|
36
36
|
placeholder: "分类名称"
|
|
@@ -42,15 +42,15 @@ function T({ permissions: r, tenantId: i = "default", columnStorageKey: a = "app
|
|
|
42
42
|
...t.category,
|
|
43
43
|
...r
|
|
44
44
|
};
|
|
45
|
-
return /* @__PURE__ */
|
|
46
|
-
basicSearch: /* @__PURE__ */
|
|
45
|
+
return /* @__PURE__ */ h(c, {
|
|
46
|
+
basicSearch: /* @__PURE__ */ h(w, {}),
|
|
47
47
|
columnSettings: { storageKey: a },
|
|
48
48
|
defaultSearchValues: { tenantId: i },
|
|
49
49
|
deleteMutationFn: f.remove,
|
|
50
50
|
formLayout: { layout: "vertical" },
|
|
51
51
|
isPaginated: !1,
|
|
52
52
|
queryFn: f.findTree,
|
|
53
|
-
renderForm: () => /* @__PURE__ */
|
|
53
|
+
renderForm: () => /* @__PURE__ */ h(E, {}),
|
|
54
54
|
rowKey: "id",
|
|
55
55
|
tableColumns: n,
|
|
56
56
|
title: o,
|
|
@@ -61,15 +61,15 @@ function T({ permissions: r, tenantId: i = "default", columnStorageKey: a = "app
|
|
|
61
61
|
operationColumn: {
|
|
62
62
|
width: 160,
|
|
63
63
|
render(e) {
|
|
64
|
-
return /* @__PURE__ */
|
|
64
|
+
return /* @__PURE__ */ h(x, {
|
|
65
65
|
selector: (e) => [
|
|
66
66
|
e.openForm,
|
|
67
67
|
e.delete,
|
|
68
68
|
e.refetchQuery
|
|
69
69
|
],
|
|
70
|
-
children: ([t, n, r]) => /* @__PURE__ */
|
|
70
|
+
children: ([t, n, r]) => /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(u, {
|
|
71
71
|
color: "primary",
|
|
72
|
-
icon: /* @__PURE__ */
|
|
72
|
+
icon: /* @__PURE__ */ h(l, { component: _ }),
|
|
73
73
|
requiredPermissions: p.update,
|
|
74
74
|
onClick: () => t({
|
|
75
75
|
scene: "update",
|
|
@@ -79,11 +79,11 @@ function T({ permissions: r, tenantId: i = "default", columnStorageKey: a = "app
|
|
|
79
79
|
width: b
|
|
80
80
|
}),
|
|
81
81
|
children: "编辑"
|
|
82
|
-
}), /* @__PURE__ */
|
|
82
|
+
}), /* @__PURE__ */ h(u, {
|
|
83
83
|
confirmable: !0,
|
|
84
84
|
color: "danger",
|
|
85
85
|
confirmDescription: "确定删除该分类?该分类下的流程不会被删除。",
|
|
86
|
-
icon: /* @__PURE__ */
|
|
86
|
+
icon: /* @__PURE__ */ h(l, { component: y }),
|
|
87
87
|
requiredPermissions: p.delete,
|
|
88
88
|
onClick: async () => {
|
|
89
89
|
try {
|
|
@@ -100,12 +100,12 @@ function T({ permissions: r, tenantId: i = "default", columnStorageKey: a = "app
|
|
|
100
100
|
sortOrder: 0,
|
|
101
101
|
isActive: !0
|
|
102
102
|
} },
|
|
103
|
-
toolbarActions: /* @__PURE__ */
|
|
103
|
+
toolbarActions: /* @__PURE__ */ h(S, {
|
|
104
104
|
selector: (e) => [e.openForm],
|
|
105
|
-
children: ([e]) => /* @__PURE__ */
|
|
105
|
+
children: ([e]) => /* @__PURE__ */ h(d, {
|
|
106
106
|
requiredPermissions: p.create,
|
|
107
|
-
children: /* @__PURE__ */
|
|
108
|
-
icon: /* @__PURE__ */
|
|
107
|
+
children: /* @__PURE__ */ h(s, {
|
|
108
|
+
icon: /* @__PURE__ */ h(l, { component: v }),
|
|
109
109
|
type: "primary",
|
|
110
110
|
onClick: () => e({
|
|
111
111
|
scene: "create",
|
|
@@ -121,11 +121,11 @@ function T({ permissions: r, tenantId: i = "default", columnStorageKey: a = "app
|
|
|
121
121
|
}
|
|
122
122
|
function E() {
|
|
123
123
|
let { AppField: e } = p();
|
|
124
|
-
return /* @__PURE__ */
|
|
124
|
+
return /* @__PURE__ */ h(e, {
|
|
125
125
|
name: "tenantId",
|
|
126
|
-
children: (t) => /* @__PURE__ */
|
|
126
|
+
children: (t) => /* @__PURE__ */ h(e, {
|
|
127
127
|
name: "id",
|
|
128
|
-
children: (e) => /* @__PURE__ */
|
|
128
|
+
children: (e) => /* @__PURE__ */ h(D, {
|
|
129
129
|
editedId: e.state.value,
|
|
130
130
|
tenantId: t.state.value
|
|
131
131
|
})
|
|
@@ -137,7 +137,7 @@ function D({ editedId: t, tenantId: n }) {
|
|
|
137
137
|
queryFn: s.findTree,
|
|
138
138
|
queryKey: [s.findTree.key, { tenantId: n }]
|
|
139
139
|
});
|
|
140
|
-
return /* @__PURE__ */
|
|
140
|
+
return /* @__PURE__ */ h(r, { treeOptions: o(() => i(c ?? [], t), [c, t]) });
|
|
141
141
|
}
|
|
142
142
|
//#endregion
|
|
143
143
|
export { T as ApprovalCategoryPage };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.31.0 made by Venus | 2026-11-19T01:43:39.549Z */
|
|
2
2
|
import { formatTimestamp as e } from "../../components/format.js";
|
|
3
3
|
import { Tag as t, Text as n } from "@vef-framework-react/components";
|
|
4
4
|
import { jsx as r } from "@emotion/react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.31.0 made by Venus | 2026-11-19T01:43:39.549Z */
|
|
2
2
|
import { useCategoryApi as e } from "../../api/category-api.js";
|
|
3
3
|
import { PrincipalSelect as t } from "../../components/principal/index.js";
|
|
4
4
|
import { buildCategoryTreeOptions as n } from "../category-page/form.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.31.0 made by Venus | 2026-11-19T01:43:39.549Z */
|
|
2
2
|
import { useDelegationApi as e } from "../../api/delegation-api.js";
|
|
3
3
|
import { APPROVAL_PERMISSIONS as t } from "../../permissions.js";
|
|
4
4
|
import { delegationColumns as n } from "./columns.js";
|
|
5
5
|
import { DelegationForm as r } from "./form.js";
|
|
6
6
|
import { ActionButton as i, CrudPage as a, Icon as o, OperationButton as s, PermissionGate as c, createCrudKit as l, useFormContext as u } from "@vef-framework-react/components";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { Fragment as d, jsx as f, jsxs as p } from "@emotion/react/jsx-runtime";
|
|
8
|
+
import { EditIcon as m, PlusIcon as h, TrashIcon as g } from "lucide-react";
|
|
9
9
|
//#region src/pages/delegation-page/index.tsx
|
|
10
10
|
var _ = {
|
|
11
11
|
xxs: "100vw",
|
|
@@ -26,16 +26,16 @@ function b(e) {
|
|
|
26
26
|
}
|
|
27
27
|
function x() {
|
|
28
28
|
let { AppField: e } = u();
|
|
29
|
-
return /* @__PURE__ */
|
|
29
|
+
return /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f(e, {
|
|
30
30
|
name: "delegatorId",
|
|
31
|
-
children: (e) => /* @__PURE__ */
|
|
31
|
+
children: (e) => /* @__PURE__ */ f(e.Input, {
|
|
32
32
|
allowClear: !0,
|
|
33
33
|
noWrapper: !0,
|
|
34
34
|
placeholder: "委托人 ID"
|
|
35
35
|
})
|
|
36
|
-
}), /* @__PURE__ */
|
|
36
|
+
}), /* @__PURE__ */ f(e, {
|
|
37
37
|
name: "delegateeId",
|
|
38
|
-
children: (e) => /* @__PURE__ */
|
|
38
|
+
children: (e) => /* @__PURE__ */ f(e.Input, {
|
|
39
39
|
allowClear: !0,
|
|
40
40
|
noWrapper: !0,
|
|
41
41
|
placeholder: "被委托人 ID"
|
|
@@ -47,13 +47,13 @@ function S({ permissions: l, tenantId: u, columnStorageKey: S = "approval.delega
|
|
|
47
47
|
...t.delegation,
|
|
48
48
|
...l
|
|
49
49
|
};
|
|
50
|
-
return /* @__PURE__ */
|
|
51
|
-
basicSearch: /* @__PURE__ */
|
|
50
|
+
return /* @__PURE__ */ f(a, {
|
|
51
|
+
basicSearch: /* @__PURE__ */ f(x, {}),
|
|
52
52
|
columnSettings: { storageKey: S },
|
|
53
53
|
deleteMutationFn: w.remove,
|
|
54
54
|
formLayout: { layout: "vertical" },
|
|
55
55
|
queryFn: w.findPage,
|
|
56
|
-
renderForm: () => /* @__PURE__ */
|
|
56
|
+
renderForm: () => /* @__PURE__ */ f(r, { tenantId: u }),
|
|
57
57
|
rowKey: "id",
|
|
58
58
|
tableColumns: n,
|
|
59
59
|
title: C,
|
|
@@ -64,15 +64,15 @@ function S({ permissions: l, tenantId: u, columnStorageKey: S = "approval.delega
|
|
|
64
64
|
operationColumn: {
|
|
65
65
|
width: 160,
|
|
66
66
|
render(e) {
|
|
67
|
-
return /* @__PURE__ */
|
|
67
|
+
return /* @__PURE__ */ f(v, {
|
|
68
68
|
selector: (e) => [
|
|
69
69
|
e.openForm,
|
|
70
70
|
e.delete,
|
|
71
71
|
e.refetchQuery
|
|
72
72
|
],
|
|
73
|
-
children: ([t, n, r]) => /* @__PURE__ */
|
|
73
|
+
children: ([t, n, r]) => /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f(s, {
|
|
74
74
|
color: "primary",
|
|
75
|
-
icon: /* @__PURE__ */
|
|
75
|
+
icon: /* @__PURE__ */ f(o, { component: m }),
|
|
76
76
|
requiredPermissions: T.update,
|
|
77
77
|
onClick: () => t({
|
|
78
78
|
scene: "update",
|
|
@@ -82,11 +82,11 @@ function S({ permissions: l, tenantId: u, columnStorageKey: S = "approval.delega
|
|
|
82
82
|
width: _
|
|
83
83
|
}),
|
|
84
84
|
children: "编辑"
|
|
85
|
-
}), /* @__PURE__ */
|
|
85
|
+
}), /* @__PURE__ */ f(s, {
|
|
86
86
|
confirmable: !0,
|
|
87
87
|
color: "danger",
|
|
88
88
|
confirmDescription: "确定删除该委托?",
|
|
89
|
-
icon: /* @__PURE__ */
|
|
89
|
+
icon: /* @__PURE__ */ f(o, { component: g }),
|
|
90
90
|
requiredPermissions: T.delete,
|
|
91
91
|
onClick: async () => {
|
|
92
92
|
try {
|
|
@@ -99,12 +99,12 @@ function S({ permissions: l, tenantId: u, columnStorageKey: S = "approval.delega
|
|
|
99
99
|
}
|
|
100
100
|
},
|
|
101
101
|
sceneDefaultFormValues: { create: { isActive: !0 } },
|
|
102
|
-
toolbarActions: /* @__PURE__ */
|
|
102
|
+
toolbarActions: /* @__PURE__ */ f(y, {
|
|
103
103
|
selector: (e) => [e.openForm],
|
|
104
|
-
children: ([e]) => /* @__PURE__ */
|
|
104
|
+
children: ([e]) => /* @__PURE__ */ f(c, {
|
|
105
105
|
requiredPermissions: T.create,
|
|
106
|
-
children: /* @__PURE__ */
|
|
107
|
-
icon: /* @__PURE__ */
|
|
106
|
+
children: /* @__PURE__ */ f(i, {
|
|
107
|
+
icon: /* @__PURE__ */ f(o, { component: h }),
|
|
108
108
|
type: "primary",
|
|
109
109
|
onClick: () => e({
|
|
110
110
|
scene: "create",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.
|
|
1
|
+
/*! @vef-framework-react/approval v2.31.0 made by Venus | 2026-11-19T01:43:39.549Z */
|
|
2
2
|
import { formatTimestamp as e } from "../../components/format.js";
|
|
3
3
|
import { FlowIcon as t } from "../../components/icon.js";
|
|
4
4
|
import { Flex as n, LabelsDisplay as r, Tag as i, Text as a } from "@vef-framework-react/components";
|
|
@@ -47,14 +47,14 @@ function l(c) {
|
|
|
47
47
|
render: (e) => /* @__PURE__ */ o(r, { labels: e })
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
|
-
title: "
|
|
51
|
-
dataIndex: "
|
|
50
|
+
title: "表单来源",
|
|
51
|
+
dataIndex: "businessKind",
|
|
52
52
|
width: 110,
|
|
53
53
|
align: "center",
|
|
54
|
-
render: (e) => e
|
|
54
|
+
render: (e) => e ? /* @__PURE__ */ o(i, {
|
|
55
55
|
color: "blue",
|
|
56
|
-
children: "
|
|
57
|
-
}) : /* @__PURE__ */ o(i, { children: "
|
|
56
|
+
children: "业务表单"
|
|
57
|
+
}) : /* @__PURE__ */ o(i, { children: "流程表单" })
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
60
|
title: "版本",
|