Commit 60590055 authored by Kittisak Maneewong's avatar Kittisak Maneewong

update chip

parent ce84048f
......@@ -12,7 +12,7 @@ class AppController extends Controller
}
public function show() {
$jobs = Job::select('jobs.id', 'jobs.job_title', 'companies.imageCompany', 'companies.company_name', 'companies.amphoe', 'companies.province','jobs.created_at')
$jobs = Job::select('jobs.id', 'jobs.job_title', 'jobs.job_type', 'jobs.department', 'jobs.num', 'companies.bts', 'companies.mrt', 'companies.arl', 'companies.imageCompany', 'companies.company_name', 'companies.amphoe', 'companies.province','jobs.created_at')
->join('companies', 'jobs.user_id', 'companies.user_id')
->orderBy('jobs.created_at', 'desc')
->get();
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -63,6 +63,8 @@ export default {
deleteJob(id) {
axios.delete(`/api/jobs/${id}`)
.then(res => {
const i = this.items.findIndex(x => x.job_id == id)
this.items.splice(i, 1);
this.getData()
})
.catch(err => {console.log(err.response)})
......
This diff is collapsed.
Markdown is supported
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