|
@@ -1195,7 +1195,7 @@ export default {
|
|
|
this.mileageCup = false
|
|
|
this.addFormVisible = true;
|
|
|
this.curProjectId = obj.stage.projectId;
|
|
|
- const startDates = obj.addForm.startDate ? obj.addForm.startDate + '08:00:00' : ''
|
|
|
+ const startDates = obj.addForm.startDate ? obj.addForm.startDate + ' 08:00:00' : ''
|
|
|
this.addForm = {
|
|
|
projectId: obj.stage.projectId,
|
|
|
groupId: obj.stage.groupId,
|
|
@@ -1933,16 +1933,31 @@ export default {
|
|
|
message: this.$t('message.submittedSuccessfully'),
|
|
|
type: "success"
|
|
|
});
|
|
|
-
|
|
|
if (this.addForm.parentTid == null) {
|
|
|
let obj = {
|
|
|
submitInsert: true,
|
|
|
showOrNot: this.showOrNot
|
|
|
}
|
|
|
+ // if(!addFormData.id) {
|
|
|
+ // obj.dateList = [addFormData.startDate, addFormData.endDate]
|
|
|
+ // }
|
|
|
+ if(!addFormData.id) {
|
|
|
+ localStorage.setItem('ganttChartTaskId', JSON.stringify(res.data || []))
|
|
|
+ }
|
|
|
this.$emit('closeBounced', obj)
|
|
|
} else {
|
|
|
// this.backToParentTask();
|
|
|
- this.$emit('closeBounced', {backToParentTaskSub: true})
|
|
|
+ // if(!addFormData.id) {
|
|
|
+ // this.$emit('closeBounced', {
|
|
|
+ // backToParentTaskSub: true,
|
|
|
+ // dateList: [addFormData.startDate, addFormData.endDate]
|
|
|
+ // })
|
|
|
+ // } else {
|
|
|
+ if(!addFormData.id) {
|
|
|
+ localStorage.setItem('ganttChartTaskId', JSON.stringify(res.data || []))
|
|
|
+ }
|
|
|
+ this.$emit('closeBounced', {backToParentTaskSub: true})
|
|
|
+ // }
|
|
|
}
|
|
|
} else {
|
|
|
this.$message({
|