flat: 后台调整
This commit is contained in:
@@ -112,6 +112,7 @@ function ModelManagement() {
|
|||||||
// 按模型类型分组
|
// 按模型类型分组
|
||||||
const groupedData: ModelConfig = {};
|
const groupedData: ModelConfig = {};
|
||||||
const types: string[] = [];
|
const types: string[] = [];
|
||||||
|
const names = '人岗匹配度计算模型';
|
||||||
|
|
||||||
data.forEach((item: ConfigItem) => {
|
data.forEach((item: ConfigItem) => {
|
||||||
if (!groupedData[item.modelType]) {
|
if (!groupedData[item.modelType]) {
|
||||||
@@ -119,6 +120,14 @@ function ModelManagement() {
|
|||||||
types.push(item.modelType);
|
types.push(item.modelType);
|
||||||
}
|
}
|
||||||
groupedData[item.modelType].push(item);
|
groupedData[item.modelType].push(item);
|
||||||
|
// 匹配度 ---------记得删除
|
||||||
|
if ('人岗精准匹配模型' === item.modelType) {
|
||||||
|
if (!groupedData[names]) {
|
||||||
|
groupedData[names] = [];
|
||||||
|
types.push(names);
|
||||||
|
}
|
||||||
|
groupedData[names].push(item);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
setConfigData(groupedData);
|
setConfigData(groupedData);
|
||||||
@@ -227,7 +236,7 @@ function ModelManagement() {
|
|||||||
// 模型切换 - 修复:使用最新的 configData
|
// 模型切换 - 修复:使用最新的 configData
|
||||||
const handleModelChange = (key: string) => {
|
const handleModelChange = (key: string) => {
|
||||||
setSelectedModel(key);
|
setSelectedModel(key);
|
||||||
const modelConfigs = configData[key] || [];
|
let modelConfigs = configData[key] || [];
|
||||||
setFormValues(key, modelConfigs);
|
setFormValues(key, modelConfigs);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Modal, Table } from 'antd';
|
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 type { ColumnsType } from 'antd/es/table';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
@@ -76,13 +76,9 @@ const ViewStorageDetail: React.FC<StorageFormProps> = (props) => {
|
|||||||
>
|
>
|
||||||
{/* <ProDescriptions.Item dataIndex="detectionId" label="监测ID" /> */}
|
{/* <ProDescriptions.Item dataIndex="detectionId" label="监测ID" /> */}
|
||||||
<ProDescriptions.Item dataIndex="storageDate" label="采集入库日期" />
|
<ProDescriptions.Item dataIndex="storageDate" label="采集入库日期" />
|
||||||
<ProDescriptions.Item dataIndex="storageNumber" label="采集入库数量" />
|
<ProDescriptions.Item dataIndex="storageNumber" label="采集数量" />
|
||||||
<ProDescriptions.Item dataIndex="storageResult" label="采集入库结果" />
|
<ProDescriptions.Item dataIndex="storageResult" label="采集入库结果" />
|
||||||
<ProDescriptions.Item
|
<ProDescriptions.Item dataIndex="storageDetail" label="入库数据详情" span={2} />
|
||||||
dataIndex="storageDetail"
|
|
||||||
label="入库数据详情"
|
|
||||||
span={2}
|
|
||||||
/>
|
|
||||||
</ProDescriptions>
|
</ProDescriptions>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -103,4 +99,4 @@ const ViewStorageDetail: React.FC<StorageFormProps> = (props) => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default ViewStorageDetail;
|
export default ViewStorageDetail;
|
||||||
|
|||||||
@@ -58,14 +58,14 @@ function StorageDetectionList() {
|
|||||||
align: 'center',
|
align: 'center',
|
||||||
hideInSearch: true,
|
hideInSearch: true,
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
title: '入库数据来源名称',
|
// title: '入库数据来源名称',
|
||||||
dataIndex: 'websiteName',
|
// dataIndex: 'websiteName',
|
||||||
valueType: 'text',
|
// valueType: 'text',
|
||||||
align: 'center',
|
// align: 'center',
|
||||||
hideInSearch: true,
|
// hideInSearch: true,
|
||||||
ellipsis: true,
|
// ellipsis: true,
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
title: '入库数据详情',
|
title: '入库数据详情',
|
||||||
dataIndex: 'storageDetail',
|
dataIndex: 'storageDetail',
|
||||||
@@ -137,4 +137,4 @@ function StorageDetectionList() {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export default StorageDetectionList;
|
export default StorageDetectionList;
|
||||||
|
|||||||
Reference in New Issue
Block a user