Commit 26510127 authored by tianfen's avatar tianfen

pref:修改bug

parent 9cc69699
......@@ -150,27 +150,27 @@ const InitDataBase = props => {
}
scroll.current.scrollTo(0, scroll.current.scrollHeight - 570);
}, 1000);
// initDBv4({
// _version: 9999,
// _dc: Date.now(),
// ...obj,
// })
// .then(res => {
// setCardLoading(false);
// if (res.GetMe) {
// console.log(res);
// } else {
// notification.error({
// message: '提示',
// duration: 15,
// description: res.Say.Message || '初始化失败',
// });
// }
// })
// .catch(err => {
// setCardLoading(false);
// console.log(err);
// });
initDBv4({
_version: 9999,
_dc: Date.now(),
...obj,
})
.then(res => {
setCardLoading(false);
if (res.GetMe) {
console.log(res);
} else {
notification.error({
message: '提示',
duration: 15,
description: res.Say.Message || '初始化失败',
});
}
})
.catch(err => {
setCardLoading(false);
console.log(err);
});
};
const onValuesChange = (value, b) => {
form.setFieldsValue(value);
......
......@@ -11,16 +11,12 @@ import {
List,
Space,
Checkbox,
Select,
Pagination,
message,
} from 'antd';
import lodash, { clone } from 'lodash';
import {
DoubleLeftOutlined,
DoubleRightOutlined,
DownOutlined,
UpOutlined,
UserOutlined,
} from '@ant-design/icons';
import PageContainer from '@/components/BasePageContainer';
......@@ -311,7 +307,7 @@ const SiteManage = props => {
});
result = Object.values(obj);
// 数据处理成后台需要的格式
if (result.length === 0) return message.warning('请先选择人员!');
if (result.length === 0) return notification.warning('请先选择人员!');
chooseUserToStation(
qs.stringify({
userList: String(result.flat()),
......@@ -327,11 +323,13 @@ const SiteManage = props => {
handleShowModal('btnLoading', false);
if (res.success) {
setSelectList([]);
notification.success({
message: '提示',
duration: 3,
description: '设置成功',
});
getList();
} else {
notification.error({
message: '提示',
......
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