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
d018635d
Commit
d018635d
authored
Apr 22, 2019
by
Kittisak Maneewong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit
parent
722c0977
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
7 deletions
+10
-7
CompanyController.php
app/Http/Controllers/CompanyController.php
+1
-1
app.js
public/js/app.js
+0
-0
EditCompany.vue
resources/js/views/EditCompany.vue
+9
-2
Employer.vue
resources/js/views/Employer.vue
+0
-4
No files found.
app/Http/Controllers/CompanyController.php
View file @
d018635d
...
...
@@ -115,7 +115,7 @@ class CompanyController extends Controller
*/
public
function
update
(
Request
$request
,
$id
)
{
//
return
response
()
->
json
([
'data'
=>
$request
->
all
()]);
}
/**
...
...
public/js/app.js
View file @
d018635d
This source diff could not be displayed because it is too large. You can
view the blob
instead.
resources/js/views/EditCompany.vue
View file @
d018635d
...
...
@@ -5,7 +5,7 @@
<v-icon
color=
"black"
>
business
</v-icon>
ข้อมูลบริษัท
<v-divider></v-divider>
</v-flex>
<v-form
enctype=
"multipart/form-data"
@
submit
.
prevent=
"
createJob
()"
ref=
"create"
>
<v-form
enctype=
"multipart/form-data"
@
submit
.
prevent=
"
editCompany
()"
ref=
"create"
>
<v-flex
sm12
xs12
>
<v-layout
row
wrap
class=
"ป pa-3"
>
<v-flex
sm4
xs12
class=
"px-3"
>
...
...
@@ -433,7 +433,14 @@ export default {
this
.
company_data
.
imageMap
=
e
.
target
.
result
}
},
createJob
()
{
editCompany
()
{
axios
.
put
(
`/api/companys/
${
this
.
company
.
id
}
`
,
this
.
company
)
.
then
(
res
=>
{
console
.
log
(
res
)
})
.
catch
(
err
=>
{
console
.
log
(
err
.
response
)
})
// this.loading = true
// if (this.amphoes.findIndex(x => x.amphoe_code === this.amphoe.amphoe_code) === -1) {this.amphoe = ''}
// if (this.tumbons.findIndex(x => x.tumbon_code === this.tumbon.tumbon_code) === -1) {this.tumbon = ''}
...
...
resources/js/views/Employer.vue
View file @
d018635d
...
...
@@ -166,10 +166,6 @@ export default {
this
.
companies
=
res
.
data
.
company
if
(
!
this
.
companies
.
imageCompany
)
{
this
.
companies
.
imageCompany
=
'https://asianinteriorservices.com/wp-content/uploads/2018/04/noImg.png'
}
else
{
// this.companies.imageCompany = '../../../storage/uploads/'+this.companies.imageCompany
this
.
companies
.
imageCompany
=
'../../../public/img/logologin.png'
console
.
log
(
this
.
companies
.
imageCompany
)
}
})
.
catch
(
err
=>
{
...
...
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