|
@@ -112,10 +112,10 @@ class TemplateItems extends React.Component {
|
|
|
this.props.floderAction(false,'none')
|
|
|
this.props.floderRename(name,id)
|
|
|
}
|
|
|
- floderDelete(e){
|
|
|
+ floderDelete(e,id){
|
|
|
e.stopPropagation()
|
|
|
this.props.floderAction(false,'none')
|
|
|
- this.props.floderDelete()
|
|
|
+ this.props.floderDelete(id)
|
|
|
}
|
|
|
genAdminItems(items,flg) {
|
|
|
const Floder=[],Items = [];
|
|
@@ -126,11 +126,11 @@ class TemplateItems extends React.Component {
|
|
|
<div className={style.floderPart}>
|
|
|
<div className={style.floderPartFl} onClick={(e)=>this.floderSlide(e,tmpItm)}>
|
|
|
<img src={tmpItm.slide == 1?floderD:floderR} className={style.floderRD}/>
|
|
|
- {tmpItm.name}
|
|
|
+ {tmpItm.name}({tmpItm.templateInfoCount})
|
|
|
<span className={`${style.floderPartAction}`} id="floderActionBtn" onClick={(e)=>{this.floderAction(e,tmpItm.id)}}>...</span>
|
|
|
{tmpItm.action == 1&&<div className={style.floderAction} id="floderAction">
|
|
|
<p onClick={(e)=>{this.floderRename(e,tmpItm.name,tmpItm.id)}}>重命名文件夹</p>
|
|
|
- <p onClick={(e)=>{this.floderDelete(e)}}>删除文件夹</p>
|
|
|
+ <p onClick={(e)=>{this.floderDelete(e,tmpItm.id)}}>删除文件夹</p>
|
|
|
</div>}
|
|
|
</div>
|
|
|
{
|