Commit 131e2181 authored by 张博's avatar 张博

chongtu

parent fb3f65bf
...@@ -114,11 +114,7 @@ class MaskContent extends Component { ...@@ -114,11 +114,7 @@ class MaskContent extends Component {
<div className="mask-content"> <div className="mask-content">
<AmosWebSocket ref={node => this.aws = node} url={wsURL} onMessage={this.handleData} reconnect debug /> <AmosWebSocket ref={node => this.aws = node} url={wsURL} onMessage={this.handleData} reconnect debug />
{ !alarmStarted && sideControlShow && <SideControl multiple={multiple} errorAreaId={errorAreaId} onItemClick={onItemClick} layerConfig={layerConfig} animationProps={controlAnimation} />} { !alarmStarted && sideControlShow && <SideControl multiple={multiple} errorAreaId={errorAreaId} onItemClick={onItemClick} layerConfig={layerConfig} animationProps={controlAnimation} />}
<<<<<<< HEAD
{ !alarmStarted && <SearchPane visible={searchPaneVisible} focusPosition={focusPosition} changeSearchPaneVisible={this.changeSearchPaneVisible} />}
=======
{ !alarmStarted && isShowActionBar && <SearchPane visible={searchPaneVisible} focusPosition={focusPosition} changeSearchPaneVisible={() => this.changeSearchPaneVisible} />} { !alarmStarted && isShowActionBar && <SearchPane visible={searchPaneVisible} focusPosition={focusPosition} changeSearchPaneVisible={() => this.changeSearchPaneVisible} />}
>>>>>>> 876bde88e84eb33f87d6e192dd5d0e5e70297f58
<TopMsg alarmStart={alarmStart} /> <TopMsg alarmStart={alarmStart} />
{ !alarmStarted && !isShowActionBar && <ModelHeader animationProps={controlAnimation} headerName={headerName} handleExceptModel={this.handleExceptModel} />} { !alarmStarted && !isShowActionBar && <ModelHeader animationProps={controlAnimation} headerName={headerName} handleExceptModel={this.handleExceptModel} />}
{ !alarmStarted && isShowActionBar && <ActionBar activeAction={activeAction} onActionItemClick={(e) => this.actionBarClick(e)} animationProps={controlAnimation} /> } { !alarmStarted && isShowActionBar && <ActionBar activeAction={activeAction} onActionItemClick={(e) => this.actionBarClick(e)} animationProps={controlAnimation} /> }
......
...@@ -42,8 +42,6 @@ class PointLeftTree extends Component { ...@@ -42,8 +42,6 @@ class PointLeftTree extends Component {
} }
<<<<<<< HEAD
=======
componentWillMount() { componentWillMount() {
const { treeData, pointTypeArr, treeDataList } = this.props; const { treeData, pointTypeArr, treeDataList } = this.props;
this.setState({ this.setState({
...@@ -62,15 +60,15 @@ class PointLeftTree extends Component { ...@@ -62,15 +60,15 @@ class PointLeftTree extends Component {
treeDataList treeDataList
}); });
} }
>>>>>>> 876bde88e84eb33f87d6e192dd5d0e5e70297f58
onSelectChange = (value, item) =>{ onSelectChange = (value, item) =>{
console.log(value, item); console.log(value, item);
this.setState({ pointType: value }); this.setState({ pointType: value });
this.props.pointTypeChange(value); this.props.pointTypeChange(value);
} }
onSearchChange =(e,value) => { onSearchChange = e => {
const { treeDataList,treeData } = this.props; const { treeDataList,treeData } = this.state;
const value = e.target.value;
const expandedKeys = treeDataList const expandedKeys = treeDataList
.map(item => { .map(item => {
if (item.title.indexOf(value) > -1) { if (item.title.indexOf(value) > -1) {
...@@ -127,17 +125,7 @@ class PointLeftTree extends Component { ...@@ -127,17 +125,7 @@ class PointLeftTree extends Component {
<span> <span>
{title} {title}
<span className='icon'> <span className='icon'>
<<<<<<< HEAD
{
item.isRegion ? item.isBind ? <img src={moduleEditIcon.bindedTip} alt='' /> :
<img src={moduleEditIcon.nobindTip} alt='' /> :
item.isBind ? <img src={moduleEditIcon.bindedTip} alt='' /> :
item.position3d ? <img src={moduleEditIcon.noSaveTip} alt='' /> :
<img src={moduleEditIcon.nobindTip} alt='' />
}
=======
{ item.isBind ? <img src={moduleEditIcon.bindedTip} alt='' /> : <img src={moduleEditIcon.nobindTip} alt='' /> } { item.isBind ? <img src={moduleEditIcon.bindedTip} alt='' /> : <img src={moduleEditIcon.nobindTip} alt='' /> }
>>>>>>> 876bde88e84eb33f87d6e192dd5d0e5e70297f58
</span> </span>
</span> : </span> :
<span <span
...@@ -149,18 +137,6 @@ class PointLeftTree extends Component { ...@@ -149,18 +137,6 @@ class PointLeftTree extends Component {
{title} {title}
<span className='icon'> <span className='icon'>
{ {
<<<<<<< HEAD
item.isRegion ? item.isBind ? <img src={moduleEditIcon.bindedTip} alt='' /> :
<img src={moduleEditIcon.nobindTip} alt='' /> :
item.isBind ? <img src={moduleEditIcon.bindedTip} alt='' /> :
item.position3d ? <img src={moduleEditIcon.noSaveTip} alt='' /> :
<img src={moduleEditIcon.nobindTip} alt='' />
}
</span>
</span>}
</div>
}
=======
this.checkPointIsNoSave(pointType,item) ? <img src={moduleEditIcon.noSaveTip} alt='' /> : this.checkPointIsNoSave(pointType,item) ? <img src={moduleEditIcon.noSaveTip} alt='' /> :
item.isBind ? <img src={moduleEditIcon.bindedTip} alt='' /> : item.isBind ? <img src={moduleEditIcon.bindedTip} alt='' /> :
<img src={moduleEditIcon.nobindTip} alt='' /> <img src={moduleEditIcon.nobindTip} alt='' />
...@@ -169,7 +145,6 @@ class PointLeftTree extends Component { ...@@ -169,7 +145,6 @@ class PointLeftTree extends Component {
</span>} </span>}
</div> </div>
} }
>>>>>>> 876bde88e84eb33f87d6e192dd5d0e5e70297f58
key={item.id} key={item.id}
dataRef={item} dataRef={item}
onDragStart={() => { onDragStart={() => {
...@@ -205,8 +180,7 @@ class PointLeftTree extends Component { ...@@ -205,8 +180,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