傅行帆 5 年前
父节点
当前提交
7fb9f19727
共有 2 个文件被更改,包括 5 次插入1 次删除
  1. 4
    1
      src/pages/h5SampleManager/h5Demand/list.jsx
  2. 1
    0
      src/pages/h5SampleManager/h5Sample/detail.jsx

+ 4
- 1
src/pages/h5SampleManager/h5Demand/list.jsx 查看文件

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

+ 1
- 0
src/pages/h5SampleManager/h5Sample/detail.jsx 查看文件

57
       pathname: '/h5SampleManager/h5Demand/list',
57
       pathname: '/h5SampleManager/h5Demand/list',
58
       query: {
58
       query: {
59
         id: sampleId,
59
         id: sampleId,
60
+        sampleName: demandData.sampleName,
60
       },
61
       },
61
     });
62
     });
62
   }
63
   }