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,6 +365,7 @@ const ProjectManage = props => {
setTreeLoading(true);
GetMessageConfigList(params).then(res => {
setTreeLoading(false);
if (res.code === 0) {
let mesList = [];
if (res.code === 0) {
res.data.MessageConfigModels.map(item => {
......@@ -380,6 +382,13 @@ const ProjectManage = props => {
setDataList(mesList);
}
} else {
notification.error({
message: '提示',
duration: 3,
description: res.msg,
});
}
});
};
......
......@@ -720,12 +720,16 @@ const EditModal = props => {
{listType.map(item => (
<div key={item.title} className={styles.cardListItem}>
{item.title != '自定义' && item.title != '定时推送' ? (
<Button
type={item.title === btnType ? 'primary' : 'default'}
style={{ cursor: 'not-allowed', marginRight: '1rem', width: '88px' }}
<span
style={{
display: 'inline-block',
width: '88px',
marginLeft: '16px',
}}
>
{item.title}
</Button>
{item.title}
</span>
) : (
<Button
type={item.title === btnType ? 'primary' : 'default'}
......@@ -750,7 +754,7 @@ const EditModal = props => {
{btnType === '定时推送' ? (
<Card title="推送计划" style={{ width: '100%', marginTop: '1rem' }}>
<div style={{ display: 'flex', alignItems: 'center' }}>
<Item labelCol={{ span: 6 }}>
<Item labelCol={{ span: 5 }}>
<div style={{ display: 'flex' }}>
<Item
label="推送组"
......@@ -810,7 +814,7 @@ const EditModal = props => {
)}
<div className={styles.push_trench}>
<Row>
<Col xxl={8} xl={12} sm={24} xs={40}>
<Col xxl={8} xl={12} sm={24} xs={24}>
{
<div className={styles.trench_card}>
<div className={styles.card_title}>
......@@ -821,7 +825,7 @@ const EditModal = props => {
/>
</div>
<div className={styles.card_body}>
<Item label="模板" name="web_template" labelCol={{ span: 6 }}>
<Item label="模板" name="web_template" labelCol={{ span: 5 }}>
<Select style={{ width: '97%' }} disabled={!currentTrench.isWEBShow}>
{WEB_ITEMS.map((item, idx) => (
<Select.Option value={item.Id} key={idx}>
......@@ -831,8 +835,8 @@ const EditModal = props => {
</Select>
</Item>
<Row>
<Col span={16}>
<Item label="标题" name="webTitile" labelCol={{ span: 9 }}>
<Col span={15}>
<Item label="标题" name="webTitile" labelCol={{ span: 8 }}>
<Input
placeholder="请输入标题"
style={{ width: '97%' }}
......@@ -844,14 +848,14 @@ const EditModal = props => {
<Item
label="图标"
name="WebIcon"
style={{ height: '112px' }}
labelCol={{ span: 6 }}
style={{ height: '82px' }}
labelCol={{ span: 12 }}
>
{imageUrl ? (
<div
style={{
width: '104px',
height: '104px',
width: '74px',
height: '74px',
border: '1px solid #d9d9d9',
borderRadius: '2px',
padding: '8px',
......@@ -882,8 +886,8 @@ const EditModal = props => {
style={{
position: 'absolute',
fontSize: '18px',
left: '24px',
top: '45px',
left: '12px',
top: '25px',
color: 'white',
zIndex: '999',
}}
......@@ -893,8 +897,8 @@ const EditModal = props => {
style={{
position: 'absolute',
fontSize: '18px',
left: '54px',
top: '45px',
left: '40px',
top: '25px',
color: 'white',
zIndex: '999',
}}
......@@ -906,7 +910,7 @@ const EditModal = props => {
</div>
) : (
<Image
width="104px"
width="74px"
// height={100}
src="error"
onClick={
......@@ -922,7 +926,7 @@ const EditModal = props => {
</Item>
</Col>
</Row>
<Item label="功能路径" name="web_path" labelCol={{ span: 6 }}>
<Item label="功能路径" name="web_path" labelCol={{ span: 5 }}>
{/* <TextArea
rows={1}
style={{ width: '97%' }}
......@@ -966,7 +970,7 @@ const EditModal = props => {
/>
</div>
<div className={styles.card_body}>
<Item label="模板" name="app_template" labelCol={{ span: 6 }}>
<Item label="模板" name="app_template" labelCol={{ span: 5 }}>
<Select style={{ width: '97%' }} disabled={!currentTrench.isAPPShow}>
{APP_ITEMS.map((item, idx) => (
<Select.Option value={item.Id} key={idx}>
......@@ -975,7 +979,7 @@ const EditModal = props => {
))}
</Select>
</Item>
<Item label="功能路径" name="app_path" labelCol={{ span: 6 }}>
<Item label="功能路径" name="app_path" labelCol={{ span: 5 }}>
{/* <TextArea
rows={1}
style={{ width: '97%' }}
......@@ -1018,7 +1022,7 @@ const EditModal = props => {
/>
</div>
<div className={styles.card_body}>
<Item label="模板" name="wx_template" labelCol={{ span: 6 }}>
<Item label="模板" name="wx_template" labelCol={{ span: 5 }}>
<Select style={{ width: '97%' }} disabled={!currentTrench.isWXShow}>
{WX_ITEMS.map((item, idx) => (
<Select.Option value={item.Id} key={idx}>
......@@ -1027,14 +1031,14 @@ const EditModal = props => {
))}
</Select>
</Item>
<Item label="H5路由" name="h5_path" labelCol={{ span: 6 }}>
<Item label="H5路由" name="h5_path" labelCol={{ span: 5 }}>
<Input
style={{ width: '97%' }}
disabled={!currentTrench.isWXShow}
placeholder="请输入功能路径"
/>
</Item>
<Item label="小程序路由" name="miniprogram_path" labelCol={{ span: 6 }}>
<Item label="小程序路由" name="miniprogram_path" labelCol={{ span: 5 }}>
<Input
style={{ width: '97%' }}
disabled={!currentTrench.isWXShow}
......@@ -1057,7 +1061,7 @@ const EditModal = props => {
/>
</div>
<div className={styles.card_body}>
<Item label="模板" name="message_template" labelCol={{ span: 6 }}>
<Item label="模板" name="message_template" labelCol={{ span: 5 }}>
<Select style={{ width: '97%' }} disabled={!currentTrench.isMessageShow}>
{MES_ITEMS.map((item, idx) => (
<Select.Option value={item.Id} key={idx}>
......@@ -1081,7 +1085,7 @@ const EditModal = props => {
/>
</div>
<div className={styles.card_body}>
<Item label="模板" name="enterprise_template" labelCol={{ span: 6 }}>
<Item label="模板" name="enterprise_template" labelCol={{ span: 5 }}>
<Select
style={{ width: '97%' }}
disabled={!currentTrench.isEnterpriseWXShow}
......
......@@ -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