Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zh-baseversion-project
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
王浩
zh-baseversion-project
Commits
6c2f88d0
Commit
6c2f88d0
authored
May 30, 2024
by
军师中郎将
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1 大屏端 调压箱,阀门井,场站,监控,餐饮单位液化气用户 上图都用 LabelsLayer 实现,并且推动时隐藏,停止拖动时显示。
parent
504ad95f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
499 additions
and
14 deletions
+499
-14
TDeviceUser.java
...m/src/main/java/com/zehong/system/domain/TDeviceUser.java
+10
-0
TDeviceUserMapper.xml
...em/src/main/resources/mapper/system/TDeviceUserMapper.xml
+2
-1
map.js
zh-baseversion-web/src/utils/mapClass/map.js
+442
-1
index.vue
zh-baseversion-web/src/views/bigWindow/index.vue
+45
-12
No files found.
zh-baseversion-system/src/main/java/com/zehong/system/domain/TDeviceUser.java
View file @
6c2f88d0
...
...
@@ -83,6 +83,16 @@ public class TDeviceUser extends BaseEntity
private
String
alarmTime
;
private
String
iconType
;
public
String
getIconType
()
{
return
iconType
;
}
public
void
setIconType
(
String
iconType
)
{
this
.
iconType
=
iconType
;
}
public
String
getAlarmTime
()
{
return
alarmTime
;
}
...
...
zh-baseversion-system/src/main/resources/mapper/system/TDeviceUserMapper.xml
View file @
6c2f88d0
...
...
@@ -23,6 +23,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result
property=
"updateTime"
column=
"update_time"
/>
<result
property=
"isDel"
column=
"is_del"
/>
<result
property=
"remarks"
column=
"remarks"
/>
<result
property=
"iconType"
column=
"iconType"
/>
</resultMap>
<sql
id=
"selectTDeviceUserVo"
>
...
...
@@ -60,7 +61,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select>
<select
id=
"allListbyTownship"
resultMap=
"TDeviceUserResult"
>
SELECT * FROM t_device_user WHERE township IS NOT NULL GROUP BY township
SELECT *
,"18" as iconType
FROM t_device_user WHERE township IS NOT NULL GROUP BY township
</select>
<insert
id=
"insertTDeviceUser"
parameterType=
"TDeviceUser"
useGeneratedKeys=
"true"
keyProperty=
"userId"
>
insert into t_device_user
...
...
zh-baseversion-web/src/utils/mapClass/map.js
View file @
6c2f88d0
This diff is collapsed.
Click to expand it.
zh-baseversion-web/src/views/bigWindow/index.vue
View file @
6c2f88d0
...
...
@@ -368,17 +368,21 @@ export default {
// getPipe() getTyx() getFm() getCz() getVideo() getUser()
await
this
.
goMap
(
getEnterprise
,
this
.
addDevice
,
Company
,
true
);
// this.goMap(getPipe, this.addPipeLine, Line, true);
//管道
this
.
goMediumPressureLineMap
(
getPipe
,
this
.
addMediumPipeLine
,
Line
,
MediumPressureLineVue
,
true
);
this
.
goMap
(
getTyx
,
this
.
addDevice
,
Device
,
false
);
this
.
goMap
(
getFm
,
this
.
addDevice
,
Device
,
false
);
this
.
goMap
(
getCz
,
this
.
addDevice
,
Cz
,
false
);
this
.
goMap
(
getVideo
,
this
.
addDevice
,
VideoView
,
false
);
//调压箱
this
.
labelsLayerMarksTysGoMap
(
getTyx
,
Device
,
false
);
//阀门井
this
.
labelsLayerMarksFmjGoMap
(
getFm
,
Device
,
false
);
//场站
this
.
labelsLayerMarksCzGoMap
(
getCz
,
Cz
,
false
);
//监控
this
.
labelsLayerMarksVideoGoMap
(
getVideo
,
VideoView
,
false
);
//this.goMap(getYhq, this.addDevice2, yhqUser, false); //液化气用户上图
if
(
this
.
enterpriseId
==-
2
){
this
.
goMap
(
deviceUser
,
this
.
addDevice2
,
yhqUser
,
false
);
//用户上图
this
.
labelsLayerMarksDeviceUserGoMap
(
deviceUser
,
yhqUser
,
false
);
//用户上图
}
// 用户要等一下 因为有报警数据
this
.
labelsLayerMarksDetectorUserGoMap
(
labelsLayerMarksDetectorUserList
,
User
,
false
).
then
((
res
)
=>
{
// 先查一下,然后开启定时器
...
...
@@ -483,6 +487,41 @@ export default {
});
},
labelsLayerMarksDeviceUserGoMap
(
httpFunc
,
component
,
show
){
return
httpFunc
().
then
((
res
)
=>
{
const
mapData
=
res
.
data
;
this
.
map
.
labelsLayerMarksDeviceUserGoMap
(
mapData
,
component
,
show
);
})
}
,
labelsLayerMarksVideoGoMap
(
httpFunc
,
component
,
show
){
return
httpFunc
().
then
((
res
)
=>
{
const
mapData
=
res
.
data
;
this
.
map
.
labelsLayerMarksVideoGoMap
(
mapData
,
component
,
show
);
})
}
,
labelsLayerMarksCzGoMap
(
httpFunc
,
component
,
show
){
return
httpFunc
().
then
((
res
)
=>
{
const
mapData
=
res
.
data
;
this
.
map
.
labelsLayerMarksCzGoMap
(
mapData
,
component
,
show
);
})
}
,
labelsLayerMarksFmjGoMap
(
httpFunc
,
component
,
show
){
return
httpFunc
().
then
((
res
)
=>
{
const
mapData
=
res
.
data
;
this
.
map
.
labelsLayerMarksFmjGoMap
(
mapData
,
component
,
show
);
})
}
,
labelsLayerMarksTysGoMap
(
httpFunc
,
component
,
show
){
return
httpFunc
().
then
((
res
)
=>
{
const
mapData
=
res
.
data
;
this
.
map
.
labelsLayerMarksTysGoMap
(
mapData
,
component
,
show
);
})
}
,
labelsLayerMarksDetectorUserGoMap
(
httpFunc
,
component
,
show
)
{
return
httpFunc
().
then
((
res
)
=>
{
const
mapData
=
res
.
data
;
...
...
@@ -491,12 +530,6 @@ export default {
},
goMap
(
httpFunc
,
addFunc
,
component
,
show
)
{
return
httpFunc
().
then
((
res
)
=>
{
// 给用户加icontype
if
(
res
.
data
&&
!
res
.
data
[
0
].
iconType
)
{
res
.
data
.
forEach
((
item
)
=>
{
item
.
iconType
=
6
;
});
}
// 根据数据格式不同,赋值不同,如果是个数组,就用res,如果不是就用res.data
let
config
=
{};
if
(
Array
.
isArray
(
res
))
{
...
...
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