Browse Source

菜单数字BUG修复

seimin 3 years ago
parent
commit
1dc7ddf458
1 changed files with 9 additions and 9 deletions
  1. 9 9
      assets/js/controllers/mainCtrl.js

+ 9 - 9
assets/js/controllers/mainCtrl.js

@@ -1628,7 +1628,7 @@ app.controller('AppCtrl', ['$rootScope', '$scope', '$state', '$translate', '$loc
1628
                                 }
1628
                                 }
1629
                                 if (item.children) {
1629
                                 if (item.children) {
1630
                                     angular.forEach(item.children, function (index) {
1630
                                     angular.forEach(item.children, function (index) {
1631
-                                        if (response.hjzxCount && response.hjzxCount > 0) {
1631
+                                        if (response.hjzxCount !== null &&response.hjzxCount !== undefined) {
1632
                                             if (index.id == 1208) {
1632
                                             if (index.id == 1208) {
1633
                                                 if (response.hjzxCount < 100) {
1633
                                                 if (response.hjzxCount < 100) {
1634
                                                     index.tipnum = response.hjzxCount;
1634
                                                     index.tipnum = response.hjzxCount;
@@ -1637,7 +1637,7 @@ app.controller('AppCtrl', ['$rootScope', '$scope', '$state', '$translate', '$loc
1637
                                                 }
1637
                                                 }
1638
                                             }
1638
                                             }
1639
                                         }
1639
                                         }
1640
-                                        if (response.wechatWarningCount && response.wechatWarningCount > 0) {
1640
+                                        if (response.wechatWarningCount !== null &&response.wechatWarningCount !== undefined) {
1641
                                             if (index.id == 59) {
1641
                                             if (index.id == 59) {
1642
                                                 if (response.wechatWarningCount < 100) {
1642
                                                 if (response.wechatWarningCount < 100) {
1643
                                                     index.tipnum = response.wechatWarningCount;
1643
                                                     index.tipnum = response.wechatWarningCount;
@@ -1646,7 +1646,7 @@ app.controller('AppCtrl', ['$rootScope', '$scope', '$state', '$translate', '$loc
1646
                                                 }
1646
                                                 }
1647
                                             }
1647
                                             }
1648
                                         }
1648
                                         }
1649
-                                        if (response.problemCount && response.problemCount > 0) {
1649
+                                        if (response.problemCount !== null &&response.problemCount !== undefined) {
1650
                                             if (index.id == 1210) {
1650
                                             if (index.id == 1210) {
1651
                                                 if (response.problemCount < 100) {
1651
                                                 if (response.problemCount < 100) {
1652
                                                     index.tipnum = response.problemCount;
1652
                                                     index.tipnum = response.problemCount;
@@ -1655,7 +1655,7 @@ app.controller('AppCtrl', ['$rootScope', '$scope', '$state', '$translate', '$loc
1655
                                                 }
1655
                                                 }
1656
                                             }
1656
                                             }
1657
                                         }
1657
                                         }
1658
-                                        if (response.releaseCount && response.releaseCount > 0) {
1658
+                                        if (response.releaseCount !== null &&response.releaseCount !== undefined) {
1659
                                             if (index.id == 1216) {
1659
                                             if (index.id == 1216) {
1660
                                                 if (response.releaseCount < 100) {
1660
                                                 if (response.releaseCount < 100) {
1661
                                                     index.tipnum = response.releaseCount;
1661
                                                     index.tipnum = response.releaseCount;
@@ -1664,7 +1664,7 @@ app.controller('AppCtrl', ['$rootScope', '$scope', '$state', '$translate', '$loc
1664
                                                 }
1664
                                                 }
1665
                                             }
1665
                                             }
1666
                                         }
1666
                                         }
1667
-                                        if (response.inspectionCount && response.inspectionCount > 0) {
1667
+                                        if (response.inspectionCount !== null &&response.inspectionCount !== undefined) {
1668
                                             if (index.id == 147) {
1668
                                             if (index.id == 147) {
1669
                                                 if (response.inspectionCount < 100) {
1669
                                                 if (response.inspectionCount < 100) {
1670
                                                     index.tipnum = response.inspectionCount;
1670
                                                     index.tipnum = response.inspectionCount;
@@ -1673,7 +1673,7 @@ app.controller('AppCtrl', ['$rootScope', '$scope', '$state', '$translate', '$loc
1673
                                                 }
1673
                                                 }
1674
                                             }
1674
                                             }
1675
                                         }
1675
                                         }
1676
-                                        if (response.solutionCount && response.solutionCount > 0) {
1676
+                                        if (response.solutionCount !== null &&response.solutionCount !== undefined) {
1677
                                             if (index.id == 23) {
1677
                                             if (index.id == 23) {
1678
                                                 if (response.solutionCount < 100) {
1678
                                                 if (response.solutionCount < 100) {
1679
                                                     index.tipnum = response.solutionCount;
1679
                                                     index.tipnum = response.solutionCount;
@@ -1682,7 +1682,7 @@ app.controller('AppCtrl', ['$rootScope', '$scope', '$state', '$translate', '$loc
1682
                                                 }
1682
                                                 }
1683
                                             }
1683
                                             }
1684
                                         }
1684
                                         }
1685
-                                        if (response.changeCount && response.changeCount > 0) {
1685
+                                        if (response.changeCount !== null &&response.changeCount !== undefined) {
1686
                                             if (index.id == 1213) {
1686
                                             if (index.id == 1213) {
1687
                                                 if (response.changeCount < 100) {
1687
                                                 if (response.changeCount < 100) {
1688
                                                     index.tipnum = response.changeCount;
1688
                                                     index.tipnum = response.changeCount;
@@ -1692,7 +1692,7 @@ app.controller('AppCtrl', ['$rootScope', '$scope', '$state', '$translate', '$loc
1692
                                             }
1692
                                             }
1693
                                         }
1693
                                         }
1694
 
1694
 
1695
-                                        if (response.incidentCount && response.incidentCount > 0) {
1695
+                                        if (response.incidentCount !== null &&response.incidentCount !== undefined) {
1696
                                             if (index.id == 3) {
1696
                                             if (index.id == 3) {
1697
                                                 if (response.incidentCount < 100) {
1697
                                                 if (response.incidentCount < 100) {
1698
                                                     index.tipnum = response.incidentCount;
1698
                                                     index.tipnum = response.incidentCount;
@@ -1701,7 +1701,7 @@ app.controller('AppCtrl', ['$rootScope', '$scope', '$state', '$translate', '$loc
1701
                                                 }
1701
                                                 }
1702
                                             }
1702
                                             }
1703
                                         }
1703
                                         }
1704
-                                        if (response.applicationForm && response.applicationForm > 0) {
1704
+                                        if (response.applicationForm !== null &&response.applicationForm !== undefined) {
1705
                                             if (index.id == 1231) {
1705
                                             if (index.id == 1231) {
1706
                                                 if (response.applicationForm < 100) {
1706
                                                 if (response.applicationForm < 100) {
1707
                                                     index.tipnum = response.applicationForm;
1707
                                                     index.tipnum = response.applicationForm;