代办事项

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 class="time">{{ item.toDoTime }} &nbsp;&nbsp;{{ 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>