ソースを参照

Merge branch 'dev' of http://git.ycjcjy.com/zhiyuxing/estateagents-admin-manager into dev

xujing 5 年 前
コミット
ba97677e2c
共有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
   }