Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
CivManage
Commits
56804907
Commit
56804907
authored
2 years ago
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
事件图片库样式优化
parent
da098b1e
Pipeline
#59620
passed with stages
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
43 additions
and
26 deletions
+43
-26
PreviewModal.jsx
src/pages/bsmanager/workOrder/incident/PreviewModal.jsx
+19
-3
PreviewModal.less
src/pages/bsmanager/workOrder/incident/PreviewModal.less
+4
-1
TileConfig.jsx
...platformCenter/gis/schemeConfig/TileConfig/TileConfig.jsx
+19
-21
card.jsx
...enter/gis/schemeConfig/projectMessage/components/card.jsx
+1
-1
No files found.
src/pages/bsmanager/workOrder/incident/PreviewModal.jsx
View file @
56804907
...
...
@@ -5,7 +5,7 @@
/* eslint-disable prefer-template */
/* eslint-disable react/jsx-boolean-value */
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
classnames
from
'classnames'
;
import
styles
from
'./PreviewModal.less'
;
...
...
@@ -199,8 +199,24 @@ const PreviewModal = props => {
setChooseItem
(
k
.
value
);
}
}
/>
<
div
style=
{
{
textAlign
:
'center'
}
}
>
<
p
>
{
k
.
text
}
</
p
>
<
div
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
>
);
...
...
This diff is collapsed.
Click to expand it.
src/pages/bsmanager/workOrder/incident/PreviewModal.less
View file @
56804907
...
...
@@ -2,21 +2,24 @@
display: inline-block;
margin-left: 30px;
margin-bottom: 30px;
// width: 8
0px;
width: 10
0px;
}
.imgItem {
border: 3px solid rgb(24, 144, 255);
box-sizing: border-box;
border-radius: 5px;
display: inline-block;
margin-left: 10px;
background-color: #2881a1;
}
.imgHidden {
margin-left: 10px;
border: none;
display: inline-block;
background-color: #2881a1;
}
.imgHidden:hover {
margin-left: 10px;
border: 3px solid rgb(24, 144, 255);
box-sizing: border-box;
border-radius: 5px;
...
...
This diff is collapsed.
Click to expand it.
src/pages/platformCenter/gis/schemeConfig/TileConfig/TileConfig.jsx
View file @
56804907
...
...
@@ -54,13 +54,13 @@ const TileData = props => {
key
:
'type'
,
align
:
'center'
,
},
{
title
:
'透明度'
,
dataIndex
:
'alpha'
,
key
:
'alpha'
,
align
:
'center'
,
render
:
(
text
,
record
)
=>
<
span
>
{
`${(text * 100).toFixed()}%`
}
</
span
>,
},
//
{
//
title: '透明度',
//
dataIndex: 'alpha',
//
key: 'alpha',
//
align: 'center',
//
render: (text, record) => <span>{`${(text * 100).toFixed()}%`}</span>,
//
},
{
title
:
'编辑'
,
align
:
'center'
,
...
...
@@ -130,7 +130,7 @@ const TileData = props => {
const
{
servicename
=
''
}
=
record
;
setTreeLoading
(
true
);
deleteConfig
({
servicename
:
servicename
,
servicename
,
terminalType
:
'base'
,
isBaseMap
:
true
,
})
...
...
@@ -282,19 +282,17 @@ const TileData = props => {
transitionDuration=".5"
> */
}
{
cardData
&&
cardData
.
length
?
(
cardData
.
map
((
item
,
index
)
=>
{
return
(
<
div
className=
{
styles
.
cardItem
}
key=
{
index
}
span=
{
5
}
offset=
{
2
}
style=
{
{
marginBottom
:
'1rem'
}
}
>
<
Cards
item=
{
item
}
deletebaseMaps=
{
onDeletebaseMap
}
cardData=
{
cardData
}
/>
</
div
>
);
})
cardData
.
map
((
item
,
index
)
=>
(
<
div
className=
{
styles
.
cardItem
}
key=
{
index
}
span=
{
5
}
offset=
{
2
}
style=
{
{
marginBottom
:
'1rem'
}
}
>
<
Cards
item=
{
item
}
deletebaseMaps=
{
onDeletebaseMap
}
cardData=
{
cardData
}
/>
</
div
>
))
)
:
(
<
Empty
image=
{
Empty
.
PRESENTED_IMAGE_SIMPLE
}
style=
{
{
margin
:
'auto'
}
}
/>
)
}
...
...
This diff is collapsed.
Click to expand it.
src/pages/platformCenter/gis/schemeConfig/projectMessage/components/card.jsx
View file @
56804907
...
...
@@ -70,7 +70,7 @@ const CardData = props => {
}
});
}
else
{
message
.
error
(
'方案至少需要一张底图'
);
message
.
warning
(
'方案至少需要一张底图'
);
}
};
// 删除方案
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment