Browse Source

增加上下班开关

seimin 2 years ago
parent
commit
0bae86ceb1
1 changed files with 3 additions and 1 deletions
  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
               }).then(function(result) {
1780
               }).then(function(result) {
1781
                 $scope.ifShowTj = result.list[0].valueconfig == 1;
1781
                 $scope.ifShowTj = result.list[0].valueconfig == 1;
1782
+                if($scope.ifShowTj && $scope.isShowTj){
1783
+                    $scope.getDataIndex();
1784
+                }
1782
             });
1785
             });
1783
         }
1786
         }
1784
         $scope.ifShowTjFunc();
1787
         $scope.ifShowTjFunc();
@@ -1818,7 +1821,6 @@ appFormly.controller('newDashCtrl', ['$rootScope', '$auth', '$scope', '$parse',
1818
                 $scope.fetchDhtjList = result.title;
1821
                 $scope.fetchDhtjList = result.title;
1819
             });
1822
             });
1820
         }
1823
         }
1821
-        $scope.getDataIndex();
1822
         // 跳转
1824
         // 跳转
1823
         $scope.goTo = function(url,data){
1825
         $scope.goTo = function(url,data){
1824
             $state.go(url,data);
1826
             $state.go(url,data);