wangning 7 years ago
commit d2ae70876f

@ -375,7 +375,7 @@ public class PartnerViewController {
return clientManager.getCheckClientInfo(account.getIntValue("client_id"),account.getString("account_id"),"PC"); return clientManager.getCheckClientInfo(account.getIntValue("client_id"),account.getString("account_id"),"PC");
} }
@PartnerMapping(value = "/agree/confirm", method = RequestMethod.POST,roles = PartnerRole.ADMIN) @PartnerMapping(value = "/agree/confirm", method = RequestMethod.POST,roles = {PartnerRole.ADMIN, PartnerRole.MANAGER})
@ResponseBody @ResponseBody
public void confirmSourceAgreeFile(@ModelAttribute(CommonConsts.PARTNER_STATUS) JSONObject account) { public void confirmSourceAgreeFile(@ModelAttribute(CommonConsts.PARTNER_STATUS) JSONObject account) {
clientContractService.confirmSourceAgreement(account.getIntValue("client_id"),account.getString("account_id"),"PC"); clientContractService.confirmSourceAgreement(account.getIntValue("client_id"),account.getString("account_id"),"PC");

@ -42,6 +42,9 @@ define(['angular', 'angularSanitize', 'angularAnimate', 'angularMessages', 'uiRo
}) })
} }
connectWebSocket(); connectWebSocket();
if ($scope.currentUser.role == 1 || $scope.currentUser.role == 2) {
$scope.getAgStatus();
}
}, function (resp) { }, function (resp) {
if (resp.status == 403) { if (resp.status == 403) {
location.href = 'login.html?f=' + encodeURIComponent(location.href); location.href = 'login.html?f=' + encodeURIComponent(location.href);
@ -131,7 +134,7 @@ define(['angular', 'angularSanitize', 'angularAnimate', 'angularMessages', 'uiRo
}); });
}; };
// $scope.getAgStatus();
$scope.refundNotice = {counts: 0}; $scope.refundNotice = {counts: 0};
$scope.openRefundNotice = false; $scope.openRefundNotice = false;
$scope.showRefundNotice = function () { $scope.showRefundNotice = function () {

@ -55,10 +55,10 @@ $(function () {
method: 'GET', method: 'GET',
dataType: 'text', dataType: 'text',
success: function (data) { success: function (data) {
if (data > 0) { // if (data > 0) {
$('.points-dialog .points-value').html('+ ' + data); // $('.points-dialog .points-value').html('+ ' + data);
$('.points-dialog').removeClass('hide'); // $('.points-dialog').removeClass('hide');
} // }
}, error: function () { }, error: function () {
} }

Loading…
Cancel
Save