代办事项
This commit is contained in:
@ -14,8 +14,8 @@
|
||||
<div class="time">{{ item.toDoTime }} {{ 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>
|
||||
|
Reference in New Issue
Block a user