提交 2adb4b1e authored 作者: haodaking's avatar haodaking

chore: update

上级 fc324030
<script setup lang="ts"> <script setup lang="ts">
import { useArea } from '@/composables/useArea' import { useArea } from '@/composables/useArea'
import { sex, projectPrefix, industryCategoryList } from '@/utils/dictionary' import { sex, projectPrefix, industryCategory, industryCategoryList } from '@/utils/dictionary'
import { getAlumniList, getAlumniUserInfo } from '../api' import { getAlumniList, getAlumniUserInfo } from '../api'
import type { AlumniType } from '../types' import type { AlumniType } from '../types'
...@@ -67,7 +67,14 @@ const listOptions = { ...@@ -67,7 +67,14 @@ const listOptions = {
}, },
{ label: '省份', prop: 'province', align: 'center' }, { label: '省份', prop: 'province', align: 'center' },
{ label: '城市', prop: 'city', align: 'center' }, { label: '城市', prop: 'city', align: 'center' },
{ label: '所在行业', prop: 'industry', align: 'center' }, {
label: '所在行业',
prop: 'industry',
align: 'center',
computed({ row }: { row: AlumniType }) {
return industryCategory[row.industry] || row.industry
}
},
{ label: '工作单位', prop: 'workplace', align: 'center' }, { label: '工作单位', prop: 'workplace', align: 'center' },
{ label: '操作', slots: 'table-actions', align: 'center' } { label: '操作', slots: 'table-actions', align: 'center' }
] ]
...@@ -86,12 +93,12 @@ function handleUpdateList() { ...@@ -86,12 +93,12 @@ function handleUpdateList() {
<router-link :to="`/hr/alumni/view/${row.id}`" target="_blank" style="color: #399ee8">查看</router-link> <router-link :to="`/hr/alumni/view/${row.id}`" target="_blank" style="color: #399ee8">查看</router-link>
</template> </template>
<template #filter-province> <template #filter-province>
<el-select clearable v-model="provinceValue" @change="handleUpdateList"> <el-select filterable clearable v-model="provinceValue" @change="handleUpdateList">
<el-option v-for="item in provinceList" :value="item.label" :key="item.code"></el-option> <el-option v-for="item in provinceList" :value="item.label" :key="item.code"></el-option>
</el-select> </el-select>
</template> </template>
<template #filter-city> <template #filter-city>
<el-select clearable v-model="cityValue" @change="handleUpdateList"> <el-select filterable clearable v-model="cityValue" @change="handleUpdateList" no-data-text="请先选择省份">
<el-option v-for="item in cityList" :value="item.label" :key="item.code"></el-option> <el-option v-for="item in cityList" :value="item.label" :key="item.code"></el-option>
</el-select> </el-select>
</template> </template>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
import { getAlumniDetail } from '../api' import { getAlumniDetail } from '../api'
import type { AlumniType, ClassType } from '../types' import type { AlumniType, ClassType } from '../types'
import { projectPrefix } from '@/utils/dictionary' import { projectPrefix, industryCategory } from '@/utils/dictionary'
const props = defineProps<{ id: string }>() const props = defineProps<{ id: string }>()
...@@ -31,6 +31,9 @@ const classNames = computed(() => { ...@@ -31,6 +31,9 @@ const classNames = computed(() => {
const projectName = computed(() => { const projectName = computed(() => {
return projectPrefix[data.project_prefix] || data.project_prefix return projectPrefix[data.project_prefix] || data.project_prefix
}) })
const industryName = computed(() => {
return industryCategory[data.industry] || data.industry
})
onMounted(() => { onMounted(() => {
getAlumniDetail({ id: props.id }).then(res => { getAlumniDetail({ id: props.id }).then(res => {
...@@ -70,7 +73,7 @@ onMounted(() => { ...@@ -70,7 +73,7 @@ onMounted(() => {
</dl> </dl>
<dl> <dl>
<dt>所在行业</dt> <dt>所在行业</dt>
<dd>{{ data.industry }}</dd> <dd>{{ industryName }}</dd>
</dl> </dl>
<dl> <dl>
<dt>工作单位</dt> <dt>工作单位</dt>
......
...@@ -68,56 +68,55 @@ export const sex = { ...@@ -68,56 +68,55 @@ export const sex = {
// 性别 // 性别
export const sexList = json2Array(sex) export const sexList = json2Array(sex)
export const industryCategory = [ export const industryCategory: Record<string, string> = {
'互联网/电子商务', '1': '互联网/电子商务',
'基金/证券/期货/投资', '2': '基金/证券/期货/投资',
'保险', '3': '保险',
'银行', '4': '银行',
'信托/担保/拍卖/典当', '5': '信托/担保/拍卖/典当',
'计算机软件', '6': '计算机软件',
'IT服务(系统/数据/维护)', '7': 'IT服务(系统/数据/维护)',
'电子技术/半导体/集成电路', '8': '电子技术/半导体/集成电路',
'计算机硬件', '9': '计算机硬件',
'通信/电信/网络设备', '10': '通信/电信/网络设备',
'通信/电信运营、增值服务', '11': '通信/电信运营、增值服务',
'网络游戏', '12': '网络游戏',
'房地产/建筑/建材/工程', '13': '房地产/建筑/建材/工程',
'家居/室内设计/装饰装潢', '14': '家居/室内设计/装饰装潢',
'物业管理/商业中心', '15': '物业管理/商业中心',
'专业服务/咨询(财会/法律/人力资源等)', '16': '专业服务/咨询(财会/法律/人力资源等)',
'广告/会展/公关', '17': '广告/会展/公关',
'中介服务', '18': '中介服务',
'检验/检测/认证', '19': '检验/检测/认证',
'外包服务', '20': '外包服务',
'快速消费品(食品/饮料/烟酒/日化)', '21': '快速消费品(食品/饮料/烟酒/日化)',
'耐用消费品(服饰/纺织/皮革/家具/家电)', '22': '耐用消费品(服饰/纺织/皮革/家具/家电)',
'贸易/进出口', '23': '贸易/进出口',
'零售/批发', '24': '零售/批发',
'租赁服务', '25': '租赁服务',
'教育/培训/院校', '26': '教育/培训/院校',
'礼品/玩具/工艺美术/收藏品/奢侈品', '27': '礼品/玩具/工艺美术/收藏品/奢侈品',
'汽车/摩托车', '28': '汽车/摩托车',
'大型设备/机电设备/重工业', '29': '大型设备/机电设备/重工业',
'加工制造(原料加工/模具)', '30': '加工制造(原料加工/模具)',
'仪器仪表及工业自动化', '31': '仪器仪表及工业自动化',
'印刷/包装/造纸', '32': '印刷/包装/造纸',
'办公用品及设备', '33': '办公用品及设备',
'医药/生物工程', '34': '医药/生物工程',
'医疗设备/器械', '35': '医疗设备/器械',
'航空/航天研究与制造', '36': '航空/航天研究与制造',
'交通/运输,物流/仓储', '37': '交通/运输,物流/仓储',
'医疗/护理/美容/保健/卫生服务', '38': '医疗/护理/美容/保健/卫生服务',
'酒店/餐饮,旅游/度假,媒体/出版/影视/文化传播', '39': '酒店/餐饮,旅游/度假,媒体/出版/影视/文化传播',
'娱乐/体育/休闲', '40': '娱乐/体育/休闲',
'能源/矿产/采掘/冶炼', '41': '能源/矿产/采掘/冶炼',
'石油/石化/化工,电气/电力/水利', '42': '石油/石化/化工,电气/电力/水利',
'环保', '43': '环保',
'政府/公共事业/非盈利机构', '44': '政府/公共事业/非盈利机构',
'学术/科研,农/林/牧/渔跨领域经营', '45': '学术/科研,农/林/牧/渔跨领域经营',
'其他' '90': '其他'
] }
export const industryCategoryList = Object.values(industryCategory).map(item => ({ label: item, value: item }))
export const industryCategoryList = industryCategory.map(item => ({ label: item, value: item }))
// 项目 // 项目
export const projectPrefix = { export const projectPrefix = {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论