Commit 34250ac7 authored by liboyang's avatar liboyang

新增页面

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