代办事项

This commit is contained in:
2023-08-23 18:11:27 +08:00
parent 4a9757d241
commit 14f07eabad

View File

@ -14,8 +14,8 @@
<div class="time">{{ item.toDoTime }} &nbsp;&nbsp;{{ item.userName }}</div>
</div>
<div class="right">
<button class="nopass" @click="noPass(item)">不通过</button>
<button class="pass" @click="passThrough(item)">通过</button>
<button class="nopass" @click="toDoAudit(item ,2)">不通过</button>
<button class="pass" @click="toDoAudit(item ,1)">通过</button>
</div>
</li>
</ul>
@ -46,24 +46,15 @@ export default {
this.show = false
}
},
async noPass(item) {
let result = await toDoAudit({
async toDoAudit(item,type) {
await toDoAudit({
toDoId: item.toDoId,
toDoType: item.toDoType.code
toDoType: item.toDoType.code,
auditResult:type
})
console.log("不通过", item, result)
this.todolist=[]
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>