Browse Source

用户岗位优化显示

gangyj 2 years ago
parent
commit
02716363a9
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/views/system/user.vue

+ 5 - 1
src/views/system/user.vue

@@ -1243,7 +1243,11 @@ export default {
       if (res.code === 200) {
         res.data.forEach(val => {
           val.contractName = val.dataInfo[0].id
-          val.roleName = val.dataInfo[0].roleType + '|' + val.dataInfo[0].roleName
+          if(val.dataInfo[0].roleType){
+            val.roleName = val.dataInfo[0].roleType + '|' + val.dataInfo[0].roleName
+          }else{
+            val.roleName = val.dataInfo[0].roleName
+          }
         })
         this.fromss.projectAndUserList = res.data
       }