Skip to content
Snippets Groups Projects
Commit 9fefe6b2 authored by Ahmad Saladin's avatar Ahmad Saladin
Browse files

edit report

parent ca5a7ba1
1 merge request!38Main
......@@ -140,9 +140,12 @@ export default {
report(e){
e.preventDefault()
//download report
HTTP.get(`report/${this.emp.id}?before=${this.startReport}`).then((res)=>{
HTTP.get(`report/${this.emp.slug}?before=${this.endReport}&after=${this.startReport}`).then((res)=>{
console.log(res.data.data)
}).catch((e)=>{console.log(e.response.data)})
// HTTP.get(`report/${this.emp.slug}?before=${this.endReport}`).then((res)=>{
// console.log(res.data.data)
// }).catch((e)=>{console.log(e.response.data)})
},
getEmp(){
HTTP.get(`employees/${this.slug}`).then((res)=>{
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment