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
e4c658dc
Commit
e4c658dc
authored
Apr 24, 2019
by
Kittisak Maneewong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save
parent
ddf480e2
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
+12
-3
app.js
public/js/app.js
+0
-0
DetailJob.vue
resources/js/views/DetailJob.vue
+7
-2
ShowJob.vue
resources/js/views/ShowJob.vue
+5
-1
No files found.
public/js/app.js
View file @
e4c658dc
This source diff could not be displayed because it is too large. You can
view the blob
instead.
resources/js/views/DetailJob.vue
View file @
e4c658dc
...
@@ -8,8 +8,8 @@
...
@@ -8,8 +8,8 @@
<span
class=
"headline font-weight-bold indigo--text"
>
{{
detail_data
.
job_title
}}
</span>
<span
class=
"headline font-weight-bold indigo--text"
>
{{
detail_data
.
job_title
}}
</span>
</v-flex>
</v-flex>
<v-flex
xs12
sm2
>
<v-flex
xs12
sm2
>
<v-btn
color=
"deep-orange "
v-if=
"
!!localStorage.getItem('access_token')
"
@
click=
"$store.commit('setDialogJob', !$store.getters.getDialogJob);"
dark
small
depressed
class=
"body-2"
>
สมัครงานนี้
</v-btn>
<v-btn
color=
"deep-orange "
v-if=
"
chk
"
@
click=
"$store.commit('setDialogJob', !$store.getters.getDialogJob);"
dark
small
depressed
class=
"body-2"
>
สมัครงานนี้
</v-btn>
<v-btn
color=
"deep-orange "
v-if=
"!
localStorage.getItem('access_token')
"
@
click=
"$store.commit('setSnackbar',
{show: true, color: 'error', text: 'จำเป็นต้องเข้าสู่ระบบสมาชิกก่อน!'})" dark small depressed class="body-2">สมัครงานนี้
</v-btn>
<v-btn
color=
"deep-orange "
v-if=
"!
chk
"
@
click=
"$store.commit('setSnackbar',
{show: true, color: 'error', text: 'จำเป็นต้องเข้าสู่ระบบสมาชิกก่อน!'})" dark small depressed class="body-2">สมัครงานนี้
</v-btn>
</v-flex>
</v-flex>
</v-layout>
</v-layout>
<v-flex
xs12
sm8
>
<v-flex
xs12
sm8
>
...
@@ -177,6 +177,11 @@ export default {
...
@@ -177,6 +177,11 @@ export default {
detail_data
:
{}
detail_data
:
{}
}
}
},
},
computed
:
{
chk
()
{
return
this
.
$store
.
getters
.
getUser
.
email
}
},
beforeMount
()
{
beforeMount
()
{
axios
.
get
(
`/api/detail/
${
this
.
$route
.
params
.
id
}
`
)
axios
.
get
(
`/api/detail/
${
this
.
$route
.
params
.
id
}
`
)
.
then
(
res
=>
{
.
then
(
res
=>
{
...
...
resources/js/views/ShowJob.vue
View file @
e4c658dc
...
@@ -122,7 +122,8 @@
...
@@ -122,7 +122,8 @@
</v-flex>
</v-flex>
<v-flex
xs12
sm2
>
<v-flex
xs12
sm2
>
<v-layout
row
wrap
justify-end
>
<v-layout
row
wrap
justify-end
>
<v-btn
color=
"deep-orange "
dark
small
depressed
class=
"body-2"
@
click=
"$store.commit('setDialogJob', !$store.getters.getDialogJob);id=job.id"
>
สมัครงานนี้
</v-btn>
<v-btn
color=
"deep-orange "
v-if=
"chk"
dark
small
depressed
class=
"body-2"
@
click=
"$store.commit('setDialogJob', !$store.getters.getDialogJob);id=job.id"
>
สมัครงานนี้
</v-btn>
<v-btn
color=
"deep-orange "
v-if=
"!chk"
dark
small
depressed
class=
"body-2"
@
click=
"$store.commit('setSnackbar',
{show: true, color: 'error', text: 'จำเป็นต้องเข้าสู่ระบบสมาชิกก่อน!'})">สมัครงานนี้
</v-btn>
</v-layout>
</v-layout>
<v-layout
row
wrap
justify-end
class=
"px-2"
>
<v-layout
row
wrap
justify-end
class=
"px-2"
>
<label
class=
"font-weight-bold"
>
{{
job
.
num
?
job
.
num
+
' อัตรา'
:
''
}}
</label>
<label
class=
"font-weight-bold"
>
{{
job
.
num
?
job
.
num
+
' อัตรา'
:
''
}}
</label>
...
@@ -274,6 +275,9 @@ export default {
...
@@ -274,6 +275,9 @@ export default {
}
}
},
},
computed
:
{
computed
:
{
chk
()
{
return
this
.
$store
.
getters
.
getUser
.
email
},
chkChip
()
{
chkChip
()
{
return
Object
.
values
(
this
.
chips
).
includes
(
true
);
return
Object
.
values
(
this
.
chips
).
includes
(
true
);
},
},
...
...
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