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

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

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