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
d5032cd7
Commit
d5032cd7
authored
Sep 25, 2024
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
大屏样式修改
parent
4e3fb130
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
113 additions
and
20 deletions
+113
-20
screenDisplay.vue
src/components/screenDisplay.vue
+113
-20
No files found.
src/components/screenDisplay.vue
View file @
d5032cd7
...
@@ -456,7 +456,7 @@ import AMapLoader from "@amap/amap-jsapi-loader";
...
@@ -456,7 +456,7 @@ import AMapLoader from "@amap/amap-jsapi-loader";
</div>
</div>
<div
class=
"thirdLeftLayer_one"
>
<div
class=
"thirdLeftLayer_one"
>
<div
class=
"titleStyleTwo"
><p>
管道光纤测漏温度曲线
</p></div>
<div
class=
"titleStyleTwo"
><p>
管道光纤测漏温度曲线
</p></div>
<div
class=
"
thirdLeftLayer2"
id=
"thirdLeftLayer
2"
></div>
<div
class=
"
secondLeftLayerP2"
id=
"secondLeftLayerP
2"
></div>
</div>
</div>
<div
class=
"thirdLeftLayer_one"
>
<div
class=
"thirdLeftLayer_one"
>
<div
class=
"titleStyleTwo"
><p>
灭火器仪表监视
</p></div>
<div
class=
"titleStyleTwo"
><p>
灭火器仪表监视
</p></div>
...
@@ -555,9 +555,7 @@ export default defineComponent({
...
@@ -555,9 +555,7 @@ export default defineComponent({
this
.
handleGetGISRankWaterUC
();
// 获取二次侧机组补水量排名
this
.
handleGetGISRankWaterUC
();
// 获取二次侧机组补水量排名
}
else
if
(
newV
===
3
)
{
}
else
if
(
newV
===
3
)
{
if
(
document
.
querySelector
(
"#thirdLeftLayer2"
))
{
this
.
handleGetPipingTrend
();
this
.
getTemperatureTrend
();
}
}
}
},
},
},
},
...
@@ -572,6 +570,7 @@ export default defineComponent({
...
@@ -572,6 +570,7 @@ export default defineComponent({
temperatureList
:
[],
//温度列表
temperatureList
:
[],
//温度列表
trendList
:
[],
trendList
:
[],
trendX
:
[
'0时'
,
'1时'
,
'2时'
,
'3时'
,
'4时'
,
'5时'
,
'6时'
,
'7时'
,
'8时'
,
'9时'
,
'10时'
,
'11时'
,
'12时'
,
'13时'
,
'14时'
,
'15时'
,
'16时'
,
'17时'
,
'18时'
,
'19时'
,
'20时'
,
'21时'
,
'22时'
,
'23时'
],
trendX
:
[
'0时'
,
'1时'
,
'2时'
,
'3时'
,
'4时'
,
'5时'
,
'6时'
,
'7时'
,
'8时'
,
'9时'
,
'10时'
,
'11时'
,
'12时'
,
'13时'
,
'14时'
,
'15时'
,
'16时'
,
'17时'
,
'18时'
,
'19时'
,
'20时'
,
'21时'
,
'22时'
,
'23时'
],
trendXP
:
[
'一月'
,
'二月'
,
'三月'
,
'四月'
,
'五月'
,
'六月'
,],
trendY
:
[],
trendY
:
[],
heatTrendY
:
[],
heatTrendY
:
[],
enterpriseId
:
''
,
enterpriseId
:
''
,
...
@@ -2126,6 +2125,101 @@ export default defineComponent({
...
@@ -2126,6 +2125,101 @@ export default defineComponent({
}
}
})
})
},
},
handleGetPipingTrend
()
{
const
nowDate
=
moment
(
new
Date
()).
format
(
'YYYY-MM-DD'
)
const
StartTime
=
nowDate
+
' 00:00:00'
const
EndTime
=
nowDate
+
' 23:59:59'
const
params
=
{
StartTime
:
StartTime
,
EndTime
:
EndTime
,
CenterId
:
this
.
mapBack
.
centerId
,
}
getGYSupplyWaterTrend
(
params
).
then
(
res
=>
{
if
(
res
.
data
&&
res
.
data
.
length
>
0
)
{
this
.
trendList
=
res
.
data
const
params
=
[
[
{
supplyName
:
"数据1"
,
waterRecord
:
0
,
gatherTime
:
"2024/9/25 1:00:00"
},
{
supplyName
:
"数据1"
,
waterRecord
:
0
,
gatherTime
:
"2024/9/25 2:00:00"
},
{
supplyName
:
"数据1"
,
waterRecord
:
0
,
gatherTime
:
"2024/9/25 3:00:00"
},
{
supplyName
:
"数据1"
,
waterRecord
:
0
,
gatherTime
:
"2024/9/25 4:00:00"
},
{
supplyName
:
"数据1"
,
waterRecord
:
0
,
gatherTime
:
"2024/9/25 5:00:00"
},
{
supplyName
:
"数据1"
,
waterRecord
:
0
,
gatherTime
:
"2024/9/25 6:00:00"
},
],
[
{
supplyName
:
"数据2"
,
waterRecord
:
0
,
gatherTime
:
"2024/9/25 1:00:00"
},
{
supplyName
:
"数据2"
,
waterRecord
:
0
,
gatherTime
:
"2024/9/25 2:00:00"
},
{
supplyName
:
"数据2"
,
waterRecord
:
0
,
gatherTime
:
"2024/9/25 3:00:00"
},
{
supplyName
:
"数据2"
,
waterRecord
:
0
,
gatherTime
:
"2024/9/25 4:00:00"
},
{
supplyName
:
"数据2"
,
waterRecord
:
0
,
gatherTime
:
"2024/9/25 5:00:00"
},
{
supplyName
:
"数据2"
,
waterRecord
:
0
,
gatherTime
:
"2024/9/25 6:00:00"
},
]
]
this
.
trendList
=
params
this
.
trendY
=
[]
for
(
let
i
=
0
;
i
<
this
.
trendList
.
length
;
i
++
)
{
const
name
=
this
.
trendList
[
i
][
0
].
supplyName
const
data
=
this
.
trendList
[
i
].
map
(
item
=>
item
.
waterRecord
)
const
yItem
=
{
name
:
name
,
data
:
data
}
this
.
trendY
.
push
(
yItem
)
}
if
(
document
.
querySelector
(
"#secondLeftLayerP2"
))
{
var
chartDom
=
document
.
getElementById
(
"secondLeftLayerP2"
);
var
myChart
=
echarts
.
init
(
chartDom
);
myChart
.
dispose
()
this
.
echartInitPiping
();
}
}
})
},
// 一次侧补水量曲线
// 一次侧补水量曲线
handleGetGYSupplyWaterTrend
()
{
handleGetGYSupplyWaterTrend
()
{
const
nowDate
=
moment
(
new
Date
()).
format
(
'YYYY-MM-DD'
)
const
nowDate
=
moment
(
new
Date
()).
format
(
'YYYY-MM-DD'
)
...
@@ -3096,18 +3190,17 @@ export default defineComponent({
...
@@ -3096,18 +3190,17 @@ export default defineComponent({
selectHourFun
()
{
selectHourFun
()
{
this
.
postGYTransferHeatUC
(
this
.
selectHour
);
this
.
postGYTransferHeatUC
(
this
.
selectHour
);
},
},
getTemperatureTrend
:
function
()
{
echartInitPiping
:
function
()
{
var
chartDom
=
document
.
getElementById
(
"
thirdLeftLayer
2"
);
var
chartDom
=
document
.
getElementById
(
"
secondLeftLayerP
2"
);
var
myChart
=
echarts
.
init
(
chartDom
);
var
myChart
=
echarts
.
init
(
chartDom
);
var
option
;
var
option
;
option
=
{
option
=
{
tooltip
:
{
tooltip
:
{
trigger
:
"axis"
,
trigger
:
"axis"
,
},
},
xAxis
:
{
xAxis
:
{
type
:
'category'
,
type
:
'category'
,
data
:
[
'Mon'
,
'Tue'
,
'Wed'
,
'Thu'
,
'Fri'
,
'Sat'
,
'Sun'
]
,
data
:
this
.
trendXP
,
axisLabel
:
{
axisLabel
:
{
color
:
"#ffffff"
,
color
:
"#ffffff"
,
fontSize
:
"10px"
,
fontSize
:
"10px"
,
...
@@ -3140,17 +3233,17 @@ export default defineComponent({
...
@@ -3140,17 +3233,17 @@ export default defineComponent({
top
:
10
,
top
:
10
,
bottom
:
35
,
bottom
:
35
,
},
},
series
:
[
//
series: [
{
//
{
data
:
[
150
,
230
,
224
,
218
,
135
,
147
,
260
]
,
// data: this.trendY
,
type
:
'line'
//
type: 'line'
}
//
}
]
//
]
//
series: this.trendY.map(series => ({
series
:
this
.
trendY
.
map
(
series
=>
({
//
name: series.name,
name
:
series
.
name
,
//
type: 'line',
type
:
'line'
,
//
data: series.data
data
:
series
.
data
//
}))
}))
};
};
option
&&
myChart
.
setOption
(
option
);
option
&&
myChart
.
setOption
(
option
);
...
@@ -3939,7 +4032,7 @@ export default defineComponent({
...
@@ -3939,7 +4032,7 @@ export default defineComponent({
width
:
100%
;
width
:
100%
;
height
:
80%
;
height
:
80%
;
}
}
.gis_content
.
thirdLeftLayer
2
{
.gis_content
.
secondLeftLayerP
2
{
width
:
100%
;
width
:
100%
;
height
:
80%
;
height
:
80%
;
}
}
...
...
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