Commit 5c4d6c40 authored by liboyang's avatar liboyang

添加备注

parent 229816c3
......@@ -24,7 +24,7 @@
.ngdialog.ngdialog-theme-default {
padding-bottom: 160px;
padding-top: 160px;
padding-top: 50px;
}
.ngdialog.ngdialog-theme-default.ngdialog-closing .ngdialog-content {
......
......@@ -42,6 +42,7 @@
<tr>
<td style="text-align:left;"><strong>内件性质:</strong>{{item.natureOfTheInternal}}</td>
<td style="text-align:left;"><strong>内件信息:</strong>{{item.natureOfTheInformation}}</td>
<td style="text-align:left;"><strong>备注:</strong>{{item.note}}</td>
</tr>
</table>
</div>
\ No newline at end of file
......@@ -20,6 +20,5 @@
</table>
</div>
<div class="ui-dialog-confirm">
<button type="submit" class="btn btn-info" ng-click="">复核一致</button>
<button type="submit" class="btn btn-primary" ng-click="">打印条形码</button>
<button type="submit" class="btn btn-info" ng-click="updateNoteData()">更新</button>
</div>
\ No newline at end of file
......@@ -886,6 +886,7 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
},
getNoteToUpdate:function(data,success) {
var body = JSON.stringify(data);
console.log(body)
$http({
method: 'POST',
url: "../personPostApi/selectNote",
......@@ -894,6 +895,18 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
}).then(function successCallback(response) {
success(response.data)
})
},
updateTheseNote:function(data,success){
var body = JSON.stringify(data);
console.log(body)
$http({
method: 'POST',
url: "../personPostApi/addNote",
data: body,
headers: {'Content-Type': 'application/json'}
}).then(function successCallback(response) {
success(response.data)
})
}
}
});
\ No newline at end of file
......@@ -277,6 +277,7 @@ angular.module('AvatarCheck.uploadExcelAndSearch', ['ngRoute', 'AvatarCheck.http
cache: false,
controller: ['$scope', function ($scope) {
$scope.item = itemData;
console.log($scope.item)
}]
});
}
......@@ -322,7 +323,25 @@ angular.module('AvatarCheck.uploadExcelAndSearch', ['ngRoute', 'AvatarCheck.http
console.log(arr)
HttpService.getNoteToUpdate(arr,function(data) {
$scope.idAndNote = data;
console.log( $scope.idAndNote)
})
$scope.updateNoteData = function(){
var arr = [];
for (var i=0;i<$scope.idAndNote.length;i++){
var json={
id:$scope.idAndNote[i].ID,
note:$scope.idAndNote[i].NOTE
}
arr.push(json);
}
HttpService.updateTheseNote(arr,function(data) {
if(data){
$scope.closeThisDialog();
MessageService.showAlert("更新成功")
}
})
}
}]
......
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