Parcourir la source

当用户同时认证为机构和个人时,优先显示个人信息

sunjh il y a 5 ans
Parent
commit
a6b715873a
1 fichiers modifiés avec 4 ajouts et 8 suppressions
  1. 4 8
      src/components/commons/Header.vue

+ 4 - 8
src/components/commons/Header.vue

@@ -104,7 +104,7 @@
                   </el-link>
                 </router-link>
               </el-dropdown-item>
-              <el-dropdown-item v-if="user.authStatus.text == '审核通过' && user.roleList.indexOf('generalUser')===-1 && user.roleList.indexOf('evaluationAgency')===-1">
+              <el-dropdown-item v-if="user.authStatus.text == '审核通过' &&  !this.user.personalAuthVO && this.user.agencyVO">
                 <router-link :to="{ name: 'Agency',params:{userId:user.userVO.id}}">
                   <el-link icon="el-icon-edit" :underline="false">
                     修改机构信息
@@ -475,22 +475,18 @@ export default {
       //this.getAuthInfo()
     },
     handleClickAuthPass () {
-      const generalUser = 'generalUser'
-      const evaluationAgency = 'evaluationAgency'
-      const enterpriseUser = 'enterpriseUser'
-      const roleList = this.user.roleList;
-      if (roleList.indexOf(generalUser) !== -1) {
+      if (this.user.personalAuthVO) {
         this.$router.push({
           name: 'IndividualAuthentication',
           params: {userId: this.user.userVO.id}
         })
-      }else if (roleList.indexOf(evaluationAgency) !== -1) {
+      }else if (this.user.agencyVO) {
         this.$router.push({
           name: 'AgencyAuthentication',
           params: {userId: this.user.userVO.id}
         })
       }
-      else if (roleList.indexOf(enterpriseUser) !== -1) {
+      else if (this.user.enterpriseAuthVO) {
         this.$router.push({
           name: 'EnterpriseAuthentication',
           params: {userId: this.user.userVO.id}