mirror of
https://gitee.com/java110/PropertyApp.git
synced 2026-06-11 06:07:28 +08:00
optimize bug
This commit is contained in:
parent
c7be217389
commit
c5adc2b7f4
@ -63,10 +63,11 @@
|
|||||||
},
|
},
|
||||||
dateChange: function(e) {
|
dateChange: function(e) {
|
||||||
this.bindDate = e.detail.value;
|
this.bindDate = e.detail.value;
|
||||||
|
this._loadTodayInspectionReport();
|
||||||
},
|
},
|
||||||
gotoDetail:function(_inpection){
|
gotoDetail:function(_inpection){
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:'/pages/inspection/staffNoInspection?staffId='+_inpection.staffId+"&staffName="+_inpection.staffName
|
url:'/pages/inspection/staffNoInspection?staffId='+_inpection.staffId+"&staffName="+_inpection.staffName+"&queryTime="+this.bindDate
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,18 +1,18 @@
|
|||||||
<template>
|
<template>
|
||||||
<view>
|
<view>
|
||||||
<view class="block__title">{{staffName}}巡检情况</view>
|
<view class="block__title">{{staffName}}巡检情况</view>
|
||||||
<view class="cu-form-group arrow">
|
<!-- <view class="cu-form-group arrow">
|
||||||
<view class="title">查询日期</view>
|
<view class="title">查询日期</view>
|
||||||
<picker mode="date" :value="bindDate" start="2020-09-01" end="2050-09-01" @change="dateChange">
|
<picker mode="date" :value="bindDate" start="2020-09-01" end="2050-09-01" @change="dateChange">
|
||||||
<view class="picker">
|
<view class="picker">
|
||||||
{{bindDate}}
|
{{bindDate}}
|
||||||
</view>
|
</view>
|
||||||
</picker>
|
</picker>
|
||||||
</view>
|
</view> -->
|
||||||
<view class="cu-list menu margin-top" v-if="inpections && inpections.length > 0" v-for="(inspection, idx) in inpections" :key="idx"
|
<view class="cu-list menu margin-top" v-if="inpections && inpections.length > 0" v-for="(inspection, idx) in inpections" :key="idx"
|
||||||
:data-item="inspection"
|
:data-item="inspection"
|
||||||
@click="gotoDetail(inspection)">
|
>
|
||||||
<view class="cu-item arrow">
|
<view class="cu-item ">
|
||||||
<view class="content padding-tb-sm">
|
<view class="content padding-tb-sm">
|
||||||
<view>
|
<view>
|
||||||
<view class="text-cut" style="width:85%;">{{inspection.inspectionName}}({{inspection.stateName}})</view>
|
<view class="text-cut" style="width:85%;">{{inspection.inspectionName}}({{inspection.stateName}})</view>
|
||||||
@ -50,7 +50,7 @@
|
|||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
this.staffId = options.staffId;
|
this.staffId = options.staffId;
|
||||||
this.staffName = options.staffName;
|
this.staffName = options.staffName;
|
||||||
this.bindDate = formatDate(new Date());
|
this.bindDate = options.queryTime;
|
||||||
this._loadTodayInspectionReportDetail();
|
this._loadTodayInspectionReportDetail();
|
||||||
|
|
||||||
},
|
},
|
||||||
@ -61,7 +61,7 @@
|
|||||||
listInspectionTaskDetails(this,{
|
listInspectionTaskDetails(this,{
|
||||||
communityId: getCurrentCommunity().communityId,
|
communityId: getCurrentCommunity().communityId,
|
||||||
planUserId:this.staffId,
|
planUserId:this.staffId,
|
||||||
state:'20200405',
|
//state:'20200405',
|
||||||
queryTime:this.bindDate,
|
queryTime:this.bindDate,
|
||||||
page:1,
|
page:1,
|
||||||
row:100
|
row:100
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user