2025-03-28 15:19:42 +08:00
|
|
|
<template>
|
|
|
|
<view>{{ matchingText }}</view>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
2025-05-13 11:10:38 +08:00
|
|
|
// 匹配度
|
2025-03-28 15:19:42 +08:00
|
|
|
import { inject, computed } from 'vue';
|
|
|
|
const { job } = defineProps(['job']);
|
|
|
|
const { similarityJobs, throttle } = inject('globalFunction');
|
|
|
|
|
|
|
|
const matchingText = computed(() => {
|
|
|
|
if (!job) return '';
|
|
|
|
const matching = similarityJobs.calculationMatchingDegree(job);
|
|
|
|
return matching ? '匹配度 ' + matching.overallMatch : '';
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style></style>
|