Commit 08113e19 authored by liboyang's avatar liboyang

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

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