This commit is contained in:
张成
2025-11-26 21:23:43 +08:00
parent 0c08e09275
commit 3ff3169d74
2 changed files with 10 additions and 10 deletions

View File

@@ -19,8 +19,8 @@
<FormItem label="平台">
<Select v-model="gridOption.param.seachOption.platform_type" style="width: 120px" clearable
@on-change="query(1)">
<Option value="1">Boss直聘</Option>
<Option value="2">猎聘</Option>
<Option value="boss">Boss直聘</Option>
<Option value="liepin">猎聘</Option>
</Select>
</FormItem>
<FormItem label="在线状态">
@@ -276,8 +276,8 @@ export default {
{ title: '设备SN码', key: 'sn_code', type: 'text', required: true },
{
title: '平台', key: 'platform_type', com: 'Select', required: true, source: [
{ key: '1', value: 'Boss直聘' },
{ key: '2', value: '猎聘' }
{ key: 'boss', value: 'Boss直聘' },
{ key: 'liepin', value: '猎聘' }
]
},
{ title: '登录名', key: 'login_name', com: 'Input', required: true },
@@ -293,8 +293,8 @@ export default {
minWidth: 100,
render: (h, params) => {
const platformMap = {
'1': { text: 'Boss直聘', color: 'blue' },
'2': { text: '猎聘', color: 'green' }
'boss': { text: 'Boss直聘', color: 'blue' },
'liepin': { text: '猎聘', color: 'green' }
}
const platform = platformMap[params.row.platform_type] || { text: params.row.platform_type, color: 'default' }
return h('Tag', { props: { color: platform.color } }, platform.text)

View File

@@ -850,8 +850,8 @@ export default {
// 获取平台颜色
getPlatformColor(platformType) {
const colorMap = {
'1': 'blue',
'2': 'green'
'boss': 'blue',
'liepin': 'green'
}
return colorMap[platformType] || 'default'
},
@@ -859,8 +859,8 @@ export default {
// 获取平台文本
getPlatformText(platformType) {
const textMap = {
'1': 'Boss直聘',
'2': '猎聘'
'boss': 'Boss直聘',
'liepin': '猎聘'
}
return textMap[platformType] || platformType || '-'
}