import{request as e}from"@cqsjjb/jjb-common-lib/http.js";import{useState as r,useEffect as i}from"react";import t from"../../Basic/index.js";import{jsx as o}from"react/jsx-runtime";function n(n){const{params:d={},isNeedCorpInfoId:a=!1,...s}=n,[m,p]=r([]);return i(()=>{(async()=>{if(p([]),a&&!d.eqCorpinfoId)return;const{data:r}=await e("/hidden/hiddenRegion/listByTree","post",d);p(r)})()},[JSON.stringify(d),a]),o(t,{treeData:m,placeholder:"隐患部位",nameKey:"hiddenregion",idKey:"hiddenregionId",...s})}n.displayName="HiddenPartSelectTree";export{n as default};
