Commit 5c4d6c40 authored by liboyang's avatar liboyang

添加备注

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