mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 03:01:12 +00:00
style:整理代码格式
This commit is contained in:
parent
aebcca76e4
commit
f73ee2c13b
@ -529,14 +529,14 @@ export default {
|
||||
this.loadIng++;
|
||||
|
||||
// 存在任务提示
|
||||
if(!affirm && this.addData.owner.length>0){
|
||||
if (!affirm && this.addData.owner.length > 0) {
|
||||
this.$refs['taskExistTipsRef'].isExistTask({
|
||||
userids: this.addData.owner,
|
||||
timerange: this.addData.times
|
||||
}).then(res=>{
|
||||
if(!res){
|
||||
this.onAdd(again,true)
|
||||
}else{
|
||||
}).then(res => {
|
||||
if (!res) {
|
||||
this.onAdd(again, true)
|
||||
} else {
|
||||
this.loadIng--;
|
||||
this.again = again
|
||||
}
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
<template>
|
||||
<div>
|
||||
<!--子任务-->
|
||||
<li v-if="ready && taskDetail.parent_id > 0">
|
||||
<div class="subtask-icon">
|
||||
@ -452,7 +451,6 @@
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="!taskDetail.id" class="task-load"><Loading/></div>
|
||||
</div>
|
||||
<!-- 提示 -->
|
||||
<TaskExistTips ref="taskExistTipsRef" @onAdd="updateData('times', updateParams)"/>
|
||||
</div>
|
||||
@ -972,16 +970,20 @@ export default {
|
||||
if (!desc) {
|
||||
return `请输入修改备注`
|
||||
}
|
||||
this.updateParams = Object.assign(params, {desc})
|
||||
this.updateParams = Object.assign(params, { desc })
|
||||
if (params.start_at && params.end_at) {
|
||||
this.$refs['taskExistTipsRef'].isExistTask({
|
||||
taskid: this.taskDetail.id,
|
||||
userids: this.taskDetail.owner_userid,
|
||||
timerange: [params.start_at,params.end_at]
|
||||
}).then(res=>{
|
||||
if(!res){
|
||||
timerange: [params.start_at, params.end_at]
|
||||
}).then(res => {
|
||||
if (!res) {
|
||||
this.updateData("times", this.updateParams)
|
||||
}
|
||||
});
|
||||
} else {
|
||||
this.updateData("times", this.updateParams)
|
||||
}
|
||||
return false
|
||||
},
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user