File tree 6 files changed +7
-6
lines changed
mobile-ui/src/components/flow/domain
6 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ const FlowFormOpinion = ()=>{
16
16
< >
17
17
< Form
18
18
form = { opinionInstance }
19
+ layout = { "vertical" }
19
20
loadFields = { async ( ) => {
20
21
return [
21
22
{
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ export class FlowEventContext {
31
31
}
32
32
33
33
private getRequestBody = ( ) => {
34
- const formData = this . opinionInstance . getFieldsValue ( ) ;
34
+ const formData = this . flowInstance . getFieldsValue ( ) ;
35
35
const flowData = this . flowRecordContext . getFlowFormParams ( ) ;
36
36
const workCode = this . flowRecordContext . getWorkCode ( ) ;
37
37
const recordId = this . flowStateContext . getRecordId ( ) ;
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ $flow-footer-height: 80px;
29
29
}
30
30
31
31
.flow-img {
32
-
32
+ width : 30 vw ;
33
33
}
34
34
}
35
35
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ const LeaveForm: React.FC<FlowFormViewProps> = (props) => {
9
9
10
10
useEffect ( ( ) => {
11
11
if ( props . dataVersion && props . data ) {
12
+ console . log ( 'data' , props . data ) ;
12
13
props . form ?. setFieldsValue ( {
13
14
...props . data
14
15
} ) ;
@@ -18,6 +19,7 @@ const LeaveForm: React.FC<FlowFormViewProps> = (props) => {
18
19
return (
19
20
< Form
20
21
form = { props . form }
22
+ layout = { "vertical" }
21
23
>
22
24
23
25
< FormInput
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ const LeavePage = () => {
59
59
view = { LeaveForm }
60
60
workCode = { "leave" }
61
61
formParams = { {
62
- clazzName : 'com.codingapi.example.domain.Leave ' ,
62
+ clazzName : 'com.codingapi.example.infra.flow.form.LeaveForm ' ,
63
63
username : username
64
64
} }
65
65
/>
Original file line number Diff line number Diff line change 1
- import React from "react" ;
2
- import { FormAction } from "@/components/form" ;
3
1
import { FlowRecordContext } from "@/components/flow/domain/FlowRecordContext" ;
4
2
import { FlowStateContext } from "@/components/flow/domain/FlowStateContext" ;
5
3
import * as flowApi from "@/api/flow" ;
@@ -33,7 +31,7 @@ export class FlowEventContext {
33
31
}
34
32
35
33
private getRequestBody = ( ) => {
36
- const formData = this . opinionInstance . getFieldsValue ( ) ;
34
+ const formData = this . flowInstance . getFieldsValue ( ) ;
37
35
const flowData = this . flowRecordContext . getFlowFormParams ( ) ;
38
36
const workCode = this . flowRecordContext . getWorkCode ( ) ;
39
37
const recordId = this . flowStateContext . getRecordId ( ) ;
You can’t perform that action at this time.
0 commit comments