|
@@ -93,30 +93,30 @@
|
|
|
} else {
|
|
} else {
|
|
|
isSelf = true
|
|
isSelf = true
|
|
|
}
|
|
}
|
|
|
- // if (!isSelf) { // 是企业
|
|
|
|
|
- // this.$http.get('/basic/enterprise/' + tempEnterprise.uu + '/info')
|
|
|
|
|
- // .then(response => {
|
|
|
|
|
- // this.enterpriseData = response.data
|
|
|
|
|
- // this.section = 1
|
|
|
|
|
- // this.checkData.checked = false
|
|
|
|
|
- // })
|
|
|
|
|
- // } else { // 是个人
|
|
|
|
|
- // this.$http.get('/basic/user/userCacheEnterprise')
|
|
|
|
|
- // .then(response => {
|
|
|
|
|
- // if (!response.data) {
|
|
|
|
|
- // this.section = 1
|
|
|
|
|
- // this.checkData.checked = false
|
|
|
|
|
- // } else if (!response.data.enIsRead) {
|
|
|
|
|
- // this.section = 2
|
|
|
|
|
- // this.checkData.checked = false
|
|
|
|
|
- // this.enterpriseData = response.data
|
|
|
|
|
- // } else if (response.data.enIsRead) {
|
|
|
|
|
- // this.section = 3
|
|
|
|
|
- // this.checkData.checked = true
|
|
|
|
|
- // this.enterpriseData = response.data
|
|
|
|
|
- // }
|
|
|
|
|
- // })
|
|
|
|
|
- // }
|
|
|
|
|
|
|
+ if (!isSelf) { // 是企业
|
|
|
|
|
+ this.$http.get('/basic/enterprise/' + tempEnterprise.uu + '/info')
|
|
|
|
|
+ .then(response => {
|
|
|
|
|
+ this.enterpriseData = response.data
|
|
|
|
|
+ this.section = 1
|
|
|
|
|
+ this.checkData.checked = false
|
|
|
|
|
+ })
|
|
|
|
|
+ } else { // 是个人
|
|
|
|
|
+ this.$http.get('/basic/user/userCacheEnterprise')
|
|
|
|
|
+ .then(response => {
|
|
|
|
|
+ if (!response.data) {
|
|
|
|
|
+ this.section = 1
|
|
|
|
|
+ this.checkData.checked = false
|
|
|
|
|
+ } else if (!response.data.enIsRead) {
|
|
|
|
|
+ this.section = 2
|
|
|
|
|
+ this.checkData.checked = false
|
|
|
|
|
+ this.enterpriseData = response.data
|
|
|
|
|
+ } else if (response.data.enIsRead) {
|
|
|
|
|
+ this.section = 3
|
|
|
|
|
+ this.checkData.checked = true
|
|
|
|
|
+ this.enterpriseData = response.data
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
this.loginData.isSelf = isSelf
|
|
this.loginData.isSelf = isSelf
|
|
|
this.loginData.section = this.section
|
|
this.loginData.section = this.section
|
|
|
this.loginData.enterprise = tempEnterprise
|
|
this.loginData.enterprise = tempEnterprise
|