|
|
|
@ -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 (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',
|
|
|
|
|