Jelajahi Sumber

个人沟通展示企业名称

Xiao_123 9 bulan lalu
induk
melakukan
ebabfd0c68

+ 7 - 7
src/views/recruit/components/message/components/chatting.vue

@@ -17,8 +17,8 @@
           <span class="name">{{ info.name }}</span>
           <template v-if="info.enterpriseId">
             <span>{{ info.postNameCn }}</span>
-            <span v-if="info.postNameCn && info.enterpriseName" class="septal-line"></span>
-            <span>{{ info.enterpriseName }}</span>
+            <span v-if="info.postNameCn && info.enterpriseAnotherName" class="septal-line"></span>
+            <span>{{ info.enterpriseAnotherName }}</span>
           </template>
         </p>
       </div>
@@ -136,17 +136,17 @@
             <div v-else-if="val.payload.type === 105">
               <v-chip class="ma-2" label color="primary" v-if="val.from_uid === IM.uid">
                 <v-icon icon="mdi-check" start></v-icon>
-                {{ val.payload.content.type === 1 ? '附件简历已发送' : '简历请求已发送' }}
+                {{ val.payload.content?.type === 1 ? '附件简历已发送' : '简历请求已发送' }}
               </v-chip>
               <v-card v-else width="300" class="pa-3 ma-2" color="teal" variant="tonal" :elevation="3">
                 <v-card-text class="d-flex">
-                  <p v-if="val.payload.content.type === 1">{{ val.payload.content.query.title || t('resume.attachmentResume') }}</p>
-                  <p v-if="val.payload.content.type === 2">{{ t('resume.requestResume') }}</p>
+                  <p v-if="val.payload.content?.type === 1">{{ val.payload.content?.query?.title || t('resume.attachmentResume') }}</p>
+                  <p v-if="val.payload.content?.type === 2">{{ t('resume.requestResume') }}</p>
                 </v-card-text>
                 <v-card-actions class="justify-center">
                   <!-- <v-btn variant="tonal" flat size="small" color="error" @click="handleRejectReceive(val.payload)">拒绝</v-btn> -->
-                  <v-btn v-if="val.payload.content.type === 1" block  variant="tonal" flat size="small" color="success" @click="handlePreview(val.payload)">点击预览附件简历</v-btn>
-                  <v-btn v-if="val.payload.content.type === 2" block  variant="tonal" flat size="small" color="success" @click="handleSendResume(val.payload)">点击发送附件简历</v-btn>
+                  <v-btn v-if="val.payload.content?.type === 1" block  variant="tonal" flat size="small" color="success" @click="handlePreview(val.payload)">点击预览附件简历</v-btn>
+                  <v-btn v-if="val.payload.content?.type === 2" block  variant="tonal" flat size="small" color="success" @click="handleSendResume(val.payload)">点击发送附件简历</v-btn>
                 </v-card-actions>
               </v-card>
             </div>

+ 22 - 0
src/views/recruit/components/message/index.vue

@@ -42,6 +42,17 @@
               :title="val.userInfoVo ? (val.userInfoVo.userInfoResp.name ? val.userInfoVo.userInfoResp.name : '游客') : '系统消息'"
               :subtitle="timesTampChange(+val.timestamp.padEnd(13, '0'))"
             >
+              <template v-slot:title="{ title }">
+                <div v-if="!isEnterprise" class="mt-2 d-flex align-center">
+                  {{ title }}
+                  <div class="ml-3 color-666 font-size-14 enterprise-name ellipsis" :style="{'color': val.channel.channelID === info?.channel?.channelID ? '#00897B' : '#666'}">
+                    {{ val.userInfoVo?.userInfoResp?.enterpriseAnotherName }}
+                    <span class="line" v-if="val.userInfoVo?.userInfoResp?.postNameCn && val.userInfoVo?.userInfoResp?.enterpriseAnotherName"></span>
+                    {{ val.userInfoVo?.userInfoResp?.postNameCn }}
+                  </div>
+                </div>
+                <div v-else class="mt-2">{{ title }}</div>
+              </template>
               <template v-slot:subtitle="{ subtitle }">
                 <div class="mt-2">{{ subtitle }}</div>
               </template>
@@ -561,4 +572,15 @@ const handleRefuse = (val) => {
     }
   }
 }
+.enterprise-name {
+  max-width: 150px;
+  .line {
+    display: inline-block;
+    width: 1px;
+    height: 12px;
+    vertical-align: middle;
+    background-color: #e0e0e0;
+    margin: 0 3px;
+  }
+}
 </style>