diff --git a/apollo-portal/src/main/resources/static/index.html b/apollo-portal/src/main/resources/static/index.html index 8e4ef0f2edd58a794b29d12c9d0ad915e503667c..5c1eb40e0a29296b865e36e537b468d0f0096234 100644 --- a/apollo-portal/src/main/resources/static/index.html +++ b/apollo-portal/src/main/resources/static/index.html @@ -19,7 +19,11 @@

Apollo

-

携程统一配置中心
共收录了 8888 个项目

+

携程统一配置中心
+ 共收录了 {{appsCount}} 个项目 + 创建项目 +

+
@@ -45,41 +49,11 @@

-
92793 -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - +
+ diff --git a/apollo-portal/src/main/resources/static/scripts/controller/CreateAppController.js b/apollo-portal/src/main/resources/static/scripts/controller/CreateAppController.js index 9d641469f19c2ee77a31c90ad7d3830e3594d754..774c4f32d34fc874b8eb56ebe1401b9a66b4b826 100644 --- a/apollo-portal/src/main/resources/static/scripts/controller/CreateAppController.js +++ b/apollo-portal/src/main/resources/static/scripts/controller/CreateAppController.js @@ -1,14 +1,6 @@ create_app_module.controller('CreateAppController', ['$scope', '$window', 'toastr', 'AppService', function ($scope, $window, toastr, AppService) { - //todo 便于测试,后续删掉 - $scope.app = { - appId: 1001, - name: 'lepdou', - ownerEmail: 'qqq@qq.com', - ownerName: 'le' - }; - $scope.save = function () { AppService.add($scope.app).then(function (result) { toastr.success('添加成功!'); diff --git a/apollo-portal/src/main/resources/static/scripts/controller/IndexController.js b/apollo-portal/src/main/resources/static/scripts/controller/IndexController.js index 9194e448c17588436348a85253de6ea7a7e37389..587d7e17a62a80f46be3000a3f1295f013fbcb42 100644 --- a/apollo-portal/src/main/resources/static/scripts/controller/IndexController.js +++ b/apollo-portal/src/main/resources/static/scripts/controller/IndexController.js @@ -7,6 +7,7 @@ index_module.controller('IndexController', ['$scope', '$window', 'toastr', 'AppS AppService.find_all_app($scope.env).then(function (result) { apps = result; $scope.apps = apps; + $scope.appsCount = apps.length; }); $scope.search = function () {