1004749546@qq.com 4 سال پیش
والد
کامیت
29caa9c7bc
2فایلهای تغییر یافته به همراه6 افزوده شده و 5 حذف شده
  1. 4 3
      pages/index/addData.vue
  2. 2 2
      pages/index/index.vue

+ 4 - 3
pages/index/addData.vue

@@ -107,11 +107,12 @@
 						const a = res.data.gatherRubbishList.find(item=>item.rubbishType=='GATHER_BUILDING')
 						const a = res.data.gatherRubbishList.find(item=>item.rubbishType=='GATHER_BUILDING')
 						const b = res.data.gatherRubbishList.find(item=>item.rubbishType=='GATHER_OTHER')
 						const b = res.data.gatherRubbishList.find(item=>item.rubbishType=='GATHER_OTHER')
 						const c = res.data.gatherRubbishList.find(item=>item.rubbishType=='GATHER_KITCHEN')
 						const c = res.data.gatherRubbishList.find(item=>item.rubbishType=='GATHER_KITCHEN')
-						this.form.gatherNum_jianzhu= a ? a.gatherNum : '0'
-						this.form.gatherNum_chuyu= c ? c.gatherNum : '0'
-						this.form.gatherNum_other= b ? b.gatherNum : '0'
+						this.form.gatherNum_jianzhu= a ? a.gatherNum.toString() : '0'
+						this.form.gatherNum_chuyu= c ? c.gatherNum.toString() : '0'
+						this.form.gatherNum_other= b ? b.gatherNum.toString() : '0'
 						this.form.remarks=res.data.remarks
 						this.form.remarks=res.data.remarks
 						this.photograph=res.data.imageUrlList || []
 						this.photograph=res.data.imageUrlList || []
+						console.log(this.form,'this.form')
 					}
 					}
 				})
 				})
 			},
 			},

+ 2 - 2
pages/index/index.vue

@@ -4,8 +4,8 @@
 			<view @click="openSearch">
 			<view @click="openSearch">
 				<text v-if="searchForm.beginDate">{{searchForm.beginDate}}至{{searchForm.endDate}}</text>
 				<text v-if="searchForm.beginDate">{{searchForm.beginDate}}至{{searchForm.endDate}}</text>
 				<text v-else>全部</text>
 				<text v-else>全部</text>
-				<u-icon name="arrow-right" color="#999999" size="28"></u-icon>
-				<!-- <u-image v-if="hasLogin" @click="openScreen=true" class="filter-img" width="36rpx" height="36rpx" src="/static/filter.png"></u-image> -->
+				<!-- <u-icon name="arrow-right" color="#999999" size="28"></u-icon> -->
+				<u-image v-if="hasLogin" @click="openScreen=true" class="filter-img" width="36rpx" height="36rpx" src="/static/filter.png"></u-image>
 			</view>
 			</view>
 			<!-- 总计 -->
 			<!-- 总计 -->
 			<view class="header-cont">
 			<view class="header-cont">