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

View File

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