Browse Source

信息限制

xu 7 months ago
parent
commit
5c64129cee
1 changed files with 4 additions and 1 deletions
  1. 4 1
      web/src/view/projectManage/projectDetails/projectDetails.vue

+ 4 - 1
web/src/view/projectManage/projectDetails/projectDetails.vue

@@ -15,6 +15,7 @@
                 :offset="14"
                 :offset="14"
               >
               >
                 <el-button
                 <el-button
+                  v-show="ifUpdate"
                   type="primary"
                   type="primary"
                   :icon="Edit"
                   :icon="Edit"
                   @click="basicEditShow"
                   @click="basicEditShow"
@@ -771,13 +772,15 @@ const projectMessage = (code) => {
     }
     }
   })
   })
 }
 }
-// 电话加密
+// 加密
+const ifUpdate = ref(false)
 const encryptPhone = (phone) => {
 const encryptPhone = (phone) => {
   if (!phone) {
   if (!phone) {
     return ''
     return ''
   }
   }
   console.log(information.secondPrincipal === currentUserId.value, phone)
   console.log(information.secondPrincipal === currentUserId.value, phone)
   if (information.secondPrincipal === currentUserId.value || currentUserId.value === 6 || currentUserId.value === 7) {
   if (information.secondPrincipal === currentUserId.value || currentUserId.value === 6 || currentUserId.value === 7) {
+    ifUpdate.value = true
     return phone
     return phone
   }
   }
   return phone.substring(0, 3) + '********'
   return phone.substring(0, 3) + '********'