add int without nullint of golang sql
This commit is contained in:
parent
822e7fe3fe
commit
87ddb163c2
|
@ -36,7 +36,7 @@
|
|||
span.glyphicon.glyphicon-floppy-disk
|
||||
| Save
|
||||
td(data-title="'Postfach'")
|
||||
span(ng-repeat="i in loginlist",ng-if="i.ID == item.login.Int64") {{i.username}}
|
||||
span(ng-repeat="i in loginlist",ng-if="i.ID == item.login") {{i.username}}
|
||||
td(data-title="'Option'")
|
||||
.btn-group.btn-group-xs
|
||||
span.btn.btn-default(ng-click="item.isEditing = true",ng-if="!item.isEditing")
|
||||
|
|
|
@ -16,12 +16,9 @@ angular.module('warehost')
|
|||
$scope.obj = e.source.nodeScope.$modelValue;
|
||||
$scope.obj.position = e.dest.index;
|
||||
if(e.dest.nodesScope.$nodeScope){
|
||||
$scope.obj.parentid = {
|
||||
Int64: e.dest.nodesScope.$nodeScope.$modelValue.ID,
|
||||
Valid: true
|
||||
};
|
||||
$scope.obj.parentid = e.dest.nodesScope.$nodeScope.$modelValue.ID;
|
||||
}else{
|
||||
$scope.obj.parentid = {Int64: 0, Valid: false};
|
||||
$scope.obj.parentid = null;
|
||||
}
|
||||
$http.patch(config.api+'/web/website/'+$stateParams.websiteid+'/menu/'+$scope.obj.ID,$scope.obj).then(submitresult);
|
||||
}
|
||||
|
@ -59,10 +56,7 @@ angular.module('warehost')
|
|||
$scope.add = function(a){
|
||||
$scope.obj = {};
|
||||
if(a){
|
||||
$scope.obj.parentid = {
|
||||
Int64: a.$modelValue.ID,
|
||||
Valid: true
|
||||
};
|
||||
$scope.obj.parentid = a.$modelValue.ID;
|
||||
$scope.parent = a.$modelValue;
|
||||
}else{
|
||||
$scope.parent = null;
|
||||
|
|
Reference in New Issue