From b3238e5c2bd315a0a97b5a086d6647e1f7af6e4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=B2=E5=85=B8=E5=8D=93?= Date: Fri, 28 Mar 2025 15:30:35 +0800 Subject: [PATCH] =?UTF-8?q?flat:=20=E6=9A=82=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/routes.ts | 21 +- package.json | 2 + src/app.tsx | 58 +-- src/components/ProFromMap/index.less | 24 ++ src/components/ProFromMap/index.tsx | 226 ++++++++++ src/components/ProFromMap/point.png | Bin 0 -> 3554 bytes src/global.less | 9 +- src/models/testModel.ts | 11 + src/pages/Application/Preproducts/edit.tsx | 128 ++++++ src/pages/Application/Preproducts/index.tsx | 221 ++++++++++ src/pages/Area/Business/edit.tsx | 92 +++- src/pages/Area/Subway/UpLine/edit.tsx | 105 ++++- src/pages/Area/Subway/UpLine/index.tsx | 109 +++-- src/pages/Area/Subway/index.tsx | 71 ++-- src/pages/Classify/Industry/edit.tsx | 144 +++++++ src/pages/Classify/Industry/index.tsx | 221 ++++++++++ src/pages/Classify/Jobs/edit.tsx | 78 ++++ src/pages/Classify/Jobs/index.tsx | 216 ++++++++++ src/pages/Company/List/edit.tsx | 86 ++-- src/pages/Company/List/index.tsx | 73 ++-- src/pages/Jobfair/List/edit.tsx | 61 ++- src/pages/Jobfair/List/index.tsx | 9 +- .../Management/List/SeeMatching/detail.tsx | 74 ++++ .../Management/List/SeeMatching/index.tsx | 235 ++++++++++ src/pages/Management/List/edit.tsx | 123 ++++-- src/pages/Management/List/index.tsx | 175 ++++++-- src/pages/Mobileusers/List/index.tsx | 177 ++++++++ src/pages/System/DictData/index.tsx | 57 ++- src/pages/System/Menu/index.tsx | 23 +- src/pages/User/Login/index.tsx | 12 +- src/services/Management/list.ts | 30 +- src/services/application/preproducts.ts | 28 ++ src/services/area/business.ts | 14 +- src/services/classify/industry.ts | 43 ++ src/services/classify/jobs.ts | 17 + src/services/company/list.ts | 12 +- src/services/jobfair/list.ts | 30 +- src/services/mobileusers/list.ts | 23 + src/services/system/dict.ts | 68 ++- src/services/system/dictdata.ts | 21 +- src/types/Management/list.d.ts | 34 ++ src/types/application/preproducts.d.ts | 25 ++ src/types/area/business.d.ts | 3 +- src/types/classify/industry.d.ts | 43 ++ src/types/classify/jobs.d.ts | 25 ++ src/types/company/list.d.ts | 4 +- src/types/jobfair/list.d.ts | 8 +- src/types/mobileusers/list.d.ts | 38 ++ src/utils/similarity_Job.js | 401 ++++++++++++++++++ src/utils/tools.ts | 10 + 50 files changed, 3302 insertions(+), 416 deletions(-) create mode 100644 src/components/ProFromMap/index.less create mode 100644 src/components/ProFromMap/index.tsx create mode 100644 src/components/ProFromMap/point.png create mode 100644 src/models/testModel.ts create mode 100644 src/pages/Application/Preproducts/edit.tsx create mode 100644 src/pages/Application/Preproducts/index.tsx create mode 100644 src/pages/Classify/Industry/edit.tsx create mode 100644 src/pages/Classify/Industry/index.tsx create mode 100644 src/pages/Classify/Jobs/edit.tsx create mode 100644 src/pages/Classify/Jobs/index.tsx create mode 100644 src/pages/Management/List/SeeMatching/detail.tsx create mode 100644 src/pages/Management/List/SeeMatching/index.tsx create mode 100644 src/pages/Mobileusers/List/index.tsx create mode 100644 src/services/application/preproducts.ts create mode 100644 src/services/classify/industry.ts create mode 100644 src/services/classify/jobs.ts create mode 100644 src/services/mobileusers/list.ts create mode 100644 src/types/application/preproducts.d.ts create mode 100644 src/types/classify/industry.d.ts create mode 100644 src/types/classify/jobs.d.ts create mode 100644 src/types/mobileusers/list.d.ts create mode 100644 src/utils/similarity_Job.js diff --git a/config/routes.ts b/config/routes.ts index 934eb70..b14a729 100644 --- a/config/routes.ts +++ b/config/routes.ts @@ -52,10 +52,21 @@ export default [ routes: [ { name: '字典数据', - path: '/area/updata-router/index', + path: '/area/updata-router/index/:id', component: './Area/Subway/UpLine', }, - ] + ], + }, + { + name: 'management', + path: '/management', + routes: [ + { + name: '字典数据', + path: '/management/see-matching/index/:id', + component: './Management/List/SeeMatching', + }, + ], }, { name: 'system', @@ -76,7 +87,7 @@ export default [ path: '/system/role-auth/user/:id', component: './System/Role/authUser', }, - ] + ], }, { name: 'monitor', @@ -87,7 +98,7 @@ export default [ path: '/monitor/job-log/index/:id', component: './Monitor/JobLog', }, - ] + ], }, { name: 'tool', @@ -103,6 +114,6 @@ export default [ path: '/tool/gen/edit.tsx', component: './Tool/Gen/edit.tsx', }, - ] + ], }, ]; diff --git a/package.json b/package.json index 4763d98..d6e21ad 100644 --- a/package.json +++ b/package.json @@ -53,6 +53,7 @@ "not ie <= 10" ], "dependencies": { + "@amap/amap-jsapi-loader": "^1.0.1", "@ant-design/icons": "^5.5.0", "@ant-design/plots": "^2.3.2", "@ant-design/pro-components": "^2.7.19", @@ -64,6 +65,7 @@ "antd-style": "^3.6.2", "classnames": "^2.5.1", "dayjs": "^1.11.13", + "echarts": "^5.6.0", "fabric": "^6.4.0", "highlight.js": "^11.10.0", "lodash": "^4.17.21", diff --git a/src/app.tsx b/src/app.tsx index 9e5d8aa..900d7e9 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -1,18 +1,21 @@ -import { Footer, Question, SelectLang, AvatarDropdown, AvatarName } from '@/components'; -import { LinkOutlined } from '@ant-design/icons'; +import { AvatarDropdown, AvatarName, Footer, SelectLang } from '@/components'; import type { Settings as LayoutSettings } from '@ant-design/pro-components'; import { SettingDrawer } from '@ant-design/pro-components'; import type { RunTimeLayoutConfig } from '@umijs/max'; -import { history, Link } from '@umijs/max'; +import { history } from '@umijs/max'; import defaultSettings from '../config/defaultSettings'; import { errorConfig } from './requestErrorConfig'; import { clearSessionToken, getAccessToken, getRefreshToken, getTokenExpireTime } from './access'; -import { getRemoteMenu, getRoutersInfo, getUserInfo, patchRouteWithRemoteMenus, setRemoteMenu } from './services/session'; +import { + getRemoteMenu, + getRoutersInfo, + getUserInfo, + patchRouteWithRemoteMenus, + setRemoteMenu, +} from './services/session'; import { PageEnum } from './enums/pagesEnums'; -import {logout} from "@/services/system/auth"; import { stringify } from 'querystring'; -import { message } from 'antd' -import { createRef } from 'react'; +import { message } from 'antd'; const isDev = process.env.NODE_ENV === 'development'; const loginOut = async () => { @@ -23,7 +26,7 @@ const loginOut = async () => { /** 此方法会跳转到 redirect 参数所在的位置 */ const redirect = urlParams.get('redirect'); // Note: There may be security issues, please note - console.log('redirect', window.location.pathname, redirect) + console.log('redirect', window.location.pathname, redirect); if (window.location.pathname !== '/qingdao/user/login' && !redirect) { history.replace({ pathname: '/user/login', @@ -34,7 +37,6 @@ const loginOut = async () => { } }; - /** * @see https://umijs.org/zh-CN/plugins/plugin-initial-state * */ @@ -79,12 +81,12 @@ export async function getInitialState(): Promise<{ settings: defaultSettings as Partial, }; } + // ProLayout 支持的api https://procomponents.ant.design/components/layout export const layout: RunTimeLayoutConfig = ({ initialState, setInitialState }) => { - return { // actionsRender: () => [, ], - actionsRender: () => [ ], + actionsRender: () => [], avatarProps: { src: initialState?.currentUser?.avatar, title: , @@ -106,7 +108,7 @@ export const layout: RunTimeLayoutConfig = ({ initialState, setInitialState }) = if (!initialState?.currentUser?.userId) { return []; } - return getRemoteMenu() + return getRemoteMenu(); }, }, footerRender: () =>