mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-13 12:02:51 +00:00
fix: 首次修改任务时间不提示时间冲突的问题
This commit is contained in:
parent
81957c9396
commit
947e106f19
@ -1049,24 +1049,27 @@ export default {
|
||||
return `请输入修改备注`
|
||||
}
|
||||
this.updateParams = Object.assign(params, {desc})
|
||||
if (params.start_at && params.end_at && this.$refs.taskExistTipsRef) {
|
||||
this.$refs.taskExistTipsRef.isExistTask({
|
||||
taskid: this.taskDetail.id,
|
||||
userids: this.taskDetail.owner_userid,
|
||||
timerange: [params.start_at, params.end_at]
|
||||
}).then(res => {
|
||||
if (!res) {
|
||||
this.updateData("times", this.updateParams)
|
||||
}
|
||||
});
|
||||
} else {
|
||||
this.updateData("times", this.updateParams)
|
||||
}
|
||||
this.updateData("times", this.updateParams)
|
||||
return false
|
||||
},
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (typeof params.existTips === "undefined") {
|
||||
this.updateParams = Object.assign(params, {existTips: true})
|
||||
if (params.start_at && params.end_at && this.$refs.taskExistTipsRef) {
|
||||
this.$refs.taskExistTipsRef.isExistTask({
|
||||
taskid: this.taskDetail.id,
|
||||
userids: this.taskDetail.owner_userid,
|
||||
timerange: [params.start_at, params.end_at]
|
||||
}).then(res => {
|
||||
if (!res) {
|
||||
this.updateData("times", this.updateParams)
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
}
|
||||
this.$set(this.taskDetail, 'times', [params.start_at, params.end_at, params.desc])
|
||||
break;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user