fixed issue of deleting email message in Admin UI

pull/42/MERGE
13621160019@163.com 2021-06-09 18:56:22 +08:00
parent ac1b94abae
commit 384e73f38a
3 changed files with 11 additions and 36 deletions

View File

@ -59,7 +59,7 @@ app.controller('EmailMessageController', function($scope, $timeout,$translate,
showCloseButton: true, showCloseButton: true,
}); });
$scope.getEmailMessages(); $scope.$emit('handleEmitEmailMessageTableChanged');
} else { } else {
var templateName = "FDD.EMAIL_MESSAGE"; var templateName = "FDD.EMAIL_MESSAGE";
templateName = $translate.instant(templateName); templateName = $translate.instant(templateName);
@ -85,7 +85,4 @@ app.controller('EmailMessageController', function($scope, $timeout,$translate,
}); });
}; };
// $scope.getEmailMessages();
}); });

View File

@ -38,22 +38,11 @@ app.controller('EmailMessageOptionController', function($scope, $timeout,
period:$scope.currentPeriod period:$scope.currentPeriod
}); });
if(true){ EmailMessageAnalysisService.getAnalysisResult(query, function(error, data) {
EmailMessageAnalysisService.getAnalysisResult(query, function(error, data) { if (!error) {
if (!error) { $scope.$emit('handleEmitEmailMessageOptionChanged', data);
$scope.$emit('handleEmitEmailMessageOptionChanged', data); }
} });
});
}else{
EmailMessageAnalysisService.getTestDataResult(query, function(error, data) {
if (!error) {
$timeout(function(){
$scope.$emit('handleEmitEmailMessageOptionChanged', data);
},1000);
}
});
}
}; };
$timeout(function() { $timeout(function() {

View File

@ -38,22 +38,11 @@ app.controller('TextMessageOptionController', function($scope, $timeout,
period:$scope.currentPeriod period:$scope.currentPeriod
}); });
if(true){ TextMessageAnalysisService.getAnalysisResult(query, function(error, data) {
TextMessageAnalysisService.getAnalysisResult(query, function(error, data) { if (!error) {
if (!error) { $scope.$emit('handleEmitTextMessageOptionChanged', data);
$scope.$emit('handleEmitTextMessageOptionChanged', data); }
} });
});
}else{
TextMessageAnalysisService.getTestDataResult(query, function(error, data) {
if (!error) {
$timeout(function(){
$scope.$emit('handleEmitTextMessageOptionChanged', data);
},1000);
}
});
}
}; };
$timeout(function() { $timeout(function() {