forked from JointCloud/JCC-RIP
97 lines
1.7 KiB
Vue
97 lines
1.7 KiB
Vue
<template>
|
|
<!-- 算力中心总数 -->
|
|
<div>
|
|
<div class="two">
|
|
<div v-for="(item, index) in dataArray" :key="'data'+index">
|
|
<p class="title">{{ item.name }}</p>
|
|
<div class="num">{{ item.value }}</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
dataArray: [
|
|
{
|
|
name: '算力中心总数(计算域)',
|
|
value: 34
|
|
},
|
|
{
|
|
name: '已接入算力 POps@FP16',
|
|
value: '112.06'
|
|
},
|
|
{
|
|
name: '接入集群数',
|
|
value: '48'
|
|
}
|
|
]
|
|
}
|
|
},
|
|
methods: {
|
|
|
|
}
|
|
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.two{
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-top: 10px;
|
|
// text-align: center;
|
|
>div{
|
|
padding: 10px;
|
|
padding-top: 0;
|
|
background: url('../../../assets/images/monitorSelect/dataBg.png') no-repeat left;
|
|
background-size: auto 100%;
|
|
}
|
|
.title{
|
|
font-size: 1.1rem;
|
|
margin: 0.5rem;
|
|
margin-bottom: 0.3rem;
|
|
letter-spacing: 0.1rem;
|
|
font-weight: bold;
|
|
color: #DDDDDD;
|
|
}
|
|
.num{
|
|
font-size: 1.9rem;
|
|
font-family: Impact;
|
|
font-weight: 400;
|
|
// padding-bottom: 5px;
|
|
text-align: right;
|
|
width: 80%;
|
|
// text-indent: 130%;
|
|
letter-spacing: 0.1rem;
|
|
display: inline-block;
|
|
padding: 0 15px 3px;
|
|
}
|
|
}
|
|
|
|
// @media screen and (min-width: 1921px) {
|
|
// .one{
|
|
// background-size: 39px 39px;
|
|
// font-size: 20px;
|
|
// .num{
|
|
// font-size: 38px;
|
|
// }
|
|
// }
|
|
// .two{
|
|
// p{
|
|
// margin: 16px 0 ;
|
|
// }
|
|
// .title{
|
|
// font-size: 14px;
|
|
// }
|
|
// .num{
|
|
// font-size: 27px;
|
|
// padding: 0 17px 5px;
|
|
// }
|
|
// }
|
|
// }
|
|
|
|
</style>
|