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
|
span.glyphicon.glyphicon-floppy-disk
|
||||||
| Save
|
| Save
|
||||||
td(data-title="'Postfach'")
|
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'")
|
td(data-title="'Option'")
|
||||||
.btn-group.btn-group-xs
|
.btn-group.btn-group-xs
|
||||||
span.btn.btn-default(ng-click="item.isEditing = true",ng-if="!item.isEditing")
|
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 = e.source.nodeScope.$modelValue;
|
||||||
$scope.obj.position = e.dest.index;
|
$scope.obj.position = e.dest.index;
|
||||||
if(e.dest.nodesScope.$nodeScope){
|
if(e.dest.nodesScope.$nodeScope){
|
||||||
$scope.obj.parentid = {
|
$scope.obj.parentid = e.dest.nodesScope.$nodeScope.$modelValue.ID;
|
||||||
Int64: e.dest.nodesScope.$nodeScope.$modelValue.ID,
|
|
||||||
Valid: true
|
|
||||||
};
|
|
||||||
}else{
|
}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);
|
$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.add = function(a){
|
||||||
$scope.obj = {};
|
$scope.obj = {};
|
||||||
if(a){
|
if(a){
|
||||||
$scope.obj.parentid = {
|
$scope.obj.parentid = a.$modelValue.ID;
|
||||||
Int64: a.$modelValue.ID,
|
|
||||||
Valid: true
|
|
||||||
};
|
|
||||||
$scope.parent = a.$modelValue;
|
$scope.parent = a.$modelValue;
|
||||||
}else{
|
}else{
|
||||||
$scope.parent = null;
|
$scope.parent = null;
|
||||||
|
|
Reference in New Issue