|
@ -2,7 +2,6 @@ |
|
|
<Dialog |
|
|
<Dialog |
|
|
v-model="modelVisible" |
|
|
v-model="modelVisible" |
|
|
top="10%" |
|
|
top="10%" |
|
|
style="z-index: 2049;" |
|
|
|
|
|
:title="propData.id ? '管理' : '新增'" |
|
|
:title="propData.id ? '管理' : '新增'" |
|
|
width="1000px" |
|
|
width="1000px" |
|
|
> |
|
|
> |
|
@ -243,6 +242,7 @@ export default { |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
onAddTaskGroup() { |
|
|
onAddTaskGroup() { |
|
|
|
|
|
this.editingTime = '0:0'; |
|
|
this.isShowTimeEdit = true; |
|
|
this.isShowTimeEdit = true; |
|
|
}, |
|
|
}, |
|
|
onModifyTime(taskG) { |
|
|
onModifyTime(taskG) { |
|
@ -282,23 +282,21 @@ export default { |
|
|
}, |
|
|
}, |
|
|
onSubmitTime(time) { |
|
|
onSubmitTime(time) { |
|
|
this.isShowTimeEdit = false; |
|
|
this.isShowTimeEdit = false; |
|
|
|
|
|
let aryTime = time.split(':') |
|
|
|
|
|
if(aryTime.length >= 2){ |
|
|
|
|
|
if(aryTime[0].length === 1){ |
|
|
|
|
|
aryTime[0] = '0'+aryTime[0] |
|
|
|
|
|
} |
|
|
|
|
|
if(aryTime[1].length === 1){ |
|
|
|
|
|
aryTime[1] = '0'+aryTime[1] |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
let _time = aryTime.join(':'); |
|
|
if (Object.keys(this.selectedTaskGroup).length > 0) { |
|
|
if (Object.keys(this.selectedTaskGroup).length > 0) { |
|
|
let aryTime = time.split(':') |
|
|
this.selectedTaskGroup.time = _time; |
|
|
if(aryTime.length === 3){ |
|
|
|
|
|
if(aryTime[0].length === 1){ |
|
|
|
|
|
aryTime[0] = '0'+aryTime[0] |
|
|
|
|
|
} |
|
|
|
|
|
if(aryTime[1].length === 1){ |
|
|
|
|
|
aryTime[1] = '0'+aryTime[1] |
|
|
|
|
|
} |
|
|
|
|
|
if(aryTime[2].length === 1){ |
|
|
|
|
|
aryTime[2] = '0'+aryTime[1] |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
this.selectedTaskGroup.time = aryTime.join(':'); |
|
|
|
|
|
this.selectedTaskGroup = {}; |
|
|
this.selectedTaskGroup = {}; |
|
|
} else { |
|
|
} else { |
|
|
this.taskGroupsEditing.push({ time, tasks: [] }); |
|
|
this.taskGroupsEditing.push({ time: _time, tasks: [] }); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
let detailedConfiguration = []; |
|
|
let detailedConfiguration = []; |
|
@ -360,13 +358,14 @@ export default { |
|
|
if (result.code != 200) return; |
|
|
if (result.code != 200) return; |
|
|
this.taskGroupsEditing.forEach((item) => { |
|
|
this.taskGroupsEditing.forEach((item) => { |
|
|
let aryTime = item.time.split(':') |
|
|
let aryTime = item.time.split(':') |
|
|
if(aryTime.length === 3){ |
|
|
|
|
|
|
|
|
if(aryTime.length >= 2){ |
|
|
|
|
|
if(aryTime[0].length === 1){ |
|
|
|
|
|
aryTime[0] = '0'+aryTime[0] |
|
|
|
|
|
} |
|
|
if(aryTime[1].length === 1){ |
|
|
if(aryTime[1].length === 1){ |
|
|
aryTime[1] = '0'+aryTime[1] |
|
|
aryTime[1] = '0'+aryTime[1] |
|
|
} |
|
|
} |
|
|
if(aryTime[2].length === 1){ |
|
|
|
|
|
aryTime[2] = '0'+aryTime[1] |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
item.time = aryTime.join(':') |
|
|
item.time = aryTime.join(':') |
|
|
let arr = _.filter(result.data, (itm) => { |
|
|
let arr = _.filter(result.data, (itm) => { |
|
@ -374,7 +373,6 @@ export default { |
|
|
}); |
|
|
}); |
|
|
this.$set(item, "tasksEdit", arr); |
|
|
this.$set(item, "tasksEdit", arr); |
|
|
// item.tasksEdit = arr; |
|
|
// item.tasksEdit = arr; |
|
|
console.log(this.taskGroupsEditing,333344) |
|
|
|
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|