diff --git a/src/main/ui/static/payment/merchantid/merchant_id_manager.js b/src/main/ui/static/payment/merchantid/merchant_id_manager.js index 5ea83d503..af5d7935f 100644 --- a/src/main/ui/static/payment/merchantid/merchant_id_manager.js +++ b/src/main/ui/static/payment/merchantid/merchant_id_manager.js @@ -12,17 +12,21 @@ define(['angular', 'static/commons/commons', 'uiBootstrap', 'uiRouter', 'ngBootS app.controller('merchantIdManageCtrl', ['$scope', '$state', '$http', '$uibModal', 'commonDialog', function ($scope, $state, $http,$uibModal,commonDialog) { $scope.pagination = {}; $scope.params = {}; + $scope.isCollapsed = true; $scope.loadClient = function () { + $scope.client_loading = true; $http.get('/sys/merchant_id').then(function (resp) { - $scope.clientsMap = resp.data + $scope.clientsMap = resp.data; + $scope.client_loading = false; }); }; $scope.loadClient(); $scope.loadNotTradeClient = function () { $http.get('/sys/merchant_id/trade').then(function (resp) { $scope.notTradeClientsMap = resp.data.merchant_id_map; - $scope.refresh_time = resp.data.refresh_time + $scope.refresh_time = resp.data.refresh_time; + $scope.disable_button = false; }); }; $scope.loadNotTradeClient(); @@ -63,6 +67,7 @@ define(['angular', 'static/commons/commons', 'uiBootstrap', 'uiRouter', 'ngBootS }) }; $scope.refresh = function () { + $scope.disable_button = true; $http.post('/sys/merchant_id/refresh').then(function (resp) { $scope.loadNotTradeClient(); }); diff --git a/src/main/ui/static/payment/merchantid/templates/merchant_id_manage.html b/src/main/ui/static/payment/merchantid/templates/merchant_id_manage.html index 182febf89..fe2c3c998 100644 --- a/src/main/ui/static/payment/merchantid/templates/merchant_id_manage.html +++ b/src/main/ui/static/payment/merchantid/templates/merchant_id_manage.html @@ -2,6 +2,10 @@ .cursor { cursor: pointer; } + .div-display{ + display: none; + } +
@@ -19,15 +23,27 @@