Commit ea6ddc62 authored by 皮倩雯's avatar 皮倩雯

修改新接口问题

parent c8627e28
Pipeline #31329 passed with stages
in 48 minutes 31 seconds
.template_container{ .template_container{
width: 100%; width: 100%;
height: calc(100vh - 124px); height: calc(100vh - 124px);
.ant-select-arrow .anticon {
vertical-align: middle;
}
.operate_bar{ .operate_bar{
width: 100%; width: 100%;
height: 60px; height: 60px;
...@@ -60,6 +63,7 @@ ...@@ -60,6 +63,7 @@
} }
.ant-table-body{ .ant-table-body{
max-height: 610px !important; max-height: 610px !important;
min-height:610px;
} }
} }
...@@ -14,6 +14,7 @@ const AddModal = props => { ...@@ -14,6 +14,7 @@ const AddModal = props => {
const onSubmit = () => { const onSubmit = () => {
form.submit() form.submit()
form.resetFields()
} }
const onSubmitSuccess = () => { const onSubmitSuccess = () => {
const result = form.getFieldValue() const result = form.getFieldValue()
......
...@@ -31,7 +31,7 @@ const AddUserModal = props => { ...@@ -31,7 +31,7 @@ const AddUserModal = props => {
} else { } else {
notification.error({ notification.error({
message: '提交失败', message: '提交失败',
description: res.message, description: res.msg,
}); });
} }
}) })
......
...@@ -91,6 +91,7 @@ const RelateRoleModal = props => { ...@@ -91,6 +91,7 @@ const RelateRoleModal = props => {
duration: 2, duration: 2,
}); });
} else { } else {
console.log(1),
notification.error({ notification.error({
message: '提交失败', message: '提交失败',
description: res.msg, description: res.msg,
......
...@@ -559,10 +559,10 @@ const UserManage = () => { ...@@ -559,10 +559,10 @@ const UserManage = () => {
setTableData(table); setTableData(table);
} else { } else {
setTableLoading(false); setTableLoading(false);
notification.error({ // notification.error({
message: '获取失败', // message: '获取失败',
description: res.msg, // description: res.msg,
}); // });
} }
}) })
.catch(err => { .catch(err => {
...@@ -837,6 +837,7 @@ const onTypeChange = (value) => { ...@@ -837,6 +837,7 @@ const onTypeChange = (value) => {
// setTableLoading(false); // setTableLoading(false);
// message.error(err); // message.error(err);
// }); // });
console.log(currentUser.userID)
GetUserRelationListNew({ userID: currentUser.userID }) GetUserRelationListNew({ userID: currentUser.userID })
.then(res => { .then(res => {
setLoading(false); setLoading(false);
...@@ -887,10 +888,11 @@ const onTypeChange = (value) => { ...@@ -887,10 +888,11 @@ const onTypeChange = (value) => {
setRolelist(roleList); setRolelist(roleList);
setStationlist(stationList); setStationlist(stationList);
} else { } else {
notification.error({ console.log(err)
message: '提交失败', // notification.error({
description: res.message, // message: '提交失败',
}); // description: res.message,
// });
} }
}) })
.catch(err => { .catch(err => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment