Explorar o código

增加上下班开关

seimin %!s(int64=2) %!d(string=hai) anos
pai
achega
0bae86ceb1
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      assets/js/controllers/dashboard/newdash.js

+ 3 - 1
assets/js/controllers/dashboard/newdash.js

@@ -1779,6 +1779,9 @@ appFormly.controller('newDashCtrl', ['$rootScope', '$auth', '$scope', '$parse',
1779 1779
                 }
1780 1780
               }).then(function(result) {
1781 1781
                 $scope.ifShowTj = result.list[0].valueconfig == 1;
1782
+                if($scope.ifShowTj && $scope.isShowTj){
1783
+                    $scope.getDataIndex();
1784
+                }
1782 1785
             });
1783 1786
         }
1784 1787
         $scope.ifShowTjFunc();
@@ -1818,7 +1821,6 @@ appFormly.controller('newDashCtrl', ['$rootScope', '$auth', '$scope', '$parse',
1818 1821
                 $scope.fetchDhtjList = result.title;
1819 1822
             });
1820 1823
         }
1821
-        $scope.getDataIndex();
1822 1824
         // 跳转
1823 1825
         $scope.goTo = function(url,data){
1824 1826
             $state.go(url,data);