Prechádzať zdrojové kódy

fix:团队管理详情及保险公司搜索

刘恒 10 mesiacov pred
rodič
commit
910ef4385c

+ 2 - 2
pages/tools/insuranceClaims/insuranceClaims.vue

@@ -27,7 +27,7 @@
 					
 				</view>
 				<view class=" search-input d-flex a-center">
-					<u-input v-model="value" type="text" :border="true" @confirm="onConfirm"/>
+					<u-input v-model="value" type="text" :border="true" @confirm="onConfirm" placeholder="请输入保险公司名称"/>
 					
 				</view>
 				
@@ -312,7 +312,7 @@
 				let newAarr=[]
 					
 				arr.forEach((v,i)=>{
-					if(v.mobile.includes(e)){
+					if(v.name.includes(e)){
 						newAarr.push(v)
 					}
 				})

+ 2 - 1
pages/tools/team/team.vue

@@ -306,7 +306,8 @@
 					url: "/pages/tools/team/teamMember",
 					success: (res) => {
 						res.eventChannel.emit("acceptData", {
-							item: this[name][index]
+							item: this[name][index],
+							date:this.dateRange
 						})
 					}
 				}, "navigateTo", true)

+ 2 - 0
pages/tools/team/teamMember.vue

@@ -107,6 +107,7 @@
 				dateRange: [new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-01', new Date()
 					.getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + new Date().getDate()
 				],
+				
 			}
 		},
 		computed: {
@@ -129,6 +130,7 @@
 			// 监听acceptData事件,获取上一页面通过eventChannel传送到当前页面的数据
 			eventChannel.on('acceptData', async (data) => {
 				this.info = data.item;
+				this.dateRange=[...data.date]
 				this.getCompanyList()
 				let res = await this.$http.get('/app/customer/' + this.info.id);
 				if (res.code == '200') {