Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
triplan_front
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jaehoon Pae
triplan_front
Commits
91384237
Commit
91384237
authored
5 years ago
by
jaypae95
Browse files
Options
Downloads
Patches
Plain Diff
fixed modal size
parent
29a3b029
No related branches found
No related tags found
1 merge request
!41
fixed modal size
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/MyModal.vue
+25
-36
25 additions, 36 deletions
src/components/MyModal.vue
with
25 additions
and
36 deletions
src/components/MyModal.vue
+
25
−
36
View file @
91384237
...
...
@@ -2,41 +2,25 @@
<transition
name=
"modal"
>
<div
class=
"modal-mask"
>
<div
class=
"modal-wrapper"
>
<div
class=
"modal-container"
>
<div
class=
"modal-header"
>
<slot
name=
"header"
>
<!-- default header-->
</slot>
</div>
<div
class=
"modal-body"
>
<slot
name=
"body"
>
<!-- default body-->
</slot>
</div>
<div
class=
"modal-footer"
>
<slot
name=
"footer"
>
<!-- default footer-->
</slot>
</div>
<div
class=
"modal-container"
style=
"width:400px"
>
<h1
class=
"myfont"
>
일정 만들기
</h1>
<div
style=
"margin:5%"
>
<vue-hotel-datepicker
:value=
"date"
@
confirm=
"getDate"
/>
</div>
<div
style=
"margin:5%"
>
<input
type=
"text"
v-model=
"title"
placeholder=
"Your Trip Title"
><br>
</div>
<div
style=
"margin:5%"
>
<input
type=
"radio"
v-model=
"tour_type"
placeholder=
"writeType"
name=
"tourType"
value=
0
>
혼자서
<input
type=
"radio"
v-model=
"tour_type"
placeholder=
"writeType"
name=
"tourType"
value=
1
>
친구들
<input
type=
"radio"
v-model=
"tour_type"
placeholder=
"writeType"
name=
"tourType"
value=
2
>
가족
<input
type=
"radio"
v-model=
"tour_type"
placeholder=
"writeType"
name=
"tourType"
value=
3
>
연인
<br>
<br>
</div>
<select-option
:until-country=
true
@
select-country=
"getCountryInfo"
/>
<br><br>
<div
v-if=
"checkCountry"
>
<button
class=
"modal-default-button"
v-on:click=
"clickMakePlan()"
>
Make Plan!
</button>
</div>
...
...
@@ -85,10 +69,15 @@ export default {
this
.
checkCountry
=
true
},
async
clickMakePlan
()
{
if
(
this
.
date
.
start
>=
3
&&
this
.
date
.
start
<=
5
)
this
.
season
=
0
else
if
(
this
.
date
.
start
>=
6
&&
this
.
date
.
start
<=
8
)
this
.
season
=
1
else
if
(
this
.
date
.
start
>=
9
&&
this
.
date
.
start
<=
11
)
this
.
season
=
2
else
this
.
season
=
3
if
(
this
.
date
.
start
>=
3
&&
this
.
date
.
start
<=
5
)
{
this
.
season
=
0
}
else
if
(
this
.
date
.
start
>=
6
&&
this
.
date
.
start
<=
8
)
{
this
.
season
=
1
}
else
if
(
this
.
date
.
start
>=
9
&&
this
.
date
.
start
<=
11
)
{
this
.
season
=
2
}
else
{
this
.
season
=
3
}
const
data
=
{
depart_day
:
this
.
date
.
start
,
arrive_day
:
this
.
date
.
end
,
...
...
@@ -97,8 +86,8 @@ export default {
season
:
this
.
season
,
country_id
:
this
.
country_id
}
cons
ole
.
log
(
data
)
const
res
=
await
API
.
getCountryPositionAPI
(
this
.
$http
,
this
.
$env
.
apiUrl
,
data
).
catch
(()
=>
{
cons
t
res
=
await
API
.
getCountryPositionAPI
(
this
.
$http
,
this
.
$env
.
apiUrl
,
data
).
catch
((
e
)
=>
{
alert
(
'
모든 필드에 값을 채우세요.
'
)
})
const
countryInfo
=
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment