Commit 34250ac7 authored by liboyang's avatar liboyang

新增页面

parent ebfd2ca9
...@@ -198,6 +198,9 @@ angular.module('AvatarCheck', [ ...@@ -198,6 +198,9 @@ angular.module('AvatarCheck', [
$location.path("/createTaskList"); $location.path("/createTaskList");
} }
}).filter('myDateFilter', function() { //可以注入依赖 }).filter('myDateFilter', function() { //可以注入依赖
return function(permanentPositionDate) { return function(permanentPositionDate) {
......
...@@ -28,6 +28,9 @@ angular.module('AvatarCheck.addRest', ['ngRoute', 'AvatarCheck.http']) ...@@ -28,6 +28,9 @@ angular.module('AvatarCheck.addRest', ['ngRoute', 'AvatarCheck.http'])
for(var i=0;i<$scope.arr.length;i++){ for(var i=0;i<$scope.arr.length;i++){
array.push($(".rest")[i].value) array.push($(".rest")[i].value)
} }
var json={};
json.name=$rootScope.loginData.name;
json.list = array;
console.log(array) console.log(array)
ngDialog.open({ ngDialog.open({
template: 'dialogs/confirmRestCards.html' + urlTimeStamp(), template: 'dialogs/confirmRestCards.html' + urlTimeStamp(),
...@@ -35,12 +38,12 @@ angular.module('AvatarCheck.addRest', ['ngRoute', 'AvatarCheck.http']) ...@@ -35,12 +38,12 @@ angular.module('AvatarCheck.addRest', ['ngRoute', 'AvatarCheck.http'])
cache: false, cache: false,
closeByDocument:false, closeByDocument:false,
controller: ['$scope', 'HttpService','MessageService',function ($scope,HttpService,MessageService) { controller: ['$scope', 'HttpService','MessageService',function ($scope,HttpService,MessageService) {
HttpService.getPersonInfo(array,function(data){ HttpService.getPersonInfo(json,function(data){
$scope.personInfo = data; $scope.personInfo = data;
console.log($scope.personInfo) console.log($scope.personInfo)
}) })
$scope.confirmAdd = function(){ $scope.confirmAdd = function(){
HttpService.addRestCard(array,function(data){ HttpService.addRestCard(json,function(data){
$scope.closeThisDialog(); $scope.closeThisDialog();
MessageService.showAlert("添加成功"); MessageService.showAlert("添加成功");
console.log(data) console.log(data)
......
...@@ -92,7 +92,7 @@ ...@@ -92,7 +92,7 @@
</table> </table>
</div> </div>
<div style="text-align:right;padding: 10px;padding-top: 0;"> <div style="text-align:right;padding: 10px;padding-top: 0;">
<button class="btn btn-info">添加快证</button> <button class="btn btn-info" ng-click="">添加快证</button>
<button class="btn btn-danger">退证</button> <button class="btn btn-danger">退证</button>
</div> </div>
</div> </div>
......
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