Commit 7385dff1 authored by tianfen's avatar tianfen

perf:站点管理

parent d0ebbcde
Pipeline #21954 skipped with stages
This diff was suppressed by a .gitattributes entry.
......@@ -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);
......@@ -605,7 +605,14 @@ const InitDataBase = props => {
</Button>,
]}
>
<div ref={scroll} style={{ maxHeight: '570px', overflowY: 'auto' }}>
<div
ref={scroll}
style={{
maxHeight: '570px',
overflowY: 'auto',
marginRight: ' -24px',
}}
>
{initContent}
</div>
</Modal>
......
......@@ -139,5 +139,25 @@
color:#f00
}
.siteCommit{
margin-top: 20px;
}
.siteSelectList{
border:1px solid #f5f5f5;
min-height: 200px;
.siteSelectUl{
margin: 0;
padding: 15px;
display: flex;
li{
width:200px;
height: 35px;
line-height: 35px;
background: rgba(24, 144, 255,0.16) url('../../../assets/images/icons/close.png') no-repeat 170px;
background-size: 20px;
padding-left: 10px;
margin: 0 10px 10px 0;
cursor: pointer;
}
}
}
\ No newline at end of file
......@@ -38,3 +38,7 @@ export const getAllGroup = params =>
// 获取站点二级列表
export const getStationUserList = params =>
get(`${PUBLISH_SERVICE}/UserCenter/GetStationUserList`, params);
// 获取站点管理一二级列表+分页
export const groupUserPagingList = params =>
post(`${PUBLISH_SERVICE}/UserCenter/GroupUserPagingList`, params);
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