flat: 后台调整

This commit is contained in:
Apcallover
2025-11-27 20:10:02 +08:00
parent 535cf65a33
commit 7c8a91eb2d
3 changed files with 23 additions and 18 deletions

View File

@@ -112,6 +112,7 @@ function ModelManagement() {
// 按模型类型分组
const groupedData: ModelConfig = {};
const types: string[] = [];
const names = '人岗匹配度计算模型';
data.forEach((item: ConfigItem) => {
if (!groupedData[item.modelType]) {
@@ -119,6 +120,14 @@ function ModelManagement() {
types.push(item.modelType);
}
groupedData[item.modelType].push(item);
// 匹配度 ---------记得删除
if ('人岗精准匹配模型' === item.modelType) {
if (!groupedData[names]) {
groupedData[names] = [];
types.push(names);
}
groupedData[names].push(item);
}
});
setConfigData(groupedData);
@@ -227,7 +236,7 @@ function ModelManagement() {
// 模型切换 - 修复:使用最新的 configData
const handleModelChange = (key: string) => {
setSelectedModel(key);
const modelConfigs = configData[key] || [];
let modelConfigs = configData[key] || [];
setFormValues(key, modelConfigs);
};

View File

@@ -1,5 +1,5 @@
import { Modal, Table } from 'antd';
import { ProDescriptions } from '@ant-design/pro-components';
import { ProDescriptions } from '@ant-design/pro-components';
import type { ColumnsType } from 'antd/es/table';
import React from 'react';
@@ -76,13 +76,9 @@ const ViewStorageDetail: React.FC<StorageFormProps> = (props) => {
>
{/* <ProDescriptions.Item dataIndex="detectionId" label="监测ID" /> */}
<ProDescriptions.Item dataIndex="storageDate" label="采集入库日期" />
<ProDescriptions.Item dataIndex="storageNumber" label="采集入库数量" />
<ProDescriptions.Item dataIndex="storageNumber" label="采集数量" />
<ProDescriptions.Item dataIndex="storageResult" label="采集入库结果" />
<ProDescriptions.Item
dataIndex="storageDetail"
label="入库数据详情"
span={2}
/>
<ProDescriptions.Item dataIndex="storageDetail" label="入库数据详情" span={2} />
</ProDescriptions>
</div>

View File

@@ -58,14 +58,14 @@ function StorageDetectionList() {
align: 'center',
hideInSearch: true,
},
{
title: '入库数据来源名称',
dataIndex: 'websiteName',
valueType: 'text',
align: 'center',
hideInSearch: true,
ellipsis: true,
},
// {
// title: '入库数据来源名称',
// dataIndex: 'websiteName',
// valueType: 'text',
// align: 'center',
// hideInSearch: true,
// ellipsis: true,
// },
{
title: '入库数据详情',
dataIndex: 'storageDetail',