11
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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 || '-'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user