From 58d59c1f1a3b72f3424a41be01d7f017d64571b2 Mon Sep 17 00:00:00 2001 From: lepdou Date: Thu, 19 May 2016 17:03:43 +0800 Subject: [PATCH] . --- .../src/main/resources/static/config.html | 122 +++++++++++++----- .../app/ConfigNamespaceController.js | 1 + .../controller/app/ItemCreateController.js | 14 ++ 3 files changed, 108 insertions(+), 29 deletions(-) create mode 100644 apollo-portal/src/main/resources/static/scripts/controller/app/ItemCreateController.js diff --git a/apollo-portal/src/main/resources/static/config.html b/apollo-portal/src/main/resources/static/config.html index e1c20794d..2aa5c6028 100644 --- a/apollo-portal/src/main/resources/static/config.html +++ b/apollo-portal/src/main/resources/static/config.html @@ -75,13 +75,13 @@ - - - - - + + + + + - +
@@ -108,7 +108,8 @@
@@ -116,7 +117,8 @@ @@ -132,7 +134,8 @@
- 有修改 + 有修改
@@ -196,6 +199,12 @@ ng-show="namespace.isTextEditing" ng-click="saveDraft(namespace)"> + + + + @@ -203,7 +212,8 @@ @@ -231,25 +241,27 @@ - - + - + - + - + @@ -337,12 +349,14 @@ @@ -351,7 +365,7 @@ - + + + + @@ -419,6 +482,7 @@ + diff --git a/apollo-portal/src/main/resources/static/scripts/controller/app/ConfigNamespaceController.js b/apollo-portal/src/main/resources/static/scripts/controller/app/ConfigNamespaceController.js index 3cd7a9c68..080a6524d 100644 --- a/apollo-portal/src/main/resources/static/scripts/controller/app/ConfigNamespaceController.js +++ b/apollo-portal/src/main/resources/static/scripts/controller/app/ConfigNamespaceController.js @@ -141,6 +141,7 @@ application_module.controller("ConfigNamespaceController", releaseNamespace.namespace.namespaceName, $scope.releaseTitle, $scope.releaseComment).then( function (result) { + $('#releaseModal').modal('hide'); toastr.success("发布成功"); //refresh all namespace items $rootScope.refreshNamespaces(); diff --git a/apollo-portal/src/main/resources/static/scripts/controller/app/ItemCreateController.js b/apollo-portal/src/main/resources/static/scripts/controller/app/ItemCreateController.js new file mode 100644 index 000000000..29f33d11b --- /dev/null +++ b/apollo-portal/src/main/resources/static/scripts/controller/app/ItemCreateController.js @@ -0,0 +1,14 @@ +application_module.controller("ItemCreateController", + ['$rootScope', '$scope', '$location', 'toastr', 'AppService', 'AppUtil', + function ($rootScope, $scope, $location, toastr, AppService, AppUtil) { + + $scope.create = function () { + console.log("xx"); + + }; + + $scope.key = 'xx'; + + + }]); + -- GitLab