diff --git a/src/main/resources/static/src/topic.js b/src/main/resources/static/src/topic.js index 810f940..83d4345 100644 --- a/src/main/resources/static/src/topic.js +++ b/src/main/resources/static/src/topic.js @@ -265,7 +265,7 @@ module.controller('topicController', ['$scope', 'ngDialog', '$http','Notificatio }); }; - $scope.openUpdateDialog = function (topic) { + $scope.openUpdateDialog = function (topic, sysFlag) { $http({ method: "GET", url: "topic/examineTopicConfig.query", @@ -274,16 +274,15 @@ module.controller('topicController', ['$scope', 'ngDialog', '$http','Notificatio } }).success(function (resp) { if(resp.status ==0){ - $scope.openCreateOrUpdateDialog(resp.data); + $scope.openCreateOrUpdateDialog(resp.data, sysFlag); }else { Notification.error({message: resp.errMsg, delay: 2000}); } }); }; - $scope.openCreateOrUpdateDialog = function (request) { + $scope.openCreateOrUpdateDialog = function (request, sysFlag) { var bIsUpdate = true; - if(request == null){ request = [{ writeQueueNums:16, @@ -309,6 +308,7 @@ module.controller('topicController', ['$scope', 'ngDialog', '$http','Notificatio template: 'topicModifyDialog', controller: 'topicModifyDialogController', data:{ + sysFlag:sysFlag, topicRequestList:request, allClusterNameList:Object.keys(resp.data.clusterInfo.clusterAddrTable), allBrokerNameList:Object.keys(resp.data.brokerServer), @@ -320,7 +320,7 @@ module.controller('topicController', ['$scope', 'ngDialog', '$http','Notificatio } $scope.openAddDialog = function () { - $scope.openCreateOrUpdateDialog(null); + $scope.openCreateOrUpdateDialog(null, false); } }]); diff --git a/src/main/resources/static/view/pages/topic.html b/src/main/resources/static/view/pages/topic.html index 882e28d..fb5cea0 100644 --- a/src/main/resources/static/view/pages/topic.html +++ b/src/main/resources/static/view/pages/topic.html @@ -61,8 +61,7 @@ ng-click="consumerView(topic)">consumer {{'MANAGE' | translate}} topic {{'CONFIG' |translate}} + ng-click="openUpdateDialog(topic, sysFlag)">topic {{'CONFIG' |translate}} {{ 'COMMIT' | translate }}