Compare commits
No commits in common. "6bbc5867339a3ebfd83259e266d1374b5c974071" and "4f0f3657428e4922c8f361916e892e707637787e" have entirely different histories.
6bbc586733
...
4f0f365742
|
|
@ -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 optionFilterProp="children" {...componentProps}>
|
<Select placeholder={placeholder} showSearch allowClear {...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];
|
||||||
|
|
|
||||||
|
|
@ -98,7 +98,6 @@ 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 },
|
|
||||||
]
|
]
|
||||||
: []
|
: []
|
||||||
),
|
),
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,7 @@
|
||||||
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;
|
|
||||||
};
|
|
||||||
/**
|
/**
|
||||||
* 基础下拉树组件(不建议直接使用此组件,二次继承使用)
|
* 基础下拉树组件(不建议直接使用此组件,二次继承使用)
|
||||||
*/
|
*/
|
||||||
|
|
@ -78,7 +70,6 @@ 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}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,6 @@ 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: "验收打回" },
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "zy-react-library",
|
"name": "zy-react-library",
|
||||||
"private": false,
|
"private": false,
|
||||||
"version": "1.0.89",
|
"version": "1.0.88",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "",
|
"description": "",
|
||||||
"author": "LiuJiaNan",
|
"author": "LiuJiaNan",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue