|
@@ -17,7 +17,7 @@ const VisitEdit = (props) => {
|
17
|
17
|
|
18
|
18
|
const getData = (id) => {
|
19
|
19
|
if (id) {
|
20
|
|
- request(`/student/${id}`)
|
|
20
|
+ request(`/student-no/${id}`)
|
21
|
21
|
.then((res) => {
|
22
|
22
|
form.setFieldsValue(res);
|
23
|
23
|
setSearchLoading(false);
|
|
@@ -115,7 +115,7 @@ const VisitEdit = (props) => {
|
115
|
115
|
<ProFormText
|
116
|
116
|
label="学号"
|
117
|
117
|
placeholder="输入学号"
|
118
|
|
- name="studentId"
|
|
118
|
+ name="studentNo"
|
119
|
119
|
fieldProps={{ bordered: !id, readOnly: !!id }}
|
120
|
120
|
rules={[{ required: true, message: '请填写学号' }]}
|
121
|
121
|
/>
|