Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
SuperMan
Commits
c7970332
Commit
c7970332
authored
May 18, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
f033497f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
8 deletions
+16
-8
GnHotelInfo.vue
src/components/Hotel/GnHotelInfo.vue
+16
-8
No files found.
src/components/Hotel/GnHotelInfo.vue
View file @
c7970332
...
...
@@ -108,7 +108,7 @@
</div>
</div>
<div
class=
"add-img"
>
<
button
class=
"save-Btn"
@
click=
"isShowHotelImg=true"
>
新增图片
</
button>
<
el-button
type=
"primary"
@
click=
"isShowHotelImg=true"
icon=
"el-icon-plus"
circle
></el-
button>
</div>
</div>
</div>
...
...
@@ -174,16 +174,15 @@
</el-form-item>
<el-form-item
label=
"订房须知"
>
<el-select
multiple
:placeholder=
"$t('pub.pleaseSel')"
filterable
class=
'multiple_input w300'
v-model=
"ch
ooseObj.Bookings
"
@
change=
"changeBooking"
>
v-model=
"ch
eckedRoom
"
@
change=
"changeBooking"
>
<el-option
v-for=
"subitem in dropdownObj.BookingList"
:key=
"subitem.ID"
:label=
"subitem.Name"
:value=
"subitem.ID"
>
</el-option>
</el-select>
</el-form-item>
<template
v-if=
"chooseObj.Bookings && chooseObj.Bookings.length>0"
v-for=
"(item,index) in chooseObj.Bookings"
>
<el-form-item
:label=
"item.Name"
:key=
"index"
>
<el-input
placeholder=
"联系方式"
v-model=
"item.Content"
></el-input>
<template
v-if=
"chooseObj.Bookings && chooseObj.Bookings.length>0"
>
<el-form-item
v-for=
"(item,index) in chooseObj.Bookings"
:label=
"item.Name"
:key=
"index+1"
>
<el-input
placeholder=
"联系方式"
class=
'w300'
v-model=
"item.Content"
></el-input>
</el-form-item>
</
template
>
</template>
...
...
@@ -366,6 +365,7 @@
inputValue
:
''
,
serviceCked
:
[],
isShowHotelImg
:
false
,
checkedRoom
:[],
};
},
components
:
{
...
...
@@ -374,8 +374,15 @@
comHotelImg
:
comHotelImg
},
methods
:
{
changeBooking
()
{
changeBooking
(
val
)
{
this
.
chooseObj
.
Bookings
=
[];
this
.
dropdownObj
.
BookingList
.
forEach
(
x
=>
{
this
.
checkedRoom
.
forEach
(
y
=>
{
if
(
x
.
ID
==
y
){
this
.
chooseObj
.
Bookings
.
push
(
x
);
}
})
})
},
//新增交通
addTraffic
()
{
...
...
@@ -666,6 +673,7 @@
this
.
dropdownObj
.
BookingList
=
sItem
.
SubList
}
});
console
.
log
(
this
.
dropdownObj
,
'this.dropdownObj'
);
}
});
}
...
...
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