diff --git a/sentinel-dashboard/src/main/webapp/resources/app/scripts/controllers/degrade.js b/sentinel-dashboard/src/main/webapp/resources/app/scripts/controllers/degrade.js index 204c5c01a6..7e9beac5f3 100755 --- a/sentinel-dashboard/src/main/webapp/resources/app/scripts/controllers/degrade.js +++ b/sentinel-dashboard/src/main/webapp/resources/app/scripts/controllers/degrade.js @@ -83,6 +83,11 @@ app.controller('DegradeCtl', ['$scope', '$stateParams', 'DegradeService', 'ngDia }); }; + $scope.onGradeChange = function () { + $scope.currentRule.count = undefined; + $scope.currentRule.slowRatioThreshold = undefined; + }; + $scope.saveRule = function () { if (!DegradeService.checkRuleValid($scope.currentRule)) { return; diff --git a/sentinel-dashboard/src/main/webapp/resources/app/views/dialog/degrade-rule-dialog.html b/sentinel-dashboard/src/main/webapp/resources/app/views/dialog/degrade-rule-dialog.html index a013762e9e..f9154f7b3d 100755 --- a/sentinel-dashboard/src/main/webapp/resources/app/views/dialog/degrade-rule-dialog.html +++ b/sentinel-dashboard/src/main/webapp/resources/app/views/dialog/degrade-rule-dialog.html @@ -32,9 +32,9 @@
-  慢调用比例   -  异常比例   -  异常数 +  慢调用比例   +  异常比例   +  异常数