Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
web-project
Project
Project
Details
Activity
Releases
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
海康威视
web-project
Commits
b63863b4
Commit
b63863b4
authored
Jan 14, 2025
by
liwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了大屏显示bug
parent
9b6ad313
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
screenDisplay.vue
src/components/screenDisplay.vue
+11
-9
No files found.
src/components/screenDisplay.vue
View file @
b63863b4
...
@@ -17,7 +17,7 @@ import AMapLoader from "@amap/amap-jsapi-loader";
...
@@ -17,7 +17,7 @@ import AMapLoader from "@amap/amap-jsapi-loader";
<div
class=
"btn btn3"
@
click=
"heatBtnClick(3)"
><p>
返回首页
</p></div>
<div
class=
"btn btn3"
@
click=
"heatBtnClick(3)"
><p>
返回首页
</p></div>
<div
class=
"btn btn4"
@
click=
"heatBtnClick(4)"
><p>
返回上一级
</p></div>
<div
class=
"btn btn4"
@
click=
"heatBtnClick(4)"
><p>
返回上一级
</p></div>
</div>
</div>
<div
v-
show
=
"mapLevel === 1"
>
<div
v-
if
=
"mapLevel === 1"
>
<div
class=
"leftLayer"
id=
"leftLayer"
>
<div
class=
"leftLayer"
id=
"leftLayer"
>
<div
class=
"blockStyle"
style=
"height: 18%"
>
<div
class=
"blockStyle"
style=
"height: 18%"
>
<div
class=
"titleStyle"
><p>
室外温度
</p></div>
<div
class=
"titleStyle"
><p>
室外温度
</p></div>
...
@@ -317,7 +317,7 @@ import AMapLoader from "@amap/amap-jsapi-loader";
...
@@ -317,7 +317,7 @@ import AMapLoader from "@amap/amap-jsapi-loader";
</ul>
</ul>
</div>
</div>
</div>
</div>
<div
v-
show
=
"mapLevel === 2"
>
<div
v-
else-if
=
"mapLevel === 2"
>
<div
class=
"secondLeftLayer"
>
<div
class=
"secondLeftLayer"
>
<div
class=
"secondLeftLayer_one"
>
<div
class=
"secondLeftLayer_one"
>
<div
style=
"width: 100%"
>
<div
style=
"width: 100%"
>
...
@@ -438,7 +438,7 @@ import AMapLoader from "@amap/amap-jsapi-loader";
...
@@ -438,7 +438,7 @@ import AMapLoader from "@amap/amap-jsapi-loader";
</vue3ScrollSeamless>
</vue3ScrollSeamless>
</div>
</div>
</div>
</div>
<div
v-
show=
"mapLevel === 3"
>
<div
v-
else
>
<div
class=
"thirdLeftLayer"
>
<div
class=
"thirdLeftLayer"
>
<div
class=
"thirdLeftLayer_one"
ref=
"myContainer"
>
<div
class=
"thirdLeftLayer_one"
ref=
"myContainer"
>
<div
class=
"title_row"
>
<div
class=
"title_row"
>
...
@@ -1161,12 +1161,12 @@ export default defineComponent({
...
@@ -1161,12 +1161,12 @@ export default defineComponent({
if
(
markerId
.
includes
(
"marker3"
))
{
if
(
markerId
.
includes
(
"marker3"
))
{
console
.
log
(
'3333333333333333333333333333333333333333333333333333333333333333'
,
stationId
)
console
.
log
(
'3333333333333333333333333333333333333333333333333333333333333333'
,
stationId
)
console
.
log
(
'3333333333333333333333333333333333333333333333333333333333333333'
,
centerId
)
console
.
log
(
'3333333333333333333333333333333333333333333333333333333333333333'
,
centerId
)
_this
.
markerThree
=
{
//
_this.markerThree = {
// map: map,
//
// map: map,
stationId
:
stationId
,
//
stationId: stationId,
supplyId
:
centerId
,
//
supplyId: centerId,
// index: index,
//
// index: index,
};
//
};
_this
.
thirdLevelPageFun2
()
// 第三级页面方法
_this
.
thirdLevelPageFun2
()
// 第三级页面方法
}
}
});
});
...
@@ -3199,6 +3199,8 @@ export default defineComponent({
...
@@ -3199,6 +3199,8 @@ export default defineComponent({
getDivDialogWidth
()
{
getDivDialogWidth
()
{
console
.
log
(
'22222222222222222222222222222222222222'
,
window
.
innerWidth
)
console
.
log
(
'22222222222222222222222222222222222222'
,
window
.
innerWidth
)
console
.
log
(
'22222222222222222222222222222222222222'
,
window
.
innerHeight
)
console
.
log
(
'22222222222222222222222222222222222222'
,
window
.
innerHeight
)
console
.
log
(
'this.mapLevel:'
,
this
.
mapLevel
)
// this.mapLevel = 3
this
.
divDialogWidth
=
window
.
innerWidth
*
0.9
;
// 获取元素的宽度,包括元素的padding,不包括border、margin和滚动条
this
.
divDialogWidth
=
window
.
innerWidth
*
0.9
;
// 获取元素的宽度,包括元素的padding,不包括border、margin和滚动条
this
.
divDialogHeight
=
window
.
innerHeight
*
0.8
;
// 获取元素的宽度,包括元素的padding,不包括border、margin和滚动条
this
.
divDialogHeight
=
window
.
innerHeight
*
0.8
;
// 获取元素的宽度,包括元素的padding,不包括border、margin和滚动条
},
},
...
...
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