|
@@ -62,8 +62,8 @@ class PushContainer extends Component {
|
|
|
fstName:'',
|
|
|
tmpFolder:'',
|
|
|
hasCalcIndex: false,
|
|
|
- hospitalDeptName:''
|
|
|
-
|
|
|
+ hospitalDeptName:'',
|
|
|
+ reset: false
|
|
|
}
|
|
|
this.$cont = React.createRef();
|
|
|
this.itemList = null;
|
|
@@ -91,6 +91,7 @@ class PushContainer extends Component {
|
|
|
this.handleChangeIpt = this.handleChangeIpt.bind(this);
|
|
|
this.setDeptId = this.setDeptId.bind(this);
|
|
|
this.handleClearValue = this.handleClearValue.bind(this);
|
|
|
+ this.clearReset = this.clearReset.bind(this);
|
|
|
}
|
|
|
componentDidMount() {
|
|
|
// const height = getWindowInnerHeight()-160;
|
|
@@ -113,10 +114,18 @@ class PushContainer extends Component {
|
|
|
// let searchVal = document.getElementById("searchTmp").value
|
|
|
store.dispatch(initItemList(1,0));
|
|
|
store.dispatch(getFloderListAll())
|
|
|
+ this.setState({
|
|
|
+ reset: true
|
|
|
+ })
|
|
|
$(".floderSlideLis").eq(0).next().slideDown()
|
|
|
}
|
|
|
store.dispatch(tabChange(id))
|
|
|
}
|
|
|
+ clearReset() {
|
|
|
+ this.setState({
|
|
|
+ reset: false
|
|
|
+ })
|
|
|
+ }
|
|
|
/**
|
|
|
* 引用模板id
|
|
|
* @param {模板id} id
|
|
@@ -559,7 +568,7 @@ class PushContainer extends Component {
|
|
|
}
|
|
|
render() {
|
|
|
const { activeId, checkItems,selectTemp,folderListContentArr, visible, showMsg,hasMore,current,floderListAdmin, items, allCheckShow,allCheckShowAdmin,adminItems,admin,checkItemsAdmin,clearSearch, templateNormsSearchList, departLis} = this.props;
|
|
|
- const { type,okBorderColor,okColor,oKBg,okText,message,folderListShow,value } = this.state
|
|
|
+ const { type,okBorderColor,okColor,oKBg,okText,message,folderListShow,value,reset } = this.state
|
|
|
const { handleChangeValue, handleChangeIpt} = this
|
|
|
return <div className={style["container"]} ref={this.$cont} >
|
|
|
<Tab tabs={this.state.tabs}
|
|
@@ -599,6 +608,8 @@ class PushContainer extends Component {
|
|
|
folderListContentArr={folderListContentArr}
|
|
|
templateNormsSearchList={templateNormsSearchList}
|
|
|
clearTemplateSearch={this.clearTemplateSearch}
|
|
|
+ reset = {reset}
|
|
|
+ clearReset = {this.clearReset}
|
|
|
></TemplateItems>
|
|
|
<MedicalInfoContainer></MedicalInfoContainer>
|
|
|
</TemplateContainer>
|