|
|
|
|
@ -4,20 +4,16 @@
|
|
|
|
|
<view :class="mask?'list listfixed':'list'" style="padding-top: 20rpx;">
|
|
|
|
|
|
|
|
|
|
<block v-for="(item, index) in dataList">
|
|
|
|
|
<u-card :title="item.created_at" padding="20" margin="20rpx" :border="true">
|
|
|
|
|
<view class="" slot="body">
|
|
|
|
|
<u-card :title="item.road.name" @click="toMaintain(item.road.id,item.road.name)" sub-title="去养护" padding="20"
|
|
|
|
|
margin="20rpx" :border="true">
|
|
|
|
|
<view class="" slot="body" >
|
|
|
|
|
<u-row gutter="16">
|
|
|
|
|
<u-col span="24">
|
|
|
|
|
<view class="demo-layout bg-purple-light">{{item.name}}</view>
|
|
|
|
|
</u-col>
|
|
|
|
|
</u-row>
|
|
|
|
|
<u-row gutter="16">
|
|
|
|
|
<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.day}}一个循环</view>
|
|
|
|
|
</u-col>
|
|
|
|
|
|
|
|
|
|
<u-col span="4">
|
|
|
|
|
<view class="demo-layout bg-purple">所属片区:</view>
|
|
|
|
|
</u-col>
|
|
|
|
|
@ -37,29 +33,42 @@
|
|
|
|
|
<u-col span="8">
|
|
|
|
|
<view class="demo-layout bg-purple-light">{{item.end_date}}</view>
|
|
|
|
|
</u-col>
|
|
|
|
|
</u-row>
|
|
|
|
|
<u-row gutter="16">
|
|
|
|
|
<u-col span="3">
|
|
|
|
|
<view class="demo-layout bg-purple">描述:</view>
|
|
|
|
|
|
|
|
|
|
<u-col span="4">
|
|
|
|
|
<view class="demo-layout bg-purple">养护类型:</view>
|
|
|
|
|
</u-col>
|
|
|
|
|
<u-col span="8">
|
|
|
|
|
<view class="demo-layout bg-purple-light">{{toReturnType(item.item_type)}}</view>
|
|
|
|
|
</u-col>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<u-col span="5">
|
|
|
|
|
<view class="demo-layout bg-purple">窨井(座):</view>
|
|
|
|
|
</u-col>
|
|
|
|
|
<u-col span="12">
|
|
|
|
|
<view class="demo-layout bg-purple-light">{{item.remark}}</view>
|
|
|
|
|
<u-col span="1">
|
|
|
|
|
<view class="demo-layout bg-purple-light">{{item.inspection_well}}</view>
|
|
|
|
|
</u-col>
|
|
|
|
|
<u-col span="5">
|
|
|
|
|
<view class="demo-layout bg-purple">边井(座):</view>
|
|
|
|
|
</u-col>
|
|
|
|
|
<u-col span="1">
|
|
|
|
|
<view class="demo-layout bg-purple-light">{{item.side_well}}</view>
|
|
|
|
|
</u-col>
|
|
|
|
|
<u-col span="5">
|
|
|
|
|
<view class="demo-layout bg-purple">主管数:</view>
|
|
|
|
|
</u-col>
|
|
|
|
|
<u-col span="1">
|
|
|
|
|
<view class="demo-layout bg-purple-light">{{item.master_pipe}}</view>
|
|
|
|
|
</u-col>
|
|
|
|
|
<u-col span="5">
|
|
|
|
|
<view class="demo-layout bg-purple">支管数:</view>
|
|
|
|
|
</u-col>
|
|
|
|
|
<u-col span="1">
|
|
|
|
|
<view class="demo-layout bg-purple-light">{{item.branch_pipe}}</view>
|
|
|
|
|
</u-col>
|
|
|
|
|
</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>
|
|
|
|
|
</u-card>
|
|
|
|
|
|
|
|
|
|
@ -92,6 +101,35 @@
|
|
|
|
|
loadmore: "加载更多",
|
|
|
|
|
nomore: "已经到底了"
|
|
|
|
|
},
|
|
|
|
|
rainTypes: [{
|
|
|
|
|
id: 1,
|
|
|
|
|
name: "雨水管道疏挖"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 2,
|
|
|
|
|
name: "雨水管道疏通"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 3,
|
|
|
|
|
name: "汛期助排"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 4,
|
|
|
|
|
name: "污泥外运"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 5,
|
|
|
|
|
name: "出水口排查"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 6,
|
|
|
|
|
name: "专项处理"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 7,
|
|
|
|
|
name: "维修"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
dataList: [],
|
|
|
|
|
thumb: "/static/img/location.png",
|
|
|
|
|
currentPage: 0,
|
|
|
|
|
@ -112,13 +150,18 @@
|
|
|
|
|
onShow: function() {
|
|
|
|
|
var that = this;
|
|
|
|
|
},
|
|
|
|
|
onLoad(options) {
|
|
|
|
|
onLoad(options) {
|
|
|
|
|
this.serachEntity.date = this.$moment().format("YYYY-MM");
|
|
|
|
|
this.loadPage(1);
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
toInspection(road_id, road_name) {
|
|
|
|
|
let url = "/raininspection/rainmaintain/rainmaintain?roadid=" + road_id + "&roadname=" + road_name
|
|
|
|
|
toReturnType(type) {
|
|
|
|
|
return this.rainTypes.filter(m => {
|
|
|
|
|
return m.id == type
|
|
|
|
|
})[0].name
|
|
|
|
|
},
|
|
|
|
|
toMaintain(road_id, road_name) {
|
|
|
|
|
let url = "/rainmaintain/rainmaintain/rainmaintain?roadid=" + road_id + "&roadname=" + road_name
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: url
|
|
|
|
|
})
|
|
|
|
|
|