Browse Source

模板修改还原

luolei 5 years ago
parent
commit
b6bd2b0ff3
2 changed files with 6 additions and 20 deletions
  1. 5 12
      src/components/TemplateItems/index.jsx
  2. 1 8
      src/components/TemplateItems/index.less

+ 5 - 12
src/components/TemplateItems/index.jsx

@@ -166,7 +166,7 @@ class TemplateItems extends React.Component {
                     <div className={style.comAdminWrp}>
                         <div className={`${style.tempLists} ${style.tempListsP}`} ref={this.$cont} style={{display:admin?'none':'block',border:'1px solid #EAEDF1'}}>
                             {//个人
-                                allCheckShow ?<div className={`${style.wrapperTop} ${style.wrapperTopM} ${style.personalTmp}`}>
+                                allCheckShow&&!admin ?<div className={`${style.wrapperTop} ${style.wrapperTopM} ${style.personalTmp}`}>
                                     <i></i>
                                     <i></i>
                                     <div className={style['check-wrap']} onClick={handleAllCheckbox}>
@@ -181,18 +181,11 @@ class TemplateItems extends React.Component {
                                 </div>:null
                             }
                             {
-                                <div className="clearfix">
-                                    {
-                                        !allCheckShow&&<div className={`${style.personalTmp} ${style.personalTmpOwn} clearfix`}>
-                                            <span className={style.tip}>个人模板</span>
-                                            <i></i>
-                                            {
-                                                items.length > 0&&<span className={`${style['fr-element']} ${style['manger']}`} onClick={handleMangerTemplate}>管理</span>
-                                            }
-                                        </div>
-                                    }
+                                !allCheckShow&&<div className={`${style.personalTmp} clearfix`}>
+                                    <span className={style.tip}>个人模板</span>
+                                    <i></i>
                                     {
-                                        !admin?!allCheckShowAdmin&&<div className={`${style.personalTmp} ${style.personalTmpStatand}`}>标准模板</div>:''
+                                        items.length > 0&&<span className={`${style['fr-element']} ${style['manger']}`} onClick={handleMangerTemplate}>管理</span>
                                     }
                                 </div>
                             }

+ 1 - 8
src/components/TemplateItems/index.less

@@ -121,20 +121,17 @@
 .fr-element {
     // float: right;
     color: #3B9ED0;
-    color: #fff;
     display: inline-block;
     height: 36px;
     line-height: 36px;
 }
 .personalTmp {
-    width: 50%;
-    float: left;
+    width: 100%;
     height: 40px !important;
     line-height: 40px !important;
     background-color: #EDF8FF;
     padding: 0 10px;
     box-sizing: border-box;
-    cursor: pointer;
     .tip {
 
     }
@@ -142,7 +139,3 @@
         float: right;
     }
 }
-.personalTmpOwn {
-    background-color: #2A9BD5;
-    color: #fff;
-}