Commit 74fcc101 authored by liboyang's avatar liboyang

上传格口文件返回值提示

parent 757dcb25
...@@ -69,12 +69,12 @@ angular.module('AvatarCheck.excelAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm ...@@ -69,12 +69,12 @@ angular.module('AvatarCheck.excelAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm
$scope.wrongMsg =-1; $scope.wrongMsg =-1;
$scope.msgText = "上传中,请稍等..." $scope.msgText = "上传中,请稍等..."
HttpService.uploadExcelFile($("#datepicker1").val(),$("#datepicker2").val(),fd,function (data) { HttpService.uploadExcelFile($("#datepicker1").val(),$("#datepicker2").val(),fd,function (data) {
if(data){ if(data.result=="true"){
$scope.closeThisDialog(); $scope.closeThisDialog();
getData(); getData();
MessageService.showAlert("上传成功") MessageService.showAlert("上传成功")
}else{ }else{
$scope.wrongMsg = '上传失败'; $scope.msgText =data.msg;
} }
}) })
}] }]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment