|
@@ -111,7 +111,9 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
getmemberinfo() {
|
|
|
- if(this.$route.query.from=='company'){//如果是企业端则读取退役军人信息
|
|
|
+ let form = sessionStorage.getItem('from');
|
|
|
+ if(form=='company'){//如果是企业端则读取退役军人信息
|
|
|
+ // console.log('form company',form);
|
|
|
memberinfo({ veteMemberId: this.searchInput }).then((res) => {
|
|
|
if (res.data.code == "200") {
|
|
|
this.veteMemberName = res.data?.data?.data?.veteName;
|
|
@@ -122,7 +124,8 @@ export default {
|
|
|
// console.log("this.veteMemberName", this.veteMemberName);
|
|
|
// console.log("getmemberinfo", res.data.data.data.veteName);
|
|
|
});
|
|
|
- }else if(this.$route.query.from=='veterans'){//如果是企业端则读取退役军人信息
|
|
|
+ }else if(form=='veterans'){//如果是企业端则读取退役军人信息
|
|
|
+ // console.log('form veterans',form);
|
|
|
companyInfo({ companyId: this.searchInput }).then((res) => {
|
|
|
if (res.data.code == "200") {
|
|
|
this.veteMemberName = res.data?.data?.data?.companyName;
|