wkw 6 months ago
parent
commit
8b37c2158b
2 changed files with 16 additions and 22 deletions
  1. 8 11
      src/components/messageCom/messageCom.vue
  2. 8 11
      src/views/message/index.vue

+ 8 - 11
src/components/messageCom/messageCom.vue

@@ -1113,25 +1113,22 @@
 			},
 			// 赋值地址和联系人数据
 			openDialog() {
-				const addressInfo = localStorage.getItem('companyAddressInfo')
-					? JSON.parse(localStorage.getItem('companyAddressInfo'))
-					: {};
 				this.miamshi = {
 					hrPhone: this.$store.state.phone || '',
 					hrName: this.$store.state.nickName || '',
-					position: '',
+					position: this.jobList[0].ruleClassifyId,
 					interviewDateTime: '',
 					companyId: localStorage.getItem('companyId') || '',
 					remarks: '',
 					userId: this.byUserId || '',
 					postPushId: this.postPushId || '',
-					province: addressInfo.province || '',
-					city: addressInfo.city || '',
-					county: addressInfo.county || '',
-					lng: addressInfo.lng || '',
-					lat: addressInfo.lat || '',
-					address: addressInfo.address || '',
-					detailedAddress: addressInfo.detailedAddress || '',
+					province: this.jobList[0].province || '',
+					city: this.jobList[0].city || '',
+					county: this.jobList[0].county || '',
+					lng: this.jobList[0].lng || '',
+					lat: this.jobList[0].lat || '',
+					address: this.jobList[0]?.address.split(' ')[0] || '',
+					detailedAddress: this.jobList[0]?.address.split(' ')[1] || '',
 				}
 				this.dialogms = true;
 			},

+ 8 - 11
src/views/message/index.vue

@@ -1533,25 +1533,22 @@
 			},
 			// 赋值地址和联系人数据
 			openDialog() {
-				const addressInfo = localStorage.getItem('companyAddressInfo')
-					? JSON.parse(localStorage.getItem('companyAddressInfo'))
-					: {};
 				this.miamshi = {
 					hrPhone: this.$store.state.phone || '',
 					hrName: this.$store.state.nickName || '',
-					position: '',
+					position: this.jobList[0].ruleClassifyId,
 					interviewDateTime: '',
 					companyId: localStorage.getItem('companyId') || '',
 					remarks: '',
 					userId: this.byUserId || '',
 					postPushId: this.postPushId || '',
-					province: addressInfo.province || '',
-					city: addressInfo.city || '',
-					county: addressInfo.county || '',
-					lng: addressInfo.lng || '',
-					lat: addressInfo.lat || '',
-					address: addressInfo.address || '',
-					detailedAddress: addressInfo.detailedAddress || '',
+					province: this.jobList[0].province || '',
+					city: this.jobList[0].city || '',
+					county: this.jobList[0].county || '',
+					lng: this.jobList[0].lng || '',
+					lat: this.jobList[0].lat || '',
+					address: this.jobList[0]?.address.split(' ')[0] || '',
+					detailedAddress: this.jobList[0]?.address.split(' ')[1] || '',
 				}
 				this.dialogms = true;
 			},