I am trying to integrate CRUD manager to my project developed with vue. I am calling
gantt.project.sync()
Here is my ganttconfig;
var ganttConfig = {
startDate: '2019-01-06 00:00',
project: new ProjectModel({
taskModelClass: Task,
transport: {
load: {
url: Vue.http.options.root + '/api/Planlama/UretimPlanlama/GorevleriGetir',
requestConfig: {
fetchOptions: {
credentials: 'omit'
}
}
},
sync: {
url: Vue.http.options.root + '/api/Planlama/UretimPlanlama/GorevleriGuncelle',
requestConfig: {
fetchOptions: {
credentials: 'omit',
headers: {
'Content-Type': 'application/json'
},
}
}
}
}
}),
columns: [
{ type: 'isemrino', field: 'isemrino', text: 'İŞ EMRİ NO'},
{ type: 'name', width: 250 },
{ type: 'startdate' },
{ type: 'enddate' },
{ type: 'duration' },
{ type: 'durum', field: 'durum', text: 'DURUM'},
{ type: 'kaynaklarkolonu', width: 200, text: 'KAYNAKLAR' },
{ type: 'addnew' }
], // eo columns
subGridConfigs: {
locked: {
flex: 1
},
normal: {
flex: 2
}
},
columnLines: false,
features: {
filter: true,
timeRanges: {
showHeaderElements: true,
showCurrentTimeLine: true
},
labels: {
left: {
field: 'name',
editor: {
type: 'textfield'
}
}
},
taskEdit: {
tabsConfig: {
hareketlertab: {type: 'hareketlertab'}
}
}
}
} // eo ganttConfig