|
@@ -17,6 +17,7 @@ const { MonthPicker, RangePicker, WeekPicker } = DatePicker;
|
17
|
17
|
|
18
|
18
|
const header = props => {
|
19
|
19
|
const sampleId = props.location.query.id;
|
|
20
|
+ const sampleName = props.location.query.sampleName;
|
20
|
21
|
const [data, setData] = useState({})
|
21
|
22
|
const [demend, setDemend] = useState({})
|
22
|
23
|
const [demandIds, setDemandIds] = useState([])
|
|
@@ -169,7 +170,9 @@ const header = props => {
|
169
|
170
|
<>
|
170
|
171
|
<Form layout="inline" onSubmit={e => handleSubmit(e, props)}>
|
171
|
172
|
<Form.Item>
|
172
|
|
- {getFieldDecorator('sampleName')(
|
|
173
|
+ {getFieldDecorator('sampleName',{
|
|
174
|
+ initialValue: sampleName
|
|
175
|
+ })(
|
173
|
176
|
<Input
|
174
|
177
|
prefix={<Icon type="text" style={{ color: 'rgba(0,0,0,.25)' }} />}
|
175
|
178
|
placeholder="样例名"
|