Commit 56804907 authored by 皮倩雯's avatar 皮倩雯

事件图片库样式优化

parent da098b1e
Pipeline #59620 passed with stages
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
/* eslint-disable prefer-template */ /* eslint-disable prefer-template */
/* eslint-disable react/jsx-boolean-value */ /* eslint-disable react/jsx-boolean-value */
import React, { useState, useEffect } from 'react'; import React, { useState, useEffect } from 'react';
import { Modal, Collapse, notification, Upload, Input, Empty } from 'antd'; import { Modal, Collapse, notification, Upload, Input, Empty, Tooltip } from 'antd';
import { GetImageOrderByFile, GetImageOrderByPath } from '@/services/integratedLogin/api'; import { GetImageOrderByFile, GetImageOrderByPath } from '@/services/integratedLogin/api';
import classnames from 'classnames'; import classnames from 'classnames';
import styles from './PreviewModal.less'; import styles from './PreviewModal.less';
...@@ -199,8 +199,24 @@ const PreviewModal = props => { ...@@ -199,8 +199,24 @@ const PreviewModal = props => {
setChooseItem(k.value); setChooseItem(k.value);
}} }}
/> />
<div style={{ textAlign: 'center' }}> <div
<p>{k.text}</p> style={{
textAlign: 'center',
width: '100px',
}}
>
<Tooltip title={k.text}>
<p
style={{
height: '22px',
overflow: 'hidden',
whiteSpace: 'nowrap',
textOverflow: 'ellipsis',
}}
>
{k.text}
</p>
</Tooltip>
</div> </div>
</div> </div>
); );
......
...@@ -2,21 +2,24 @@ ...@@ -2,21 +2,24 @@
display: inline-block; display: inline-block;
margin-left: 30px; margin-left: 30px;
margin-bottom: 30px; margin-bottom: 30px;
// width: 80px; width: 100px;
} }
.imgItem { .imgItem {
border: 3px solid rgb(24, 144, 255); border: 3px solid rgb(24, 144, 255);
box-sizing: border-box; box-sizing: border-box;
border-radius: 5px; border-radius: 5px;
display: inline-block; display: inline-block;
margin-left: 10px;
background-color: #2881a1; background-color: #2881a1;
} }
.imgHidden { .imgHidden {
margin-left: 10px;
border: none; border: none;
display: inline-block; display: inline-block;
background-color: #2881a1; background-color: #2881a1;
} }
.imgHidden:hover { .imgHidden:hover {
margin-left: 10px;
border: 3px solid rgb(24, 144, 255); border: 3px solid rgb(24, 144, 255);
box-sizing: border-box; box-sizing: border-box;
border-radius: 5px; border-radius: 5px;
......
...@@ -54,13 +54,13 @@ const TileData = props => { ...@@ -54,13 +54,13 @@ const TileData = props => {
key: 'type', key: 'type',
align: 'center', align: 'center',
}, },
{ // {
title: '透明度', // title: '透明度',
dataIndex: 'alpha', // dataIndex: 'alpha',
key: 'alpha', // key: 'alpha',
align: 'center', // align: 'center',
render: (text, record) => <span>{`${(text * 100).toFixed()}%`}</span>, // render: (text, record) => <span>{`${(text * 100).toFixed()}%`}</span>,
}, // },
{ {
title: '编辑', title: '编辑',
align: 'center', align: 'center',
...@@ -130,7 +130,7 @@ const TileData = props => { ...@@ -130,7 +130,7 @@ const TileData = props => {
const { servicename = '' } = record; const { servicename = '' } = record;
setTreeLoading(true); setTreeLoading(true);
deleteConfig({ deleteConfig({
servicename: servicename, servicename,
terminalType: 'base', terminalType: 'base',
isBaseMap: true, isBaseMap: true,
}) })
...@@ -282,19 +282,17 @@ const TileData = props => { ...@@ -282,19 +282,17 @@ const TileData = props => {
transitionDuration=".5" transitionDuration=".5"
> */} > */}
{cardData && cardData.length ? ( {cardData && cardData.length ? (
cardData.map((item, index) => { cardData.map((item, index) => (
return ( <div
<div className={styles.cardItem}
className={styles.cardItem} key={index}
key={index} span={5}
span={5} offset={2}
offset={2} style={{ marginBottom: '1rem' }}
style={{ marginBottom: '1rem' }} >
> <Cards item={item} deletebaseMaps={onDeletebaseMap} cardData={cardData} />
<Cards item={item} deletebaseMaps={onDeletebaseMap} cardData={cardData} /> </div>
</div> ))
);
})
) : ( ) : (
<Empty image={Empty.PRESENTED_IMAGE_SIMPLE} style={{ margin: 'auto' }} /> <Empty image={Empty.PRESENTED_IMAGE_SIMPLE} style={{ margin: 'auto' }} />
)} )}
......
...@@ -70,7 +70,7 @@ const CardData = props => { ...@@ -70,7 +70,7 @@ const CardData = props => {
} }
}); });
} else { } else {
message.error('方案至少需要一张底图'); message.warning('方案至少需要一张底图');
} }
}; };
// 删除方案 // 删除方案
......
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