代办事项
This commit is contained in:
@ -14,8 +14,8 @@
|
|||||||
<div class="time">{{ item.toDoTime }} {{ item.userName }}</div>
|
<div class="time">{{ item.toDoTime }} {{ item.userName }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<button class="nopass" @click="noPass(item)">不通过</button>
|
<button class="nopass" @click="toDoAudit(item ,2)">不通过</button>
|
||||||
<button class="pass" @click="passThrough(item)">通过</button>
|
<button class="pass" @click="toDoAudit(item ,1)">通过</button>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
@ -46,24 +46,15 @@ export default {
|
|||||||
this.show = false
|
this.show = false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async noPass(item) {
|
async toDoAudit(item,type) {
|
||||||
let result = await toDoAudit({
|
await toDoAudit({
|
||||||
toDoId: item.toDoId,
|
toDoId: item.toDoId,
|
||||||
toDoType: item.toDoType.code
|
toDoType: item.toDoType.code,
|
||||||
|
auditResult:type
|
||||||
})
|
})
|
||||||
console.log("不通过", item, result)
|
|
||||||
this.todolist=[]
|
this.todolist=[]
|
||||||
await this.getList();
|
await this.getList();
|
||||||
},
|
},
|
||||||
async passThrough(item) {
|
|
||||||
let result = await toDoAudit({
|
|
||||||
toDoId: item.toDoId,
|
|
||||||
toDoType: item.toDoType.code
|
|
||||||
})
|
|
||||||
console.log("通过", item, result)
|
|
||||||
this.todolist=[]
|
|
||||||
await this.getList();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
Reference in New Issue
Block a user