|
@@ -313,7 +313,9 @@
|
|
import {
|
|
import {
|
|
defaultValue,
|
|
defaultValue,
|
|
deleteAuthInfo,
|
|
deleteAuthInfo,
|
|
- getCurrentAuthenInfo,
|
|
|
|
|
|
+ getCurrentAgencyAuthInfo,
|
|
|
|
+ getCurrentEnterpriseAuthInfo,
|
|
|
|
+ getCurrentIndividualAuthenInfo,
|
|
getCurrentUser,
|
|
getCurrentUser,
|
|
getRolesPermissions,
|
|
getRolesPermissions,
|
|
logout,
|
|
logout,
|
|
@@ -427,13 +429,44 @@ export default {
|
|
this.fullScreenLoading = false
|
|
this.fullScreenLoading = false
|
|
},
|
|
},
|
|
handleClickAuthReject () {
|
|
handleClickAuthReject () {
|
|
- this.getAuthInfo(this.showAuthRejectDialog)
|
|
|
|
|
|
+ if (this.user.userVO.authType == 'agency'){
|
|
|
|
+ this.$router.push({
|
|
|
|
+ name:'AgencyAuthentication'
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ if (this.user.userVO.authType == 'enterprise'){
|
|
|
|
+ this.$router.push({
|
|
|
|
+ name:'IndividualAuthentication'
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ if (this.user.userVO.authType == 'personal'){
|
|
|
|
+ this.$router.push({
|
|
|
|
+ name:'IndividualAuthentication'
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ //this.getAuthInfo()
|
|
},
|
|
},
|
|
handleClickAuthPass () {
|
|
handleClickAuthPass () {
|
|
- this.getAuthInfo(this.showAuthPassDialog)
|
|
|
|
|
|
+ if (this.user.userVO.authType == 'agency'){
|
|
|
|
+ this.$router.push({
|
|
|
|
+ name:'AgencyAuthentication'
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ if (this.user.userVO.authType == 'enterprise'){
|
|
|
|
+ this.$router.push({
|
|
|
|
+ name:'IndividualAuthentication'
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ if (this.user.userVO.authType == 'personal'){
|
|
|
|
+ this.$router.push({
|
|
|
|
+ name:'IndividualAuthentication'
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ //this.getAuthInfo()
|
|
},
|
|
},
|
|
handleClickAuthChecking () {
|
|
handleClickAuthChecking () {
|
|
- this.getAuthInfo(this.showAuthCheckingDialog)
|
|
|
|
|
|
+ this.getAuthInfo()
|
|
},
|
|
},
|
|
showAuthRejectDialog () {
|
|
showAuthRejectDialog () {
|
|
this.isShowAuthRejectDialog = true
|
|
this.isShowAuthRejectDialog = true
|
|
@@ -466,23 +499,41 @@ export default {
|
|
notify('error', '删除认证信息失败:' + error.data)
|
|
notify('error', '删除认证信息失败:' + error.data)
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- getAuthInfo (successMethod) {
|
|
|
|
|
|
+ getAuthInfo () {
|
|
this.showLoading()
|
|
this.showLoading()
|
|
- getCurrentAuthenInfo().then((res) => {
|
|
|
|
- console.log(res)
|
|
|
|
- this.authInfo = res
|
|
|
|
- this.hideLoading()
|
|
|
|
- successMethod()
|
|
|
|
- }).catch((error) => {
|
|
|
|
- this.hideLoading()
|
|
|
|
- notify('error', '加载用户认证信息失败:' + error.data)
|
|
|
|
- })
|
|
|
|
|
|
+ if (this.user.userVO.authType == 'agency') {
|
|
|
|
+ getCurrentAgencyAuthInfo(this.user.userVO.id, this.getCurrentAgencyAuthInfoSuccess, this.getCurrentAgencyAuthInfoFail)
|
|
|
|
+ }
|
|
|
|
+ if (this.user.userVO.authType == 'personal') {
|
|
|
|
+ getCurrentIndividualAuthenInfo(this.user.userVO.id, this.getCurrentIndividualAuthenInfoSuccess, this.getCurrentIndividualAuthenInfoFail)
|
|
|
|
+ }
|
|
|
|
+ if (this.user.userVO.authType == 'enterprise') {
|
|
|
|
+ getCurrentEnterpriseAuthInfo(this.user.userVO.id, this.getCurrentEnterpriseAuthInfoSuccess, this.getCurrentEnterpriseAuthInfoFail)
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ getCurrentAgencyAuthInfoSuccess () {
|
|
|
|
+ this.hideLoading()
|
|
|
|
+ },
|
|
|
|
+ getCurrentAgencyAuthInfoFail () {
|
|
|
|
+ this.hideLoading()
|
|
|
|
+ },
|
|
|
|
+ getCurrentIndividualAuthenInfoSuccess () {
|
|
|
|
+ this.hideLoading()
|
|
|
|
+ },
|
|
|
|
+ getCurrentIndividualAuthenInfoFail () {
|
|
|
|
+ this.hideLoading()
|
|
|
|
+ },
|
|
|
|
+ getCurrentEnterpriseAuthInfoSuccess () {
|
|
|
|
+ this.hideLoading()
|
|
|
|
+ },
|
|
|
|
+ getCurrentEnterpriseAuthInfoFail () {
|
|
|
|
+ this.hideLoading()
|
|
},
|
|
},
|
|
handleUpdateAuthInfo () {
|
|
handleUpdateAuthInfo () {
|
|
this.hideAuthPassDialog()
|
|
this.hideAuthPassDialog()
|
|
this.hideAuthRejectDialog()
|
|
this.hideAuthRejectDialog()
|
|
this.hideAuthCheckingDialog()
|
|
this.hideAuthCheckingDialog()
|
|
- if (this.authInfo.type == '个人') {
|
|
|
|
|
|
+ if (this.user.userVO.authType == 'personal') {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
name: 'IndividualAuthentication',
|
|
name: 'IndividualAuthentication',
|
|
params: {
|
|
params: {
|
|
@@ -490,7 +541,7 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
- if (this.authInfo.type == '企业') {
|
|
|
|
|
|
+ if (this.authInfo.type == 'enterprise') {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
name: 'EnterpriseAuthentication',
|
|
name: 'EnterpriseAuthentication',
|
|
params: {
|
|
params: {
|
|
@@ -498,7 +549,7 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
- if (this.authInfo.type == '机构') {
|
|
|
|
|
|
+ if (this.authInfo.type == 'agency') {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
name: 'AgencyAuthentication',
|
|
name: 'AgencyAuthentication',
|
|
params: {
|
|
params: {
|