Commit 08113e19 authored by liboyang's avatar liboyang

添加余废退回和tag的时候禁用按钮,防止添加多次

parent 04b59381
...@@ -120,8 +120,10 @@ angular.module('AvatarCheck.addBackCard', ['ngRoute', 'AvatarCheck.http']) ...@@ -120,8 +120,10 @@ angular.module('AvatarCheck.addBackCard', ['ngRoute', 'AvatarCheck.http'])
console.log($scope.personInfo) console.log($scope.personInfo)
}) })
$scope.confirmAdd = function(){ $scope.confirmAdd = function(){
$scope.can = true;
console.log("list",list) console.log("list",list)
HttpService.addBackCardDataBySjhy(list,function(data){ HttpService.addBackCardDataBySjhy(list,function(data){
$scope.can = false;
$scope.closeThisDialog(); $scope.closeThisDialog();
// MessageService.showAlert("添加成功"); // MessageService.showAlert("添加成功");
reGetData(); reGetData();
......
...@@ -136,7 +136,9 @@ angular.module('AvatarCheck.addFailed', ['ngRoute', 'AvatarCheck.http']) ...@@ -136,7 +136,9 @@ angular.module('AvatarCheck.addFailed', ['ngRoute', 'AvatarCheck.http'])
console.log($scope.personInfo) console.log($scope.personInfo)
}) })
$scope.confirmAdd = function(){ $scope.confirmAdd = function(){
$scope.can = true;
HttpService.addFailedCard(list,function(data){ HttpService.addFailedCard(list,function(data){
$scope.can = false;
$scope.closeThisDialog(); $scope.closeThisDialog();
reGet(); reGet();
cancelAdd(); cancelAdd();
......
...@@ -90,7 +90,9 @@ angular.module('AvatarCheck.addRest', ['ngRoute', 'AvatarCheck.http']) ...@@ -90,7 +90,9 @@ angular.module('AvatarCheck.addRest', ['ngRoute', 'AvatarCheck.http'])
console.log($scope.personInfo) console.log($scope.personInfo)
}) })
$scope.confirmAdd = function(){ $scope.confirmAdd = function(){
$scope.can = true;
HttpService.addRestCard(json,function(data){ HttpService.addRestCard(json,function(data){
$scope.can = false;
$scope.closeThisDialog(); $scope.closeThisDialog();
// MessageService.showAlert("添加成功"); // MessageService.showAlert("添加成功");
cancel(); cancel();
......
...@@ -102,7 +102,9 @@ angular.module('AvatarCheck.addTag', ['ngRoute', 'AvatarCheck.http']) ...@@ -102,7 +102,9 @@ angular.module('AvatarCheck.addTag', ['ngRoute', 'AvatarCheck.http'])
console.log($scope.personInfo) console.log($scope.personInfo)
}) })
$scope.confirmAdd = function(){ $scope.confirmAdd = function(){
$scope.can = true;
HttpService.addTagCard(list,function(data){ HttpService.addTagCard(list,function(data){
$scope.can = false;
$scope.closeThisDialog(); $scope.closeThisDialog();
// MessageService.showAlert("添加成功"); // MessageService.showAlert("添加成功");
cancelAdd(); cancelAdd();
......
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