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
40683887
Commit
40683887
authored
Mar 01, 2022
by
纪泽龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
企业不受控制
parent
82d7a63a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
map.js
gassafetyprogress-web/src/utils/mapClass/map.js
+11
-5
No files found.
gassafetyprogress-web/src/utils/mapClass/map.js
View file @
40683887
/*
/*
* @Author: your name
* @Author: your name
* @Date: 2022-01-11 13:45:12
* @Date: 2022-01-11 13:45:12
* @LastEditTime: 2022-03-01 1
6:16:19
* @LastEditTime: 2022-03-01 1
7:25:23
* @LastEditors: Please set LastEditors
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /test/hello-world/src/utils/mapClass.js
* @FilePath: /test/hello-world/src/utils/mapClass.js
...
@@ -482,9 +482,9 @@ export class EditorMap {
...
@@ -482,9 +482,9 @@ export class EditorMap {
// 设备存在 受到设备按钮限制
// 设备存在 受到设备按钮限制
const
deviceHas
=
typeArr
.
indexOf
(
+
data
.
iconType
)
>=
0
;
const
deviceHas
=
typeArr
.
indexOf
(
+
data
.
iconType
)
>=
0
;
// 如果是燃气公司的话,不受按钮限制
// 如果是燃气公司的话,不受按钮限制
const
enterprise
=
data
.
iconType
==
7
||
data
.
iconType
==
8
;
const
enterprise
=
data
.
iconType
==
7
||
data
.
iconType
==
8
;
// 必须设备存在数组里,才会显示设备 !data.companyType代表用户不受公司制约
// 必须设备存在数组里,才会显示设备 !data.companyType代表用户不受公司制约
if
(
(
deviceHas
||
enterprise
)
&&
(
companyHas
||
!
data
.
companyType
))
{
if
(
enterprise
||
(
deviceHas
&&
(
companyHas
||
!
data
.
companyType
)
))
{
device
.
show
();
device
.
show
();
}
else
{
}
else
{
device
.
hide
();
device
.
hide
();
...
@@ -508,7 +508,10 @@ export class EditorMap {
...
@@ -508,7 +508,10 @@ export class EditorMap {
device
.
oldData
=
device
.
getExtData
();
device
.
oldData
=
device
.
getExtData
();
device
.
setExtData
(
obj
);
device
.
setExtData
(
obj
);
// 如果infowindow是打开的,就改变里面的数据,必须是用户才行
// 如果infowindow是打开的,就改变里面的数据,必须是用户才行
if
(
this
.
infowindowComponent
&&
this
.
infowindowComponent
.
deviceData
.
iconType
==
6
)
{
if
(
this
.
infowindowComponent
&&
this
.
infowindowComponent
.
deviceData
.
iconType
==
6
)
{
this
.
infowindowComponentChange
(
obj
);
this
.
infowindowComponentChange
(
obj
);
}
}
if
(
!
this
.
alarmObj
[
iconType
])
{
if
(
!
this
.
alarmObj
[
iconType
])
{
...
@@ -547,7 +550,10 @@ export class EditorMap {
...
@@ -547,7 +550,10 @@ export class EditorMap {
device
.
setExtData
(
deviceData
);
device
.
setExtData
(
deviceData
);
device
.
oldData
=
null
;
device
.
oldData
=
null
;
// 如果infowindow是打开的
// 如果infowindow是打开的
if
(
this
.
infowindowComponent
&&
this
.
infowindowComponent
.
deviceData
.
iconType
==
6
)
{
if
(
this
.
infowindowComponent
&&
this
.
infowindowComponent
.
deviceData
.
iconType
==
6
)
{
this
.
infowindowComponentChange
(
deviceData
);
this
.
infowindowComponentChange
(
deviceData
);
}
}
// 在arr中删掉
// 在arr中删掉
...
...
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