From 6fae98440a77c9d85ebae3853ff6f636785d6224 Mon Sep 17 00:00:00 2001 From: yuan <1551130722@qq.com> Date: Thu, 26 Apr 2018 18:52:29 +0800 Subject: [PATCH] fix~ --- .../payment/merchantid/merchant_id_manager.js | 9 ++++++-- .../templates/merchant_id_manage.html | 21 +++++++++++++++++-- 2 files changed, 26 insertions(+), 4 deletions(-) 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; + } +