diff --git a/src/pages/JobPortal/List/index.tsx b/src/pages/JobPortal/List/index.tsx index 38f120d..c9e696f 100644 --- a/src/pages/JobPortal/List/index.tsx +++ b/src/pages/JobPortal/List/index.tsx @@ -714,7 +714,12 @@ const JobListPage: React.FC = () => { loading={loading} >
- {job.jobTitle || job.title} + + {job.isUrgent === 1 && ( + <Tag color="red" style={{ marginRight: 8, fontSize: 12, lineHeight: '20px' }}>急聘</Tag> + )} + {job.jobTitle || job.title} + {job.minSalary && job.maxSalary ? formatSalary(job.minSalary, job.maxSalary) : (job.salary || '面议')} @@ -775,6 +780,9 @@ const JobListPage: React.FC = () => {
+ {selectedJob?.isUrgent === 1 && ( + <Tag color="red" style={{ marginRight: 8, fontSize: 12, lineHeight: '20px' }}>急聘</Tag> + )} {selectedJob?.jobTitle || selectedJob?.title || '请选择职位'} diff --git a/src/pages/JobPortal/index.tsx b/src/pages/JobPortal/index.tsx index b182457..cceab6c 100644 --- a/src/pages/JobPortal/index.tsx +++ b/src/pages/JobPortal/index.tsx @@ -274,7 +274,12 @@ const JobPortalPage: React.FC = () => { onClick={() => handleJobClick(job)} >
- {job.jobTitle} + + {job.isUrgent === 1 && ( + <Tag color="red" style={{ marginRight: 8, fontSize: 12, lineHeight: '20px' }}>急聘</Tag> + )} + {job.jobTitle} + {formatSalary(job.minSalary, job.maxSalary)}
{job.companyName} diff --git a/src/pages/Management/List/edit.tsx b/src/pages/Management/List/edit.tsx index 2e75370..3eddf99 100644 --- a/src/pages/Management/List/edit.tsx +++ b/src/pages/Management/List/edit.tsx @@ -3,11 +3,12 @@ import { ProForm, ProFormDigit, ProFormSelect, + ProFormSwitch, ProFormText, ProFormTextArea, ProDescriptions, } from '@ant-design/pro-components'; -import { Form, Button, Input, TreeSelect } from 'antd'; +import { Form, Button, Input, TreeSelect, Switch } from 'antd'; import { PlusOutlined, MinusCircleOutlined } from '@ant-design/icons'; import React, { useEffect, useRef, useState } from 'react'; import { DictValueEnumObj } from '@/components/DictTag'; @@ -117,6 +118,7 @@ const listEdit: React.FC = (props) => { position: item.position, })), jobCategory: values.jobCategory, + isUrgent: values.isUrgent ? 1 : 0, }; if (mode === 'edit' && values.jobId) { payload.jobId = values.jobId; @@ -144,6 +146,11 @@ const listEdit: React.FC = (props) => { > + = (props) => {