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
288b648c
Commit
288b648c
authored
1 year ago
by
涂伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '运维同步地图组件新增防抖'
parent
4e277b58
Pipeline
#87631
passed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
index.jsx
src/pages/productCenter/webConfig/index.jsx
+10
-7
No files found.
src/pages/productCenter/webConfig/index.jsx
View file @
288b648c
...
...
@@ -16,6 +16,7 @@ import {
SyncMapComponent
,
BatchDragSingleWebsite
,
}
from
'@/services/webConfig/api'
;
import
debounce
from
'lodash/debounce'
;
import
{
EditTwoTone
,
ExclamationCircleOutlined
,
OrderedListOutlined
}
from
'@ant-design/icons'
;
import
Modal
from
'antd/lib/modal/Modal'
;
import
ProCard
from
'@ant-design/pro-card'
;
...
...
@@ -224,8 +225,8 @@ const WebConfigPage = props => {
}
else
{
url
=
localStorage
.
getItem
(
'pd2-baseUrl'
)
&&
localStorage
.
getItem
(
'pd2-baseUrl'
)
!=
'null'
&&
localStorage
.
getItem
(
'pd2-baseUrl'
)
!=
'undefined'
localStorage
.
getItem
(
'pd2-baseUrl'
)
!=
'null'
&&
localStorage
.
getItem
(
'pd2-baseUrl'
)
!=
'undefined'
?
localStorage
.
getItem
(
'pd2-baseUrl'
)
+
val
:
val
;
}
...
...
@@ -320,6 +321,8 @@ const WebConfigPage = props => {
});
};
const
delayedSyncMap
=
debounce
(
data
=>
SyncMap
(
data
),
500
);
const
sort
=
()
=>
{
console
.
log
(
webs
);
setSortVisible
(
true
);
...
...
@@ -345,26 +348,26 @@ const WebConfigPage = props => {
地图组件数量
{
tabPaneItem
.
existMapComponent
<
tabPaneItem
.
mapComponent
?
(
<
Tooltip
title=
"点击一键修复"
placement=
"topRight"
>
<
span
style=
{
{
color
:
'red'
}
}
onClick=
{
()
=>
SyncMap
(
tabPaneItem
)
}
>
<
span
style=
{
{
color
:
'red'
}
}
onClick=
{
()
=>
delayed
SyncMap
(
tabPaneItem
)
}
>
{
tabPaneItem
.
existMapComponent
}
</
span
>
/
<
span
style=
{
{
color
:
'#1890ff'
}
}
onClick=
{
()
=>
SyncMap
(
tabPaneItem
)
}
>
<
span
style=
{
{
color
:
'#1890ff'
}
}
onClick=
{
()
=>
delayed
SyncMap
(
tabPaneItem
)
}
>
{
tabPaneItem
.
mapComponent
}
</
span
>
</
Tooltip
>
)
:
(
<
Tooltip
title=
"点击同步地图组件"
placement=
"topRight"
>
<
span
style=
{
{
color
:
'#1890ff'
}
}
onClick=
{
()
=>
SyncMap
(
tabPaneItem
)
}
>
<
span
style=
{
{
color
:
'#1890ff'
}
}
onClick=
{
()
=>
delayed
SyncMap
(
tabPaneItem
)
}
>
{
tabPaneItem
.
existMapComponent
}
</
span
>
<
span
>
/
</
span
>
{
tabPaneItem
.
existMapComponent
!==
tabPaneItem
.
mapComponent
?
(
<
span
style=
{
{
color
:
'#1890ff'
}
}
onClick=
{
()
=>
SyncMap
(
tabPaneItem
)
}
>
<
span
style=
{
{
color
:
'#1890ff'
}
}
onClick=
{
()
=>
delayed
SyncMap
(
tabPaneItem
)
}
>
{
tabPaneItem
.
existMapComponent
}
</
span
>
)
:
(
<
span
style=
{
{
color
:
'#1890ff'
}
}
onClick=
{
()
=>
SyncMap
(
tabPaneItem
)
}
>
<
span
style=
{
{
color
:
'#1890ff'
}
}
onClick=
{
()
=>
delayed
SyncMap
(
tabPaneItem
)
}
>
{
tabPaneItem
.
mapComponent
}
</
span
>
)
}
...
...
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