Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gassafety-progress
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
耿迪迪
gassafety-progress
Commits
118fbd49
Commit
118fbd49
authored
Mar 01, 2022
by
纪泽龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
bafc4fd5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
+13
-8
map.js
gassafetyprogress-web/src/utils/mapClass/map.js
+13
-8
No files found.
gassafetyprogress-web/src/utils/mapClass/map.js
View file @
118fbd49
/*
* @Author: your name
* @Date: 2022-01-11 13:45:12
* @LastEditTime: 2022-03-01 10:
04:44
* @LastEditTime: 2022-03-01 10:
19:55
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /test/hello-world/src/utils/mapClass.js
...
...
@@ -506,7 +506,10 @@ export class EditorMap {
// 将旧的值缓存一下
device
.
oldData
=
device
.
getExtData
();
device
.
setExtData
(
obj
);
// 如果infowindow是打开的,就改变里面的数据
if
(
this
.
infowindowComponent
)
{
this
.
infowindowComponentChange
(
obj
);
}
if
(
!
this
.
alarmObj
[
iconType
])
{
this
.
alarmObj
[
iconType
]
=
[];
}
else
{
...
...
@@ -542,7 +545,10 @@ export class EditorMap {
const
deviceData
=
device
.
oldData
;
device
.
setExtData
(
deviceData
);
device
.
oldData
=
null
;
// 如果infowindow是打开的
if
(
this
.
infowindowComponent
)
{
this
.
infowindowComponentChange
(
deviceData
);
}
// 在arr中删掉
arr
.
splice
(
i
,
1
);
// 由于删掉了当前,所以要--恢复位置
...
...
@@ -562,16 +568,15 @@ export class EditorMap {
// 2报警,1恢复
if
(
userStatus
==
2
)
{
icon
=
svgAlarm
[
iconType
];
device
.
oldData
=
device
.
getExtData
()
device
.
oldData
=
device
.
getExtData
()
;
device
.
setExtData
(
obj
);
}
else
if
(
userStatus
==
1
)
{
}
else
if
(
userStatus
==
1
)
{
icon
=
svgUrl
[
iconType
];
const
oldData
=
device
.
oldData
;
device
.
setExtData
(
oldData
);
device
.
oldData
=
null
;
device
.
oldData
=
null
;
}
decice
.
setIcon
(
icon
)
decice
.
setIcon
(
icon
);
}
// 卫星图切换
satellite
=
null
;
...
...
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