master
LiuJiaNan 2025-11-13 15:25:31 +08:00
parent c8f0e2d39b
commit 6bbc586733
4 changed files with 13 additions and 2 deletions

View File

@ -159,7 +159,7 @@ const FormItemsRenderer = ({
case FORM_ITEM_RENDER_ENUM.SELECT: case FORM_ITEM_RENDER_ENUM.SELECT:
return ( return (
<Select placeholder={placeholder} showSearch allowClear {...componentProps}> <Select placeholder={placeholder} showSearch allowClear optionFilterProp="children" {...componentProps}>
{(option.items || []).map((item) => { {(option.items || []).map((item) => {
const value = item[itemsFieldKey.valueKey]; const value = item[itemsFieldKey.valueKey];
const label = item[itemsFieldKey.labelKey]; const label = item[itemsFieldKey.labelKey];

View File

@ -98,6 +98,7 @@ function HiddenInfo(props) {
{ label: "存在风险", children: info.hiddenCheckListCO.existingRisks }, { label: "存在风险", children: info.hiddenCheckListCO.existingRisks },
{ label: "风险分级", children: info.hiddenCheckListCO.riskLevel }, { label: "风险分级", children: info.hiddenCheckListCO.riskLevel },
{ label: "隐患清单", children: info.hiddenCheckListCO.listName }, { label: "隐患清单", children: info.hiddenCheckListCO.listName },
{ label: "检查内容", children: info.hiddenCheckListCO.inspectionContent },
] ]
: [] : []
), ),

View File

@ -1,7 +1,15 @@
import { TreeSelect } from "antd"; import { TreeSelect } from "antd";
import { useEffect } from "react"; import { useEffect } from "react";
import { getTreeNodePaths, processTreeDataByLevel, processTreeDataForOnlyLastLevel } from "../../../utils";
const getTreeNodePaths = () => {
};
const processTreeDataByLevel = () => {
};
const processTreeDataForOnlyLastLevel = ({ data }) => {
return data;
};
/** /**
* 基础下拉树组件不建议直接使用此组件二次继承使用 * 基础下拉树组件不建议直接使用此组件二次继承使用
*/ */
@ -70,6 +78,7 @@ function BasicSelectTree(props) {
allowClear allowClear
treeData={processedTreeData} treeData={processedTreeData}
fieldNames={{ label: nameKey, value: idKey, children: childrenKey }} fieldNames={{ label: nameKey, value: idKey, children: childrenKey }}
treeNodeFilterProp={nameKey}
{...restProps} {...restProps}
/> />
); );

View File

@ -13,6 +13,7 @@ export const HIDDEN_STATE_ENUM = [
{ bianma: "100", name: "待确认" }, { bianma: "100", name: "待确认" },
{ bianma: "200", name: "待整改" }, { bianma: "200", name: "待整改" },
{ bianma: "201", name: "确认打回" }, { bianma: "201", name: "确认打回" },
{ bianma: "202", name: "特殊处置" },
{ bianma: "300", name: "待验收" }, { bianma: "300", name: "待验收" },
{ bianma: "301", name: "已验收" }, { bianma: "301", name: "已验收" },
{ bianma: "302", name: "验收打回" }, { bianma: "302", name: "验收打回" },