|
@@ -72,7 +72,7 @@ class TemplateItems extends React.Component {
|
|
|
}
|
|
|
floderSlide(e,item,i){
|
|
|
e.stopPropagation()
|
|
|
- const {floderSlide,admin,clearReset} = this.props
|
|
|
+ const {floderSlide,admin,clearReset,selectTemp} = this.props
|
|
|
const {showIndex} = this.state
|
|
|
if(!item.templateInfo){
|
|
|
return;
|
|
@@ -83,9 +83,9 @@ class TemplateItems extends React.Component {
|
|
|
let tmpD = domLis[i]
|
|
|
$(tmpD).children().eq(1).slideUp()
|
|
|
}
|
|
|
- floderSlide(item.id)
|
|
|
+ // floderSlide(item.id)
|
|
|
clearReset&&clearReset()
|
|
|
- if(admin) {
|
|
|
+ if(admin ||!admin&&selectTemp) {
|
|
|
if(showIndex === i) {
|
|
|
this.setState({
|
|
|
showIndex: -1
|
|
@@ -149,7 +149,7 @@ class TemplateItems extends React.Component {
|
|
|
<div className={style.floderPart}>
|
|
|
<div className={`${style.floderPartFl} floderSlideLis`} onClick={(e)=>this.floderSlide(e,tmpItm,i)}>
|
|
|
{admin&&<img src={showIndex== i?floderD:floderR} className={style.floderRD}/>}
|
|
|
- {!admin&&<img src={tmpItm.slide == 1?floderD:floderR} className={style.floderRD}/>}
|
|
|
+ {/* {!admin&&<img src={tmpItm.slide == 1?floderD:floderR} className={style.floderRD}/>} */}
|
|
|
{tmpItm.name}({tmpItm.templateInfoCount})
|
|
|
{admin&&tmpItm.name!='未分类文件夹'&&<span className={`${style.floderPartAction}`} id="floderActionBtn" onClick={(e)=>{this.floderAction(e,tmpItm.id)}}>...</span>}
|
|
|
{tmpItm.action == 1&&tmpItm.name!='未分类文件夹'&&<div className={style.floderAction} id="floderAction">
|