From 19ef39061ea79f2c43a8e8c596fa35ef0cdff2d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=B2=E5=85=B8=E5=8D=93?= Date: Wed, 24 Sep 2025 12:54:02 +0800 Subject: [PATCH] =?UTF-8?q?flat:=E5=90=88=E5=B9=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Application/ModelManagement/index.tsx | 303 ++++++++++++++++++ .../ModelManagement/modelStyle.less | 19 ++ src/services/analysis/industry.ts | 99 +++--- 3 files changed, 374 insertions(+), 47 deletions(-) create mode 100644 src/pages/Application/ModelManagement/index.tsx create mode 100644 src/pages/Application/ModelManagement/modelStyle.less diff --git a/src/pages/Application/ModelManagement/index.tsx b/src/pages/Application/ModelManagement/index.tsx new file mode 100644 index 0000000..defdd1c --- /dev/null +++ b/src/pages/Application/ModelManagement/index.tsx @@ -0,0 +1,303 @@ +import React, { Fragment } from 'react'; +import { Collapse, InputNumber, Select } from 'antd'; +import style from './modelStyle.less'; + +export default function ModelManagement() { + const text = ` + A dog is a type of domesticated animal. + Known for its loyalty and faithfulness, + it can be found as a welcome guest in many households across the world. +`; + + return ( + + + +
+
+
年龄匹配范围
+
+ +
+
+
+
工作经验范围
+
+ +
+
+
+
+ +
+
+
学历权重
+
+ +
+
+
+
期望薪资权重
+
+ +
+
+
+
工作经验权重
+
+ +
+
+
+
工作地区权重
+
+ +
+
+
+
+ +
+
+
浏览记录
+
+ +
+
+
+
申请记录
+
+ +
+
+
+
收藏记录
+
+ +
+
+
+
+ +
+
+
学历权重
+
+ +
+
+
+
期望薪资权重
+
+ +
+
+
+
工作经验权重
+
+ +
+
+
+
工作地区权重
+
+ +
+
+
+
相似度计算方式
+
+ +
+
+
+
索引粒度
+
+ +
+
+
+
地铁口附近
+
+ +
+
+
+
商圈附近
+
+ +
+
+
+
+
+
+ ); +} diff --git a/src/pages/Application/ModelManagement/modelStyle.less b/src/pages/Application/ModelManagement/modelStyle.less new file mode 100644 index 0000000..69239ab --- /dev/null +++ b/src/pages/Application/ModelManagement/modelStyle.less @@ -0,0 +1,19 @@ +.cards { + display: grid; + grid-template-columns: repeat(4, 1fr); + grid-row-gap: 30px; + + .card { + display: flex; + align-items: center; + margin-right: 80px; + + .label { + margin-right: 10px; + white-space: nowrap; + } + + .input { + } + } +} diff --git a/src/services/analysis/industry.ts b/src/services/analysis/industry.ts index 00fc63e..b9abfe8 100644 --- a/src/services/analysis/industry.ts +++ b/src/services/analysis/industry.ts @@ -1,47 +1,52 @@ -import { request } from '@umijs/max'; -// 行业 -export async function getIndustryTrend(params?: API.Analysis.IndustryParams) { - return request('/api/cms/statics/industry', { - method: 'GET', - params - }); -} -// 区域热力图 -export async function getIndustryAreaTrend(params: any) { - try { - const response = await request('/api/cms/statics/industryArea', { - method: 'GET', - params, - headers: { - 'Content-Type': 'application/json' - } - }); - - console.log('接口原始响应:', response); // 调试日志 - return response; // 兼容不同后端响应格式 - } catch (error) { - console.error('接口请求异常:', error); - throw error; - } -} -// 薪资 -export async function getSalaryTrend(params?: API.Analysis.IndustryParams) { - return request('/api/cms/statics/salary', { - method: 'GET', - params - }); -} -// 工作年限 -export async function getWorkYearTrend(params?: API.Analysis.IndustryParams) { - return request('/api/cms/statics/workYear', { - method: 'GET', - params - }); -} -// 学历趋势 -export async function getEducationTrend(params?: API.Analysis.IndustryParams) { - return request('/api/cms/statics/education', { - method: 'GET', - params - }); -} \ No newline at end of file +import { request } from '@umijs/max'; + +// 行业 +export async function getIndustryTrend(params?: API.Analysis.IndustryParams) { + return request('/api/cms/statics/industry', { + method: 'GET', + params, + }); +} + +// 区域热力图 +export async function getIndustryAreaTrend(params: any) { + try { + const response = await request('/api/cms/statics/industryArea', { + method: 'GET', + params, + headers: { + 'Content-Type': 'application/json', + }, + }); + + console.log('接口原始响应:', response); // 调试日志 + return response; // 兼容不同后端响应格式 + } catch (error) { + console.error('接口请求异常:', error); + throw error; + } +} + +// 薪资 +export async function getSalaryTrend(params?: API.Analysis.IndustryParams) { + return request('/api/cms/statics/salary', { + method: 'GET', + params, + }); +} + +// 工作年限 +export async function getWorkYearTrend(params?: API.Analysis.IndustryParams) { + return request('/api/cms/statics/workYear', { + method: 'GET', + params, + }); +} + +// 学历趋势 +export async function getEducationTrend(params?: API.Analysis.IndustryParams) { + return request('/api/cms/statics/education', { + method: 'GET', + params, + }); +}