serviceDataByOptions
.getPriority()
.then(function(data) {
return vm.choices = data;
})
.then(function() {
serviceDataByOptions
.getTag()
.then(function(data) {
return vm.choicesTag = data;
})
.catch(function(error) {
console.log(error);
});
})
.then(function() {
serviceDataByOptions
.getStatus()
.then(function(data) {
vm.choicesStatus = data;
})
.catch(function(error) {
console.log(error);
});
})
.catch(function(error) {
console.log(error);
});
serviceDataByOptions
.getPriority()
.then(function(data) {
//vm.choices = [{id:'0c4dc671-b202-44a2-bf15-d94773cc1ccd',name:'Низкий'}];
vm.choices = data;
vm.priorityNew = '';
serviceDataByOptions
.getTag()
.then(function(data) {
vm.choicesTag = data;
vm.selectModelNew = {
tag: []
};
serviceDataByOptions
.getStatus()
.then(function(data) {
vm.choicesStatus = data;
vm.statusNew = '';
})
.catch(function(error) {
console.log(error);
});
})
.catch(function(error) {
console.log(error);
});
})
.catch(function(error) {
console.log(error);
});