120 lines
2.4 KiB
Vue
120 lines
2.4 KiB
Vue
<template>
|
|
<view :style="{height:'100vh',overflow:'auto'}">
|
|
<u-status-bar></u-status-bar>
|
|
<u-navbar title="ai告警" :autoBack="true" :titleStyle="{
|
|
fontSize:'18px'
|
|
}" :height='44' :safeAreaInsetTop=true leftIconSize='20' leftIconColor='rgb(153, 153, 153)'>
|
|
</u-navbar>
|
|
<view class="" style="margin-top: 44px;;background-color: #f0f0f0;border-top: 1px solid #f0f0f0;">
|
|
<view class="" v-for="item in list" style="margin: 10px;background-color: #fff;padding: 10px;">
|
|
<view class="item">
|
|
<!-- {{item.title}} -->
|
|
<image src="../../../static/c1.png" style="width:100%;"></image>
|
|
<view class="context">
|
|
<view class="type">
|
|
工程车辆识别
|
|
</view>
|
|
<view class="time">
|
|
{{item.time}}
|
|
</view>
|
|
</view>
|
|
<view class="adress">
|
|
大坝右岸
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
</view>
|
|
<u-calendar :show="show" mode="range" @confirm="confirm" @cancel='cancel'></u-calendar>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import moment from 'moment'
|
|
|
|
export default {
|
|
data() {
|
|
return {
|
|
show: false,
|
|
model: {
|
|
stm: '',
|
|
etm: ''
|
|
},
|
|
customStyle: {
|
|
background: '#000'
|
|
},
|
|
list: [{
|
|
title: '5-29日常巡检',
|
|
state: 0,
|
|
xjx: '上游坝面、坝顶',
|
|
name: '王自荣',
|
|
time: '2024-05-30 09:31:23'
|
|
},
|
|
{
|
|
title: '5-29日常巡检',
|
|
state: 1,
|
|
xjx: '上游坝面、坝顶',
|
|
name: '王自荣',
|
|
time: '2024-05-30 09:31:23'
|
|
},
|
|
]
|
|
};
|
|
},
|
|
onLoad(options){
|
|
// this.list = JSON.parse(decodeURIComponent(options.arr))
|
|
},
|
|
methods: {
|
|
confirm(e) {
|
|
console.log(e);
|
|
this.model.stm = e[0]
|
|
this.model.etm = e[1]
|
|
this.show = false
|
|
},
|
|
cancel() {
|
|
this.show = false
|
|
},
|
|
toDetail(){
|
|
uni.navigateTo({
|
|
url:'/pages/wtcl/detail/index'
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.myTitleStyle {
|
|
font-size: 30px;
|
|
background-color: red;
|
|
height: 200px;
|
|
}
|
|
|
|
.tabsClass {
|
|
margin-top: 44px;
|
|
height: 44px;
|
|
padding: 0 40px;
|
|
border-top: 1px solid #eee;
|
|
border-bottom: 1px solid #eee;
|
|
}
|
|
|
|
.item {
|
|
border-bottom: 1px solid #f0f0f0;
|
|
padding-bottom: 10px;
|
|
.context{
|
|
display: flex;
|
|
align-items: center;
|
|
color: #333;
|
|
}
|
|
.type{
|
|
border: 1px solid orange;
|
|
color: orange;
|
|
margin-right: 10px;
|
|
padding: 2px;
|
|
}
|
|
.adress{
|
|
padding: 10px 0;
|
|
}
|
|
|
|
}
|
|
|
|
</style> |