Commit 0adf9d2f authored by 皮倩雯's avatar 皮倩雯

fix: '消息平台界面优化'

parent efc0a225
Pipeline #64683 passed with stages
......@@ -14,6 +14,7 @@ import {
message,
Tooltip,
Spin,
notification,
} from 'antd';
import {
PlusCircleOutlined,
......@@ -364,21 +365,29 @@ const ProjectManage = props => {
setTreeLoading(true);
GetMessageConfigList(params).then(res => {
setTreeLoading(false);
let mesList = [];
if (res.code === 0) {
res.data.MessageConfigModels.map(item => {
mesList.push({
name: item.MessageConfig.MsgType,
type: item.MessageConfig.ThemeName,
send_pattern: item.MessageConfig.PushMode,
receive_person: item.MessageConfig.PushGroup,
is_use: item.MessageConfig.IsStarted,
...item.MessageConfig,
item,
let mesList = [];
if (res.code === 0) {
res.data.MessageConfigModels.map(item => {
mesList.push({
name: item.MessageConfig.MsgType,
type: item.MessageConfig.ThemeName,
send_pattern: item.MessageConfig.PushMode,
receive_person: item.MessageConfig.PushGroup,
is_use: item.MessageConfig.IsStarted,
...item.MessageConfig,
item,
});
});
});
setDataList(mesList);
setDataList(mesList);
}
} else {
notification.error({
message: '提示',
duration: 3,
description: res.msg,
});
}
});
};
......
......@@ -65,7 +65,7 @@
margin-top: 10px;
width: 100%;
padding: 10px;
height: 16rem;
height: 14rem;
display: flex;
flex-direction: column;
overflow: hidden;
......@@ -74,7 +74,7 @@
margin-right: 0.5rem;
}
.ant-form-item {
margin-left: 1.3rem;
margin-left: 0;
}
}
}
......@@ -84,8 +84,8 @@
position: relative;
top: -95px;
left: -9px;
height: 104px;
width: 104px;
height: 74px;
width: 74px;
background: rgba(0, 0, 0, 0.5);
border-radius: 2px;
z-index: 1;
......
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