1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- <template>
- <div class="position-box">
- <h4 class="mb-3">{{ $t('position.similarPosition') }}</h4>
- <div v-for="(item, index) in props.list" :key="index" class="mb-2 cursor-pointer" @click="handlePosition(item)">
- <p class="recruit-name">{{ item.name }}</p>
- <span class="recruit-salary">{{ item.payFrom ? item.payFrom + '-' : '' }}{{ item.payTo }}{{ item.payName ? '/' + item.payName :'' }}</span>
- <div :class="['enterprise', {'border-bottom-dashed': index !== list.length - 1}]">
- <v-img class="float-left" :src="item.logoUrl || 'https://minio.citupro.com/dev/menduner/company-avatar.png'" :width="30" :height="30"></v-img>
- <span class="float-left enterprise-name">{{ item.anotherName }}</span>
- <span class="float-right enterprise-address">{{ item.areaName }}</span>
- </div>
- </div>
- <!-- <div class="text-center more-btn">
- <v-btn color="primary" variant="outlined" class="buttons" :to="`/recruit/personal/company/details/${props.info.enterpriseId}?key=recruitmentPositions`">{{ $t('position.allBtn') }}</v-btn>
- </div> -->
- </div>
- </template>
- <script setup name="similarPositions">
- const props = defineProps({
- list: {
- type: Array,
- default: () => []
- },
- info: {
- type: Object,
- default: () => {}
- }
- })
- const handlePosition = (item) => {
- window.open(`/recruit/personal/position/details/${item.id}`)
- }
- </script>
- <style lang="scss" scoped>
- .position-box {
- // position: relative;
- // height: 430px;
- background-color: var(--color-f3);
- border-radius: 8px;
- padding: 20px 15px;
- }
- .recruit-name {
- width: 95px;
- font-weight: 500;
- display: inline-block;
- max-width: 95px;
- vertical-align: middle;
- white-space: nowrap;
- text-overflow: ellipsis;
- overflow: hidden;
- &:hover {
- color: var(--v-primary-base);
- }
- }
- .recruit-salary {
- float: right;
- color: var(--v-error-base);
- font-weight: 500;
- height: auto;
- vertical-align: sub;
- }
- .enterprise {
- height: 40px;
- line-height: 30px;
- margin-top: 8px;
- }
- .enterprise-name {
- width: 120px;
- display: inline-block;
- max-width: 120px;
- vertical-align: middle;
- white-space: nowrap;
- text-overflow: ellipsis;
- overflow: hidden;
- color: var(--color-666);
- font-size: 13px;
- margin-left: 5px;
- &:hover {
- color: var(--v-primary-base);
- }
- }
- .enterprise-address {
- color: #555;
- font-size: 13px;
- }
- .more-btn {
- // position: absolute;
- // bottom: 18px;
- // margin-top: 20px;
- }
- </style>
|