1 #112

Merged
xiaomeng merged 1 commits from pc-master into portal 2024-02-21 06:28:41 +00:00
3 changed files with 114 additions and 3 deletions

View File

@ -1696,6 +1696,51 @@
cursor: pointer; cursor: pointer;
} }
.dataModel .view-new {
width: 100%;
display: flex;
align-items: center;
flex-wrap: wrap;
padding: 50px 30px 0;
}
.dataModel .view-new .list-view {
flex-shrink: 0;
display: flex;
align-items: center;
margin-right: 20px;
margin-bottom: 20px;
}
.dataModel .view-new .list-view img {
width: 60px;
height: 60px;
}
.dataModel .view-new .list-view .text {
text-align: center;
margin: 5px 0;
font-size: 14px;
}
.dataModel .view-new .list-view .number {
width: 80px;
height: 30px;
background: url(../image/real-time-text.png) no-repeat center;
background-size: 100% 100%;
font-size: 16px;
font-family: Arial;
font-weight: bold;
color: #FFFFFF;
display: flex;
align-items: center;
justify-content: center;
}
.dataModel .view-new .list-view .number.red {
color: #fc7d6a;
}
.realTime { .realTime {
width: 100%; width: 100%;
height: 100%; height: 100%;

View File

@ -1781,6 +1781,51 @@
} }
} }
.dataModel{
.view-new{
width: 100%;
display: flex;
align-items: center;
flex-wrap: wrap;
padding: 50px 30px 0;
.list-view{
flex-shrink: 0;
display: flex;
// flex-direction: column;
align-items: center;
margin-right: 20px;
margin-bottom: 20px;
img {
width: 60px;
height: 60px;
}
.text {
text-align: center;
margin: 5px 0;
font-size: 14px;
}
.number {
width: 80px;
height: 30px;
background: url(../image/real-time-text.png) no-repeat center;
background-size: 100% 100%;
font-size: 16px;
font-family: Arial;
font-weight: bold;
color: #FFFFFF;
display: flex;
align-items: center;
justify-content: center;
&.red{
color: rgba(252, 125, 106, 1);
}
}
}
}
}
.realTime { .realTime {
width: 100%; width: 100%;
height: 100%; height: 100%;

View File

@ -57,9 +57,9 @@
</div> </div>
<div class="flex-view border-none warning-btn"> <div class="flex-view border-none warning-btn">
<div class="input-btn "> <div class="input-btn ">
<!-- <div class="btn blue"> <div class="btn blue" @click='openDataModel'>
<img src="../../assets/image/real-time-icon1.png" alt="" />3D动态水肥监控 查看全部实时数据
</div> --> </div>
<div class="btn green" @click="openWarn"> <div class="btn green" @click="openWarn">
<img src="../../assets/image/real-time-icon2.png" alt="" />短信报警 <img src="../../assets/image/real-time-icon2.png" alt="" />短信报警
</div> </div>
@ -287,6 +287,23 @@
</div> </div>
</div> </div>
<el-dialog title="实时数据" class="vrcode-model" :append-to-body="true" :visible.sync="dataModel" width="70%">
<el-button class="model-return-btn" type="primary" @click="dataModel=false"> </el-button>
<div class="vrcode-model-title vrcode-model-title-282">实时数据</div>
<div class="dataModel">
<div class="view-new">
<div class="list-view" v-for="item, index in list " :key="index">
<img :src="item.img" alt="">
<div>
<div class="text">{{ item.name }}</div>
<div class="number" :class="item.num == '故障' ? 'red' : ''"> {{ getControlData(item) }}</div>
</div>
</div>
</div>
</div>
</el-dialog>
<el-dialog title="请选择要显示的设备" :append-to-body="true" :visible.sync="addModel" width="70%"> <el-dialog title="请选择要显示的设备" :append-to-body="true" :visible.sync="addModel" width="70%">
<div class="model-title">请选择要显示的设备</div> <div class="model-title">请选择要显示的设备</div>
<div class="model-sel scroll"> <div class="model-sel scroll">
@ -442,6 +459,7 @@ export default {
sunrise: "00:00", sunrise: "00:00",
sunset: "00:00", sunset: "00:00",
statusList: [], statusList: [],
dataModel:false,//
time: null,// time: null,//
list: [], list: [],
@ -540,6 +558,9 @@ export default {
this.$bus.$off('refreshTime') this.$bus.$off('refreshTime')
}, },
methods: { methods: {
openDataModel(){
this.dataModel=true
},
tableRowClassName({ row, rowIndex }) { tableRowClassName({ row, rowIndex }) {
if (rowIndex % 2 == 1) { if (rowIndex % 2 == 1) {
return 'warning-row'; return 'warning-row';