Browse Source

同意面试邀请默认填充手机号

Xiao_123 6 months ago
parent
commit
e386a94c3f

+ 3 - 3
src/views/recruit/enterprise/interviewManagement/components/item.vue

@@ -4,7 +4,7 @@
       <div class="mr-5 font-size-16" style="color: orange; width: 96px;">{{ timesTampChange(item.time, 'Y-M-D h:m') }}</div>
       <v-avatar class="mr-2" size=40 :image="getUserAvatar(item?.person?.avatar, item?.person?.sex)"></v-avatar>
       <div class="d-flex flex-column mr-3" style="width: 110px;">
-        <span class="ellipsis mb-1">{{ item?.person?.name }}</span>
+        <span class="ellipsis mb-1">{{ item?.person?.name || item?.phone }}</span>
         <span class="ellipsis" style="color: var(--color-999);">{{ item?.job?.name }}</span>
       </div>
     </div>
@@ -30,10 +30,10 @@
       </div>
       <!-- 面试状态: '待接受'/'已取消' -->
       <div :style="{ 'color': colorData[item.status] }">
-        <v-icon v-if="statusList.find(e => e.value === item.status)?.label" size="30">mdi mdi-circle-small</v-icon>
+        <v-icon v-if="statusList.find(e => e.value === item.status)?.label && item?.job?.status !== '1'" size="30">mdi mdi-circle-small</v-icon>
         <span>
-          {{ statusList.find(e => e.value === item.status)?.label }}
           <span v-if="item?.job?.status === '1'" style="font-size: 13px; color: grey;">[职位已关闭]</span>
+          <span v-else>{{ statusList.find(e => e.value === item.status)?.label }}</span>
         </span>
       </div>
       <div>

+ 3 - 3
src/views/recruit/personal/PersonalCenter/jobFeedback/components/interview/item.vue

@@ -95,9 +95,9 @@ const handleAgree = (val) => {
   const query = {
     id: val.id
   }
-  const baseInfo = localStorage.getItem('baseInfo')
-  if (baseInfo) {
-    const { phone } = JSON.parse(baseInfo)
+  const userInfo = localStorage.getItem('userInfo')
+  if (userInfo) {
+    const { phone } = JSON.parse(userInfo)
     query.phone = phone
   }