Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yindong-tongbai-automation
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lichunliang
yindong-tongbai-automation
Commits
40bf9150
Commit
40bf9150
authored
Jul 04, 2025
by
lei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add:银洞大屏
parent
6811d952
Changes
12
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
1587 additions
and
253 deletions
+1587
-253
hjjc.js
src/api/tyler/hjjc.js
+9
-1
tfxt.js
src/api/tyler/tfxt.js
+8
-5
bg3.png
src/assets/images/screen/tsj/bg3.png
+0
-0
bg31.png
src/assets/images/screen/tsj/bg31.png
+0
-0
index.vue
src/views/Screen/index.vue
+11
-10
dlxt.vue
src/views/Screen/items/dlxt.vue
+867
-59
hjjc.vue
src/views/Screen/items/hjjc.vue
+74
-37
home.vue
src/views/Screen/items/home.vue
+26
-8
psxt.vue
src/views/Screen/items/psxt.vue
+21
-11
rydw.vue
src/views/Screen/items/rydw.vue
+9
-27
tfxt.vue
src/views/Screen/items/tfxt.vue
+553
-90
tsj.vue
src/views/Screen/items/tsj.vue
+9
-5
No files found.
src/api/tyler/hjjc.js
View file @
40bf9150
...
@@ -46,7 +46,15 @@ export function getDeviceStatus(query) {
...
@@ -46,7 +46,15 @@ export function getDeviceStatus(query) {
// 查询近7日报警信息
// 查询近7日报警信息
export
function
getRecentSevDaysAlarms
(
query
)
{
export
function
getRecentSevDaysAlarms
(
query
)
{
return
request
({
return
request
({
url
:
"
/business/screen/env/recentSevDaysAlarms
"
,
url
:
"
/business/screen/env/videoMonitoringList
"
,
method
:
"
get
"
,
params
:
query
,
});
}
// 查询设备状态分析
export
function
getDeviceStatusNum
(
query
)
{
return
request
({
url
:
"
/business/screen/env/deviceStatusNum
"
,
method
:
"
get
"
,
method
:
"
get
"
,
params
:
query
,
params
:
query
,
});
});
...
...
src/api/tyler/tfxt.js
View file @
40bf9150
...
@@ -9,19 +9,22 @@ export function kongyajiQuery(query) {
...
@@ -9,19 +9,22 @@ export function kongyajiQuery(query) {
data
:
query
data
:
query
})
})
}
}
//
空压机
数据
//
风扇
数据
export
function
fenshanQuery
(
query
)
{
export
function
fenshanQuery
(
query
)
{
return
request
({
return
request
({
url
:
'
/business/screen/fan/
dian
jiQuery
'
,
url
:
'
/business/screen/fan/
feng
jiQuery
'
,
method
:
'
get
'
,
method
:
'
get
'
,
data
:
query
data
:
query
})
})
}
}
export
function
peakEditDra
(
query
)
{
// 编辑风扇状态
export
function
editFengjiStatus
(
data
)
{
return
request
({
return
request
({
url
:
'
/business/
peak/add
'
,
url
:
'
/business/
screen/dev/addDeviceStatus
'
,
method
:
'
post
'
,
method
:
'
post
'
,
data
:
query
data
})
})
}
}
src/assets/images/screen/tsj/bg3.png
View replaced file @
6811d952
View file @
40bf9150
304 Bytes
|
W:
|
H:
6.16 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/assets/images/screen/tsj/bg31.png
0 → 100644
View file @
40bf9150
304 Bytes
src/views/Screen/index.vue
View file @
40bf9150
<
template
>
<
template
>
<div>
<div>
<home
v-if=
"showMenu === 0"
style=
"position: absolute; top: 0; left: 0; right: 0; bottom: 0"
></home>
<v-scale-screen
<v-scale-screen
ref=
"scale-screen"
ref=
"scale-screen"
width=
"1920"
width=
"1920"
height=
"1080"
height=
"1080"
:fullScreen=
"true"
:fullScreen=
"true"
>
>
<home
v-if=
"showMenu === 0"
style=
"position: absolute; top: 0; left: 0; right: 0; bottom: 0"
></home>
<psxt
<psxt
v-if=
"showMenu === 3"
v-if=
"showMenu === 3"
style=
"position: absolute; top: 0; left: 0; right: 0; bottom: 0"
style=
"position: absolute; top: 0; left: 0; right: 0; bottom: 0"
...
@@ -36,10 +35,10 @@
...
@@ -36,10 +35,10 @@
v-if=
"showMenu === 2"
v-if=
"showMenu === 2"
style=
"position: absolute; top: 0; left: 0; right: 0; bottom: 0"
style=
"position: absolute; top: 0; left: 0; right: 0; bottom: 0"
></hjjc>
></hjjc>
<div
class=
"container"
>
<div
class=
"container"
style=
"pointer-events: none"
>
<!-- 头部 -->
<!-- 头部 -->
<div
class=
"header por"
></div>
<div
class=
"header por"
style=
"pointer-events: auto"
></div>
<div
class=
"sub-header"
>
<div
class=
"sub-header"
style=
"pointer-events: auto"
>
<div
class=
"sub-header-left"
>
<div
class=
"sub-header-left"
>
<div
<div
class=
"sub-item"
class=
"sub-item"
...
@@ -204,7 +203,6 @@ export default {
...
@@ -204,7 +203,6 @@ export default {
// background-color: #08152a;
// background-color: #08152a;
position
:
relative
;
position
:
relative
;
font-family
:
"fangsong"
;
font-family
:
"fangsong"
;
pointer-events
:
none
;
color
:
#fff
;
color
:
#fff
;
}
}
/* 头部标题 */
/* 头部标题 */
...
@@ -217,6 +215,7 @@ export default {
...
@@ -217,6 +215,7 @@ export default {
margin
:
0
auto
;
margin
:
0
auto
;
}
}
.sub-header
{
.sub-header
{
pointer-events
:
auto
;
// 新增这行
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
padding
:
0
30px
;
padding
:
0
30px
;
...
@@ -279,6 +278,7 @@ export default {
...
@@ -279,6 +278,7 @@ export default {
align-items
:
center
;
align-items
:
center
;
font-size
:
16px
;
font-size
:
16px
;
color
:
#11e0ff
;
color
:
#11e0ff
;
pointer-events
:
auto
;
// 新增这行
span
{
span
{
cursor
:
pointer
;
cursor
:
pointer
;
text-indent
:
1em
;
text-indent
:
1em
;
...
@@ -330,6 +330,7 @@ export default {
...
@@ -330,6 +330,7 @@ export default {
}
}
}
}
::v-deep
.screen-box
{
::v-deep
.screen-box
{
pointer-events
:
none
;
pointer-events
:
auto
!
important
;
// 修改这行
transform-style
:
preserve-3d
;
// 新增这行
}
}
</
style
>
</
style
>
src/views/Screen/items/dlxt.vue
View file @
40bf9150
This diff is collapsed.
Click to expand it.
src/views/Screen/items/hjjc.vue
View file @
40bf9150
...
@@ -11,7 +11,6 @@
...
@@ -11,7 +11,6 @@
ref=
"sssjControl"
ref=
"sssjControl"
:data=
"tableData1"
:data=
"tableData1"
:class-option=
"classOption"
:class-option=
"classOption"
@
mousewheel.native=
"handleScroll"
class=
"warp"
class=
"warp"
>
>
<ul
class=
"item"
>
<ul
class=
"item"
>
...
@@ -100,7 +99,7 @@
...
@@ -100,7 +99,7 @@
<div
class=
"chart_bg"
></div>
<div
class=
"chart_bg"
></div>
<div
id=
"EchartsPieLeft"
class=
"chart_box"
></div>
<div
id=
"EchartsPieLeft"
class=
"chart_box"
></div>
<div
class=
"chart_number"
>
<div
class=
"chart_number"
>
<span>
42
个
</span>
<span>
{{
deviceStatusNum
.
total
}}
个
</span>
<br
/>
<br
/>
<span>
总数
</span>
<span>
总数
</span>
</div>
</div>
...
@@ -117,7 +116,7 @@
...
@@ -117,7 +116,7 @@
<div
class=
"chart_bg_right"
></div>
<div
class=
"chart_bg_right"
></div>
<div
id=
"EchartsPieRight"
class=
"chart_box"
></div>
<div
id=
"EchartsPieRight"
class=
"chart_box"
></div>
<div
class=
"chart_number_right"
>
<div
class=
"chart_number_right"
>
<span>
42
个
</span>
<span>
{{
deviceStatusNum
.
cameraTotal
}}
个
</span>
<br
/>
<br
/>
<span>
总数
</span>
<span>
总数
</span>
</div>
</div>
...
@@ -183,7 +182,7 @@ import {
...
@@ -183,7 +182,7 @@ import {
getDeviceStatus
,
getDeviceStatus
,
getDeviceData
,
getDeviceData
,
getRcData
,
getRcData
,
get
RecentSevDaysAlarms
,
get
DeviceStatusNum
,
}
from
"
@/api/tyler/hjjc
"
;
}
from
"
@/api/tyler/hjjc
"
;
import
ScrollTable
from
"
@/components/Tyler/ScrollTable.vue
"
;
import
ScrollTable
from
"
@/components/Tyler/ScrollTable.vue
"
;
import
screenfull
from
"
screenfull
"
;
import
screenfull
from
"
screenfull
"
;
...
@@ -289,6 +288,12 @@ export default {
...
@@ -289,6 +288,12 @@ export default {
],
],
//highCharts配置
//highCharts配置
highChartsOption
:
{},
highChartsOption
:
{},
deviceStatusNum
:
{
//设备总数
total
:
0
,
//摄像头总数
cameraTotal
:
0
,
},
};
};
},
},
mounted
()
{
mounted
()
{
...
@@ -307,11 +312,12 @@ export default {
...
@@ -307,11 +312,12 @@ export default {
});
});
getDeviceStatus
().
then
((
res
)
=>
{
getDeviceStatus
().
then
((
res
)
=>
{
// this.equipmentList = res.data;
// this.equipmentList = res.data;
this
.
equipmentList
=
[
let
dataXY
=
[
{
{
name
:
"
三中码头门
"
,
name
:
"
三中码头门
"
,
x
:
"
50
"
,
x
:
"
50
"
,
y
:
"
4
3
6
"
,
y
:
"
4
0
6
"
,
isWarning
:
0
,
isWarning
:
0
,
monitorPositionList
:
[
monitorPositionList
:
[
{
{
...
@@ -329,7 +335,7 @@ export default {
...
@@ -329,7 +335,7 @@ export default {
{
{
name
:
"
二中空压机房
"
,
name
:
"
二中空压机房
"
,
x
:
"
258
"
,
x
:
"
258
"
,
y
:
"
335
"
,
y
:
"
299
"
,
isWarning
:
0
,
isWarning
:
0
,
monitorPositionList
:
[
monitorPositionList
:
[
{
{
...
@@ -346,8 +352,8 @@ export default {
...
@@ -346,8 +352,8 @@ export default {
},
},
{
{
name
:
"
东风井
"
,
name
:
"
东风井
"
,
x
:
"
8
1
6
"
,
x
:
"
8
5
6
"
,
y
:
"
1
7
6
"
,
y
:
"
1
3
6
"
,
isWarning
:
0
,
isWarning
:
0
,
monitorPositionList
:
[
monitorPositionList
:
[
{
{
...
@@ -365,7 +371,7 @@ export default {
...
@@ -365,7 +371,7 @@ export default {
{
{
name
:
"
二中避险硐室
"
,
name
:
"
二中避险硐室
"
,
x
:
"
75
"
,
x
:
"
75
"
,
y
:
"
31
8
"
,
y
:
"
28
8
"
,
isWarning
:
0
,
isWarning
:
0
,
monitorPositionList
:
[
monitorPositionList
:
[
{
{
...
@@ -383,7 +389,7 @@ export default {
...
@@ -383,7 +389,7 @@ export default {
{
{
name
:
"
一中避险硐室
"
,
name
:
"
一中避险硐室
"
,
x
:
"
85
"
,
x
:
"
85
"
,
y
:
"
1
9
3
"
,
y
:
"
1
5
3
"
,
isWarning
:
0
,
isWarning
:
0
,
monitorPositionList
:
[
monitorPositionList
:
[
{
{
...
@@ -401,7 +407,7 @@ export default {
...
@@ -401,7 +407,7 @@ export default {
{
{
name
:
"
五中避险硐室
"
,
name
:
"
五中避险硐室
"
,
x
:
"
102
"
,
x
:
"
102
"
,
y
:
"
6
8
7
"
,
y
:
"
6
7
7
"
,
isWarning
:
0
,
isWarning
:
0
,
monitorPositionList
:
[
monitorPositionList
:
[
{
{
...
@@ -419,7 +425,7 @@ export default {
...
@@ -419,7 +425,7 @@ export default {
{
{
name
:
"
四中避险硐室
"
,
name
:
"
四中避险硐室
"
,
x
:
"
96
"
,
x
:
"
96
"
,
y
:
"
5
6
1
"
,
y
:
"
5
4
1
"
,
isWarning
:
0
,
isWarning
:
0
,
monitorPositionList
:
[
monitorPositionList
:
[
{
{
...
@@ -437,7 +443,7 @@ export default {
...
@@ -437,7 +443,7 @@ export default {
{
{
name
:
"
四中车场
"
,
name
:
"
四中车场
"
,
x
:
"
53
"
,
x
:
"
53
"
,
y
:
"
5
5
7
"
,
y
:
"
5
2
7
"
,
isWarning
:
0
,
isWarning
:
0
,
monitorPositionList
:
[
monitorPositionList
:
[
{
{
...
@@ -450,7 +456,7 @@ export default {
...
@@ -450,7 +456,7 @@ export default {
{
{
name
:
"
一中主运输巷
"
,
name
:
"
一中主运输巷
"
,
x
:
"
185
"
,
x
:
"
185
"
,
y
:
"
20
4
"
,
y
:
"
16
4
"
,
isWarning
:
0
,
isWarning
:
0
,
monitorPositionList
:
[
monitorPositionList
:
[
{
{
...
@@ -468,7 +474,7 @@ export default {
...
@@ -468,7 +474,7 @@ export default {
{
{
name
:
"
二中主运输巷
"
,
name
:
"
二中主运输巷
"
,
x
:
"
187
"
,
x
:
"
187
"
,
y
:
"
331
"
,
y
:
"
296
"
,
isWarning
:
0
,
isWarning
:
0
,
monitorPositionList
:
[
monitorPositionList
:
[
{
{
...
@@ -491,7 +497,7 @@ export default {
...
@@ -491,7 +497,7 @@ export default {
{
{
name
:
"
二中中运输巷
"
,
name
:
"
二中中运输巷
"
,
x
:
"
316
"
,
x
:
"
316
"
,
y
:
"
3
38
"
,
y
:
"
3
03
"
,
isWarning
:
0
,
isWarning
:
0
,
monitorPositionList
:
[
monitorPositionList
:
[
{
{
...
@@ -504,7 +510,7 @@ export default {
...
@@ -504,7 +510,7 @@ export default {
{
{
name
:
"
三中避险硐室
"
,
name
:
"
三中避险硐室
"
,
x
:
"
93
"
,
x
:
"
93
"
,
y
:
"
4
4
1
"
,
y
:
"
4
1
1
"
,
isWarning
:
0
,
isWarning
:
0
,
monitorPositionList
:
[
monitorPositionList
:
[
{
{
...
@@ -535,7 +541,7 @@ export default {
...
@@ -535,7 +541,7 @@ export default {
{
{
name
:
"
一中风机
"
,
name
:
"
一中风机
"
,
x
:
"
145
"
,
x
:
"
145
"
,
y
:
"
1
9
9
"
,
y
:
"
1
5
9
"
,
isWarning
:
0
,
isWarning
:
0
,
monitorPositionList
:
[
monitorPositionList
:
[
{
{
...
@@ -553,7 +559,7 @@ export default {
...
@@ -553,7 +559,7 @@ export default {
{
{
name
:
"
一中西采区
"
,
name
:
"
一中西采区
"
,
x
:
"
341
"
,
x
:
"
341
"
,
y
:
"
22
2
"
,
y
:
"
19
2
"
,
isWarning
:
0
,
isWarning
:
0
,
monitorPositionList
:
[
monitorPositionList
:
[
{
{
...
@@ -581,7 +587,7 @@ export default {
...
@@ -581,7 +587,7 @@ export default {
{
{
name
:
"
三中运输巷
"
,
name
:
"
三中运输巷
"
,
x
:
"
518
"
,
x
:
"
518
"
,
y
:
"
4
74
"
,
y
:
"
4
39
"
,
isWarning
:
0
,
isWarning
:
0
,
monitorPositionList
:
[
monitorPositionList
:
[
{
{
...
@@ -632,7 +638,7 @@ export default {
...
@@ -632,7 +638,7 @@ export default {
{
{
name
:
"
四中运输巷
"
,
name
:
"
四中运输巷
"
,
x
:
"
206
"
,
x
:
"
206
"
,
y
:
"
5
84
"
,
y
:
"
5
59
"
,
isWarning
:
0
,
isWarning
:
0
,
monitorPositionList
:
[
monitorPositionList
:
[
{
{
...
@@ -660,7 +666,7 @@ export default {
...
@@ -660,7 +666,7 @@ export default {
{
{
name
:
"
五中运输巷
"
,
name
:
"
五中运输巷
"
,
x
:
"
166
"
,
x
:
"
166
"
,
y
:
"
70
7
"
,
y
:
"
69
7
"
,
isWarning
:
0
,
isWarning
:
0
,
monitorPositionList
:
[
monitorPositionList
:
[
{
{
...
@@ -688,7 +694,7 @@ export default {
...
@@ -688,7 +694,7 @@ export default {
{
{
name
:
"
一中运输巷
"
,
name
:
"
一中运输巷
"
,
x
:
"
367
"
,
x
:
"
367
"
,
y
:
"
20
8
"
,
y
:
"
16
8
"
,
isWarning
:
0
,
isWarning
:
0
,
monitorPositionList
:
[
monitorPositionList
:
[
{
{
...
@@ -701,7 +707,7 @@ export default {
...
@@ -701,7 +707,7 @@ export default {
{
{
name
:
"
二中西采区
"
,
name
:
"
二中西采区
"
,
x
:
"
237
"
,
x
:
"
237
"
,
y
:
"
3
6
9
"
,
y
:
"
3
3
9
"
,
isWarning
:
0
,
isWarning
:
0
,
monitorPositionList
:
[
monitorPositionList
:
[
{
{
...
@@ -724,7 +730,7 @@ export default {
...
@@ -724,7 +730,7 @@ export default {
{
{
name
:
"
二中运输巷
"
,
name
:
"
二中运输巷
"
,
x
:
"
415
"
,
x
:
"
415
"
,
y
:
"
3
4
1
"
,
y
:
"
3
1
1
"
,
isWarning
:
0
,
isWarning
:
0
,
monitorPositionList
:
[
monitorPositionList
:
[
{
{
...
@@ -735,20 +741,41 @@ export default {
...
@@ -735,20 +741,41 @@ export default {
],
],
},
},
];
];
if
(
res
.
data
&&
res
.
data
.
length
)
{
// 使用接口数据为基础,合并本地坐标数据
this
.
equipmentList
=
res
.
data
.
map
((
apiItem
)
=>
{
// 在dataXY中查找同名设备
const
localItem
=
dataXY
.
find
((
xy
)
=>
xy
.
name
===
apiItem
.
name
);
// 合并坐标数据,保留接口返回的其他字段
return
{
...
apiItem
,
x
:
localItem
?
localItem
.
x
:
0
,
// 默认值处理
y
:
localItem
?
localItem
.
y
:
0
,
monitorPositionList
:
apiItem
.
monitorPositionList
||
[],
};
});
});
getRecentSevDaysAlarms
().
then
((
res
)
=>
{
}
else
{
//数据空
// 降级方案:使用本地数据
}
});
});
//初始化获取左侧环境监测实施数据
//初始化获取左侧环境监测实施数据
getRealData
().
then
((
res
)
=>
{
getRealData
().
then
((
res
)
=>
{
this
.
tableData1
=
res
.
data
;
this
.
tableData1
=
res
.
data
;
});
});
//初始化highCharts
//初始化highCharts
this
.
getHighChartsData
();
getDeviceStatusNum
().
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
this
.
deviceStatusNum
=
{
total
:
res
.
data
[
0
].
online
+
res
.
data
[
0
].
offline
,
cameraTotal
:
res
.
data
[
1
].
online
+
res
.
data
[
1
].
offline
,
};
this
.
getHighChartsData
(
res
.
data
);
}
});
},
},
created
()
{},
created
()
{},
methods
:
{
methods
:
{
getHighChartsData
()
{
getHighChartsData
(
value
=
[]
)
{
this
.
highChartsOption
=
{
this
.
highChartsOption
=
{
chart
:
{
chart
:
{
type
:
"
pie
"
,
//饼图
type
:
"
pie
"
,
//饼图
...
@@ -803,8 +830,16 @@ export default {
...
@@ -803,8 +830,16 @@ export default {
name
:
"
设备统计
"
,
name
:
"
设备统计
"
,
showInLegend
:
true
,
showInLegend
:
true
,
data
:
[
data
:
[
{
name
:
"
正常设备
"
,
y
:
80
,
color
:
"
RGBA(37, 160, 238, 1)
"
},
// 高数据部分
{
{
name
:
"
异常设备
"
,
y
:
20
,
color
:
"
RGBA(252, 183, 62, 1)
"
},
// 低数据部分
name
:
"
正常设备
"
,
y
:
value
[
0
].
online
,
color
:
"
RGBA(37, 160, 238, 1)
"
,
},
// 高数据部分
{
name
:
"
异常设备
"
,
y
:
value
[
0
].
offline
,
color
:
"
RGBA(252, 183, 62, 1)
"
,
},
// 低数据部分
],
],
startAngle
:
0
,
//起始角度,
startAngle
:
0
,
//起始角度,
label
:
{
label
:
{
...
@@ -829,8 +864,8 @@ export default {
...
@@ -829,8 +864,8 @@ export default {
Highcharts
.
chart
(
"
EchartsPieLeft
"
,
this
.
highChartsOption
);
Highcharts
.
chart
(
"
EchartsPieLeft
"
,
this
.
highChartsOption
);
this
.
highChartsOption
.
series
[
0
].
data
=
[
this
.
highChartsOption
.
series
[
0
].
data
=
[
{
name
:
"
在线
"
,
y
:
40
,
color
:
"
#02CD9B
"
},
// 高数据部分
{
name
:
"
在线
"
,
y
:
value
[
1
].
online
,
color
:
"
#02CD9B
"
},
// 高数据部分
{
name
:
"
离线
"
,
y
:
1
,
color
:
"
RGBA(252, 183, 62, 1)
"
},
// 低数据部分
{
name
:
"
离线
"
,
y
:
value
[
1
].
offline
,
color
:
"
RGBA(252, 183, 62, 1)
"
},
// 低数据部分
];
];
Highcharts
.
chart
(
"
EchartsPieRight
"
,
this
.
highChartsOption
);
Highcharts
.
chart
(
"
EchartsPieRight
"
,
this
.
highChartsOption
);
},
},
...
@@ -1188,9 +1223,8 @@ export default {
...
@@ -1188,9 +1223,8 @@ export default {
watch
:
{
watch
:
{
tableData1
:
{
tableData1
:
{
handler
()
{
handler
()
{
// 数据更改时也要加
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
$refs
.
vueSeamlessScroll
.
reset
();
this
.
$refs
.
sssjControl
&&
this
.
$refs
.
sssjControl
.
reset
();
// 添加存在性判断
});
});
},
},
immediate
:
true
,
immediate
:
true
,
...
@@ -1451,8 +1485,11 @@ export default {
...
@@ -1451,8 +1485,11 @@ export default {
width
:
calc
(
100%
-
920px
);
width
:
calc
(
100%
-
920px
);
background
:
url("~@/assets/images/screen/bg3.png")
no-repeat
center
;
background
:
url("~@/assets/images/screen/bg3.png")
no-repeat
center
;
background-size
:
contain
;
background-size
:
contain
;
background-position-y
:
10px
;
text-align
:
center
;
text-align
:
center
;
position
:
relative
;
position
:
relative
;
pointer-events
:
auto
;
z-index
:
999
;
.dot
{
.dot
{
width
:
42px
;
width
:
42px
;
height
:
70px
;
height
:
70px
;
...
...
src/views/Screen/items/home.vue
View file @
40bf9150
<
template
>
<
template
>
<div
class=
"
app-container
home"
>
<div
class=
"home"
>
<div
id=
"cesiumContainer"
></div>
<div
id=
"cesiumContainer"
></div>
</div>
</div>
</
template
>
</
template
>
...
@@ -71,13 +71,14 @@ export default {
...
@@ -71,13 +71,14 @@ export default {
this
.
viewer
.
cesiumWidget
.
creditContainer
.
style
.
display
=
"
none
"
;
this
.
viewer
.
cesiumWidget
.
creditContainer
.
style
.
display
=
"
none
"
;
// 加载3D Tileset
// 加载3D Tileset
Cesium
.
Cesium3DTileset
.
fromUrl
(
Cesium
.
Cesium3DTileset
.
fromUrl
(
"
/terra_b3dms_yd/tileset.json
"
,
{
"
http://localhost:80/terra_b3dms_yd/tileset.json
"
,
maximumScreenSpaceError
:
8
,
// 从默认16改为8(值越小越清晰)
{
maximumMemoryUsage
:
1024
,
// 增加内存限制到1024MB
maximumScreenSpaceError
:
1
,
skipLevelOfDetail
:
false
,
// 禁用LOD跳过
pickable
:
true
,
preferLeaves
:
true
,
// 优先加载叶子节点
}
skipScreenSpaceErrorFactor
:
16
,
// 降低跳过系数
)
loadSiblings
:
true
,
// 加载相邻节点
})
.
then
((
tileset
)
=>
{
.
then
((
tileset
)
=>
{
this
.
tileset
=
tileset
;
// 存储tileset供后续使用
this
.
tileset
=
tileset
;
// 存储tileset供后续使用
this
.
viewer
.
scene
.
primitives
.
add
(
tileset
);
this
.
viewer
.
scene
.
primitives
.
add
(
tileset
);
...
@@ -214,9 +215,26 @@ export default {
...
@@ -214,9 +215,26 @@ export default {
.home
{
.home
{
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
padding-top
:
0px
;
pointer-events
:
auto
;
#cesiumContainer
{
#cesiumContainer
{
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
pointer-events
:
auto
;
position
:
relative
;
z-index
:
0
!
important
;
// 强制设置基础层级
transform
:
translateZ
(
0
);
// 创建独立层叠上下文
}
}
}
}
// 新增强制穿透样式
::v-deep
.cesium-widget
canvas
{
pointer-events
:
auto
!
important
;
position
:
relative
;
z-index
:
0
;
}
// 移除Cesium默认事件拦截
::v-deep
.cesium-widget-credits
{
display
:
none
!
important
;
}
</
style
>
</
style
>
src/views/Screen/items/psxt.vue
View file @
40bf9150
...
@@ -70,11 +70,12 @@
...
@@ -70,11 +70,12 @@
: 'dwr'
: 'dwr'
"
"
>
>
<p>
电机电流:
{{
item
.
motorCurrent
}}
A
</p>
<p>
水泵前温:
{{
item
.
pumpFrontTemp
|
decimalFilter
}}
℃
</p>
<p>
电机轴承温度:
{{
item
.
motorBearingTemp
}}
℃
</p>
<p>
水泵后温:
{{
item
.
pumpRearTemp
|
decimalFilter
}}
℃
</p>
<p>
水泵轴承温度:
{{
item
.
pumpBearingTemp
}}
℃
</p>
<p>
电机前温:
{{
item
.
motorFrontTemp
|
decimalFilter
}}
℃
</p>
<p>
水泵流量:
{{
item
.
pumpFlow
}}
</p>
<p>
电机后温:
{{
item
.
motorRearTemp
|
decimalFilter
}}
℃
</p>
<p>
排水管路压力:
{{
item
.
drainagePressure
}}
</p>
<p>
出水压力:
{{
item
.
outletPressure
|
decimalFilter
}}
Mpa
</p>
<p>
吸水负压:
{{
item
.
inletVacuum
|
decimalFilter
}}
Mpa
</p>
</div>
</div>
</div>
</div>
<p>
<p>
...
@@ -137,9 +138,7 @@ export default {
...
@@ -137,9 +138,7 @@ export default {
created
()
{
created
()
{
this
.
initPumpList
();
this
.
initPumpList
();
},
},
mounted
()
{
mounted
()
{},
this
.
startWaterAnimation
();
},
methods
:
{
methods
:
{
initPumpList
()
{
initPumpList
()
{
getDraData
().
then
((
res
)
=>
{
getDraData
().
then
((
res
)
=>
{
...
@@ -155,6 +154,8 @@ export default {
...
@@ -155,6 +154,8 @@ export default {
},
},
// 水泵开启按钮
// 水泵开启按钮
openWaterPump
(
item
,
status
)
{
openWaterPump
(
item
,
status
)
{
console
.
log
(
"
我点击了
"
);
this
.
upWindowShow
=
true
;
this
.
upWindowShow
=
true
;
// this.submitPumpPassword(pumpId, this.password, 0);
// this.submitPumpPassword(pumpId, this.password, 0);
this
.
pumpId
=
item
.
pumpId
;
this
.
pumpId
=
item
.
pumpId
;
...
@@ -190,6 +191,11 @@ export default {
...
@@ -190,6 +191,11 @@ export default {
},
},
},
},
filters
:
{
filters
:
{
decimalFilter
(
value
)
{
return
value
===
null
||
typeof
value
===
"
undefined
"
?
"
--
"
:
Number
(
value
).
toFixed
(
2
);
},
// 水池显示数据过滤
// 水池显示数据过滤
sumpFilter
(
item
,
key
)
{
sumpFilter
(
item
,
key
)
{
// 优化过滤逻辑
// 优化过滤逻辑
...
@@ -201,6 +207,7 @@ export default {
...
@@ -201,6 +207,7 @@ export default {
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
.home
{
.home
{
pointer-events
:
auto
;
// 新增这行
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
background
:
url("~@/assets/images/screen/psxt/bg.png")
no-repeat
center
;
background
:
url("~@/assets/images/screen/psxt/bg.png")
no-repeat
center
;
...
@@ -215,6 +222,7 @@ export default {
...
@@ -215,6 +222,7 @@ export default {
background-size
:
100%
100%
;
background-size
:
100%
100%
;
position
:
relative
;
position
:
relative
;
.center-title-box
{
.center-title-box
{
z-index
:
888
;
width
:
200px
;
width
:
200px
;
height
:
100%
;
height
:
100%
;
margin
:
auto
;
margin
:
auto
;
...
@@ -279,7 +287,9 @@ export default {
...
@@ -279,7 +287,9 @@ export default {
height
:
200px
;
height
:
200px
;
// background: #ffffff;
// background: #ffffff;
.H36
{
.H36
{
height
:
36px
;
pointer-events
:
auto
;
// 新增这行
position
:
relative
;
// 新增层级控制
z-index
:
999
;
.button
{
.button
{
width
:
86px
;
width
:
86px
;
height
:
36px
;
height
:
36px
;
...
@@ -334,7 +344,7 @@ export default {
...
@@ -334,7 +344,7 @@ export default {
position
:
relative
;
position
:
relative
;
.tip-box
{
.tip-box
{
width
:
192px
;
width
:
192px
;
height
:
1
3
6px
;
height
:
1
5
6px
;
background
:
#0a1e36
;
background
:
#0a1e36
;
border
:
2px
solid
#00deff
;
border
:
2px
solid
#00deff
;
padding
:
7px
13px
15px
10px
;
padding
:
7px
13px
15px
10px
;
...
@@ -379,7 +389,7 @@ export default {
...
@@ -379,7 +389,7 @@ export default {
}
}
.tip-box
{
.tip-box
{
width
:
192px
;
width
:
192px
;
height
:
1
3
6px
;
height
:
1
5
6px
;
background
:
#0a1e36
;
background
:
#0a1e36
;
border
:
2px
solid
#00deff
;
border
:
2px
solid
#00deff
;
padding
:
7px
13px
15px
10px
;
padding
:
7px
13px
15px
10px
;
...
...
src/views/Screen/items/rydw.vue
View file @
40bf9150
...
@@ -191,7 +191,7 @@
...
@@ -191,7 +191,7 @@
class=
"custom-item custom-item2"
class=
"custom-item custom-item2"
>
>
<span
class=
"custom-item-content custom-item-content2"
>
{{
<span
class=
"custom-item-content custom-item-content2"
>
{{
i
tem
.
serialNumber
i
ndex
+
1
}}
</span>
}}
</span>
<span
class=
"custom-item-content custom-item-content2"
>
{{
<span
class=
"custom-item-content custom-item-content2"
>
{{
item
.
name
item
.
name
...
@@ -201,11 +201,11 @@
...
@@ -201,11 +201,11 @@
>
>
<div
<div
class=
"progress"
class=
"progress"
:style=
"
{ width: progressWidth(item.
frequency
) }"
:style=
"
{ width: progressWidth(item.
value
) }"
>
</div>
>
</div>
</div>
</div>
<span
class=
"custom-item-content custom-item-content2"
>
{{
<span
class=
"custom-item-content custom-item-content2"
>
{{
item
.
frequency
item
.
value
}}
</span>
}}
</span>
</li>
</li>
</ul>
</ul>
...
@@ -350,28 +350,7 @@ export default {
...
@@ -350,28 +350,7 @@ export default {
lastTime
:
"
2025-01-10 14:21:31
"
,
lastTime
:
"
2025-01-10 14:21:31
"
,
},
},
],
],
recentSevDaysAlarmsData
:
[
recentSevDaysAlarmsData
:
[],
{
serialNumber
:
"
1
"
,
name
:
"
张三
"
,
frequency
:
"
45
"
,
},
{
serialNumber
:
"
1
"
,
name
:
"
张三
"
,
frequency
:
"
32
"
,
},
{
serialNumber
:
"
1
"
,
name
:
"
张三
"
,
frequency
:
"
31
"
,
},
{
serialNumber
:
"
1
"
,
name
:
"
张三
"
,
frequency
:
"
29
"
,
},
],
subStaStatus
:
[],
subStaStatus
:
[],
realTimeDistributionData
:
[],
realTimeDistributionData
:
[],
subStaStatusData
:
[{
num
:
0
},
{
num
:
0
},
{
num
:
0
}],
subStaStatusData
:
[{
num
:
0
},
{
num
:
0
},
{
num
:
0
}],
...
@@ -449,14 +428,17 @@ export default {
...
@@ -449,14 +428,17 @@ export default {
getMonthlyRankings
()
{
getMonthlyRankings
()
{
monthlyRankings
().
then
((
res
)
=>
{
monthlyRankings
().
then
((
res
)
=>
{
if
(
res
.
code
!==
200
)
return
;
if
(
res
.
code
!==
200
)
return
;
this
.
recentSevDaysAlarmsData
=
res
.
data
;
this
.
recentSevDaysAlarmsData
=
res
.
data
.
sort
(
(
a
,
b
)
=>
b
.
value
-
a
.
value
);
//获取的re.data格式为[{name:张三,value:54}]这样。需要根据value排序,然后value大的在前
});
});
},
},
//控制进度条宽度
//控制进度条宽度
progressWidth
(
frequency
)
{
progressWidth
(
frequency
)
{
//最大值从recentSevDaysAlarmsData中获取,且保证位数为0
//最大值从recentSevDaysAlarmsData中获取,且保证位数为0
const
maxFrequencyData
=
this
.
recentSevDaysAlarmsData
.
reduce
(
const
maxFrequencyData
=
this
.
recentSevDaysAlarmsData
.
reduce
(
(
max
,
item
)
=>
Math
.
max
(
max
,
Math
.
ceil
(
item
.
frequency
/
10
)
*
10
),
(
max
,
item
)
=>
Math
.
max
(
max
,
Math
.
ceil
(
item
.
value
/
10
)
*
10
),
0
0
);
);
const
width
=
(
frequency
/
maxFrequencyData
)
*
100
+
"
%
"
;
const
width
=
(
frequency
/
maxFrequencyData
)
*
100
+
"
%
"
;
...
...
src/views/Screen/items/tfxt.vue
View file @
40bf9150
This diff is collapsed.
Click to expand it.
src/views/Screen/items/tsj.vue
View file @
40bf9150
...
@@ -171,7 +171,7 @@ export default {
...
@@ -171,7 +171,7 @@ export default {
// 动画控制
// 动画控制
animationId
:
null
,
animationId
:
null
,
timer
:
null
,
timer
:
null
,
source
:
null
,
// 新增取消令牌源
// 位置信息
// 位置信息
currentPos
:
null
,
currentPos
:
null
,
targetPos
:
null
,
targetPos
:
null
,
...
@@ -211,7 +211,10 @@ export default {
...
@@ -211,7 +211,10 @@ export default {
},
},
beforeDestroy
()
{
beforeDestroy
()
{
this
.
clearAnimation
();
this
.
clearAnimation
();
if
(
this
.
timer
)
{
clearInterval
(
this
.
timer
);
clearInterval
(
this
.
timer
);
this
.
timer
=
null
;
// 新增清理引用
}
},
},
mounted
()
{
mounted
()
{
this
.
initPositions
();
this
.
initPositions
();
...
@@ -226,7 +229,7 @@ export default {
...
@@ -226,7 +229,7 @@ export default {
// 计算当前位置
// 计算当前位置
calculatePosition
(
type
)
{
calculatePosition
(
type
)
{
if
(
!
POSITIONS
.
length
)
return
{
top
:
"
450px
"
,
left
:
"
4
13
px
"
};
if
(
!
POSITIONS
.
length
)
return
{
top
:
"
450px
"
,
left
:
"
4
28
px
"
};
const
currentDepth
=
Number
(
this
.
zgposition
)
||
0
;
const
currentDepth
=
Number
(
this
.
zgposition
)
||
0
;
...
@@ -238,7 +241,7 @@ export default {
...
@@ -238,7 +241,7 @@ export default {
return
{
return
{
top
:
`
${
position
[
type
]
||
POSITIONS
[
0
][
type
]}
px`
,
// 添加默认值
top
:
`
${
position
[
type
]
||
POSITIONS
[
0
][
type
]}
px`
,
// 添加默认值
left
:
type
===
"
glposy
"
?
"
4
13
px
"
:
"
365px
"
,
left
:
type
===
"
glposy
"
?
"
4
28
px
"
:
"
365px
"
,
};
};
},
},
...
@@ -310,6 +313,7 @@ export default {
...
@@ -310,6 +313,7 @@ export default {
startAutoUpdate
()
{
startAutoUpdate
()
{
this
.
clearAnimation
();
this
.
clearAnimation
();
this
.
getdata
();
this
.
getdata
();
this
.
timer
=
setInterval
(
this
.
getdata
,
30000
);
this
.
timer
=
setInterval
(
this
.
getdata
,
30000
);
},
},
...
@@ -633,7 +637,7 @@ export default {
...
@@ -633,7 +637,7 @@ export default {
transition
:
transform
0
.5s
cubic-bezier
(
0
.4
,
0
,
0
.2
,
1
);
transition
:
transform
0
.5s
cubic-bezier
(
0
.4
,
0
,
0
.2
,
1
);
}
}
.dianti-box
{
.dianti-box
{
width
:
78
px
;
width
:
46
px
;
height
:
78px
;
height
:
78px
;
background
:
url("~@/assets/images/screen/tsj/bg3.png")
no-repeat
center
;
background
:
url("~@/assets/images/screen/tsj/bg3.png")
no-repeat
center
;
background-size
:
100%
100%
;
background-size
:
100%
100%
;
...
...
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