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
d06fd1d9
Commit
d06fd1d9
authored
Apr 20, 2019
by
Kittisak Maneewong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Edit migrate company
parent
3523450e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
1 deletion
+17
-1
2019_04_16_100008_create_companies_table.php
...e/migrations/2019_04_16_100008_create_companies_table.php
+2
-0
app.js
public/js/app.js
+0
-0
EditCompany.vue
resources/js/views/EditCompany.vue
+15
-1
No files found.
database/migrations/2019_04_16_100008_create_companies_table.php
View file @
d06fd1d9
...
@@ -28,6 +28,8 @@ class CreateCompaniesTable extends Migration
...
@@ -28,6 +28,8 @@ class CreateCompaniesTable extends Migration
$table
->
string
(
'province'
);
$table
->
string
(
'province'
);
$table
->
string
(
'zipcode'
);
$table
->
string
(
'zipcode'
);
$table
->
string
(
'imageMap'
)
->
nullable
();
$table
->
string
(
'imageMap'
)
->
nullable
();
$table
->
string
(
'lat'
)
->
nullable
();
$table
->
string
(
'long'
)
->
nullable
();
$table
->
string
(
'about'
)
->
nullable
();
$table
->
string
(
'about'
)
->
nullable
();
$table
->
string
(
'bts'
)
->
nullable
();
$table
->
string
(
'bts'
)
->
nullable
();
$table
->
string
(
'mrt'
)
->
nullable
();
$table
->
string
(
'mrt'
)
->
nullable
();
...
...
public/js/app.js
View file @
d06fd1d9
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 @
d06fd1d9
...
@@ -27,12 +27,14 @@
...
@@ -27,12 +27,14 @@
outline
outline
label=
"ชื่อบริษัท"
label=
"ชื่อบริษัท"
:rules=
"[rules.required]"
:rules=
"[rules.required]"
v-model=
"company_name"
class=
"my-ip"
class=
"my-ip"
></v-text-field>
></v-text-field>
<label
class=
"font-weight-bold"
>
ชื่อผู้ติดต่อ
<span
class=
"red--text"
>
*
</span></label>
<label
class=
"font-weight-bold"
>
ชื่อผู้ติดต่อ
<span
class=
"red--text"
>
*
</span></label>
<v-text-field
<v-text-field
outline
outline
label=
"ชื่อผู้ติดต่อ"
label=
"ชื่อผู้ติดต่อ"
v-model=
"company_owner"
:rules=
"[rules.required]"
:rules=
"[rules.required]"
class=
"my-ip"
class=
"my-ip"
></v-text-field>
></v-text-field>
...
@@ -40,6 +42,7 @@
...
@@ -40,6 +42,7 @@
<v-text-field
<v-text-field
outline
outline
label=
"เบอร์ผู้ติดต่อ"
label=
"เบอร์ผู้ติดต่อ"
v-model=
"phone_no"
:rules=
"[rules.required]"
:rules=
"[rules.required]"
class=
"my-ip"
class=
"my-ip"
></v-text-field>
></v-text-field>
...
@@ -49,6 +52,7 @@
...
@@ -49,6 +52,7 @@
<v-text-field
<v-text-field
outline
outline
label=
"อีเมล"
label=
"อีเมล"
v-model=
"email"
:rules=
"[rules.required, rules.email]"
:rules=
"[rules.required, rules.email]"
class=
"my-ip"
class=
"my-ip"
></v-text-field>
></v-text-field>
...
@@ -57,12 +61,14 @@
...
@@ -57,12 +61,14 @@
outline
outline
label=
"Fax"
label=
"Fax"
class=
"my-ip"
class=
"my-ip"
v-model=
"fax"
></v-text-field>
></v-text-field>
<label
class=
"font-weight-bold"
>
เว็บไซต์
<span
class=
"red--text"
></span></label>
<label
class=
"font-weight-bold"
>
เว็บไซต์
<span
class=
"red--text"
></span></label>
<v-text-field
<v-text-field
outline
outline
label=
"เว็บไซต์"
label=
"เว็บไซต์"
class=
"my-ip"
class=
"my-ip"
v-model=
"website"
></v-text-field>
></v-text-field>
</v-flex>
</v-flex>
</v-layout>
</v-layout>
...
@@ -75,6 +81,7 @@
...
@@ -75,6 +81,7 @@
outline
outline
label=
"ที่อยู่"
label=
"ที่อยู่"
:rules=
"[rules.required]"
:rules=
"[rules.required]"
v-model=
"addr"
class=
"my-1"
class=
"my-1"
></v-textarea>
></v-textarea>
<label
class=
"font-weight-bold"
>
จังหวัด
<span
class=
"red--text"
>
*
</span></label>
<label
class=
"font-weight-bold"
>
จังหวัด
<span
class=
"red--text"
>
*
</span></label>
...
@@ -105,6 +112,7 @@
...
@@ -105,6 +112,7 @@
outline
outline
label=
"เกี่ยวกับบริษัท"
label=
"เกี่ยวกับบริษัท"
class=
"my-1"
class=
"my-1"
v-model=
"about"
></v-textarea>
></v-textarea>
</v-flex>
</v-flex>
<v-flex
sm6
xs12
class=
"px-3"
>
<v-flex
sm6
xs12
class=
"px-3"
>
...
@@ -166,6 +174,7 @@
...
@@ -166,6 +174,7 @@
<v-select
<v-select
label=
"เลือก"
label=
"เลือก"
:items=
"bts"
:items=
"bts"
v-model=
"bts"
></v-select>
></v-select>
</v-flex>
</v-flex>
<v-flex
sm3
xs12
class=
"px-3"
>
<v-flex
sm3
xs12
class=
"px-3"
>
...
@@ -173,6 +182,7 @@
...
@@ -173,6 +182,7 @@
<v-select
<v-select
label=
"เลือก"
label=
"เลือก"
:items=
"mrt"
:items=
"mrt"
v-model=
"mrt"
></v-select>
></v-select>
</v-flex>
</v-flex>
<v-flex
sm3
xs12
class=
"px-3"
>
<v-flex
sm3
xs12
class=
"px-3"
>
...
@@ -180,12 +190,15 @@
...
@@ -180,12 +190,15 @@
<v-select
<v-select
label=
"เลือก"
label=
"เลือก"
:items=
"arl"
:items=
"arl"
v-model=
"arl"
></v-select>
></v-select>
</v-flex>
</v-flex>
<v-flex
sm3
xs12
class=
"px-3"
>
<v-flex
sm3
xs12
class=
"px-3"
>
<label
class=
"font-weight-bold"
>
สายรถเมล์
</label>
<label
class=
"font-weight-bold"
>
สายรถเมล์
</label>
<VTextField
<VTextField
label=
"สายรถเมล์"
/>
label=
"สายรถเมล์"
v-model=
"bus"
></VTextField>
</v-flex>
</v-flex>
<v-flex
sm12
class=
"px-3"
>
<v-flex
sm12
class=
"px-3"
>
<label
class=
"font-weight-bold"
>
การเดินทางเพิ่มเติม
</label>
<label
class=
"font-weight-bold"
>
การเดินทางเพิ่มเติม
</label>
...
@@ -195,6 +208,7 @@
...
@@ -195,6 +208,7 @@
outline
outline
label=
""
label=
""
class=
"my-2"
class=
"my-2"
v-model=
"another"
></v-textarea>
></v-textarea>
</v-flex>
</v-flex>
<v-flex
sm6
xs12
class=
"px-3 py-3 detail"
>
<v-flex
sm6
xs12
class=
"px-3 py-3 detail"
>
...
...
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