|
|
|
@ -4,50 +4,67 @@
|
|
|
|
<view :class="mask?'list listfixed':'list'" style="padding-top: 20rpx;">
|
|
|
|
<view :class="mask?'list listfixed':'list'" style="padding-top: 20rpx;">
|
|
|
|
|
|
|
|
|
|
|
|
<block v-for="(item, index) in dataList">
|
|
|
|
<block v-for="(item, index) in dataList">
|
|
|
|
<u-card :title="item.created_at" padding="20" margin="20rpx" :border="true"
|
|
|
|
<u-card :title="item.created_at" padding="20" margin="20rpx" :border="true">
|
|
|
|
:sub-title="item.statusName" :thumb="thumb" thumb-width="36">
|
|
|
|
<view class="" slot="body" >
|
|
|
|
<view class="" slot="body" @click="todetail(item.id)">
|
|
|
|
|
|
|
|
<u-row gutter="16">
|
|
|
|
<u-row gutter="16">
|
|
|
|
<u-col span="12">
|
|
|
|
<u-col span="24">
|
|
|
|
<view class="demo-layout bg-purple">地址/排放点:</view>
|
|
|
|
<view class="demo-layout bg-purple-light">{{item.name}}</view>
|
|
|
|
</u-col>
|
|
|
|
|
|
|
|
<u-col span="12">
|
|
|
|
|
|
|
|
<view class="demo-layout bg-purple-light">{{item.address}}</view>
|
|
|
|
|
|
|
|
</u-col>
|
|
|
|
</u-col>
|
|
|
|
</u-row>
|
|
|
|
</u-row>
|
|
|
|
<u-row gutter="16">
|
|
|
|
<u-row gutter="16">
|
|
|
|
<u-col span="4">
|
|
|
|
<u-col span="4">
|
|
|
|
<view class="demo-layout bg-purple">巡查类型:</view>
|
|
|
|
<view class="demo-layout bg-purple">巡查频率:</view>
|
|
|
|
</u-col>
|
|
|
|
</u-col>
|
|
|
|
<u-col span="8">
|
|
|
|
<u-col span="8">
|
|
|
|
<view class="demo-layout bg-purple-light">{{item.typeName}}</view>
|
|
|
|
<view class="demo-layout bg-purple-light">每{{item.day}}一个循环</view>
|
|
|
|
</u-col>
|
|
|
|
</u-col>
|
|
|
|
<u-col span="4">
|
|
|
|
<u-col span="4">
|
|
|
|
<view class="demo-layout bg-purple">所属片区:</view>
|
|
|
|
<view class="demo-layout bg-purple">所属片区:</view>
|
|
|
|
</u-col>
|
|
|
|
</u-col>
|
|
|
|
<u-col span="8">
|
|
|
|
<u-col span="8">
|
|
|
|
<view class="demo-layout bg-purple-light">{{item.area_info?item.area_info.name:''}}</view>
|
|
|
|
<view class="demo-layout bg-purple-light">{{item.area_info?item.area_info.name:''}}
|
|
|
|
|
|
|
|
</view>
|
|
|
|
</u-col>
|
|
|
|
</u-col>
|
|
|
|
<u-col span="4">
|
|
|
|
<u-col span="4">
|
|
|
|
<view class="demo-layout bg-purple">所属道路:</view>
|
|
|
|
<view class="demo-layout bg-purple">开始日期:</view>
|
|
|
|
</u-col>
|
|
|
|
</u-col>
|
|
|
|
<u-col span="8">
|
|
|
|
<u-col span="8">
|
|
|
|
<view class="demo-layout bg-purple-light">{{item.road_name}}</view>
|
|
|
|
<view class="demo-layout bg-purple-light">{{item.start_date}}</view>
|
|
|
|
|
|
|
|
</u-col>
|
|
|
|
|
|
|
|
<u-col span="4">
|
|
|
|
|
|
|
|
<view class="demo-layout bg-purple">结束日期:</view>
|
|
|
|
|
|
|
|
</u-col>
|
|
|
|
|
|
|
|
<u-col span="8">
|
|
|
|
|
|
|
|
<view class="demo-layout bg-purple-light">{{item.end_date}}</view>
|
|
|
|
</u-col>
|
|
|
|
</u-col>
|
|
|
|
</u-row>
|
|
|
|
</u-row>
|
|
|
|
<!-- <u-row gutter="16">
|
|
|
|
<u-row gutter="16">
|
|
|
|
<u-col span="3">
|
|
|
|
<u-col span="3">
|
|
|
|
<view class="demo-layout bg-purple">描述:</view>
|
|
|
|
<view class="demo-layout bg-purple">描述:</view>
|
|
|
|
</u-col>
|
|
|
|
</u-col>
|
|
|
|
<u-col span="12">
|
|
|
|
<u-col span="12">
|
|
|
|
<view class="demo-layout bg-purple-light">{{item.content}}</view>
|
|
|
|
<view class="demo-layout bg-purple-light">{{item.remark}}</view>
|
|
|
|
</u-col>
|
|
|
|
</u-col>
|
|
|
|
</u-row> -->
|
|
|
|
</u-row>
|
|
|
|
|
|
|
|
<div>所属道路</div>
|
|
|
|
|
|
|
|
<block v-for="(mod,index) of item.roads" :key="index">
|
|
|
|
|
|
|
|
<div style="display: flex;justify-content: space-between;height: 60px;line-height: 60px;
|
|
|
|
|
|
|
|
align-items: center;">
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
|
|
|
{{mod.road.name}}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
|
|
|
<u-button :ripple="true" @click="toInspection(mod.road.id,mod.road.name)"
|
|
|
|
|
|
|
|
ripple-bg-color="#909399">去巡查
|
|
|
|
|
|
|
|
</u-button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</block>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</u-card>
|
|
|
|
</u-card>
|
|
|
|
|
|
|
|
|
|
|
|
</block>
|
|
|
|
</block>
|
|
|
|
<u-loadmore class="loadmore" :status="loadStatus" :load-text="loadText"/>
|
|
|
|
<u-loadmore class="loadmore" :status="loadStatus" :load-text="loadText" />
|
|
|
|
<u-empty text="暂无数据" margin-top="200" v-if="dataList.length==0" mode="list"></u-empty>
|
|
|
|
<u-empty text="暂无数据" margin-top="200" v-if="dataList.length==0" mode="list"></u-empty>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
@ -68,20 +85,20 @@
|
|
|
|
backgroundColor: '#0385e5'
|
|
|
|
backgroundColor: '#0385e5'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
mask: false,
|
|
|
|
mask: false,
|
|
|
|
loadStatus:"loadmore",
|
|
|
|
loadStatus: "loadmore",
|
|
|
|
loadText:{
|
|
|
|
loadText: {
|
|
|
|
loadmore:"加载更多",
|
|
|
|
loadmore: "加载更多",
|
|
|
|
nomore:"已经到底了"
|
|
|
|
nomore: "已经到底了"
|
|
|
|
},
|
|
|
|
},
|
|
|
|
dataList: [],
|
|
|
|
dataList: [],
|
|
|
|
thumb: "/static/img/location.png",
|
|
|
|
thumb: "/static/img/location.png",
|
|
|
|
currentPage: 0,
|
|
|
|
currentPage: 0,
|
|
|
|
lastPage:0,
|
|
|
|
lastPage: 0,
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
onReachBottom: function(e) {
|
|
|
|
onReachBottom: function(e) {
|
|
|
|
if(this.currentPage>=this.lastPage){
|
|
|
|
if (this.currentPage >= this.lastPage) {
|
|
|
|
this.loadStatus = "nomore"
|
|
|
|
this.loadStatus = "nomore"
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -97,12 +114,18 @@
|
|
|
|
this.loadPage(1);
|
|
|
|
this.loadPage(1);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
openmask(){
|
|
|
|
toInspection(road_id, road_name) {
|
|
|
|
this.mask=true
|
|
|
|
let url = "/raininspection/raininspection/raininspection?roadid=" + road_id + "&roadname=" + road_name
|
|
|
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
|
|
|
url: url
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
openmask() {
|
|
|
|
|
|
|
|
this.mask = true
|
|
|
|
// this.isPullDown(false);
|
|
|
|
// this.isPullDown(false);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
closemask(){
|
|
|
|
closemask() {
|
|
|
|
this.mask=false
|
|
|
|
this.mask = false
|
|
|
|
// this.isPullDown(true);
|
|
|
|
// this.isPullDown(true);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
tosearch() {
|
|
|
|
tosearch() {
|
|
|
|
@ -126,7 +149,7 @@
|
|
|
|
var res = r.data;
|
|
|
|
var res = r.data;
|
|
|
|
that.lastPage = r.last_page;
|
|
|
|
that.lastPage = r.last_page;
|
|
|
|
uni.stopPullDownRefresh(); // 服务器总条数 < 每页条数, 会将第一页的条数重新返回
|
|
|
|
uni.stopPullDownRefresh(); // 服务器总条数 < 每页条数, 会将第一页的条数重新返回
|
|
|
|
if(r.total<5){
|
|
|
|
if (r.total < 5) {
|
|
|
|
that.loadStatus = "nomore";
|
|
|
|
that.loadStatus = "nomore";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var hasNoMore = that.dataList.length < 4 && page > 1;
|
|
|
|
var hasNoMore = that.dataList.length < 4 && page > 1;
|
|
|
|
@ -190,7 +213,8 @@
|
|
|
|
margin: 10rpx 0;
|
|
|
|
margin: 10rpx 0;
|
|
|
|
font-size: 28rpx;
|
|
|
|
font-size: 28rpx;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.u-card{
|
|
|
|
|
|
|
|
|
|
|
|
.u-card {
|
|
|
|
z-index: 1;
|
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|
@ -201,16 +225,20 @@
|
|
|
|
background: #0385e5;
|
|
|
|
background: #0385e5;
|
|
|
|
padding: 20rpx;
|
|
|
|
padding: 20rpx;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.overflowmask{
|
|
|
|
|
|
|
|
|
|
|
|
.overflowmask {
|
|
|
|
overflow: hidden;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.loadmore{
|
|
|
|
|
|
|
|
padding:24rpx!important
|
|
|
|
.loadmore {
|
|
|
|
|
|
|
|
padding: 24rpx !important
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.listfixed{
|
|
|
|
|
|
|
|
|
|
|
|
.listfixed {
|
|
|
|
position: fixed;
|
|
|
|
position: fixed;
|
|
|
|
width:100%;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.u-config-wrap {
|
|
|
|
.u-config-wrap {
|
|
|
|
padding: 30rpx;
|
|
|
|
padding: 30rpx;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|