Compare commits
6 Commits
93f5622894
...
7f4a3b4b67
| Author | SHA1 | Date |
|---|---|---|
|
|
7f4a3b4b67 | |
|
|
1385285a6b | |
|
|
97914d8ff2 | |
|
|
0fc9ad7971 | |
|
|
bb896f8922 | |
|
|
26c910f804 |
|
|
@ -54,7 +54,21 @@
|
|||
"Bash(\"/c/Program Files/PostgreSQL/16/bin/psql.exe\" -U postgres -c \"SELECT version\\(\\);\" 2>&1)",
|
||||
"Bash(PGPASSWORD=zcDsj@2024 \"/c/Program Files/PostgreSQL/16/bin/psql.exe\" -U postgres -c \"SELECT version\\(\\);\" 2>&1)",
|
||||
"Bash(PGPASSWORD=zcDsj@2024 \"/c/Program Files/PostgreSQL/16/bin/psql.exe\" -U postgres -c \"CREATE DATABASE offer_db;\" 2>&1)",
|
||||
"Bash(/c/software/python3_10/python manage.py migrate)"
|
||||
"Bash(/c/software/python3_10/python manage.py migrate)",
|
||||
"Bash(python manage.py shell -c \"from django.contrib.auth import get_user_model; User = get_user_model\\(\\); u = User.objects.filter\\(role=''superadmin''\\).first\\(\\); print\\(u.username if u else ''No superadmin found''\\)\")",
|
||||
"Bash(python manage.py shell -c \":*)",
|
||||
"Bash(python manage.py makemigrations jobs)",
|
||||
"Bash(python manage.py migrate jobs)",
|
||||
"Bash(source .venv/Scripts/activate)",
|
||||
"Bash(python manage.py shell -c \"from apps.jobs.models import Job; count = Job.objects.count\\(\\); Job.objects.all\\(\\).delete\\(\\); print\\(f''已删除 {count} 条岗位记录''\\)\")",
|
||||
"Bash(python -c \":*)",
|
||||
"Bash(python -c \"import sys; sys.stdout.buffer.write\\(sys.stdin.buffer.read\\(\\)\\)\")",
|
||||
"WebFetch(domain:www.iguopin.com)",
|
||||
"mcp__chrome-devtools__navigate_page",
|
||||
"mcp__chrome-devtools__take_snapshot",
|
||||
"mcp__chrome-devtools__click",
|
||||
"Bash(python import_jobs.py)",
|
||||
"Bash(claude plugin:*)"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -45,12 +45,17 @@ class UserSerializer(serializers.ModelSerializer):
|
|||
|
||||
class AdminUserSerializer(serializers.ModelSerializer):
|
||||
"""超管用于创建/管理公司管理员账号"""
|
||||
password = serializers.CharField(write_only=True, min_length=6)
|
||||
password = serializers.CharField(write_only=True, min_length=6, required=False)
|
||||
|
||||
class Meta:
|
||||
model = User
|
||||
fields = ['id', 'username', 'email', 'phone', 'role', 'organization', 'password', 'is_active']
|
||||
|
||||
def validate(self, attrs):
|
||||
if not self.instance and not attrs.get('password'):
|
||||
raise serializers.ValidationError({'password': '创建用户时密码为必填项'})
|
||||
return attrs
|
||||
|
||||
def create(self, validated_data):
|
||||
password = validated_data.pop('password')
|
||||
user = User(**validated_data)
|
||||
|
|
@ -58,6 +63,15 @@ class AdminUserSerializer(serializers.ModelSerializer):
|
|||
user.save()
|
||||
return user
|
||||
|
||||
def update(self, instance, validated_data):
|
||||
password = validated_data.pop('password', None)
|
||||
for attr, value in validated_data.items():
|
||||
setattr(instance, attr, value)
|
||||
if password:
|
||||
instance.set_password(password)
|
||||
instance.save()
|
||||
return instance
|
||||
|
||||
|
||||
class SendCodeSerializer(serializers.Serializer):
|
||||
"""发送验证码 serializer"""
|
||||
|
|
|
|||
|
|
@ -7,7 +7,8 @@ class JobFilter(django_filters.FilterSet):
|
|||
category = django_filters.CharFilter(lookup_expr='exact')
|
||||
location = django_filters.CharFilter(lookup_expr='icontains')
|
||||
organization = django_filters.NumberFilter(field_name='organization__id')
|
||||
education = django_filters.BaseInFilter(field_name='education', lookup_expr='in')
|
||||
|
||||
class Meta:
|
||||
model = Job
|
||||
fields = ['title', 'category', 'location', 'organization']
|
||||
fields = ['title', 'category', 'location', 'organization', 'education']
|
||||
|
|
|
|||
|
|
@ -0,0 +1,18 @@
|
|||
# Generated by Django 4.2.20 on 2026-03-27 05:39
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('jobs', '0002_jobfavorite'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='job',
|
||||
name='education',
|
||||
field=models.CharField(choices=[('博士', '博士'), ('硕士', '硕士'), ('本科及以下', '本科及以下')], default='本科及以下', max_length=20, verbose_name='学历要求'),
|
||||
),
|
||||
]
|
||||
|
|
@ -7,6 +7,11 @@ class Job(models.Model):
|
|||
('published', '已发布'),
|
||||
('closed', '已关闭'),
|
||||
]
|
||||
EDUCATION_CHOICES = [
|
||||
('博士', '博士'),
|
||||
('硕士', '硕士'),
|
||||
('本科及以下', '本科及以下'),
|
||||
]
|
||||
organization = models.ForeignKey(
|
||||
'organizations.Organization',
|
||||
on_delete=models.CASCADE,
|
||||
|
|
@ -16,6 +21,7 @@ class Job(models.Model):
|
|||
category = models.CharField(max_length=50, verbose_name='职位类别')
|
||||
location = models.CharField(max_length=100, verbose_name='工作地点')
|
||||
salary = models.CharField(max_length=50, verbose_name='薪资范围')
|
||||
education = models.CharField(max_length=20, choices=EDUCATION_CHOICES, default='本科及以下', verbose_name='学历要求')
|
||||
description = models.TextField(verbose_name='职位描述', blank=True)
|
||||
status = models.CharField(max_length=20, choices=STATUS_CHOICES, default='draft')
|
||||
created_at = models.DateTimeField(auto_now_add=True)
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ class JobListSerializer(serializers.ModelSerializer):
|
|||
|
||||
class Meta:
|
||||
model = Job
|
||||
fields = ['id', 'title', 'category', 'location', 'salary',
|
||||
fields = ['id', 'title', 'category', 'location', 'salary', 'education',
|
||||
'organization', 'organization_name', 'status', 'created_at']
|
||||
|
||||
|
||||
|
|
@ -18,12 +18,13 @@ class JobDetailSerializer(serializers.ModelSerializer):
|
|||
organization_id = serializers.PrimaryKeyRelatedField(
|
||||
source='organization',
|
||||
queryset=Organization.objects.all(),
|
||||
write_only=True
|
||||
write_only=True,
|
||||
required=False
|
||||
)
|
||||
|
||||
class Meta:
|
||||
model = Job
|
||||
fields = ['id', 'title', 'category', 'location', 'salary',
|
||||
fields = ['id', 'title', 'category', 'location', 'salary', 'education',
|
||||
'description', 'organization', 'organization_id', 'status', 'created_at']
|
||||
|
||||
|
||||
|
|
|
|||
Binary file not shown.
|
After Width: | Height: | Size: 880 KiB |
|
|
@ -1,9 +1,9 @@
|
|||
<template>
|
||||
<el-container style="height:100vh;overflow:hidden;flex-direction:column;">
|
||||
<el-header style="background:#001529;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #333;flex-shrink:0;">
|
||||
<div style="color:#fff;font-weight:bold;font-size:16px;">管理后台</div>
|
||||
<div class="admin-layout">
|
||||
<header class="admin-header">
|
||||
<div class="header-title">管理后台</div>
|
||||
<el-dropdown>
|
||||
<div style="color:#fff;cursor:pointer;display:flex;align-items:center;gap:8px;">
|
||||
<div class="header-user">
|
||||
<span>{{ auth.user?.email }}</span>
|
||||
<el-icon><ArrowDown /></el-icon>
|
||||
</div>
|
||||
|
|
@ -13,10 +13,9 @@
|
|||
</el-dropdown-menu>
|
||||
</template>
|
||||
</el-dropdown>
|
||||
</el-header>
|
||||
<el-container style="flex:1;overflow:hidden;">
|
||||
<el-aside width="200px" style="background:#001529;overflow-y:auto;height:100%;">
|
||||
<div style="padding:20px;color:#fff;font-weight:bold;font-size:16px;">菜单</div>
|
||||
</header>
|
||||
<div class="admin-body">
|
||||
<aside class="admin-aside">
|
||||
<el-menu router :default-active="$route.path" background-color="#001529" text-color="#fff" active-text-color="#409eff">
|
||||
<el-menu-item index="/admin/jobs">职位管理</el-menu-item>
|
||||
<el-menu-item index="/admin/applications">投递管理</el-menu-item>
|
||||
|
|
@ -24,11 +23,14 @@
|
|||
<el-menu-item index="/admin/organizations">组织架构</el-menu-item>
|
||||
<el-menu-item index="/admin/users">用户管理</el-menu-item>
|
||||
</template>
|
||||
<el-menu-item index="/home">返回首页</el-menu-item>
|
||||
</el-menu>
|
||||
</el-aside>
|
||||
<el-main style="overflow-y:auto;height:100%;"><router-view /></el-main>
|
||||
</el-container>
|
||||
</el-container>
|
||||
</aside>
|
||||
<main class="admin-main">
|
||||
<router-view />
|
||||
</main>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<script setup>
|
||||
import { useRouter } from 'vue-router'
|
||||
|
|
@ -45,3 +47,54 @@ function logout() {
|
|||
router.push({ name: 'Login' })
|
||||
}
|
||||
</script>
|
||||
<style scoped>
|
||||
.admin-layout {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
}
|
||||
.admin-header {
|
||||
height: 56px;
|
||||
flex-shrink: 0;
|
||||
background: #001529;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 0 20px;
|
||||
border-bottom: 1px solid #333;
|
||||
}
|
||||
.header-title {
|
||||
color: #fff;
|
||||
font-weight: bold;
|
||||
font-size: 16px;
|
||||
}
|
||||
.header-user {
|
||||
color: #fff;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
.admin-body {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
overflow: hidden;
|
||||
}
|
||||
.admin-aside {
|
||||
width: 200px;
|
||||
flex-shrink: 0;
|
||||
background: #001529;
|
||||
overflow-y: auto;
|
||||
}
|
||||
.admin-main {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: 20px;
|
||||
background: #f5f6fa;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -1,27 +1,24 @@
|
|||
<template>
|
||||
<div class="portal-wrap">
|
||||
<!-- 顶部公告条 -->
|
||||
<div class="top-bar">
|
||||
<div class="top-bar-inner">
|
||||
<span class="top-bar-left">欢迎访问集团人才招募平台</span>
|
||||
<div class="top-bar-right">
|
||||
<template v-if="auth.isLoggedIn">
|
||||
<router-link v-if="auth.isSeeker" to="/seeker/applications" class="top-link">我的投递</router-link>
|
||||
<router-link v-else to="/admin/jobs" class="top-link">管理后台</router-link>
|
||||
<span class="top-divider">|</span>
|
||||
<span class="top-link clickable" @click="logout">退出登录</span>
|
||||
</template>
|
||||
<template v-else>
|
||||
<router-link to="/login" class="top-link">登录</router-link>
|
||||
<span class="top-divider">|</span>
|
||||
<router-link to="/register" class="top-link">注册</router-link>
|
||||
</template>
|
||||
<!-- 固定顶部 -->
|
||||
<div class="fixed-top">
|
||||
<!-- 顶部公告条 -->
|
||||
<div class="top-bar">
|
||||
<div class="top-bar-inner">
|
||||
<span class="top-bar-left">欢迎访问集团人才招募平台</span>
|
||||
<div class="top-bar-right">
|
||||
<template v-if="auth.isLoggedIn">
|
||||
<router-link v-if="auth.isSeeker" to="/seeker/applications" class="top-link">我的投递</router-link>
|
||||
<router-link v-else to="/admin/jobs" class="top-link">管理后台</router-link>
|
||||
<span class="top-divider">|</span>
|
||||
<span class="top-link clickable" @click="logout">退出登录</span>
|
||||
</template>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 主导航 -->
|
||||
<header class="main-header">
|
||||
<!-- 主导航 -->
|
||||
<header class="main-header">
|
||||
<div class="header-inner">
|
||||
<!-- Logo 区域 -->
|
||||
<router-link to="/home" class="logo-area">
|
||||
|
|
@ -39,7 +36,6 @@
|
|||
<!-- 导航 -->
|
||||
<nav class="main-nav">
|
||||
<router-link to="/home" class="nav-link" active-class="active">首页</router-link>
|
||||
<router-link to="/jobs" class="nav-link" active-class="active">职位列表</router-link>
|
||||
<router-link to="/companies" class="nav-link" active-class="active">公司介绍</router-link>
|
||||
</nav>
|
||||
|
||||
|
|
@ -67,14 +63,15 @@
|
|||
<div class="underline-fill"></div>
|
||||
</div>
|
||||
</header>
|
||||
</div>
|
||||
|
||||
<!-- 内容区 -->
|
||||
<main class="portal-main">
|
||||
<router-view />
|
||||
</main>
|
||||
|
||||
<!-- 页脚 -->
|
||||
<footer class="portal-footer">
|
||||
<!-- 页脚(全屏面板页隐藏) -->
|
||||
<footer class="portal-footer" v-if="$route.name !== 'Home'">
|
||||
<div class="footer-inner">
|
||||
<div class="footer-logo">
|
||||
<div class="f-emblem">招</div>
|
||||
|
|
@ -116,6 +113,15 @@ a { text-decoration: none; }
|
|||
font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
|
||||
}
|
||||
|
||||
/* 固定顶部容器 */
|
||||
.fixed-top {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
/* 顶部公告条 */
|
||||
.top-bar {
|
||||
background: #1A1A1A;
|
||||
|
|
@ -146,9 +152,6 @@ a { text-decoration: none; }
|
|||
.main-header {
|
||||
background: linear-gradient(180deg, #1A1A1A 0%, #0F0F0F 100%);
|
||||
box-shadow: 0 4px 20px rgba(0,0,0,0.1);
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 100;
|
||||
}
|
||||
.header-inner {
|
||||
max-width: 1280px;
|
||||
|
|
@ -278,13 +281,20 @@ a { text-decoration: none; }
|
|||
background: linear-gradient(90deg, #C8973A 0%, #D4AF37 100%);
|
||||
}
|
||||
|
||||
/* 内容区 */
|
||||
/* 内容区 — top-bar(~28px) + header(72px) + underline(3px) = ~103px */
|
||||
.portal-main {
|
||||
flex: 1;
|
||||
max-width: 1280px;
|
||||
width: 100%;
|
||||
margin: 0 auto;
|
||||
padding: 24px 32px;
|
||||
padding-top: 97px;
|
||||
}
|
||||
.portal-main:has(.two-panel) {
|
||||
max-width: none;
|
||||
padding: 97px 0 0;
|
||||
}
|
||||
.portal-main:not(:has(.two-panel)) {
|
||||
max-width: 1280px;
|
||||
padding: 97px 32px 0;
|
||||
}
|
||||
|
||||
/* 页脚 */
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<el-container style="min-height: 100vh;">
|
||||
<el-aside width="200px" style="background:#fff;border-right:1px solid #eee;">
|
||||
<div style="padding:20px;font-weight:bold;font-size:16px;">求职者中心</div>
|
||||
<div class="seeker-layout">
|
||||
<aside class="seeker-aside">
|
||||
<div class="aside-title">求职者中心</div>
|
||||
<el-menu router :default-active="$route.path">
|
||||
<el-menu-item index="/seeker/resume">我的简历</el-menu-item>
|
||||
<el-menu-item index="/seeker/applications">我的投递</el-menu-item>
|
||||
|
|
@ -9,8 +9,40 @@
|
|||
<el-menu-item index="/seeker/profile">账号设置</el-menu-item>
|
||||
<el-menu-item index="/home">返回主页</el-menu-item>
|
||||
</el-menu>
|
||||
</el-aside>
|
||||
<el-main><router-view /></el-main>
|
||||
</el-container>
|
||||
</aside>
|
||||
<main class="seeker-main">
|
||||
<router-view />
|
||||
</main>
|
||||
</div>
|
||||
</template>
|
||||
<script setup></script>
|
||||
<style scoped>
|
||||
.seeker-layout {
|
||||
display: flex;
|
||||
height: 100vh;
|
||||
overflow: hidden;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
}
|
||||
.seeker-aside {
|
||||
width: 200px;
|
||||
flex-shrink: 0;
|
||||
background: #fff;
|
||||
border-right: 1px solid #eee;
|
||||
overflow-y: auto;
|
||||
}
|
||||
.aside-title {
|
||||
padding: 20px;
|
||||
font-weight: bold;
|
||||
font-size: 16px;
|
||||
}
|
||||
.seeker-main {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: 20px;
|
||||
background: #f5f6fa;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -24,8 +24,6 @@ a:hover {
|
|||
|
||||
body {
|
||||
margin: 0;
|
||||
display: flex;
|
||||
place-items: center;
|
||||
min-width: 320px;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
|
@ -59,10 +57,7 @@ button:focus-visible {
|
|||
}
|
||||
|
||||
#app {
|
||||
max-width: 1280px;
|
||||
margin: 0 auto;
|
||||
padding: 2rem;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: light) {
|
||||
|
|
|
|||
|
|
@ -45,8 +45,8 @@
|
|||
<h1 class="hero-slogan">人才创造美好未来</h1>
|
||||
<p class="hero-sub">与优秀的人一起,做有价值的事</p>
|
||||
<div class="hero-btns">
|
||||
<button class="btn-primary-lg" @click="router.push('/jobs')">
|
||||
浏览职位
|
||||
<button class="btn-primary-lg" @click="router.push('/companies')">
|
||||
一键进入
|
||||
<span class="btn-arrow">→</span>
|
||||
</button>
|
||||
<button class="btn-secondary-lg" @click="router.push('/register')">
|
||||
|
|
@ -418,8 +418,7 @@ const router = useRouter()
|
|||
padding: 48px 0;
|
||||
}
|
||||
.stats-inner {
|
||||
max-width: 1000px;
|
||||
margin: 0 auto;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-around;
|
||||
|
|
@ -447,7 +446,7 @@ const router = useRouter()
|
|||
background: #0d0d0d;
|
||||
padding: 96px 48px;
|
||||
}
|
||||
.features-inner { max-width: 1100px; margin: 0 auto; }
|
||||
.features-inner { width: 100%; }
|
||||
.section-label {
|
||||
text-align: center;
|
||||
font-size: 13px;
|
||||
|
|
@ -506,8 +505,7 @@ const router = useRouter()
|
|||
padding: 32px 48px;
|
||||
}
|
||||
.footer-inner {
|
||||
max-width: 1100px;
|
||||
margin: 0 auto;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
|
|
|
|||
|
|
@ -15,6 +15,11 @@
|
|||
<el-table-column prop="organization_name" label="所属公司" />
|
||||
<el-table-column prop="location" label="地点" />
|
||||
<el-table-column prop="salary" label="薪资" />
|
||||
<el-table-column label="发布时间" width="160">
|
||||
<template #default="{ row }">
|
||||
{{ row.created_at ? new Date(row.created_at).toLocaleDateString('zh-CN', { year: 'numeric', month: '2-digit', day: '2-digit' }) : '-' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="status" label="状态">
|
||||
<template #default="{ row }">
|
||||
<el-tag :type="row.status === 'published' ? 'success' : row.status === 'draft' ? 'info' : 'danger'">
|
||||
|
|
@ -57,6 +62,13 @@
|
|||
</el-form-item>
|
||||
<el-form-item label="职位名称"><el-input v-model="form.title" /></el-form-item>
|
||||
<el-form-item label="职位类别"><el-input v-model="form.category" /></el-form-item>
|
||||
<el-form-item label="学历要求">
|
||||
<el-select v-model="form.education" placeholder="请选择学历要求" style="width:100%">
|
||||
<el-option value="博士" label="博士" />
|
||||
<el-option value="硕士" label="硕士" />
|
||||
<el-option value="本科及以下" label="本科及以下" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="工作地点"><el-input v-model="form.location" /></el-form-item>
|
||||
<el-form-item label="薪资范围"><el-input v-model="form.salary" /></el-form-item>
|
||||
<el-form-item label="职位描述"><el-input v-model="form.description" type="textarea" :rows="5" /></el-form-item>
|
||||
|
|
@ -90,7 +102,7 @@ const saving = ref(false)
|
|||
const dialogVisible = ref(false)
|
||||
const editingJob = ref(null)
|
||||
const form = reactive({
|
||||
title: '', category: '', location: '', salary: '',
|
||||
title: '', category: '', education: '本科及以下', location: '', salary: '',
|
||||
description: '', status: 'draft', organization_id: null
|
||||
})
|
||||
const currentPage = ref(1)
|
||||
|
|
@ -122,6 +134,7 @@ function openDialog(job = null) {
|
|||
Object.assign(form, {
|
||||
title: job.title,
|
||||
category: job.category,
|
||||
education: job.education || '本科及以下',
|
||||
location: job.location,
|
||||
salary: job.salary,
|
||||
description: job.description,
|
||||
|
|
@ -130,7 +143,7 @@ function openDialog(job = null) {
|
|||
})
|
||||
} else {
|
||||
Object.assign(form, {
|
||||
title: '', category: '', location: '', salary: '',
|
||||
title: '', category: '', education: '本科及以下', location: '', salary: '',
|
||||
description: '', status: 'draft', organization_id: null
|
||||
})
|
||||
}
|
||||
|
|
@ -148,7 +161,9 @@ async function handleSave() {
|
|||
saving.value = true
|
||||
try {
|
||||
const payload = { ...form }
|
||||
if (!auth.isSuperAdmin) delete payload.organization_id
|
||||
if (!auth.isSuperAdmin) {
|
||||
payload.organization_id = auth.user?.organization ?? undefined
|
||||
}
|
||||
if (editingJob.value) await updateJob(editingJob.value.id, payload)
|
||||
else await createJob(payload)
|
||||
ElMessage.success('保存成功')
|
||||
|
|
|
|||
|
|
@ -3,6 +3,9 @@
|
|||
<el-card>
|
||||
<template #header><h2>{{ org.name }}</h2></template>
|
||||
<p>{{ org.description }}</p>
|
||||
<div class="company-photo">
|
||||
<img src="/images/company-building.png" alt="公司大楼" />
|
||||
</div>
|
||||
<p>联系邮箱:{{ org.email }}</p>
|
||||
</el-card>
|
||||
<h3 style="margin-top:24px">在招职位</h3>
|
||||
|
|
@ -33,3 +36,15 @@ onMounted(async () => {
|
|||
}
|
||||
})
|
||||
</script>
|
||||
<style scoped>
|
||||
.company-photo {
|
||||
margin: 20px 0;
|
||||
border-radius: 8px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.company-photo img {
|
||||
width: 100%;
|
||||
display: block;
|
||||
border-radius: 8px;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
<div v-else class="logo-placeholder">{{ group.name?.charAt(0) }}</div>
|
||||
</div>
|
||||
<div class="hero-content">
|
||||
<h1 class="hero-name">{{ group.name }}</h1>
|
||||
<h1 class="hero-name hero-name-link" @click="$router.push(`/companies/${group.id}`)">{{ group.name }}</h1>
|
||||
<div class="hero-meta">
|
||||
<span v-if="group.email">
|
||||
<el-icon><Message /></el-icon> {{ group.email }}
|
||||
|
|
@ -64,7 +64,7 @@
|
|||
<div class="child-v-line"></div>
|
||||
<div
|
||||
class="org-node child-node"
|
||||
@click="$router.push(`/companies/${child.id}`)"
|
||||
@click="$router.push({ path: '/home', query: { org: child.id } })"
|
||||
>
|
||||
<div class="node-name">{{ child.name }}</div>
|
||||
<div class="node-jobs" v-if="child.job_count">在招 {{ child.job_count }} 岗</div>
|
||||
|
|
@ -108,7 +108,7 @@
|
|||
<span class="member-email" v-if="child.email">
|
||||
<el-icon><Message /></el-icon> {{ child.email }}
|
||||
</span>
|
||||
<el-button type="primary" link size="small">查看详情 →</el-button>
|
||||
<el-button type="primary" link size="small" @click.stop="$router.push({ path: '/home', query: { org: child.id } })">查看职位 →</el-button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -186,6 +186,13 @@ onMounted(async () => {
|
|||
margin: 0 0 12px;
|
||||
color: #fff;
|
||||
}
|
||||
.hero-name-link {
|
||||
cursor: pointer;
|
||||
transition: color 0.2s;
|
||||
}
|
||||
.hero-name-link:hover {
|
||||
color: #c9a84c;
|
||||
}
|
||||
.hero-meta {
|
||||
display: flex;
|
||||
gap: 20px;
|
||||
|
|
|
|||
|
|
@ -7,6 +7,20 @@
|
|||
<span class="left-title">全部企业</span>
|
||||
<span class="left-count">{{ totalOrgs }}</span>
|
||||
</div>
|
||||
<!-- 查看全部按钮 -->
|
||||
<div
|
||||
class="org-row org-all"
|
||||
:class="{ active: !selectedOrg }"
|
||||
@click="clearOrg"
|
||||
>
|
||||
<div class="org-avatar all-avatar">
|
||||
<span>全</span>
|
||||
</div>
|
||||
<div class="org-meta">
|
||||
<span class="org-name">全部职位</span>
|
||||
<span class="org-stat">查看所有企业岗位</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="left-body">
|
||||
<template v-if="orgsLoading">
|
||||
<div v-for="i in 4" :key="i" class="skeleton-row" />
|
||||
|
|
@ -19,7 +33,6 @@
|
|||
</template>
|
||||
<template v-else>
|
||||
<template v-for="org in orgs" :key="org.id">
|
||||
<!-- 集团 -->
|
||||
<div
|
||||
class="org-row"
|
||||
:class="{ active: selectedOrg?.id === org.id }"
|
||||
|
|
@ -34,7 +47,6 @@
|
|||
<span class="org-stat">在招 <em>{{ org.job_count }}</em> 个岗位</span>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 子公司 -->
|
||||
<div
|
||||
v-for="child in org.children"
|
||||
:key="child.id"
|
||||
|
|
@ -59,22 +71,79 @@
|
|||
</div>
|
||||
</aside>
|
||||
|
||||
<!-- ── 右栏:岗位列表 ── -->
|
||||
<!-- ── 右栏 ── -->
|
||||
<section class="panel-right">
|
||||
<div class="right-header">
|
||||
<span class="right-title">职位列表</span>
|
||||
<span v-if="jobs.length" class="right-count">{{ jobs.length }} 个</span>
|
||||
<!-- 搜索栏 -->
|
||||
<div class="search-bar">
|
||||
<div class="search-row">
|
||||
<div class="search-field">
|
||||
<el-input
|
||||
v-model="filters.search"
|
||||
placeholder="职位名称 / 关键词"
|
||||
clearable
|
||||
:prefix-icon="SearchIcon"
|
||||
@keyup.enter="doSearch"
|
||||
@clear="doSearch"
|
||||
/>
|
||||
</div>
|
||||
<div class="search-field">
|
||||
<el-input
|
||||
v-model="filters.location"
|
||||
placeholder="城市"
|
||||
clearable
|
||||
@keyup.enter="doSearch"
|
||||
@clear="doSearch"
|
||||
/>
|
||||
</div>
|
||||
<div class="search-field">
|
||||
<el-input
|
||||
v-model="filters.category"
|
||||
placeholder="职位类别"
|
||||
clearable
|
||||
@keyup.enter="doSearch"
|
||||
@clear="doSearch"
|
||||
/>
|
||||
</div>
|
||||
<div class="search-field">
|
||||
<el-select
|
||||
v-model="filters.education"
|
||||
placeholder="学历要求"
|
||||
clearable
|
||||
@change="doSearch"
|
||||
>
|
||||
<el-option value="博士" label="博士" />
|
||||
<el-option value="硕士" label="硕士" />
|
||||
<el-option value="本科及以下" label="本科及以下" />
|
||||
</el-select>
|
||||
</div>
|
||||
<el-button type="primary" class="search-btn" @click="doSearch">
|
||||
搜索
|
||||
</el-button>
|
||||
</div>
|
||||
<div class="search-context" v-if="selectedOrg">
|
||||
<span class="context-label">当前企业:</span>
|
||||
<el-tag size="small" closable @close="clearOrg">{{ selectedOrg.name }}</el-tag>
|
||||
</div>
|
||||
</div>
|
||||
<div class="right-body">
|
||||
<template v-if="jobsLoading">
|
||||
<div v-for="i in 4" :key="i" class="skeleton-row" />
|
||||
|
||||
<!-- 结果头 -->
|
||||
<div class="right-header">
|
||||
<span class="right-title">
|
||||
{{ selectedOrg ? selectedOrg.name + ' · 职位列表' : '全部职位' }}
|
||||
</span>
|
||||
<span class="right-count">共 {{ totalJobs }} 个</span>
|
||||
</div>
|
||||
|
||||
<!-- 职位列表 -->
|
||||
<div class="right-body" v-loading="jobsLoading">
|
||||
<template v-if="!jobsLoading && !jobsError && jobs.length === 0">
|
||||
<div class="state-tip">
|
||||
{{ hasFilters ? '未找到匹配的职位,请调整筛选条件' : '暂无职位数据' }}
|
||||
</div>
|
||||
</template>
|
||||
<template v-else-if="jobsError">
|
||||
<div class="state-tip">加载失败,请刷新重试</div>
|
||||
</template>
|
||||
<template v-else-if="jobs.length === 0">
|
||||
<div class="state-tip">请选择企业查看职位</div>
|
||||
</template>
|
||||
<template v-else>
|
||||
<div
|
||||
v-for="job in jobs"
|
||||
|
|
@ -82,33 +151,49 @@
|
|||
class="job-row"
|
||||
@click="goToJobDetail(job)"
|
||||
>
|
||||
<div class="job-row-title">{{ job.title }}</div>
|
||||
<div class="job-row-top">
|
||||
<div class="job-row-title">{{ job.title }}</div>
|
||||
<div class="job-row-salary">{{ job.salary }}</div>
|
||||
</div>
|
||||
<div class="job-row-meta">
|
||||
<span class="job-org">{{ job.organization?.name }}</span>
|
||||
<span class="job-org">{{ job.organization_name || job.organization?.name }}</span>
|
||||
<span class="meta-dot">·</span>
|
||||
<span>{{ job.location }}</span>
|
||||
<span class="meta-dot" v-if="job.education">·</span>
|
||||
<span v-if="job.education">{{ job.education }}</span>
|
||||
</div>
|
||||
<div class="job-row-tags">
|
||||
<span class="tag tag-cat" v-if="job.category">{{ job.category }}</span>
|
||||
<span class="tag tag-edu" v-if="job.education">{{ job.education }}</span>
|
||||
<span class="tag tag-loc">{{ job.location }}</span>
|
||||
<span class="tag tag-sal">{{ job.salary }}</span>
|
||||
<span class="tag tag-cat">{{ job.category }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<!-- 分页 -->
|
||||
<div class="pagination-wrap" v-if="totalJobs > pageSize">
|
||||
<el-pagination
|
||||
layout="prev, pager, next"
|
||||
:total="totalJobs"
|
||||
:page-size="pageSize"
|
||||
v-model:current-page="currentPage"
|
||||
@current-change="handlePageChange"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- ── 右栏:岗位详情 ── -->
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref, computed, onMounted } from 'vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
import { ref, reactive, computed, onMounted } from 'vue'
|
||||
import { useRouter, useRoute } from 'vue-router'
|
||||
import { useAuthStore } from '@/stores/auth'
|
||||
import { ElMessage } from 'element-plus'
|
||||
import { getOrganizations } from '@/api/organizations'
|
||||
import { getJobs } from '@/api/jobs'
|
||||
import { Search as SearchIcon } from '@element-plus/icons-vue'
|
||||
|
||||
const router = useRouter()
|
||||
const route = useRoute()
|
||||
const auth = useAuthStore()
|
||||
|
||||
const orgs = ref([])
|
||||
|
|
@ -119,25 +204,34 @@ const selectedOrg = ref(null)
|
|||
const jobs = ref([])
|
||||
const jobsLoading = ref(false)
|
||||
const jobsError = ref(false)
|
||||
const totalJobs = ref(0)
|
||||
const currentPage = ref(1)
|
||||
const pageSize = 20
|
||||
|
||||
const filters = reactive({ search: '', location: '', category: '', education: '' })
|
||||
|
||||
const totalOrgs = computed(() => {
|
||||
return orgs.value.reduce((n, o) => n + 1 + (o.children?.length || 0), 0)
|
||||
})
|
||||
|
||||
function formatDate(dt) {
|
||||
if (!dt) return ''
|
||||
return new Date(dt).toLocaleDateString('zh-CN', { year: 'numeric', month: '2-digit', day: '2-digit' })
|
||||
}
|
||||
const hasFilters = computed(() => {
|
||||
return filters.search || filters.location || filters.category || filters.education
|
||||
})
|
||||
|
||||
async function selectOrg(org) {
|
||||
selectedOrg.value = org
|
||||
jobs.value = []
|
||||
jobsError.value = false
|
||||
async function fetchJobs(page = 1) {
|
||||
jobsLoading.value = true
|
||||
jobsError.value = false
|
||||
try {
|
||||
const { data } = await getJobs({ organization: org.id })
|
||||
const params = { page }
|
||||
if (selectedOrg.value) params.organization = selectedOrg.value.id
|
||||
if (filters.search) params.search = filters.search
|
||||
if (filters.location) params.location = filters.location
|
||||
if (filters.category) params.category = filters.category
|
||||
if (filters.education) params.education = filters.education
|
||||
const { data } = await getJobs(params)
|
||||
jobs.value = data.results
|
||||
totalJobs.value = data.count
|
||||
currentPage.value = page
|
||||
} catch (err) {
|
||||
console.error('Failed to fetch jobs:', err)
|
||||
jobsError.value = true
|
||||
|
|
@ -146,6 +240,27 @@ async function selectOrg(org) {
|
|||
}
|
||||
}
|
||||
|
||||
function doSearch() {
|
||||
currentPage.value = 1
|
||||
fetchJobs(1)
|
||||
}
|
||||
|
||||
function handlePageChange(page) {
|
||||
fetchJobs(page)
|
||||
}
|
||||
|
||||
async function selectOrg(org) {
|
||||
selectedOrg.value = org
|
||||
currentPage.value = 1
|
||||
fetchJobs(1)
|
||||
}
|
||||
|
||||
function clearOrg() {
|
||||
selectedOrg.value = null
|
||||
currentPage.value = 1
|
||||
fetchJobs(1)
|
||||
}
|
||||
|
||||
function goToJobDetail(job) {
|
||||
router.push({ name: 'JobDetail', params: { id: job.id } })
|
||||
}
|
||||
|
|
@ -155,37 +270,40 @@ onMounted(async () => {
|
|||
try {
|
||||
const { data } = await getOrganizations()
|
||||
orgs.value = data.results
|
||||
if (orgs.value.length > 0) selectOrg(orgs.value[0])
|
||||
const targetOrgId = route.query.org ? Number(route.query.org) : null
|
||||
if (targetOrgId) {
|
||||
for (const org of orgs.value) {
|
||||
if (org.id === targetOrgId) { selectedOrg.value = org; break }
|
||||
const child = org.children?.find(c => c.id === targetOrgId)
|
||||
if (child) { selectedOrg.value = child; break }
|
||||
}
|
||||
}
|
||||
} catch { orgsError.value = true }
|
||||
finally { orgsLoading.value = false }
|
||||
fetchJobs(1)
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
/* ── 变量 ── */
|
||||
.two-panel {
|
||||
--red: #B8860B;
|
||||
--dark: #1A1A1A;
|
||||
--gold: #B8860B;
|
||||
--gold-lt: #D4AF37;
|
||||
--cream: #FAFAFA;
|
||||
--border: #D3D3D3;
|
||||
--text: #2A1A1A;
|
||||
--muted: #3A3A3A;
|
||||
--dark: #1A1A1A;
|
||||
--cream: #F7F8FA;
|
||||
--border: #E5E6EB;
|
||||
--text: #1D2129;
|
||||
--muted: #86909C;
|
||||
|
||||
display: flex;
|
||||
height: calc(100vh - 220px);
|
||||
height: calc(100vh - 97px);
|
||||
min-height: 520px;
|
||||
overflow: hidden;
|
||||
border-radius: 6px;
|
||||
border: 1px solid var(--border);
|
||||
box-shadow: 0 4px 24px rgba(0,0,0,0.12);
|
||||
font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
|
||||
}
|
||||
|
||||
/* ── 左栏 ── */
|
||||
.panel-left {
|
||||
width: 320px;
|
||||
width: 280px;
|
||||
flex-shrink: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
|
@ -207,7 +325,7 @@ onMounted(async () => {
|
|||
letter-spacing: 0.1em;
|
||||
}
|
||||
.left-count {
|
||||
background: var(--red);
|
||||
background: var(--gold);
|
||||
color: #fff;
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
|
|
@ -221,6 +339,14 @@ onMounted(async () => {
|
|||
.left-body::-webkit-scrollbar-track { background: transparent; }
|
||||
.left-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 2px; }
|
||||
|
||||
/* 全部按钮 */
|
||||
.org-all {
|
||||
border-bottom: 1px solid rgba(255,255,255,0.1) !important;
|
||||
}
|
||||
.all-avatar {
|
||||
background: linear-gradient(135deg, #4A90D9, #357ABD) !important;
|
||||
}
|
||||
|
||||
/* 公司行 */
|
||||
.org-row {
|
||||
display: flex;
|
||||
|
|
@ -260,8 +386,6 @@ onMounted(async () => {
|
|||
.org-row.active .org-name { color: var(--gold-lt); }
|
||||
.org-stat { font-size: 11px; color: rgba(255,255,255,0.38); }
|
||||
.org-stat em { font-style: normal; color: var(--gold); font-weight: 700; }
|
||||
|
||||
/* 子公司缩进 */
|
||||
.org-child { padding-left: 12px; background: rgba(0,0,0,0.12); }
|
||||
.child-indent {
|
||||
display: flex; align-items: center; flex-shrink: 0;
|
||||
|
|
@ -272,68 +396,130 @@ onMounted(async () => {
|
|||
background: rgba(184,134,11,0.35);
|
||||
}
|
||||
|
||||
/* ── 右栏 (职位列表) ── */
|
||||
/* ── 右栏 ── */
|
||||
.panel-right {
|
||||
flex: 1;
|
||||
flex-shrink: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background: var(--cream);
|
||||
border-left: 1px solid var(--border);
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
/* 搜索栏 */
|
||||
.search-bar {
|
||||
flex-shrink: 0;
|
||||
background: #fff;
|
||||
padding: 14px 20px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.search-row {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
align-items: center;
|
||||
}
|
||||
.search-field {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
.search-field :deep(.el-input__wrapper),
|
||||
.search-field :deep(.el-select .el-input__wrapper) {
|
||||
border-radius: 6px;
|
||||
}
|
||||
.search-btn {
|
||||
flex-shrink: 0;
|
||||
padding: 8px 24px;
|
||||
border-radius: 6px;
|
||||
font-weight: 600;
|
||||
background: var(--gold) !important;
|
||||
border-color: var(--gold) !important;
|
||||
}
|
||||
.search-btn:hover {
|
||||
background: var(--gold-lt) !important;
|
||||
border-color: var(--gold-lt) !important;
|
||||
}
|
||||
.search-context {
|
||||
margin-top: 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
.context-label {
|
||||
font-size: 12px;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
/* 结果头 */
|
||||
.right-header {
|
||||
padding: 14px 16px;
|
||||
padding: 12px 20px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
border-bottom: 2px solid var(--border);
|
||||
border-bottom: 1px solid var(--border);
|
||||
flex-shrink: 0;
|
||||
background: #fff;
|
||||
}
|
||||
.right-title { font-size: 13px; font-weight: 600; color: var(--text); }
|
||||
.right-title { font-size: 14px; font-weight: 600; color: var(--text); }
|
||||
.right-count {
|
||||
font-size: 11px; color: var(--muted);
|
||||
background: #F0F0F0; border-radius: 10px; padding: 1px 8px;
|
||||
font-size: 12px; color: var(--muted);
|
||||
}
|
||||
|
||||
/* 职位列表 */
|
||||
.right-body { flex: 1; overflow-y: auto; }
|
||||
|
||||
/* 岗位行 */
|
||||
.job-row {
|
||||
padding: 13px 16px;
|
||||
border-left: 3px solid transparent;
|
||||
padding: 14px 20px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
cursor: pointer;
|
||||
transition: background 0.15s;
|
||||
background: #fff;
|
||||
}
|
||||
.job-row:hover { background: #F8F8F8; }
|
||||
.job-row:hover { background: #FAFBFC; }
|
||||
.job-row-top {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
.job-row-title {
|
||||
font-size: 13px; font-weight: 600;
|
||||
color: var(--text); margin-bottom: 5px;
|
||||
font-size: 14px; font-weight: 600;
|
||||
color: var(--text);
|
||||
}
|
||||
.job-row-salary {
|
||||
font-size: 14px; font-weight: 700;
|
||||
color: #E63329;
|
||||
flex-shrink: 0;
|
||||
margin-left: 16px;
|
||||
}
|
||||
.job-row-meta {
|
||||
font-size: 11px; color: var(--muted); margin-bottom: 6px;
|
||||
font-size: 12px; color: var(--muted); margin-bottom: 8px;
|
||||
display: flex; align-items: center; gap: 4px;
|
||||
}
|
||||
.job-org { color: var(--red); }
|
||||
.job-row-tags { display: flex; gap: 5px; flex-wrap: wrap; }
|
||||
.job-org { color: var(--gold); font-weight: 500; }
|
||||
.meta-dot { color: #D9D9D9; }
|
||||
.job-row-tags { display: flex; gap: 6px; flex-wrap: wrap; }
|
||||
.tag {
|
||||
font-size: 11px; padding: 2px 7px;
|
||||
font-size: 11px; padding: 2px 8px;
|
||||
border-radius: 3px; font-weight: 500;
|
||||
}
|
||||
.tag-loc { background: #E8EEF8; color: #2C5282; }
|
||||
.tag-sal { background: #FFF3E0; color: #B7610A; }
|
||||
.tag-cat { background: #E8F5E9; color: #2E7D32; }
|
||||
.tag-edu { background: #F3E5F5; color: #7B1FA2; }
|
||||
|
||||
/* 分页 */
|
||||
.pagination-wrap {
|
||||
padding: 16px 20px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
background: #fff;
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
|
||||
/* 空状态 / 骨架 */
|
||||
.state-tip {
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
height: 100%; min-height: 100px;
|
||||
height: 200px;
|
||||
color: var(--muted); font-size: 13px;
|
||||
}
|
||||
.full-tip { flex-direction: column; gap: 12px; }
|
||||
.empty-icon { opacity: 0.5; }
|
||||
.detail-loading { padding: 24px 28px; }
|
||||
.skeleton-row {
|
||||
height: 14px; background: linear-gradient(90deg, #E8E8E8 25%, #F0F0F0 50%, #E8E8E8 75%);
|
||||
background-size: 200% 100%;
|
||||
|
|
|
|||
|
|
@ -55,6 +55,10 @@
|
|||
<span class="tag-label">工作地点</span>
|
||||
<span class="tag-value">{{ job.location }}</span>
|
||||
</div>
|
||||
<div class="tag-item">
|
||||
<span class="tag-label">学历要求</span>
|
||||
<span class="tag-value">{{ job.education || '不限' }}</span>
|
||||
</div>
|
||||
<div class="tag-item">
|
||||
<span class="tag-label">薪资范围</span>
|
||||
<span class="tag-value salary-val">{{ job.salary }}</span>
|
||||
|
|
@ -95,7 +99,7 @@
|
|||
<!-- 公司信息 -->
|
||||
<div class="company-card">
|
||||
<div class="company-card-header">单位信息</div>
|
||||
<div class="company-logo-row">
|
||||
<div class="company-logo-row company-link" @click="router.push({ name: 'CompanyDetail', params: { id: job.organization?.id } })">
|
||||
<div class="company-logo">
|
||||
<img v-if="job.organization?.logo" :src="job.organization.logo" alt="logo" />
|
||||
<div v-else class="logo-placeholder">{{ job.organization?.name?.charAt(0) }}</div>
|
||||
|
|
@ -428,6 +432,19 @@ async function handleApply() {
|
|||
gap: 12px;
|
||||
align-items: flex-start;
|
||||
}
|
||||
.company-link {
|
||||
cursor: pointer;
|
||||
border-radius: 6px;
|
||||
padding: 6px;
|
||||
margin: -6px;
|
||||
transition: background 0.2s;
|
||||
}
|
||||
.company-link:hover {
|
||||
background: #f5f5f5;
|
||||
}
|
||||
.company-link:hover .company-name {
|
||||
color: #e63329;
|
||||
}
|
||||
.company-logo {
|
||||
width: 52px;
|
||||
height: 52px;
|
||||
|
|
|
|||
Loading…
Reference in New Issue