Commit c05eb0b5 authored by “lixuyan”'s avatar “lixuyan”

修改甘特图工期

parent b737e44c
......@@ -608,19 +608,20 @@ export default {
}
})
this.$api.recursion('ExtProcessExecutorRoute', params, true).then(res => {
this.getData()
this.saveDuration()
})
},
saveDuration() {
const params = this.modifyData.tasks.map(task => {
const params = this.params.data.filter(p => p.type === 'project').map(task => {
return {
id: task.id,
workHour: task.duration,
workHour: Number((task.duration || 0) / 180),
operator: 'MODIFY'
}
})
this.$api.recursion('ExtProcessPlan', params, true).then(res => {
this.getData()
})
}
}
......
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