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 && (
+ 急聘
+ )}
+ {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 && (
+ 急聘
+ )}
{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 && (
+ 急聘
+ )}
+ {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) => {
+
(
+ {
+ await updateCmsJobList({
+ jobId: record.jobId,
+ isUrgent: record.isUrgent === 1 ? 0 : 1,
+ });
+ actionRef.current?.reload();
+ }} />
+ ),
+ },
{
title: '是否发布',
dataIndex: 'isPublish',
diff --git a/src/types/Management/list.d.ts b/src/types/Management/list.d.ts
index 236a02f..6958ac6 100644
--- a/src/types/Management/list.d.ts
+++ b/src/types/Management/list.d.ts
@@ -14,6 +14,7 @@ declare namespace API.ManagementList {
isApply?: number;
isCollection?: number;
isHot?: number;
+ isUrgent?: number;
jobId?: number;
jobLocation?: string;
jobLocationAreaCode?: string;
@@ -42,6 +43,7 @@ declare namespace API.ManagementList {
isApply?: number;
isCollection?: number;
isHot?: number;
+ isUrgent?: number;
jobId?: number;
jobLocation?: string;
jobLocationAreaCode?: string;