Toggle navigation
Toggle navigation
This project
Loading...
Sign in
monitor_v3
/
hg-monitor-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
鲁尚清
3 years ago
Commit
fa11ff359ebe61ccb097354336ab944447b8434c
1 parent
1111ade6
机柜详情u位提示
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
5 deletions
hg-monitor-web-zj/src/main/resources/static/vue3/src/views/commonComponents/machineRoomDetail/index.html
hg-monitor-web-zj/src/main/resources/static/vue3/src/views/commonComponents/machineRoomDetail/index.js
hg-monitor-web-zj/src/main/resources/static/vue3/src/views/commonComponents/machineRoomDetail/index.html
View file @
fa11ff3
...
...
@@ -31,9 +31,9 @@
<img
src=
"/vue3/src/assets/images/machineRoom/greenColor.png"
alt=
"资源状态:优"
>
</div>
</div>
</div>
</div>
<i
v-if=
"UpositionBottom!=-1"
class=
"el-icon-arrow-left"
:style=
"'position: absolute;right:-12px;color:#1e9fff;bottom:'+UpositionBottom+'px;'"
></i>
</div>
</div>
<!-- 右侧机柜详细信息 -->
...
...
hg-monitor-web-zj/src/main/resources/static/vue3/src/views/commonComponents/machineRoomDetail/index.js
View file @
fa11ff3
...
...
@@ -20,6 +20,11 @@ export default {
type
:
Boolean
,
default
:
false
},
//传过来的U位
Uposition
:{
type
:
String
,
default
:
"4"
}
},
data
(){
return
{
...
...
@@ -188,8 +193,6 @@ export default {
// 挂载完
Vue
.
onMounted
(()
=>
{
console
.
log
(
'&&&'
,
proxy
.
machineData
)
proxy
.
getData
();
})
...
...
@@ -216,7 +219,10 @@ export default {
}
})
}
let
UpositionBottom
=
Vue
.
ref
(
-
1
);
if
(
props
.
machineData
.
Uposition
){
UpositionBottom
.
value
=
(
props
.
machineData
.
Uposition
-
1
)
*
16
}
const
getDeviceInfo
=
()
=>
{
proxy
.
deviceDatas
.
map
((
item
,
index
)
=>
{
if
(
CabinetNum
==
item
.
name
){
...
...
@@ -334,7 +340,8 @@ export default {
isShowDevice
,
getDeviceInfo
,
getData
,
theirRoom
theirRoom
,
UpositionBottom
}
}
}
...
...
Please
register
or
login
to post a comment