master
parent
c8f0e2d39b
commit
6bbc586733
|
|
@ -159,7 +159,7 @@ const FormItemsRenderer = ({
|
|||
|
||||
case FORM_ITEM_RENDER_ENUM.SELECT:
|
||||
return (
|
||||
<Select placeholder={placeholder} showSearch allowClear {...componentProps}>
|
||||
<Select placeholder={placeholder} showSearch allowClear optionFilterProp="children" {...componentProps}>
|
||||
{(option.items || []).map((item) => {
|
||||
const value = item[itemsFieldKey.valueKey];
|
||||
const label = item[itemsFieldKey.labelKey];
|
||||
|
|
|
|||
|
|
@ -98,6 +98,7 @@ function HiddenInfo(props) {
|
|||
{ label: "存在风险", children: info.hiddenCheckListCO.existingRisks },
|
||||
{ label: "风险分级", children: info.hiddenCheckListCO.riskLevel },
|
||||
{ label: "隐患清单", children: info.hiddenCheckListCO.listName },
|
||||
{ label: "检查内容", children: info.hiddenCheckListCO.inspectionContent },
|
||||
]
|
||||
: []
|
||||
),
|
||||
|
|
|
|||
|
|
@ -1,7 +1,15 @@
|
|||
import { TreeSelect } from "antd";
|
||||
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
|
||||
treeData={processedTreeData}
|
||||
fieldNames={{ label: nameKey, value: idKey, children: childrenKey }}
|
||||
treeNodeFilterProp={nameKey}
|
||||
{...restProps}
|
||||
/>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ export const HIDDEN_STATE_ENUM = [
|
|||
{ bianma: "100", name: "待确认" },
|
||||
{ bianma: "200", name: "待整改" },
|
||||
{ bianma: "201", name: "确认打回" },
|
||||
{ bianma: "202", name: "特殊处置" },
|
||||
{ bianma: "300", name: "待验收" },
|
||||
{ bianma: "301", name: "已验收" },
|
||||
{ bianma: "302", name: "验收打回" },
|
||||
|
|
|
|||
Loading…
Reference in New Issue