Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
digital-construction
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
张牧越
digital-construction
Commits
60513e7b
Commit
60513e7b
authored
Jun 07, 2023
by
张牧越
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
styleFix
parent
2012c653
Changes
17
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
111 additions
and
48 deletions
+111
-48
index.html
public/index.html
+1
-2
index.js
src/api/index.js
+7
-7
portrait.png
src/assets/elevator/portrait.png
+0
-0
Index.vue
src/components/construction/Index.vue
+5
-5
Index.vue
src/components/earlywarning/Index.vue
+2
-2
Index.vue
src/components/elevator/Index.vue
+25
-3
Index.vue
src/components/fallprotection/Index.vue
+10
-2
Index.vue
src/components/management/Index.vue
+1
-1
sampleDialog.vue
src/components/management/sampleDialog.vue
+1
-1
Index.vue
src/components/noise/Index.vue
+7
-6
Index.vue
src/components/projectcheck/Index.vue
+7
-5
Index.vue
src/components/realname/Index.vue
+3
-3
Index.vue
src/components/safecap/Index.vue
+1
-1
mapDialog.vue
src/components/safecap/mapDialog.vue
+1
-1
Index.vue
src/components/tower/Index.vue
+13
-5
deviceDialog2.vue
src/components/tower/deviceDialog2.vue
+9
-1
Index.vue
src/components/unloadingplatform/Index.vue
+18
-3
No files found.
public/index.html
View file @
60513e7b
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
}
}
.el-loading-text
{
.el-loading-text
{
font-size
:
2
4
px
!important
;
font-size
:
2
0
px
!important
;
}
}
.amap-logo
{
.amap-logo
{
...
@@ -27,7 +27,6 @@
...
@@ -27,7 +27,6 @@
.el-loading-mask
{
.el-loading-mask
{
z-index
:
99999
!important
;
z-index
:
99999
!important
;
position
:
fixed
!important
;
}
}
</style>
</style>
</head>
</head>
...
...
src/api/index.js
View file @
60513e7b
...
@@ -198,21 +198,21 @@ export function getCurrentTowerStatis(params) {
...
@@ -198,21 +198,21 @@ export function getCurrentTowerStatis(params) {
})
})
}
}
export
function
getDeviceDetail
(
deviceId
)
{
export
function
getDeviceDetail
(
deviceId
)
{
return
request
({
return
noLoading
request
({
url
:
`/pweb/s/towercrane/device/
${
deviceId
}
`
,
url
:
`/pweb/s/towercrane/device/
${
deviceId
}
`
,
method
:
'get'
,
method
:
'get'
,
})
})
}
}
export
function
getDeviceTodayChart
(
deviceId
)
{
export
function
getDeviceTodayChart
(
deviceId
)
{
return
request
({
return
noLoading
request
({
url
:
`/pweb/s/towercrane/device/realtime/statis/
${
deviceId
}
`
,
url
:
`/pweb/s/towercrane/device/realtime/statis/
${
deviceId
}
`
,
method
:
'get'
,
method
:
'get'
,
})
})
}
}
export
function
getTowerLiveUrl
(
cameraId
)
{
export
function
getTowerLiveUrl
(
cameraId
)
{
return
request
({
return
noLoading
request
({
url
:
`/pweb/s/towercrane/camera/liveaddress/
${
cameraId
}
`
,
url
:
`/pweb/s/towercrane/camera/liveaddress/
${
cameraId
}
`
,
method
:
'get'
,
method
:
'get'
,
})
})
...
@@ -340,7 +340,7 @@ export function getFallWarningTableList(params) {
...
@@ -340,7 +340,7 @@ export function getFallWarningTableList(params) {
}
}
export
function
getDeviceCurrentStatus
(
params
)
{
export
function
getDeviceCurrentStatus
(
params
)
{
return
request
({
return
noLoading
request
({
url
:
'/pweb/s/linbian/device/realdata'
,
url
:
'/pweb/s/linbian/device/realdata'
,
method
:
'get'
,
method
:
'get'
,
params
params
...
@@ -358,14 +358,14 @@ export function getUnloadingPlatformList() {
...
@@ -358,14 +358,14 @@ export function getUnloadingPlatformList() {
})
})
}
}
export
function
getPlatformCurrentStatus
(
params
)
{
export
function
getPlatformCurrentStatus
(
params
)
{
return
request
({
return
noLoading
request
({
url
:
'/pweb/s/unload/device/realdata'
,
url
:
'/pweb/s/unload/device/realdata'
,
method
:
'get'
,
method
:
'get'
,
params
params
})
})
}
}
export
function
getPlatformRunningAnalysis
(
params
)
{
export
function
getPlatformRunningAnalysis
(
params
)
{
return
request
({
return
noLoading
request
({
url
:
'/pweb/s/unload/device/statistics'
,
url
:
'/pweb/s/unload/device/statistics'
,
method
:
'get'
,
method
:
'get'
,
params
params
...
@@ -410,7 +410,7 @@ export function getElevatorWarningStatus() {
...
@@ -410,7 +410,7 @@ export function getElevatorWarningStatus() {
export
function
getElevatorRealData
(
params
)
{
export
function
getElevatorRealData
(
params
)
{
return
request
({
return
noLoading
request
({
url
:
'/pweb/s/elevator/device/realdata'
,
url
:
'/pweb/s/elevator/device/realdata'
,
method
:
'get'
,
method
:
'get'
,
params
params
...
...
src/assets/elevator/portrait.png
0 → 100644
View file @
60513e7b
27.9 KB
src/components/construction/Index.vue
View file @
60513e7b
...
@@ -254,7 +254,7 @@
...
@@ -254,7 +254,7 @@
</ShadowContainer>
</ShadowContainer>
<Title
text=
"AI预警"
>
</Title>
<Title
text=
"AI预警"
>
</Title>
<ShadowContainer
class=
"short-container"
>
<ShadowContainer
class=
"short-container"
>
<div
style=
"display: flex"
>
<div
style=
"display: flex
; justify-content: center
"
>
<div
class=
"chart-container"
>
<div
class=
"chart-container"
>
<div
ref=
"qualityChart"
id=
"quality-chart"
></div>
<div
ref=
"qualityChart"
id=
"quality-chart"
></div>
<div
class=
"title"
>
<div
class=
"title"
>
...
@@ -472,11 +472,12 @@ export default {
...
@@ -472,11 +472,12 @@ export default {
padding-bottom: 0;
padding-bottom: 0;
}
}
.side-area {
.side-area {
width: 400px;
min-width: 400px;
width: 25%;
height: 100%;
height: 100%;
}
}
.mid-area {
.mid-area {
width: calc(
100% - 8
24px);
width: calc(
50% -
24px);
height: 100%;
height: 100%;
}
}
.divider {
.divider {
...
@@ -729,7 +730,7 @@ table {
...
@@ -729,7 +730,7 @@ table {
width: calc(100% / 3);
width: calc(100% / 3);
padding: 30px 0px;
padding: 30px 0px;
.status-img {
.status-img {
width:
40%
;
width:
50px
;
}
}
.status-detail {
.status-detail {
display: inline-block;
display: inline-block;
...
@@ -827,7 +828,6 @@ table {
...
@@ -827,7 +828,6 @@ table {
align-items: center;
align-items: center;
flex-direction: column;
flex-direction: column;
justify-content: center;
justify-content: center;
width: calc(100% - 200px);
& > div {
& > div {
padding: 0 20px;
padding: 0 20px;
font-size: 14px;
font-size: 14px;
...
...
src/components/earlywarning/Index.vue
View file @
60513e7b
...
@@ -667,8 +667,8 @@ export default {
...
@@ -667,8 +667,8 @@ export default {
.chart-container {
.chart-container {
position: relative;
position: relative;
width: 2
0
0px;
width: 2
5
0px;
height: 2
0
0px;
height: 2
5
0px;
.title {
.title {
position: absolute;
position: absolute;
top: 50%;
top: 50%;
...
...
src/components/elevator/Index.vue
View file @
60513e7b
...
@@ -115,7 +115,11 @@
...
@@ -115,7 +115,11 @@
</div>
</div>
</ShadowContainer>
</ShadowContainer>
</div>
</div>
<div
class=
"elevator-container"
>
<div
class=
"elevator-container"
v-loading=
"elevatorLoading"
element-loading-background=
"rgba(0, 0, 0, 0.8)"
>
<ShadowContainerRect
class=
"long-container"
>
<ShadowContainerRect
class=
"long-container"
>
<div
id=
"elevator-detail"
>
<div
id=
"elevator-detail"
>
<div
class=
"left-detail"
>
<div
class=
"left-detail"
>
...
@@ -130,7 +134,14 @@
...
@@ -130,7 +134,14 @@
<div
class=
"tower-title"
>
左侧运行情况
</div>
<div
class=
"tower-title"
>
左侧运行情况
</div>
<div
class=
"driver-info"
>
<div
class=
"driver-info"
>
<div
class=
"driver-icon"
>
<div
class=
"driver-icon"
>
<img
:src=
"leftElevator.person.head_img"
alt=
""
/>
<img
:src=
"
leftElevator.person.head_img
? leftElevator.person.head_img
: require('@/assets/elevator/portrait.png')
"
alt=
""
/>
</div>
</div>
<div
class=
"driver-description"
>
<div
class=
"driver-description"
>
<div
<div
...
@@ -219,7 +230,14 @@
...
@@ -219,7 +230,14 @@
<div
class=
"tower-title"
>
右侧运行情况
</div>
<div
class=
"tower-title"
>
右侧运行情况
</div>
<div
class=
"driver-info"
>
<div
class=
"driver-info"
>
<div
class=
"driver-icon"
>
<div
class=
"driver-icon"
>
<img
:src=
"rightElevator.person.head_img"
alt=
""
/>
<img
:src=
"
rightElevator.person.head_img
? rightElevator.person.head_img
: require('@/assets/elevator/portrait.png')
"
alt=
""
/>
</div>
</div>
<div
class=
"driver-description"
>
<div
class=
"driver-description"
>
<div
<div
...
@@ -283,6 +301,7 @@ export default {
...
@@ -283,6 +301,7 @@ export default {
leftBottom
:
0
,
leftBottom
:
0
,
rightBottom
:
0
,
rightBottom
:
0
,
interval1
:
null
,
interval1
:
null
,
elevatorLoading
:
false
,
};
};
},
},
methods
:
{
methods
:
{
...
@@ -344,6 +363,7 @@ export default {
...
@@ -344,6 +363,7 @@ export default {
});
});
},
},
getCurrentElevatorStatus
(
tower
)
{
getCurrentElevatorStatus
(
tower
)
{
this
.
elevatorLoading
=
true
;
this
.
leftBottom
=
0
;
this
.
leftBottom
=
0
;
this
.
rightBottom
=
0
;
this
.
rightBottom
=
0
;
this
.
leftElevator
=
null
;
this
.
leftElevator
=
null
;
...
@@ -357,6 +377,7 @@ export default {
...
@@ -357,6 +377,7 @@ export default {
}
}
getElevatorRealData
({
device_ids
:
elevatorArray
.
join
(
","
)
}).
then
(
getElevatorRealData
({
device_ids
:
elevatorArray
.
join
(
","
)
}).
then
(
(
res
)
=>
{
(
res
)
=>
{
this
.
elevatorLoading
=
false
;
this
.
leftElevator
=
tower
.
left_elevator
this
.
leftElevator
=
tower
.
left_elevator
?
{
?
{
...
tower
.
left_elevator
,
...
tower
.
left_elevator
,
...
@@ -562,6 +583,7 @@ export default {
...
@@ -562,6 +583,7 @@ export default {
background: rgba(44, 96, 162, 0.2);
background: rgba(44, 96, 162, 0.2);
display: flex;
display: flex;
padding: 12px 0;
padding: 12px 0;
font-weight: bold;
}
}
.warning-table-column {
.warning-table-column {
padding: 12px 0;
padding: 12px 0;
...
...
src/components/fallprotection/Index.vue
View file @
60513e7b
...
@@ -37,7 +37,11 @@
...
@@ -37,7 +37,11 @@
<div
id=
"today-warning-chart"
ref=
"today24hourWarningChart"
></div>
<div
id=
"today-warning-chart"
ref=
"today24hourWarningChart"
></div>
</ShadowContainer>
</ShadowContainer>
</div>
</div>
<div
class=
"mid-area"
>
<div
class=
"mid-area"
v-loading=
"mapLoading"
element-loading-background=
"rgba(0, 0, 0, 0.8)"
>
<div
class=
"cover-area"
></div>
<div
class=
"cover-area"
></div>
<div
class=
"buildingwindow"
v-if=
"buildingWindowVisible"
>
<div
class=
"buildingwindow"
v-if=
"buildingWindowVisible"
>
<div
class=
"building-description"
>
<div
class=
"building-description"
>
...
@@ -198,6 +202,7 @@ export default {
...
@@ -198,6 +202,7 @@ export default {
windowData
:
{},
windowData
:
{},
page
:
1
,
page
:
1
,
interval1
:
null
,
interval1
:
null
,
mapLoading
:
false
,
};
};
},
},
methods
:
{
methods
:
{
...
@@ -218,7 +223,7 @@ export default {
...
@@ -218,7 +223,7 @@ export default {
mapStyle
:
"amap://styles/1dda787b3ac1ce28f171d2f153726eb7"
,
mapStyle
:
"amap://styles/1dda787b3ac1ce28f171d2f153726eb7"
,
});
});
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
var
scale
=
window
.
screen
.
h
eight
/
1080
;
var
scale
=
window
.
innerH
eight
/
1080
;
console
.
log
(
document
.
getElementById
(
"amap-container"
).
style
);
console
.
log
(
document
.
getElementById
(
"amap-container"
).
style
);
document
.
getElementById
(
"amap-container"
).
style
.
zoom
=
1
/
scale
;
document
.
getElementById
(
"amap-container"
).
style
.
zoom
=
1
/
scale
;
});
});
...
@@ -268,9 +273,11 @@ export default {
...
@@ -268,9 +273,11 @@ export default {
this
.
$forceUpdate
();
this
.
$forceUpdate
();
},
},
showDeviceInfo
(
device
)
{
showDeviceInfo
(
device
)
{
this
.
mapLoading
=
true
;
this
.
buildingWindowVisible
=
false
;
this
.
buildingWindowVisible
=
false
;
this
.
map
.
setCenter
([
device
.
longitude
,
device
.
latitude
]);
this
.
map
.
setCenter
([
device
.
longitude
,
device
.
latitude
]);
getDeviceCurrentStatus
({
device_id
:
device
.
id
}).
then
((
res
)
=>
{
getDeviceCurrentStatus
({
device_id
:
device
.
id
}).
then
((
res
)
=>
{
this
.
mapLoading
=
false
;
this
.
windowData
=
{
...
device
,
...
res
.
data
};
this
.
windowData
=
{
...
device
,
...
res
.
data
};
console
.
log
(
this
.
windowData
);
console
.
log
(
this
.
windowData
);
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
...
@@ -612,6 +619,7 @@ export default {
...
@@ -612,6 +619,7 @@ export default {
background: rgba(44, 96, 162, 0.2);
background: rgba(44, 96, 162, 0.2);
display: flex;
display: flex;
padding: 12px 0;
padding: 12px 0;
font-weight: bold;
}
}
.warning-table-column {
.warning-table-column {
padding: 12px 0;
padding: 12px 0;
...
...
src/components/management/Index.vue
View file @
60513e7b
...
@@ -241,7 +241,7 @@ export default {
...
@@ -241,7 +241,7 @@ export default {
});
});
this
.
map
.
on
(
"click"
,
()
=>
{});
this
.
map
.
on
(
"click"
,
()
=>
{});
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
var
scale
=
window
.
screen
.
h
eight
/
1080
;
var
scale
=
window
.
innerH
eight
/
1080
;
document
.
getElementById
(
"amap-container"
).
style
.
zoom
=
1
/
scale
;
document
.
getElementById
(
"amap-container"
).
style
.
zoom
=
1
/
scale
;
});
});
})
})
...
...
src/components/management/sampleDialog.vue
View file @
60513e7b
...
@@ -88,7 +88,7 @@ export default {
...
@@ -88,7 +88,7 @@ export default {
mapStyle
:
"amap://styles/1dda787b3ac1ce28f171d2f153726eb7"
,
mapStyle
:
"amap://styles/1dda787b3ac1ce28f171d2f153726eb7"
,
});
});
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
var
scale
=
window
.
screen
.
h
eight
/
1080
;
var
scale
=
window
.
innerH
eight
/
1080
;
document
.
getElementById
(
"sample-map-container"
).
style
.
zoom
=
document
.
getElementById
(
"sample-map-container"
).
style
.
zoom
=
1
/
scale
;
1
/
scale
;
});
});
...
...
src/components/noise/Index.vue
View file @
60513e7b
...
@@ -101,12 +101,12 @@
...
@@ -101,12 +101,12 @@
</div>
</div>
<div
class=
"mid-area"
>
<div
class=
"mid-area"
>
<Title
text=
"实时监测"
type=
"long"
></Title>
<Title
text=
"实时监测"
type=
"long"
></Title>
<ShadowContainer
class=
"long-container"
>
<ShadowContainer
<div
class=
"long-container"
id=
"stats-container"
v-loading=
"loading"
v-loading=
"loading"
element-loading-background=
"rgba(0, 0, 0, 0.8)"
element-loading-background=
"rgba(0, 0, 0, 0.8)"
>
>
<div
id=
"stats-container"
>
<div
class=
"temp"
>
<div
class=
"temp"
>
<div
class=
"text"
>
温度/℃
</div>
<div
class=
"text"
>
温度/℃
</div>
<div
class=
"value"
style=
"color: #ff6151"
>
<div
class=
"value"
style=
"color: #ff6151"
>
...
@@ -847,6 +847,7 @@ export default {
...
@@ -847,6 +847,7 @@ export default {
background: rgba(44, 96, 162, 0.2);
background: rgba(44, 96, 162, 0.2);
display: flex;
display: flex;
padding: 12px 0;
padding: 12px 0;
font-weight: bold;
}
}
.warning-table-column {
.warning-table-column {
padding: 12px 0;
padding: 12px 0;
...
...
src/components/projectcheck/Index.vue
View file @
60513e7b
...
@@ -828,6 +828,7 @@ export default {
...
@@ -828,6 +828,7 @@ export default {
background: rgba(44, 96, 162, 0.2);
background: rgba(44, 96, 162, 0.2);
display: flex;
display: flex;
padding: 12px 0;
padding: 12px 0;
font-weight: bold;
}
}
.warning-table-column {
.warning-table-column {
padding: 12px 0;
padding: 12px 0;
...
@@ -867,6 +868,7 @@ export default {
...
@@ -867,6 +868,7 @@ export default {
background: rgba(44, 96, 162, 0.2);
background: rgba(44, 96, 162, 0.2);
display: flex;
display: flex;
padding: 12px 0;
padding: 12px 0;
font-weight: bold;
}
}
.warning-table-column {
.warning-table-column {
padding: 12px 0;
padding: 12px 0;
...
@@ -933,7 +935,7 @@ export default {
...
@@ -933,7 +935,7 @@ export default {
align-items: center;
align-items: center;
flex-direction: column;
flex-direction: column;
justify-content: center;
justify-content: center;
width: calc(100% -
26
0px);
width: calc(100% -
30
0px);
& > div {
& > div {
padding: 0 20px;
padding: 0 20px;
font-size: 14px;
font-size: 14px;
...
@@ -952,8 +954,8 @@ export default {
...
@@ -952,8 +954,8 @@ export default {
.chart-container {
.chart-container {
position: relative;
position: relative;
width:
26
0px;
width:
30
0px;
height:
26
0px;
height:
30
0px;
.title {
.title {
position: absolute;
position: absolute;
top: 50%;
top: 50%;
...
@@ -983,12 +985,12 @@ export default {
...
@@ -983,12 +985,12 @@ export default {
text-align: center;
text-align: center;
transform: translateX(-50%) translateY(-50%);
transform: translateX(-50%) translateY(-50%);
.main-title {
.main-title {
font-size:
30
px;
font-size:
18
px;
font-weight: bold;
font-weight: bold;
color: #00fcff;
color: #00fcff;
}
}
.sub-title {
.sub-title {
font-size: 1
6
px;
font-size: 1
2
px;
font-weight: bold;
font-weight: bold;
color: rgba(255, 255, 255, 0.7);
color: rgba(255, 255, 255, 0.7);
}
}
...
...
src/components/realname/Index.vue
View file @
60513e7b
...
@@ -1015,7 +1015,7 @@ export default {
...
@@ -1015,7 +1015,7 @@ export default {
align-items: center;
align-items: center;
flex-direction: column;
flex-direction: column;
justify-content: center;
justify-content: center;
width: calc(100% -
2
00px);
width: calc(100% -
3
00px);
& > div {
& > div {
padding: 0 20px;
padding: 0 20px;
font-size: 14px;
font-size: 14px;
...
@@ -1033,8 +1033,8 @@ export default {
...
@@ -1033,8 +1033,8 @@ export default {
.chart-container {
.chart-container {
position: relative;
position: relative;
width:
2
00px;
width:
3
00px;
height:
2
00px;
height:
3
00px;
.title {
.title {
position: absolute;
position: absolute;
top: 50%;
top: 50%;
...
...
src/components/safecap/Index.vue
View file @
60513e7b
...
@@ -274,7 +274,7 @@ export default {
...
@@ -274,7 +274,7 @@ export default {
this
.
capWindowVisible
=
false
;
this
.
capWindowVisible
=
false
;
});
});
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
var
scale
=
window
.
screen
.
h
eight
/
1080
;
var
scale
=
window
.
innerH
eight
/
1080
;
document
.
getElementById
(
"amap-container"
).
style
.
zoom
=
1
/
scale
;
document
.
getElementById
(
"amap-container"
).
style
.
zoom
=
1
/
scale
;
});
});
this
.
getSafeCapDeviceList
();
this
.
getSafeCapDeviceList
();
...
...
src/components/safecap/mapDialog.vue
View file @
60513e7b
...
@@ -98,7 +98,7 @@ export default {
...
@@ -98,7 +98,7 @@ export default {
mapStyle
:
"amap://styles/1dda787b3ac1ce28f171d2f153726eb7"
,
mapStyle
:
"amap://styles/1dda787b3ac1ce28f171d2f153726eb7"
,
});
});
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
var
scale
=
window
.
screen
.
h
eight
/
1080
;
var
scale
=
window
.
innerH
eight
/
1080
;
document
.
getElementById
(
"route-map-container"
).
style
.
zoom
=
1
/
scale
;
document
.
getElementById
(
"route-map-container"
).
style
.
zoom
=
1
/
scale
;
});
});
this
.
search
();
this
.
search
();
...
...
src/components/tower/Index.vue
View file @
60513e7b
...
@@ -53,7 +53,11 @@
...
@@ -53,7 +53,11 @@
<div
id=
"dip-chart"
ref=
"dipChart"
></div>
<div
id=
"dip-chart"
ref=
"dipChart"
></div>
</ShadowContainer>
</ShadowContainer>
</div>
</div>
<div
id=
"mid-area"
>
<div
id=
"mid-area"
v-loading=
"mapLoading"
element-loading-background=
"rgba(0, 0, 0, 0.8)"
>
<div
class=
"cover-area"
></div>
<div
class=
"cover-area"
></div>
<div
class=
"towerwindow"
v-if=
"towerWindowVisible"
>
<div
class=
"towerwindow"
v-if=
"towerWindowVisible"
>
<div
class=
"tower-description"
@
click=
"openDetailDialog"
>
<div
class=
"tower-description"
@
click=
"openDetailDialog"
>
...
@@ -209,6 +213,7 @@ export default {
...
@@ -209,6 +213,7 @@ export default {
page
:
1
,
page
:
1
,
deviceTotal
:
0
,
deviceTotal
:
0
,
interval1
:
null
,
interval1
:
null
,
mapLoading
:
false
,
};
};
},
},
methods
:
{
methods
:
{
...
@@ -442,7 +447,7 @@ export default {
...
@@ -442,7 +447,7 @@ export default {
mapStyle
:
"amap://styles/1dda787b3ac1ce28f171d2f153726eb7"
,
mapStyle
:
"amap://styles/1dda787b3ac1ce28f171d2f153726eb7"
,
});
});
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
var
scale
=
window
.
screen
.
h
eight
/
1080
;
var
scale
=
window
.
innerH
eight
/
1080
;
document
.
getElementById
(
"amap-container"
).
style
.
zoom
=
1
/
scale
;
document
.
getElementById
(
"amap-container"
).
style
.
zoom
=
1
/
scale
;
});
});
this
.
map
.
on
(
"click"
,
(
e
)
=>
{
this
.
map
.
on
(
"click"
,
(
e
)
=>
{
...
@@ -500,7 +505,9 @@ export default {
...
@@ -500,7 +505,9 @@ export default {
this
.
towerWindowVisible
=
true
;
this
.
towerWindowVisible
=
true
;
},
},
openDetailDialog
()
{
openDetailDialog
()
{
this
.
mapLoading
=
true
;
getDeviceDetail
(
this
.
windowData
.
id
).
then
((
res
)
=>
{
getDeviceDetail
(
this
.
windowData
.
id
).
then
((
res
)
=>
{
this
.
mapLoading
=
false
;
this
.
deviceData
=
res
.
data
;
this
.
deviceData
=
res
.
data
;
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
deviceDialogVisible
=
true
;
this
.
deviceDialogVisible
=
true
;
...
@@ -941,6 +948,7 @@ export default {
...
@@ -941,6 +948,7 @@ export default {
background: rgba(44, 96, 162, 0.2);
background: rgba(44, 96, 162, 0.2);
display: flex;
display: flex;
padding: 12px 0;
padding: 12px 0;
font-weight: bold;
}
}
.warning-table-column {
.warning-table-column {
padding: 12px 0;
padding: 12px 0;
...
@@ -987,7 +995,7 @@ export default {
...
@@ -987,7 +995,7 @@ export default {
align-items: center;
align-items: center;
flex-direction: column;
flex-direction: column;
justify-content: center;
justify-content: center;
width: calc(100% - 2
0
0px);
width: calc(100% - 2
5
0px);
& > div {
& > div {
padding: 0 20px;
padding: 0 20px;
font-size: 14px;
font-size: 14px;
...
@@ -1005,8 +1013,8 @@ export default {
...
@@ -1005,8 +1013,8 @@ export default {
.chart-container {
.chart-container {
position: relative;
position: relative;
width: 2
0
0px;
width: 2
5
0px;
height: 2
0
0px;
height: 2
5
0px;
.title {
.title {
position: absolute;
position: absolute;
top: 50%;
top: 50%;
...
...
src/components/tower/deviceDialog2.vue
View file @
60513e7b
...
@@ -57,7 +57,12 @@
...
@@ -57,7 +57,12 @@
<div
class=
"status-text"
>
风速百分比/%
</div>
<div
class=
"status-text"
>
风速百分比/%
</div>
</div>
</div>
</div>
</div>
<div
id=
"video-container"
v-if=
"deviceData.is_camera == 1"
></div>
<div
id=
"video-container"
v-if=
"deviceData.is_camera == 1"
v-loading=
"videoLoading"
element-loading-background=
"rgba(0, 0, 0, 0.8)"
></div>
<div
id=
"video-container-img"
v-else
>
<div
id=
"video-container-img"
v-else
>
<img
src=
"@/assets/tower/no_camera.png"
alt=
""
/>
<img
src=
"@/assets/tower/no_camera.png"
alt=
""
/>
<div>
暂无监控信息
</div>
<div>
暂无监控信息
</div>
...
@@ -100,6 +105,7 @@ export default {
...
@@ -100,6 +105,7 @@ export default {
return
{
return
{
todayData
:
[],
todayData
:
[],
player
:
null
,
player
:
null
,
videoLoading
:
false
,
};
};
},
},
methods
:
{
methods
:
{
...
@@ -183,6 +189,7 @@ export default {
...
@@ -183,6 +189,7 @@ export default {
},
},
openedEvents
()
{
openedEvents
()
{
if
(
this
.
deviceData
.
is_camera
==
1
)
{
if
(
this
.
deviceData
.
is_camera
==
1
)
{
this
.
videoLoading
=
true
;
getTowerLiveUrl
(
this
.
deviceData
.
camera_id
).
then
((
res
)
=>
{
getTowerLiveUrl
(
this
.
deviceData
.
camera_id
).
then
((
res
)
=>
{
const
myVideoDiv
=
document
.
getElementById
(
`video-container`
);
const
myVideoDiv
=
document
.
getElementById
(
`video-container`
);
myVideoDiv
.
innerHTML
=
`<video
myVideoDiv
.
innerHTML
=
`<video
...
@@ -202,6 +209,7 @@ export default {
...
@@ -202,6 +209,7 @@ export default {
});
});
singlePlayer
.
play
();
singlePlayer
.
play
();
this
.
player
=
singlePlayer
;
this
.
player
=
singlePlayer
;
this
.
videoLoading
=
false
;
getDeviceTodayChart
(
this
.
deviceId
).
then
((
result
)
=>
{
getDeviceTodayChart
(
this
.
deviceId
).
then
((
result
)
=>
{
this
.
todayData
=
result
.
data
;
this
.
todayData
=
result
.
data
;
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
...
...
src/components/unloadingplatform/Index.vue
View file @
60513e7b
...
@@ -22,7 +22,11 @@
...
@@ -22,7 +22,11 @@
</div>
</div>
</ShadowContainer>
</ShadowContainer>
<Title
text=
"各平台运行分析"
></Title>
<Title
text=
"各平台运行分析"
></Title>
<ShadowContainer
class=
"long-2-container"
>
<ShadowContainer
class=
"long-2-container"
v-loading=
"chartLoading"
element-loading-background=
"rgba(0, 0, 0, 0.8)"
>
<div
class=
"filters"
>
<div
class=
"filters"
>
<div
<div
:class=
"['filter', activeType == '0' ? 'active' : '']"
:class=
"['filter', activeType == '0' ? 'active' : '']"
...
@@ -42,7 +46,11 @@
...
@@ -42,7 +46,11 @@
<div
id=
"weight-chart"
ref=
"weightChart"
></div>
<div
id=
"weight-chart"
ref=
"weightChart"
></div>
</ShadowContainer>
</ShadowContainer>
</div>
</div>
<div
class=
"mid-area"
>
<div
class=
"mid-area"
v-loading=
"mapLoading"
element-loading-background=
"rgba(0, 0, 0, 0.8)"
>
<div
class=
"cover-area"
></div>
<div
class=
"cover-area"
></div>
<div
class=
"buildingwindow"
v-if=
"platformWindowVisible"
>
<div
class=
"buildingwindow"
v-if=
"platformWindowVisible"
>
<div
class=
"building-description"
>
<div
class=
"building-description"
>
...
@@ -188,6 +196,8 @@ export default {
...
@@ -188,6 +196,8 @@ export default {
weightChart
:
null
,
weightChart
:
null
,
page
:
1
,
page
:
1
,
interval1
:
null
,
interval1
:
null
,
chartLoading
:
false
,
mapLoading
:
false
,
};
};
},
},
methods
:
{
methods
:
{
...
@@ -209,7 +219,7 @@ export default {
...
@@ -209,7 +219,7 @@ export default {
});
});
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
var
scale
=
window
.
screen
.
h
eight
/
1080
;
var
scale
=
window
.
innerH
eight
/
1080
;
document
.
getElementById
(
"amap-container"
).
style
.
zoom
=
1
/
scale
;
document
.
getElementById
(
"amap-container"
).
style
.
zoom
=
1
/
scale
;
});
});
this
.
map
.
on
(
"click"
,
()
=>
{
this
.
map
.
on
(
"click"
,
()
=>
{
...
@@ -258,9 +268,11 @@ export default {
...
@@ -258,9 +268,11 @@ export default {
this
.
$forceUpdate
();
this
.
$forceUpdate
();
},
},
showDeviceInfo
(
device
)
{
showDeviceInfo
(
device
)
{
this
.
mapLoading
=
true
;
this
.
platformWindowVisible
=
false
;
this
.
platformWindowVisible
=
false
;
this
.
map
.
setCenter
([
device
.
longitude
,
device
.
latitude
]);
this
.
map
.
setCenter
([
device
.
longitude
,
device
.
latitude
]);
getPlatformCurrentStatus
({
device_id
:
device
.
id
}).
then
((
res
)
=>
{
getPlatformCurrentStatus
({
device_id
:
device
.
id
}).
then
((
res
)
=>
{
this
.
mapLoading
=
false
;
this
.
windowData
=
{
...
device
,
...
res
.
data
};
this
.
windowData
=
{
...
device
,
...
res
.
data
};
console
.
log
(
this
.
windowData
);
console
.
log
(
this
.
windowData
);
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
...
@@ -419,7 +431,9 @@ export default {
...
@@ -419,7 +431,9 @@ export default {
this
.
activeType
=
type
;
this
.
activeType
=
type
;
this
.
batteryChart
.
dispose
();
this
.
batteryChart
.
dispose
();
this
.
weightChart
.
dispose
();
this
.
weightChart
.
dispose
();
this
.
chartLoading
=
true
;
getPlatformRunningAnalysis
({
date_type
:
type
}).
then
((
res
)
=>
{
getPlatformRunningAnalysis
({
date_type
:
type
}).
then
((
res
)
=>
{
this
.
chartLoading
=
false
;
this
.
platformRunningData
=
res
.
data
;
this
.
platformRunningData
=
res
.
data
;
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
renderBatteryChart
();
this
.
renderBatteryChart
();
...
@@ -687,6 +701,7 @@ export default {
...
@@ -687,6 +701,7 @@ export default {
background: rgba(44, 96, 162, 0.2);
background: rgba(44, 96, 162, 0.2);
display: flex;
display: flex;
padding: 12px 0;
padding: 12px 0;
font-weight: bold;
}
}
.warning-table-column {
.warning-table-column {
padding: 12px 0;
padding: 12px 0;
...
...
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