|
|
|
@ -28,20 +28,21 @@ define(['angular', 'uiBootstrap', 'uiRouter'], function (angular) {
|
|
|
|
|
that.loadApsNotice(1);
|
|
|
|
|
that.stopNotice = function (id) {
|
|
|
|
|
$http.put('/aps/kyc/notice', id).then(function () {
|
|
|
|
|
that.loadApsNotice(1);
|
|
|
|
|
that.loadApsNotice(null);
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
that.getNoticeClients = function (title, id, page) {
|
|
|
|
|
that.showClients = true
|
|
|
|
|
that.clientTitle = title
|
|
|
|
|
that.clientId = id;
|
|
|
|
|
if (that.showClients) {
|
|
|
|
|
that.loadApsNoticeClients(id, page);
|
|
|
|
|
that.loadApsNoticeClients(page);
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
that.loadApsNoticeClients = function (id, page) {
|
|
|
|
|
that.loadApsNoticeClients = function (page) {
|
|
|
|
|
var params = angular.copy(that.params);
|
|
|
|
|
params.page = page || that.clientPagination.page || 1;
|
|
|
|
|
params.id = id;
|
|
|
|
|
params.id = that.clientId;
|
|
|
|
|
$http.get('/aps/kyc/notice/clients', {params: params}).then(function (resp) {
|
|
|
|
|
that.noticeClients = resp.data.data;
|
|
|
|
|
that.clientPagination = resp.data.pagination;
|
|
|
|
@ -55,7 +56,8 @@ define(['angular', 'uiBootstrap', 'uiRouter'], function (angular) {
|
|
|
|
|
size: 'lg',
|
|
|
|
|
controller: 'addApsNoticeCtrl',
|
|
|
|
|
}).result.then(function () {
|
|
|
|
|
that.loadApsNotice(1)
|
|
|
|
|
that.showClients = false
|
|
|
|
|
that.loadApsNotice(null)
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
that.catNotice = function (id) {
|
|
|
|
@ -74,8 +76,23 @@ define(['angular', 'uiBootstrap', 'uiRouter'], function (angular) {
|
|
|
|
|
}],
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
that.setHandle = function (id) {
|
|
|
|
|
|
|
|
|
|
that.setHandle = function (noticeId, id) {
|
|
|
|
|
that.item = {};
|
|
|
|
|
that.item.id = id;
|
|
|
|
|
that.item.handle = 1;
|
|
|
|
|
$http.put('/aps/kyc/notice/client', that.item).then(function () {
|
|
|
|
|
that.loadApsNoticeClients()
|
|
|
|
|
that.loadApsNotice()
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
that.stopNoticeClient = function (noticeId, id) {
|
|
|
|
|
that.item = {};
|
|
|
|
|
that.item.id = id;
|
|
|
|
|
that.item.isValid = 1;
|
|
|
|
|
$http.put('/aps/kyc/notice/client', that.item).then(function () {
|
|
|
|
|
that.loadApsNoticeClients()
|
|
|
|
|
that.loadApsNotice()
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}]);
|
|
|
|
|
app.controller('addApsNoticeCtrl', ['$scope', '$http', function ($scope, $http) {
|
|
|
|
|