diff --git a/src/main/ui/static/boot/indexMainApp.js b/src/main/ui/static/boot/indexMainApp.js index 412e25bce..8f9c2e399 100644 --- a/src/main/ui/static/boot/indexMainApp.js +++ b/src/main/ui/static/boot/indexMainApp.js @@ -115,10 +115,11 @@ define(['angular', 'angularSanitize', 'angularAnimate', 'angularMessages', 'uiRo ag: ag }, size: 'lg', + type:'info', backdrop:'static', keyboard:false }).result.then(function () { - $scope.loadPartnerNotice(); + // $scope.loadPartnerNotice(); }) }; @@ -127,9 +128,27 @@ define(['angular', 'angularSanitize', 'angularAnimate', 'angularMessages', 'uiRo // $scope.rate_expire = resp.data.rate_expire; $scope.rate_waring = resp.data.rate_waring; // $scope.file_url = resp.data.file_url; - if($scope.rate_waring){ - $scope.showAG(resp.data); + if (resp.data.is_ordinary){ + if($scope.rate_waring){ + commonDialog.alert({ + title: 'Contract expiration notice', + content: resp.data.contract_info, + size:'lg', + type:'info' + + }).then(function () { + if (resp.data.rate_expire){ + location.href = 'login.html' + } + }) + } + + }else { + if($scope.rate_waring){ + $scope.showAG(resp.data); + } } + }); }; $scope.getAgStatus(); @@ -307,8 +326,9 @@ define(['angular', 'angularSanitize', 'angularAnimate', 'angularMessages', 'uiRo $scope.agreeCheck = false; $scope.agree = function () { $http.post('/sys/partners/agree/confirm').then(function () { - }, function (resp) { $scope.$close(); + }, function (resp) { + commonDialog.alert({title: 'Error', content: resp.data.message, type: 'error'}); }) }; $scope.notAgree = function () { @@ -548,6 +568,11 @@ define(['angular', 'angularSanitize', 'angularAnimate', 'angularMessages', 'uiRo return roles.indexOf($rootScope.currentUser.role) >= 0; } }]); + app.filter("trustUrl", ['$sce', function ($sce) { + return function (recordingUrl) { + return $sce.trustAsResourceUrl(recordingUrl); + }; + }]); app.constant('uiDatetimePickerConfig', { dateFormat: 'yyyy-MM-dd HH:mm', diff --git a/src/main/ui/static/commons/templates/ag_detail.html b/src/main/ui/static/commons/templates/ag_detail.html index 883e43529..90ffdca31 100644 --- a/src/main/ui/static/commons/templates/ag_detail.html +++ b/src/main/ui/static/commons/templates/ag_detail.html @@ -1,10 +1,12 @@ @@ -13,7 +15,7 @@ - +