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
355b05f8
Commit
355b05f8
authored
Jul 15, 2024
by
qjeslks
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://gitee.com/tj-wang-yahui/AMS_HeatSys_Vue_V10
parents
ae7e1c51
aa61b149
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
325 additions
and
130 deletions
+325
-130
config.js
public/config.js
+4
-4
App.vue
src/App.vue
+5
-5
screenDisplay.vue
src/components/screenDisplay.vue
+127
-97
main.js
src/main.js
+3
-20
index.js
src/router/index.js
+10
-0
screenDisplay.vue
src/views/Gis/screenDisplay.vue
+149
-1
VideoViewPage.vue
src/views/Video/VideoViewPage.vue
+1
-1
home.vue
src/views/home.vue
+2
-2
iframe.vue
src/views/iframe.vue
+24
-0
No files found.
public/config.js
View file @
355b05f8
export
const
ExternalSERVEICE
=
'http://218.69.97.198:8001'
//
export const ExternalSERVEICE='http://218.69.97.198:8001'
export
const
WithinSERVEICE
=
'http://192.168.1.252:8001'
//
export const WithinSERVEICE='http://192.168.1.252:8001'
//
export const ExternalSERVEICE='http://localhost:5013'
export
const
ExternalSERVEICE
=
'http://localhost:5013'
//
export const WithinSERVEICE='http://localhost:5013'
export
const
WithinSERVEICE
=
'http://localhost:5013'
export
const
CURRLOGO
=
"LOGO_gangyi.png"
export
const
CURRLOGO
=
"LOGO_gangyi.png"
src/App.vue
View file @
355b05f8
...
@@ -8,14 +8,14 @@
...
@@ -8,14 +8,14 @@
padding
:
0
;
padding
:
0
;
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
overflow
:
hidden
;
overflow
:
hidden
;
text-align
:
left
;
text-align
:
left
;
min-height
:
100vh
;
min-height
:
100vh
;
max-width
:
100vw
;
max-width
:
100vw
;
/* display: flex;
/* display: flex;
flex-direction: column; */
flex-direction: column; */
}
}
/*
::-webkit-scrollbar {
::-webkit-scrollbar {
width: 0 !important;
width: 0 !important;
}
}
...
@@ -23,8 +23,8 @@
...
@@ -23,8 +23,8 @@
width: 0 !important;
width: 0 !important;
height: 0;
height: 0;
}
}
::-webkit-scrollbar
{
::-webkit-scrollbar {
/*隐藏滚轮*/
隐藏滚轮
display: none;
display: none;
}
}
*/
</
style
>
</
style
>
src/components/screenDisplay.vue
View file @
355b05f8
...
@@ -270,25 +270,20 @@ import AMapLoader from "@amap/amap-jsapi-loader";
...
@@ -270,25 +270,20 @@ import AMapLoader from "@amap/amap-jsapi-loader";
<table
v-show=
"menuGYTransfer == 1"
>
<table
v-show=
"menuGYTransfer == 1"
>
<tr>
<tr>
<th>
名称
</th>
<th>
名称
</th>
<th
v-for=
"item in gYTransferHeatUC"
:key=
"item.transferId"
>
<th>
平均温度℃
</th>
{{
item
.
transferName
}}
<th>
热单耗W/㎡
</th>
</th>
</tr>
</tr>
<tr>
<tr
v-for=
"item in gYTransferHeatUC"
:key=
"item.transferId"
>
<td>
平均温度℃
</td>
<td>
{{
item
.
transferName
}}
</td>
<td
v-for=
"item in gYTransferHeatUC"
:key=
"item.transferId"
>
<td>
{{
item
.
temperature
}}
</td>
<span
v-if=
"item.temperature != 0"
>
{{
<td>
{{
item
.
uc
}}
</td>
parseFloat
(
item
.
temperature
).
toFixed
(
2
)
}}
</span>
<span
v-else
>
-
</span>
</td>
</tr>
</tr>
<tr>
<
!--
<
tr>
<td>
热单耗W/㎡
</td>
<td>
热单耗W/㎡
</td>
<td
v-for=
"item in gYTransferHeatUC"
:key=
"item.transferId"
>
<td
v-for=
"item in gYTransferHeatUC"
:key=
"item.transferId"
>
{{
item
.
uc
}}
{{
item
.
uc
}}
</td>
</td>
</tr>
</tr>
-->
</table>
</table>
</div>
</div>
</div>
</div>
...
@@ -345,7 +340,6 @@ import {
...
@@ -345,7 +340,6 @@ import {
postTransferOpenValue
,
postTransferOpenValue
,
postGYSupplyHeatUCDeviation
,
postGYSupplyHeatUCDeviation
,
}
from
"../api/screenDisplay"
;
}
from
"../api/screenDisplay"
;
export
default
defineComponent
({
export
default
defineComponent
({
components
:
{},
components
:
{},
data
()
{
data
()
{
...
@@ -418,10 +412,21 @@ export default defineComponent({
...
@@ -418,10 +412,21 @@ export default defineComponent({
this
.
login
();
this
.
login
();
window
.
onresize
=
function
()
{
window
.
onresize
=
function
()
{
location
.
reload
();
location
.
reload
();
myChart
.
resize
();
//
myChart.resize();
};
};
},
},
methods
:
{
methods
:
{
// 百度转换高德
bd_decrypt
(
bd_lng
,
bd_lat
)
{
var
X_PI
=
(
Math
.
PI
*
3000.0
)
/
180.0
;
var
x
=
bd_lng
-
0.0065
;
var
y
=
bd_lat
-
0.006
;
var
z
=
Math
.
sqrt
(
x
*
x
+
y
*
y
)
-
0.00002
*
Math
.
sin
(
y
*
X_PI
);
var
theta
=
Math
.
atan2
(
y
,
x
)
-
0.000003
*
Math
.
cos
(
x
*
X_PI
);
var
gg_lng
=
z
*
Math
.
cos
(
theta
);
var
gg_lat
=
z
*
Math
.
sin
(
theta
);
return
{
lng
:
gg_lng
,
lat
:
gg_lat
};
},
mapinit
:
function
()
{
mapinit
:
function
()
{
//let map = null;
//let map = null;
let
_this
=
this
;
let
_this
=
this
;
...
@@ -448,11 +453,17 @@ export default defineComponent({
...
@@ -448,11 +453,17 @@ export default defineComponent({
});
});
this
.
servicCenterList
.
forEach
((
element
,
index
)
=>
{
this
.
servicCenterList
.
forEach
((
element
,
index
)
=>
{
const
amapGps
=
this
.
bd_decrypt
(
element
.
longitude
,
element
.
latitude
);
this
.
markerFun
(
this
.
markerFun
(
_this
.
map
,
_this
.
map
,
element
.
centerId
,
element
.
centerId
,
element
.
longitude
,
amapGps
.
lng
,
element
.
latitude
,
amapGps
.
lat
,
// element.longitude,
// element.latitude,
element
.
centerName
,
element
.
centerName
,
element
.
realHeat
,
element
.
realHeat
,
element
.
area
,
element
.
area
,
...
@@ -509,7 +520,7 @@ export default defineComponent({
...
@@ -509,7 +520,7 @@ export default defineComponent({
'<div class="custom-content-marker markerPoints" id="'
+
'<div class="custom-content-marker markerPoints" id="'
+
markerId
+
markerId
+
'">'
+
'">'
+
' <img src="/im
gs/Gi
s/points1.png">'
+
' <img src="/im
age
s/points1.png">'
+
"</div>"
;
"</div>"
;
break
;
break
;
case
2
:
case
2
:
...
@@ -518,7 +529,7 @@ export default defineComponent({
...
@@ -518,7 +529,7 @@ export default defineComponent({
'<div class="custom-content-marker markerPoints" id="'
+
'<div class="custom-content-marker markerPoints" id="'
+
markerId
+
markerId
+
'">'
+
'">'
+
' <img src="/im
gs/Gi
s/points2.png">'
+
' <img src="/im
age
s/points2.png">'
+
"</div>"
;
"</div>"
;
break
;
break
;
case
3
:
case
3
:
...
@@ -527,7 +538,7 @@ export default defineComponent({
...
@@ -527,7 +538,7 @@ export default defineComponent({
'<div class="custom-content-marker markerPoints" id="'
+
'<div class="custom-content-marker markerPoints" id="'
+
markerId
+
markerId
+
'">'
+
'">'
+
' <img src="/im
gs/Gi
s/points3.png">'
+
' <img src="/im
age
s/points3.png">'
+
"</div>"
;
"</div>"
;
break
;
break
;
}
}
...
@@ -612,8 +623,8 @@ export default defineComponent({
...
@@ -612,8 +623,8 @@ export default defineComponent({
// uuid: "04da48c6-99f9-4370-a33d-9cfcf67b59b7",
// uuid: "04da48c6-99f9-4370-a33d-9cfcf67b59b7",
// };
// };
// getToken(params).then((res) => {
// getToken(params).then((res) => {
// if (res.message == "操作成功"
) {
//if (res.success === true
) {
//
sessionStorage.setItem("token", res.data.token);
//
sessionStorage.setItem("token", res.data.token);
this
.
postServicCenterList
();
//获取服务中心列表
this
.
postServicCenterList
();
//获取服务中心列表
this
.
getForecast
();
//获取室外温度
this
.
getForecast
();
//获取室外温度
this
.
postGYPipeReal
();
//获取实时数据
this
.
postGYPipeReal
();
//获取实时数据
...
@@ -623,15 +634,15 @@ export default defineComponent({
...
@@ -623,15 +634,15 @@ export default defineComponent({
this
.
postGYSupplyWater
();
//获取前12小时一次补水量曲线
this
.
postGYSupplyWater
();
//获取前12小时一次补水量曲线
this
.
postTransferOpenValue
();
//换热站机组一网电调阀开度分布
this
.
postTransferOpenValue
();
//换热站机组一网电调阀开度分布
this
.
postGYSupplyHeatUCDeviation
();
//度日数热耗
this
.
postGYSupplyHeatUCDeviation
();
//度日数热耗
//
} else {
//
} else {
//
console.log(res.message);
//
console.log(res.message);
//
}
//
}
//
});
//
});
},
},
//获取服务中心列表
//获取服务中心列表
postServicCenterList
()
{
postServicCenterList
()
{
postServicCenterList
().
then
((
res
)
=>
{
postServicCenterList
().
then
((
res
)
=>
{
if
(
res
.
message
==
"操作成功"
&&
res
.
status
!=
9
)
{
if
(
res
.
success
===
true
)
{
this
.
servicCenterList
=
res
.
data
;
this
.
servicCenterList
=
res
.
data
;
this
.
servicCenterList
.
forEach
((
element
,
index
)
=>
{
this
.
servicCenterList
.
forEach
((
element
,
index
)
=>
{
element
.
markerId
=
"marker1_"
+
index
;
element
.
markerId
=
"marker1_"
+
index
;
...
@@ -648,7 +659,7 @@ export default defineComponent({
...
@@ -648,7 +659,7 @@ export default defineComponent({
postSupplylist
(
map
,
id
,
index
)
{
postSupplylist
(
map
,
id
,
index
)
{
let
_this
=
this
;
let
_this
=
this
;
postSupplylist
(
id
).
then
((
res
)
=>
{
postSupplylist
(
id
).
then
((
res
)
=>
{
if
(
res
.
message
==
"操作成功"
&&
res
.
status
!=
9
)
{
if
(
res
.
success
===
true
)
{
this
.
supplylistList
=
res
.
data
;
this
.
supplylistList
=
res
.
data
;
this
.
supplylistList
.
forEach
((
element
,
index
)
=>
{
this
.
supplylistList
.
forEach
((
element
,
index
)
=>
{
element
.
markerId
=
"marker2_"
+
index
;
element
.
markerId
=
"marker2_"
+
index
;
...
@@ -658,11 +669,17 @@ export default defineComponent({
...
@@ -658,11 +669,17 @@ export default defineComponent({
res
.
data
.
forEach
((
element
,
index
)
=>
{
res
.
data
.
forEach
((
element
,
index
)
=>
{
if
(
!
element
.
openF
)
{
if
(
!
element
.
openF
)
{
this
.
mapLevel
=
2
;
this
.
mapLevel
=
2
;
const
amapGps
=
this
.
bd_decrypt
(
element
.
longitude
,
element
.
latitude
);
this
.
markerFun
(
this
.
markerFun
(
map
,
map
,
element
.
supplyId
,
element
.
supplyId
,
element
.
longitude
,
// element.longitude,
element
.
latitude
,
// element.latitude,
amapGps
.
lng
,
amapGps
.
lat
,
element
.
supplyName
,
element
.
supplyName
,
element
.
realHeat
,
element
.
realHeat
,
element
.
area
,
element
.
area
,
...
@@ -702,7 +719,7 @@ export default defineComponent({
...
@@ -702,7 +719,7 @@ export default defineComponent({
postTransferList
(
map
,
id
,
index
)
{
postTransferList
(
map
,
id
,
index
)
{
let
_this
=
this
;
let
_this
=
this
;
postTransferList
(
id
).
then
((
res
)
=>
{
postTransferList
(
id
).
then
((
res
)
=>
{
if
(
res
.
message
==
"操作成功"
&&
res
.
status
!=
9
)
{
if
(
res
.
success
===
true
)
{
_this
.
transferList
=
res
.
data
;
_this
.
transferList
=
res
.
data
;
_this
.
transferList
.
forEach
((
element
,
index
)
=>
{
_this
.
transferList
.
forEach
((
element
,
index
)
=>
{
element
.
markerId
=
"marker3_"
+
index
;
element
.
markerId
=
"marker3_"
+
index
;
...
@@ -712,11 +729,25 @@ export default defineComponent({
...
@@ -712,11 +729,25 @@ export default defineComponent({
res
.
data
.
forEach
((
element
,
index
)
=>
{
res
.
data
.
forEach
((
element
,
index
)
=>
{
if
(
!
element
.
openF
)
{
if
(
!
element
.
openF
)
{
this
.
mapLevel
=
3
;
this
.
mapLevel
=
3
;
const
amapGps
=
this
.
bd_decrypt
(
element
.
longitude
,
element
.
latitude
);
console
.
log
(
amapGps
);
if
(
amapGps
.
lng
==
NaN
)
{
amapGps
.
lng
=
element
.
location
;
}
if
(
amapGps
.
lat
==
NaN
)
{
amapGps
.
lat
=
element
.
latitude
;
}
console
.
log
(
amapGps
);
this
.
markerFun
(
this
.
markerFun
(
map
,
map
,
element
.
supplyId
,
element
.
supplyId
,
element
.
longitude
,
amapGps
.
lng
,
element
.
latitude
,
amapGps
.
lat
,
// element.longitude,
// element.latitude,
element
.
transferName
,
element
.
transferName
,
element
.
realHeat
,
element
.
realHeat
,
element
.
area
,
element
.
area
,
...
@@ -742,7 +773,7 @@ export default defineComponent({
...
@@ -742,7 +773,7 @@ export default defineComponent({
getForecast
()
{
getForecast
()
{
getForecast
().
then
((
res
)
=>
{
getForecast
().
then
((
res
)
=>
{
this
.
leftLayer1Nodata
=
true
;
this
.
leftLayer1Nodata
=
true
;
if
(
res
.
message
==
"操作成功"
&&
res
.
status
!=
9
)
{
if
(
res
.
success
===
true
)
{
res
.
data
.
forEach
((
element
)
=>
{
res
.
data
.
forEach
((
element
)
=>
{
this
.
temperature
.
push
(
element
.
temperature
);
this
.
temperature
.
push
(
element
.
temperature
);
});
});
...
@@ -758,7 +789,7 @@ export default defineComponent({
...
@@ -758,7 +789,7 @@ export default defineComponent({
//获取实时数据
//获取实时数据
postGYPipeReal
()
{
postGYPipeReal
()
{
postGYPipeReal
().
then
((
res
)
=>
{
postGYPipeReal
().
then
((
res
)
=>
{
if
(
res
.
message
==
"操作成功"
&&
res
.
status
!=
9
)
{
if
(
res
.
success
===
true
)
{
this
.
gYPipeReal
=
res
.
data
;
this
.
gYPipeReal
=
res
.
data
;
}
else
if
(
res
.
status
==
9
)
{
}
else
if
(
res
.
status
==
9
)
{
setInterval
(
function
()
{
setInterval
(
function
()
{
...
@@ -770,7 +801,7 @@ export default defineComponent({
...
@@ -770,7 +801,7 @@ export default defineComponent({
//获取换热站工况数据接口1 -- 阀门开度
//获取换热站工况数据接口1 -- 阀门开度
postGYTransferValue
()
{
postGYTransferValue
()
{
postGYTransferValue
().
then
((
res
)
=>
{
postGYTransferValue
().
then
((
res
)
=>
{
if
(
res
.
message
==
"操作成功"
&&
res
.
status
!=
9
)
{
if
(
res
.
success
===
true
)
{
this
.
gYTransferValue
=
res
.
data
;
this
.
gYTransferValue
=
res
.
data
;
}
else
if
(
res
.
status
==
9
)
{
}
else
if
(
res
.
status
==
9
)
{
setInterval
(
function
()
{
setInterval
(
function
()
{
...
@@ -782,7 +813,7 @@ export default defineComponent({
...
@@ -782,7 +813,7 @@ export default defineComponent({
//获取换热站工况数据接口2 -- 热单耗
//获取换热站工况数据接口2 -- 热单耗
postGYTransferHeatUC
(
h
)
{
postGYTransferHeatUC
(
h
)
{
postGYTransferHeatUC
(
h
).
then
((
res
)
=>
{
postGYTransferHeatUC
(
h
).
then
((
res
)
=>
{
if
(
res
.
message
==
"操作成功"
&&
res
.
status
!=
9
)
{
if
(
res
.
success
===
true
)
{
this
.
gYTransferHeatUC
=
res
.
data
;
this
.
gYTransferHeatUC
=
res
.
data
;
}
else
if
(
res
.
status
==
9
)
{
}
else
if
(
res
.
status
==
9
)
{
setInterval
(
function
()
{
setInterval
(
function
()
{
...
@@ -794,7 +825,7 @@ export default defineComponent({
...
@@ -794,7 +825,7 @@ export default defineComponent({
//智慧调控
//智慧调控
postAreaList
()
{
postAreaList
()
{
postAreaList
().
then
((
res
)
=>
{
postAreaList
().
then
((
res
)
=>
{
if
(
res
.
message
==
"操作成功"
&&
res
.
status
!=
9
)
{
if
(
res
.
success
===
true
)
{
this
.
areaList
=
res
.
data
[
0
];
this
.
areaList
=
res
.
data
[
0
];
}
else
if
(
res
.
status
==
9
)
{
}
else
if
(
res
.
status
==
9
)
{
setInterval
(
function
()
{
setInterval
(
function
()
{
...
@@ -806,7 +837,7 @@ export default defineComponent({
...
@@ -806,7 +837,7 @@ export default defineComponent({
//度日数热耗
//度日数热耗
postGYSupplyHeatUCDeviation
:
function
()
{
postGYSupplyHeatUCDeviation
:
function
()
{
postGYSupplyHeatUCDeviation
().
then
((
res
)
=>
{
postGYSupplyHeatUCDeviation
().
then
((
res
)
=>
{
if
(
res
.
message
==
"操作成功"
&&
res
.
status
!=
9
)
{
if
(
res
.
success
===
true
)
{
let
_this
=
this
;
let
_this
=
this
;
this
.
gYSupplyHeatUCDeviationSupplyName
=
[];
this
.
gYSupplyHeatUCDeviationSupplyName
=
[];
this
.
gYSupplyHeatUCDeviation
=
res
.
data
;
this
.
gYSupplyHeatUCDeviation
=
res
.
data
;
...
@@ -832,7 +863,7 @@ export default defineComponent({
...
@@ -832,7 +863,7 @@ export default defineComponent({
postGYSupplyWater
()
{
postGYSupplyWater
()
{
postGYSupplyWater
().
then
((
res
)
=>
{
postGYSupplyWater
().
then
((
res
)
=>
{
this
.
rightLayer2Nodata
=
true
;
this
.
rightLayer2Nodata
=
true
;
if
(
res
.
message
==
"操作成功"
&&
res
.
status
!=
9
)
{
if
(
res
.
success
===
true
)
{
if
(
res
.
data
.
length
==
0
)
{
if
(
res
.
data
.
length
==
0
)
{
this
.
rightLayer2Nodata
=
false
;
this
.
rightLayer2Nodata
=
false
;
return
false
;
return
false
;
...
@@ -889,64 +920,63 @@ export default defineComponent({
...
@@ -889,64 +920,63 @@ export default defineComponent({
//换热站机组一网电调阀开度分布
//换热站机组一网电调阀开度分布
postTransferOpenValue
()
{
postTransferOpenValue
()
{
postTransferOpenValue
().
then
((
res
)
=>
{
postTransferOpenValue
().
then
((
res
)
=>
{
console
.
log
(
res
);
this
.
rightLayer4Nodata
=
true
;
this
.
rightLayer4Nodata
=
true
;
this
.
transferCount
=
[];
this
.
transferCount
=
[];
this
.
transferOpenValueLegend
=
[];
this
.
transferOpenValueLegend
=
[];
if
(
res
.
success
===
true
)
{
if
(
res
.
success
===
true
)
{
this
.
transferOpenValue
=
res
.
data
;
this
.
transferOpenValue
=
res
.
data
;
//
this.transferOpenValue = {
//
this.transferOpenValue = {
//
success: true,
//
success: true,
//
status: 0,
//
status: 0,
//
message: "操作成功",
//
message: "操作成功",
//
data: [
//
data: [
//
{
//
{
//
supplyId: "a523dc33-c8b8-41c2-9751-a32083627344",
//
supplyId: "a523dc33-c8b8-41c2-9751-a32083627344",
//
supplyName: "重阳里供热站",
//
supplyName: "重阳里供热站",
//
transferCount: 3,
//
transferCount: 3,
//
percentage0: 3,
//
percentage0: 3,
//
percentage25: 0,
//
percentage25: 0,
//
percentage50: 0,
//
percentage50: 0,
//
percentage75: 0,
//
percentage75: 0,
//
},
//
},
//
{
//
{
//
supplyId: "ccfb0595-86f7-4c0a-a134-8e945180ee48",
//
supplyId: "ccfb0595-86f7-4c0a-a134-8e945180ee48",
//
supplyName: "行政区供热站",
//
supplyName: "行政区供热站",
//
transferCount: 21,
//
transferCount: 21,
//
percentage0: 21,
//
percentage0: 21,
//
percentage25: 0,
//
percentage25: 0,
//
percentage50: 0,
//
percentage50: 0,
//
percentage75: 0,
//
percentage75: 0,
//
},
//
},
//
{
//
{
//
supplyId: "33104782-c1ad-432c-953e-e31c2e031be4",
//
supplyId: "33104782-c1ad-432c-953e-e31c2e031be4",
//
supplyName: "福苑里供热站",
//
supplyName: "福苑里供热站",
//
transferCount: 27,
//
transferCount: 27,
//
percentage0: 18,
//
percentage0: 18,
//
percentage25: 1,
//
percentage25: 1,
//
percentage50: 8,
//
percentage50: 8,
//
percentage75: 0,
//
percentage75: 0,
//
},
//
},
//
{
//
{
//
supplyId: "dfa20074-8731-457f-b63f-4e1858cfe266",
//
supplyId: "dfa20074-8731-457f-b63f-4e1858cfe266",
//
supplyName: "东部供热站",
//
supplyName: "东部供热站",
//
transferCount: 84,
//
transferCount: 84,
//
percentage0: 49,
//
percentage0: 49,
//
percentage25: 1,
//
percentage25: 1,
//
percentage50: 13,
//
percentage50: 13,
//
percentage75: 21,
//
percentage75: 21,
//
},
//
},
//
{
//
{
//
supplyId: "b354f45b-23e5-42be-a210-0fb92394f457",
//
supplyId: "b354f45b-23e5-42be-a210-0fb92394f457",
//
supplyName: "小王庄供热站",
//
supplyName: "小王庄供热站",
//
transferCount: 6,
//
transferCount: 6,
//
percentage0: 6,
//
percentage0: 6,
//
percentage25: 0,
//
percentage25: 0,
//
percentage50: 0,
//
percentage50: 0,
//
percentage75: 0,
//
percentage75: 0,
//
},
//
},
//
],
//
],
//
};
//
};
var
arr1
=
[];
var
arr1
=
[];
var
arr2
=
[];
var
arr2
=
[];
var
arr3
=
[];
var
arr3
=
[];
...
@@ -1522,7 +1552,7 @@ export default defineComponent({
...
@@ -1522,7 +1552,7 @@ export default defineComponent({
width
:
95%
;
width
:
95%
;
height
:
35px
;
height
:
35px
;
margin
:
4%
0
0
5%
;
margin
:
4%
0
0
5%
;
background
:
url("/im
gs/Gi
s/title_bg.png")
top
left
no-repeat
;
background
:
url("/im
age
s/title_bg.png")
top
left
no-repeat
;
}
}
.titleStyle
p
{
.titleStyle
p
{
padding
:
1%
5%
0
5%
;
padding
:
1%
5%
0
5%
;
...
@@ -1586,12 +1616,12 @@ export default defineComponent({
...
@@ -1586,12 +1616,12 @@ export default defineComponent({
font-weight
:
bolder
;
font-weight
:
bolder
;
}
}
.btnGroup
.btn1
{
.btnGroup
.btn1
{
background
:
url("/im
gs/Gi
s/icon_btn1.png")
center
center
no-repeat
;
background
:
url("/im
age
s/icon_btn1.png")
center
center
no-repeat
;
color
:
#ffffff
;
color
:
#ffffff
;
margin-bottom
:
10px
;
margin-bottom
:
10px
;
}
}
.btnGroup
.btn2
{
.btnGroup
.btn2
{
background
:
url("/im
gs/Gi
s/icon_btn2.png")
center
center
no-repeat
;
background
:
url("/im
age
s/icon_btn2.png")
center
center
no-repeat
;
color
:
#000000
;
color
:
#000000
;
}
}
.jkBarBlock
{
.jkBarBlock
{
...
...
src/main.js
View file @
355b05f8
import
{
createApp
}
from
'vue'
import
{
createApp
}
from
'vue'
import
'./style/style.css'
import
'./style/style.css'
import
'./style/index.less'
import
'./style/index.less'
import
'./assets/css/main.css'
import
'./assets/css/main.css'
//import { detectZoom } from '@/plugins/screen';
// 引入Element Plus
// 引入Element Plus
import
ElementPlus
from
'element-plus'
import
ElementPlus
from
'element-plus'
...
@@ -29,24 +30,6 @@ for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
...
@@ -29,24 +30,6 @@ for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
}
}
app
.
component
(
'Notification'
,
Notification
)
app
.
component
(
'Notification'
,
Notification
)
// app.config.globalProperties.$notify = (message, type = 'info') => {
// // 创建一个通知实例
// const NotificationConstructor = app.component('Notification')
// const notificationInstance = new NotificationConstructor({
// el: document.createElement('div'),
// propsData: { message, type }
// })
// // 添加到文档体中
// document.body.appendChild(notificationInstance.$el)
// // 自动关闭逻辑(例如:2秒后关闭)
// setTimeout(() => {
// notificationInstance.$el.remove()
// notificationInstance.$destroy()
// }, 2000)
// }
app
.
config
.
globalProperties
.
http
=
http
;
app
.
config
.
globalProperties
.
http
=
http
;
...
...
src/router/index.js
View file @
355b05f8
...
@@ -5,12 +5,22 @@ import HomePage from '@/views/home.vue'
...
@@ -5,12 +5,22 @@ import HomePage from '@/views/home.vue'
import
AboutPage
from
'@/components/About.vue'
import
AboutPage
from
'@/components/About.vue'
import
store
from
'@/store'
import
store
from
'@/store'
//import nProgress from 'nprogress'
//import nProgress from 'nprogress'
import
screenDisplay
from
'@/views/Gis/screenDisplay.vue'
import
iframe
from
'@/views/iframe.vue'
// 定义路由规则
// 定义路由规则
const
routes
=
[
const
routes
=
[
{
{
path
:
'/'
,
path
:
'/'
,
component
:
HomePage
component
:
HomePage
},
{
path
:
'/screenDisplay'
,
component
:
screenDisplay
},{
path
:
'/iframe'
,
name
:
'iframe'
,
component
:
iframe
},
},
{
{
path
:
'/Login'
,
path
:
'/Login'
,
...
...
src/views/Gis/screenDisplay.vue
View file @
355b05f8
<
script
setup
>
<
script
setup
>
import
screenDisplay
from
'../../components/screenDisplay.vue'
import
screenDisplay
from
'../../components/screenDisplay.vue'
import
{
detectZoom
}
from
'../../plugins/screen'
;
const
m
=
detectZoom
();
if
(
window
.
screen
.
height
*
window
.
devicePixelRatio
==
1080
)
{
document
.
body
.
style
.
zoom
=
100
/
Number
(
m
);
}
var
height
=
window
.
screen
.
height
;
console
.
log
(
height
);
if
(
window
.
screen
.
height
*
window
.
devicePixelRatio
>=
1600
)
{
document
.
body
.
style
.
zoom
=
132
/
Number
(
m
);
}
</
script
>
</
script
>
<
template
>
<
template
>
<main>
<main>
<screenDisplay
/>
<screenDisplay
/>
</main>
</main>
</
template
>
</
template
>
\ No newline at end of file
<
style
>
body
,
div
,
p
,
img
,
span
,
table
,
tr
,
td
{
margin
:
0
;
padding
:
0
;
}
html
,
body
{
font-family
:
"Microsoft YaHei"
;
font-size
:
16px
;
}
ul
,
li
{
list-style
:
none
;
margin
:
0
;
padding
:
0
;
}
#app
{
margin
:
0
;
padding
:
0
;
font-weight
:
normal
;
}
.mypopup
.leaflet-popup-content-wrapper
{
border-radius
:
0
;
border
:
#fff
solid
1px
;
}
.mypopup
{
padding
:
5px
20px
;
color
:
#ffffff
!important
;
text-shadow
:
1px
1px
1px
#333
;
font-size
:
15px
;
font-weight
:
bold
;
border
:
#fff
solid
1px
;
}
.mypopup1
{
width
:
160px
;
text-align
:
center
;
background-color
:
rgba
(
96
,
232
,
96
,
.5
);
box-shadow
:
inset
0
0
20px
rgb
(
62
,
127
,
245
);
}
.mypopup2
{
width
:
160px
;
text-align
:
center
;
background-color
:
rgba
(
255
,
255
,
255
,
.5
);
box-shadow
:
inset
0
0
20px
rgb
(
62
,
127
,
245
);
}
.amap-marker-label
{
border
:
none
;
background-color
:
transparent
;
cursor
:
pointer
;
}
@media
(
min-width
:
2000px
)
{
html
,
body
{
font-size
:
16px
;
}
}
@media
(
min-width
:
2200px
)
{
html
,
body
{
font-size
:
17px
;
}
.content
{
min-height
:
1125px
!important
;
}
}
@media
(
min-width
:
2400px
)
{
html
,
body
{
font-size
:
18px
;
}
.content
{
min-height
:
1350px
!important
;
}
.rightLayer4Block
{
height
:
26%
!important
;
margin-top
:
28%
!important
;
}
.rightLayer3Block
{
margin-top
:
12%
!important
;
}
.titleStyle
p
{
padding
:
0.5%
5%
0
5%
!important
;
}
}
@media
(
min-width
:
2600px
)
{
html
,
body
{
font-size
:
19px
!important
;
}
.content
{
min-height
:
1463px
;
}
.rightLayer4Block
{
height
:
26%
!important
;
margin-top
:
30%
!important
;
}
}
@media
(
min-width
:
2800px
)
{
html
,
body
{
font-size
:
20px
!important
;
}
.content
{
min-height
:
1575px
!important
;
}
.rightLayer4Block
{
height
:
26%
!important
;
margin-top
:
30%
!important
;
}
}
@media
(
min-width
:
3000px
)
{
html
,
body
{
font-size
:
26px
!important
;
}
.content
{
min-height
:
1688px
!important
;
}
.rightLayer4Block
{
height
:
26%
!important
;
margin-top
:
30%
!important
;
}
}
@media
(
min-width
:
3100px
)
{
html
,
body
{
font-size
:
26px
!important
;
}
.content
{
min-height
:
1688px
!important
;
}
}
</
style
>
src/views/Video/VideoViewPage.vue
View file @
355b05f8
<
template
>
<
template
>
海康视频
海康视频
</
template
>
</
template
>
\ No newline at end of file
\ No newline at end of file
src/views/home.vue
View file @
355b05f8
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
</el-dropdown>
</el-dropdown>
</div>
</div>
<div
class=
"header-weather"
id=
""
>
<div
class=
"header-weather"
id=
""
>
<el-row
style=
"left:
40%;widows: 60px;width: 60
%;"
>
<el-row
style=
"left:
37%;widows: 60px;width: 63
%;"
>
<el-col
:span=
"4"
style=
""
>
<el-col
:span=
"4"
style=
""
>
<div
class=
"div-contain-titleAndText"
>
<div
class=
"div-contain-titleAndText"
>
...
@@ -518,7 +518,7 @@ export default defineComponent({
...
@@ -518,7 +518,7 @@ export default defineComponent({
}
}
function
openMap
(){
function
openMap
(){
const
routePath
=
'/
GisHo
me'
;
// 要导航到的路由路径
const
routePath
=
'/
ifra
me'
;
// 要导航到的路由路径
// 打开新窗口并导航到指定路由
// 打开新窗口并导航到指定路由
window
.
open
(
window
.
open
(
`
${
routePath
}
`
,
`
${
routePath
}
`
,
...
...
src/views/iframe.vue
0 → 100644
View file @
355b05f8
<
template
>
<div
class=
"iframeBlock"
>
<iframe
src=
"/screenDisplay"
frameborder=
"0"
allowfullscreen
>
</iframe>
</div>
</
template
>
<
style
>
iframe
,
div
{
margin
:
0
;
padding
:
0
;
}
iframe
{
width
:
100%
;
height
:
100vh
;
overflow
:
hidden
;
}
html
,
body
.iframeBlock
{
overflow
:
hidden
;
}
</
style
>
\ No newline at end of file
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