甘特图自适应,排产时长不能为0
This commit is contained in:
parent
37f769d67a
commit
622c0277ae
@ -116,13 +116,15 @@ export default {
|
||||
this.form.endTime = endDate.getFullYear()+'-'+(endDate.getMonth()+1)+'-'+endDate.getDate()+' '+endDate.getHours()+':'+endDate.getMinutes()+':'+endDate.getSeconds();
|
||||
updateProtask(this.form).then(response =>{
|
||||
console.log("update success:"+id);
|
||||
this.$modal.msgSuccess("保存成功");
|
||||
},err =>{
|
||||
debugger;
|
||||
console.log("update failed:"+err.msg);
|
||||
this.$modal.msgSuccess("保存失败");
|
||||
});
|
||||
});
|
||||
this.changedTaskIds =[];
|
||||
this.$modal.msgSuccess("保存成功");
|
||||
//this.changedTaskIds =[];
|
||||
|
||||
}
|
||||
},
|
||||
handleRefresh(){
|
||||
|
@ -162,17 +162,19 @@ export default {
|
||||
// 3.1 自动调整类型,当存在子节点时自动升级为project
|
||||
gantt.config.auto_types = false;
|
||||
// 3.2 设置不可以拖动进度
|
||||
gantt.config.drag_progress = true;
|
||||
gantt.config.drag_progress = false;
|
||||
// 3.3 设置Task不可以拖动
|
||||
gantt.config.drag_move = true;
|
||||
// 3.4 设置不可以拖动关系
|
||||
gantt.config.drag_links = true;
|
||||
gantt.config.drag_links = false;
|
||||
// 3.5 设置不可拖动Task 大小
|
||||
gantt.config.drag_resize = true;
|
||||
// 3.6 单击显示添加详情
|
||||
gantt.config.details_on_create = true;
|
||||
// 3.7 双击显示明细
|
||||
gantt.config.details_on_dblclick = true;
|
||||
//时间范围自动适应
|
||||
gantt.config.fit_tasks = true;
|
||||
|
||||
let t = this.$props.tasks;
|
||||
let c = this.$props.ids;
|
||||
|
@ -139,7 +139,7 @@
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="生产时长" prop="duration">
|
||||
<el-input-number :precision="0" :step="1" v-model="form.duration" @change="calculateEndTime" placeholder="请输入生产时长" />
|
||||
<el-input-number :min="1" :precision="0" :step="1" v-model="form.duration" @change="calculateEndTime" placeholder="请输入生产时长" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
|
Loading…
Reference in New Issue
Block a user