|
@@ -584,9 +584,10 @@ class PushContainer extends Component {
|
|
|
store.dispatch(getDptLis([]))
|
|
|
}
|
|
|
render() {
|
|
|
- const { activeId, checkItems,selectTemp,folderListContentArr, visible, showMsg,hasMore,current,floderListAdmin, items, allCheckShow,allCheckShowAdmin,adminItems,admin,checkItemsAdmin,clearSearch, templateNormsSearchList, departLis} = this.props;
|
|
|
+ const { activeId, checkItems,selectTemp,folderListContentArr, visible, showMsg,hasMore,current,floderListAdmin, items,
|
|
|
+ allCheckShow,allCheckShowAdmin,adminItems,admin,checkItemsAdmin,clearSearch, templateNormsSearchList, departLis,mode} = this.props;
|
|
|
const { type,okBorderColor,okColor,oKBg,okText,message,folderListShow,value,reset } = this.state
|
|
|
- const { handleChangeValue, handleChangeIpt} = this
|
|
|
+ const { handleChangeValue, handleChangeIpt} = this;
|
|
|
return <div className={style["container"]} ref={this.$cont} >
|
|
|
<Tab tabs={this.state.tabs}
|
|
|
activeId={activeId}
|
|
@@ -596,39 +597,40 @@ class PushContainer extends Component {
|
|
|
{/*<PushItemsContainer></PushItemsContainer>*/}
|
|
|
<PushEmbed></PushEmbed>
|
|
|
<CaseQuailty></CaseQuailty>
|
|
|
- <TemplateItems
|
|
|
- items={items}
|
|
|
- clearSearch={clearSearch}
|
|
|
- adminItems={adminItems}
|
|
|
- admin={admin}
|
|
|
- handleAllCheckboxAdmin={this.handleAllCheckboxAdmin}
|
|
|
- handleMangerTemplateAdmin={this.handleMangerTemplateAdmin}
|
|
|
- current={current}
|
|
|
- hasMore={hasMore}
|
|
|
- checkItems={checkItems}
|
|
|
- checkItemsAdmin={checkItemsAdmin}
|
|
|
- allCheckShow={allCheckShow}
|
|
|
- allCheckShowAdmin={allCheckShowAdmin}
|
|
|
- handleContentClick={this.handleContentClick}
|
|
|
- handleTemplateDel={this.handleTemplateDel}
|
|
|
- handleTitleChange={this.handleTitleChange}
|
|
|
- handleDelList={this.handleDelList}
|
|
|
- handleMangerTemplate={this.handleMangerTemplate}
|
|
|
- handleAllCheckbox={this.handleAllCheckbox}
|
|
|
- handleClickGetMore={this.handleClickGetMore}
|
|
|
- templateSearch={this.templateSearch}
|
|
|
- whichTemp={this.whichTemp}
|
|
|
- selectTemp={selectTemp}
|
|
|
- floderSlide={this.floderSlideToggle}
|
|
|
- floderAction={this.floderActionDo}
|
|
|
- floderDelete={this.floderDelete}
|
|
|
- floderRename={this.floderRename}
|
|
|
- folderListContentArr={folderListContentArr}
|
|
|
- templateNormsSearchList={templateNormsSearchList}
|
|
|
- clearTemplateSearch={this.clearTemplateSearch}
|
|
|
- reset = {reset}
|
|
|
- clearReset = {this.clearReset}
|
|
|
- ></TemplateItems>
|
|
|
+ <TemplateItems
|
|
|
+ mode={mode}
|
|
|
+ items={items}
|
|
|
+ clearSearch={clearSearch}
|
|
|
+ adminItems={adminItems}
|
|
|
+ admin={admin}
|
|
|
+ handleAllCheckboxAdmin={this.handleAllCheckboxAdmin}
|
|
|
+ handleMangerTemplateAdmin={this.handleMangerTemplateAdmin}
|
|
|
+ current={current}
|
|
|
+ hasMore={hasMore}
|
|
|
+ checkItems={checkItems}
|
|
|
+ checkItemsAdmin={checkItemsAdmin}
|
|
|
+ allCheckShow={allCheckShow}
|
|
|
+ allCheckShowAdmin={allCheckShowAdmin}
|
|
|
+ handleContentClick={this.handleContentClick}
|
|
|
+ handleTemplateDel={this.handleTemplateDel}
|
|
|
+ handleTitleChange={this.handleTitleChange}
|
|
|
+ handleDelList={this.handleDelList}
|
|
|
+ handleMangerTemplate={this.handleMangerTemplate}
|
|
|
+ handleAllCheckbox={this.handleAllCheckbox}
|
|
|
+ handleClickGetMore={this.handleClickGetMore}
|
|
|
+ templateSearch={this.templateSearch}
|
|
|
+ whichTemp={this.whichTemp}
|
|
|
+ selectTemp={selectTemp}
|
|
|
+ floderSlide={this.floderSlideToggle}
|
|
|
+ floderAction={this.floderActionDo}
|
|
|
+ floderDelete={this.floderDelete}
|
|
|
+ floderRename={this.floderRename}
|
|
|
+ folderListContentArr={folderListContentArr}
|
|
|
+ templateNormsSearchList={templateNormsSearchList}
|
|
|
+ clearTemplateSearch={this.clearTemplateSearch}
|
|
|
+ reset = {reset}
|
|
|
+ clearReset = {this.clearReset}
|
|
|
+ ></TemplateItems>
|
|
|
<MedicalInfoContainer></MedicalInfoContainer>
|
|
|
</TemplateContainer>
|
|
|
</Tab>
|
|
@@ -714,7 +716,6 @@ class PushContainer extends Component {
|
|
|
</div>
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
const mapStateToProps = (state) => {//console.log(state)
|
|
|
return {
|
|
|
items: state.tabTemplate.items,
|
|
@@ -728,7 +729,7 @@ const mapStateToProps = (state) => {//console.log(state)
|
|
|
visible: state.tabTemplate.visible,
|
|
|
showMsg: state.tabTemplate.showMsg,
|
|
|
allCheckShow: state.tabTemplate.allCheckShow,
|
|
|
-
|
|
|
+ mode:state.typeConfig.typeConfig[0],
|
|
|
allCheckedAdmin: state.tabTemplate.allCheckedAdmin,
|
|
|
allCheckShowAdmin: state.tabTemplate.allCheckShowAdmin,
|
|
|
checkItemsAdmin: state.tabTemplate.checkItemsAdmin,
|