flat: 后台调整
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user