@coding-flow/flow-approval-presenter 0.0.45 → 0.0.47
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.
|
@@ -29,7 +29,7 @@ class FlowActionPresenter {
|
|
|
29
29
|
const formData = this.formActionContext.save();
|
|
30
30
|
const recordId = formData.recordId || this.state.flow?.recordId;
|
|
31
31
|
if (formData.recordId) delete formData.recordId;
|
|
32
|
-
const id = recordId || this.state.flow?.
|
|
32
|
+
const id = recordId || this.state.flow?.workCode || '';
|
|
33
33
|
return await this.api.processNodes({
|
|
34
34
|
id,
|
|
35
35
|
formData
|
|
@@ -49,7 +49,7 @@ class FlowActionPresenter {
|
|
|
49
49
|
}
|
|
50
50
|
async submitAction(actionId, formData, params) {
|
|
51
51
|
const recordId = formData.recordId || this.state.flow?.recordId;
|
|
52
|
-
const
|
|
52
|
+
const workCode = this.state.flow?.workCode || '';
|
|
53
53
|
if (formData.recordId) delete formData.recordId;
|
|
54
54
|
if (recordId) {
|
|
55
55
|
const request = {
|
|
@@ -64,7 +64,7 @@ class FlowActionPresenter {
|
|
|
64
64
|
}
|
|
65
65
|
{
|
|
66
66
|
const createRequest = {
|
|
67
|
-
|
|
67
|
+
workCode,
|
|
68
68
|
formData,
|
|
69
69
|
actionId
|
|
70
70
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coding-flow/flow-approval-presenter",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.47",
|
|
4
4
|
"description": "flow-engine approval presenter framework ",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"dayjs": "^1.11.19",
|
|
37
37
|
"immer": "^11.1.3",
|
|
38
38
|
"react-redux": "^9.2.0",
|
|
39
|
-
"@coding-flow/flow-core": "0.0.
|
|
40
|
-
"@coding-flow/flow-types": "0.0.
|
|
39
|
+
"@coding-flow/flow-core": "0.0.47",
|
|
40
|
+
"@coding-flow/flow-types": "0.0.47"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@coding-flow/flow-types": "0.0.
|
|
43
|
+
"@coding-flow/flow-types": "0.0.47"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
46
|
"build": "rslib build",
|