|
@@ -39,25 +39,20 @@
|
|
|
<span class="mr-6">{{ $t('resume.educationExp') }}</span>
|
|
|
<educationExp style="flex: 1;" :data="cvData.eduList"></educationExp>
|
|
|
</div>
|
|
|
- <!-- 附件简历 -->
|
|
|
- <!-- <div class="d-flex mt-8">
|
|
|
- <span class="mr-6">{{ $t('resume.attachmentResume') }}</span>
|
|
|
- <attachmentResume style="flex: 1;"></attachmentResume>
|
|
|
- </div> -->
|
|
|
</div>
|
|
|
- <!-- <div class="operate pa-3">
|
|
|
+ <div class="operate pa-3">
|
|
|
<v-list>
|
|
|
- <v-list-subheader class="title">简历助手</v-list-subheader>
|
|
|
+ <v-list-subheader class="title">操作</v-list-subheader>
|
|
|
<v-list-item
|
|
|
- v-for="(item, i) in operateItems" :key="'简历助手' + i"
|
|
|
+ v-for="(item, i) in operateItems" :key="'操作' + i"
|
|
|
color="primary"
|
|
|
:prepend-icon="item.icon"
|
|
|
:title="item.text"
|
|
|
- @click="{}"
|
|
|
+ @click="handleCommunicate(item)"
|
|
|
>
|
|
|
</v-list-item>
|
|
|
</v-list>
|
|
|
- </div> -->
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -73,17 +68,18 @@ import educationExp from './details/educationExp.vue'
|
|
|
// import attachmentResume from './details/attachmentResume.vue'
|
|
|
import { getPersonCvDetail } from '@/api/enterprise'
|
|
|
import { ref } from 'vue'
|
|
|
+import { talkToUser, defaultTextEnt } from '@/hooks/web/useIM'
|
|
|
import { useRouter, useRoute } from 'vue-router'
|
|
|
|
|
|
const route = useRoute()
|
|
|
const router = useRouter()
|
|
|
-// const operateItems = [
|
|
|
-// { text: '邀请面试', icon: 'mdi-account-check' },
|
|
|
-// { text: '不合适', icon: 'mdi-close-circle-outline' },
|
|
|
-// { text: '发起对话', icon: 'mdi-chat-processing-outline' },
|
|
|
-// { text: '加入人才库', icon: 'mdi-tab-plus' },
|
|
|
-// { text: '操作记录', icon: 'mdi-clock-edit-outline' },
|
|
|
-// ]
|
|
|
+const operateItems = [
|
|
|
+ // { text: '邀请面试', icon: 'mdi-account-check' },
|
|
|
+ // { text: '不合适', icon: 'mdi-close-circle-outline' },
|
|
|
+ { text: '立即沟通', icon: 'mdi-chat-processing-outline' },
|
|
|
+ // { text: '加入人才库', icon: 'mdi-tab-plus' },
|
|
|
+ // { text: '操作记录', icon: 'mdi-clock-edit-outline' },
|
|
|
+]
|
|
|
|
|
|
// 获取人才详情
|
|
|
const cvData = ref({})
|
|
@@ -96,6 +92,16 @@ const getCvDetail = async () => {
|
|
|
}
|
|
|
getCvDetail()
|
|
|
|
|
|
+// 立即沟通
|
|
|
+const handleCommunicate = async (item) => {
|
|
|
+ if (item.text !== '立即沟通') return
|
|
|
+ const userId = cvData.value.person.userId
|
|
|
+ if (!userId) return
|
|
|
+ await talkToUser({userId, text: defaultTextEnt})
|
|
|
+ let url = `/recruit/enterprise/chatTools?id=${userId}`
|
|
|
+ router.push(url)
|
|
|
+}
|
|
|
+
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
|
.operate {
|