湖里大屏(安全管理):待整改联调
This commit is contained in:
parent
b28f3700fb
commit
4c88cc065f
@ -12,12 +12,15 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="tbody">
|
||||
<div class="row" v-for="i in 5" :key="i">
|
||||
<div class="td">2022.03.05 15:23:22</div>
|
||||
<div class="td">边临防护</div>
|
||||
<div class="td">2022-03-05 15:23:22</div>
|
||||
<div class="td">光怪陆离</div>
|
||||
</div>
|
||||
<vue-scroll>
|
||||
<div class="row" v-for="(alarm, index) in alarmList" :key="index">
|
||||
<div class="td">{{ alarm.checkPoints }}</div>
|
||||
<div class="td">{{ alarm.checkContent }}</div>
|
||||
<div class="td">{{ alarm.checkTime }}</div>
|
||||
<div class="td">{{ alarm.rectifyPeopleAme }}</div>
|
||||
</div>
|
||||
<div v-if="!alarmList.length">无数据</div>
|
||||
</vue-scroll>
|
||||
</div>
|
||||
</div>
|
||||
</Card>
|
||||
@ -26,6 +29,7 @@
|
||||
<script>
|
||||
import Card from '../components/Card.vue'
|
||||
import JProgressChart from '../jChart/bar/JProgressChart.vue'
|
||||
import { getNewestSecurityManageDataList2Api } from '@/assets/js/api/dataBoard'
|
||||
export default {
|
||||
components: { Card, JProgressChart },
|
||||
props: {
|
||||
@ -34,8 +38,15 @@ export default {
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
getNewestSecurityManageDataList2Api({ projectSn: this.projectSn }).then(res => {
|
||||
this.alarmList = res.result || []
|
||||
})
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
projectSn: this.$store.state.projectSn,
|
||||
alarmList: []
|
||||
// yData: [
|
||||
// '未分类',
|
||||
// '临边防护',
|
||||
@ -67,6 +78,9 @@ export default {
|
||||
color: #6ee4f0;
|
||||
border-bottom: 1px solid #fff;
|
||||
}
|
||||
&.tbody {
|
||||
height: calc(100% - 42px);
|
||||
}
|
||||
.row {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
@ -74,9 +88,13 @@ export default {
|
||||
height: 30px;
|
||||
line-height: 30px;
|
||||
&:nth-child(1) {
|
||||
width: 40%;
|
||||
width: 160px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
&:nth-child(2) {
|
||||
padding-left: 10px;
|
||||
flex: 1;
|
||||
}
|
||||
&:nth-child(3) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user