Browse Source

uas手机版
列表加载逻辑优化

RaoMeng 5 years ago
parent
commit
674ec8f0db

+ 2 - 3
uas-office-web/uas-mobile/src/components/common/func/FuncItem.jsx

@@ -52,7 +52,6 @@ class FuncItem extends Component {
   }
 
   shouldComponentUpdate (nextProps, nextState, nextContext) {
-
     return true
   }
 
@@ -64,10 +63,10 @@ class FuncItem extends Component {
     let {
       funcObj,
       operation,//右上角操作图标
-      supAble,//是否展示角标
       supValue,//角标值
       lineCount,//标题行数
     } = this.props
+
     const { supState } = this.state
 
     let funcTextStyle = {
@@ -103,7 +102,7 @@ class FuncItem extends Component {
             style={funcTextStyle}
           >{funcObj.name}</span>
           {
-            ((supAble && supState) || supValue) ?
+            (supValue || supState) ?
               <sup
                 className='func-func-sup'
                 style={{

+ 7 - 3
uas-office-web/uas-mobile/src/components/common/mainHeader/MainHeader.jsx

@@ -24,15 +24,18 @@ class MainHeader extends Component {
           icon: 'uas-home-schedule',
         },
         {
-          'name': '待审批', countUrl: API.APPCOMMON_COUNT + 'processToDo.action',
+          'name': '待审批',
+          countUrl: API.APPCOMMON_COUNT + 'processToDo.action',
           icon: 'uas-home-approval',
         },
         {
-          'name': '我的待办', countUrl: API.APPCOMMON_COUNT + 'taskToDo.action',
+          'name': '我的待办',
+          countUrl: API.APPCOMMON_COUNT + 'taskToDo.action',
           icon: 'uas-home-task',
         },
         {
-          'name': '我的订阅', countUrl: API.APPCOMMON_COUNT + 'subscribe.action',
+          'name': '我的订阅',
+          countUrl: API.APPCOMMON_COUNT + 'subscribe.action',
           icon: 'uas-home-subscribe',
         },
       ],
@@ -59,6 +62,7 @@ class MainHeader extends Component {
     homeHeaderIcon.forEach((item, index) => {
       homeHeaderList.push(
         <FuncItem
+          supAble
           funcObj={item}
           supValue={item.sup}
           onFuncClick={this.onFuncClick.bind(this)}