Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
CO-OP Search
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kittisak Maneewong
CO-OP Search
Commits
60590055
Commit
60590055
authored
Apr 23, 2019
by
Kittisak Maneewong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update chip
parent
ce84048f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
3 additions
and
1 deletion
+3
-1
AppController.php
app/Http/Controllers/AppController.php
+1
-1
app.js
public/js/app.js
+0
-0
Company1556041632.png
public/uploads/Company1556041632.png
+0
-0
Managejob.vue
resources/js/views/Managejob.vue
+2
-0
ShowJob.vue
resources/js/views/ShowJob.vue
+0
-0
No files found.
app/Http/Controllers/AppController.php
View file @
60590055
...
@@ -12,7 +12,7 @@ class AppController extends Controller
...
@@ -12,7 +12,7 @@ class AppController extends Controller
}
}
public
function
show
()
{
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'
)
->
join
(
'companies'
,
'jobs.user_id'
,
'companies.user_id'
)
->
orderBy
(
'jobs.created_at'
,
'desc'
)
->
orderBy
(
'jobs.created_at'
,
'desc'
)
->
get
();
->
get
();
...
...
public/js/app.js
View file @
60590055
This source diff could not be displayed because it is too large. You can
view the blob
instead.
public/uploads/Company1556041632.png
0 → 100644
View file @
60590055
29 KB
resources/js/views/Managejob.vue
View file @
60590055
...
@@ -63,6 +63,8 @@ export default {
...
@@ -63,6 +63,8 @@ export default {
deleteJob
(
id
)
{
deleteJob
(
id
)
{
axios
.
delete
(
`/api/jobs/
${
id
}
`
)
axios
.
delete
(
`/api/jobs/
${
id
}
`
)
.
then
(
res
=>
{
.
then
(
res
=>
{
const
i
=
this
.
items
.
findIndex
(
x
=>
x
.
job_id
==
id
)
this
.
items
.
splice
(
i
,
1
);
this
.
getData
()
this
.
getData
()
})
})
.
catch
(
err
=>
{
console
.
log
(
err
.
response
)})
.
catch
(
err
=>
{
console
.
log
(
err
.
response
)})
...
...
resources/js/views/ShowJob.vue
View file @
60590055
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment