Commit fe0e16d5 authored by shanqiyun's avatar shanqiyun

冲突

parents 0f641961 4fb030cc
...@@ -66,8 +66,8 @@ class PointLeftTree extends Component { ...@@ -66,8 +66,8 @@ class PointLeftTree extends Component {
this.setState({ pointType: value }); this.setState({ pointType: value });
this.props.pointTypeChange(value); this.props.pointTypeChange(value);
} }
onSearchChange =(e,value) => { onSearchChange = (e,value) => {
const { treeDataList,treeData } = this.props; const { treeDataList,treeData } = this.state;
const expandedKeys = treeDataList const expandedKeys = treeDataList
.map(item => { .map(item => {
if (item.title.indexOf(value) > -1) { if (item.title.indexOf(value) > -1) {
...@@ -179,8 +179,7 @@ class PointLeftTree extends Component { ...@@ -179,8 +179,7 @@ class PointLeftTree extends Component {
} }
render() { render() {
const { treeData,pointTypeArr } = this.props; let { treeData,pointTypeArr,pointType } = this.state;
const pointType = pointTypeArr[0] ? pointTypeArr[0].code : '';
return ( return (
<div className="leftTree"> <div className="leftTree">
<div className='leftContainer'> <div className='leftContainer'>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment