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
63b26a1a
Commit
63b26a1a
authored
May 21, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/luochao/superman
parents
3501a178
908f9452
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
61 deletions
+50
-61
GnHotelInfo.vue
src/components/Hotel/GnHotelInfo.vue
+23
-36
GnHotelManagement.vue
src/components/Hotel/GnHotelManagement.vue
+27
-25
No files found.
src/components/Hotel/GnHotelInfo.vue
View file @
63b26a1a
...
@@ -58,18 +58,19 @@
...
@@ -58,18 +58,19 @@
<div>
<div>
<div
style=
"float:left;width:550px;"
>
<div
style=
"float:left;width:550px;"
>
<el-form-item
:label=
"$t('ground.jiudianmingzi')"
>
<el-form-item
:label=
"$t('ground.jiudianmingzi')"
>
<el-input
type=
"text"
v-model=
"addMsg.HotelRealName"
maxlength=
"100"
class=
"w300"
></el-input>
<el-input
type=
"text"
v-model=
"addMsg.HotelRealName"
maxlength=
"100"
class=
"w300"
placeholder=
"请填写酒店名称:xx酒店"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('hotel.hotel_openplatform')"
>
<el-form-item
:label=
"$t('hotel.hotel_openplatform')"
>
<el-select
v-model=
"chooseObj.openplatString"
class=
'multiple_input w300'
multiple
<el-select
v-model=
"chooseObj.openplatString"
class=
'multiple_input w300'
multiple
:placeholder=
"$t('pub.pleaseSel')
"
>
placeholder=
"请选择开放平台
"
>
<el-option
v-for=
"item in dropdownObj.openplatformList"
:key=
"item.ID"
:label=
"item.Name"
<el-option
v-for=
"item in dropdownObj.openplatformList"
:key=
"item.ID"
:label=
"item.Name"
:value=
"item.ID"
>
:value=
"item.ID"
>
</el-option>
</el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('hotel.hotel_starlevel')"
>
<el-form-item
:label=
"$t('hotel.hotel_starlevel')"
>
<el-select
class=
"w300"
:placeholder=
"$t('pub.unlimitedSel')"
v-model=
"addMsg.Star
"
>
<el-select
class=
"w300"
v-model=
"addMsg.Star"
placeholder=
"请选择酒店星级
"
>
<el-option
:label=
"$t('pub.unlimitedSel')"
:value=
'SelectDefaultValue'
></el-option>
<el-option
:label=
"$t('pub.unlimitedSel')"
:value=
'SelectDefaultValue'
></el-option>
<el-option
v-for=
"item in dropdownObj.starslevel"
:key=
"item.ID"
:label=
"item.Name"
<el-option
v-for=
"item in dropdownObj.starslevel"
:key=
"item.ID"
:label=
"item.Name"
:value=
"item.ID"
>
:value=
"item.ID"
>
...
@@ -77,8 +78,8 @@
...
@@ -77,8 +78,8 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('hotel.hotel_province')"
>
<el-form-item
:label=
"$t('hotel.hotel_province')"
>
<el-select
:placeholder=
"$t('ground.qingxuanzesheng')"
filterable
class=
'multiple_input w300'
<el-select
placeholder=
"请选择所属省份"
filterable
class=
'multiple_input w300'
v-model=
"addMsg.Province"
v-model=
"addMsg.Province"
@
change=
"GetSubAreaList(addMsg.Province,2)"
>
@
change=
"GetSubAreaList(addMsg.Province,2)"
>
<el-option
:label=
"$t('pub.unlimitedSel')"
:value=
'SelectDefaultValue'
></el-option>
<el-option
:label=
"$t('pub.unlimitedSel')"
:value=
'SelectDefaultValue'
></el-option>
<el-option
v-for=
"childItem in dropdownObj.ProvinceList"
:key=
"childItem.ID"
:label=
"childItem.Name"
<el-option
v-for=
"childItem in dropdownObj.ProvinceList"
:key=
"childItem.ID"
:label=
"childItem.Name"
:value=
"childItem.ID"
>
:value=
"childItem.ID"
>
...
@@ -86,8 +87,7 @@
...
@@ -86,8 +87,7 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('hotel.hotel_city')"
>
<el-form-item
:label=
"$t('hotel.hotel_city')"
>
<el-select
:placeholder=
"$t('ground.qingxuanzeshi')"
filterable
class=
'multiple_input w300'
<el-select
placeholder=
"请选择所属城市"
filterable
class=
'multiple_input w300'
v-model=
"addMsg.City"
>
v-model=
"addMsg.City"
>
<el-option
:label=
"$t('pub.unlimitedSel')"
:value=
'SelectDefaultValue'
></el-option>
<el-option
:label=
"$t('pub.unlimitedSel')"
:value=
'SelectDefaultValue'
></el-option>
<el-option
v-for=
"childItem in dropdownObj.CityList"
:key=
"childItem.ID"
:label=
"childItem.Name"
<el-option
v-for=
"childItem in dropdownObj.CityList"
:key=
"childItem.ID"
:label=
"childItem.Name"
:value=
"childItem.ID"
>
:value=
"childItem.ID"
>
...
@@ -95,7 +95,7 @@
...
@@ -95,7 +95,7 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('hotel.hotel_detailinfo')"
>
<el-form-item
:label=
"$t('hotel.hotel_detailinfo')"
>
<el-input
type=
"text"
class=
"w300"
v-model=
"addMsg.Address"
size=
"small"
>
<el-input
type=
"text"
class=
"w300"
v-model=
"addMsg.Address"
size=
"small"
placeholder=
"请填写详细地址"
>
<el-button
slot=
"append"
@
click=
"getMapShow"
>
地图
</el-button>
<el-button
slot=
"append"
@
click=
"getMapShow"
>
地图
</el-button>
</el-input>
</el-input>
</el-form-item>
</el-form-item>
...
@@ -113,7 +113,7 @@
...
@@ -113,7 +113,7 @@
</div>
</div>
</div>
</div>
<el-form-item
label=
"地址说明"
>
<el-form-item
label=
"地址说明"
>
<el-input
type=
"text"
class=
"w300"
v-model=
"addMsg.AddressDes"
size=
"small"
>
<el-input
type=
"text"
class=
"w300"
v-model=
"addMsg.AddressDes"
size=
"small"
placeholder=
"请填写详细地址"
>
</el-input>
</el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"标签"
>
<el-form-item
label=
"标签"
>
...
@@ -130,23 +130,6 @@
...
@@ -130,23 +130,6 @@
<div
class=
"Gnhotel_Right"
>
<div
class=
"Gnhotel_Right"
>
<span
class=
"resource-lititle"
>
{{
$t
(
'hotel.hotel_imgintroduce'
)
}}
</span>
<span
class=
"resource-lititle"
>
{{
$t
(
'hotel.hotel_imgintroduce'
)
}}
</span>
<div
class=
"resource-list"
>
<div
class=
"resource-list"
>
<!--
<div
class=
"resource-imglist clearfix"
>
<div
class=
"re-img"
v-for=
"(item,index) in HotelImageArray"
:key=
"item.subCode"
>
<img
:src=
"item.ShowPath"
/>
<div
class=
"imgzhe"
>
<div
class=
"re-delte"
><i
@
click
.
stop=
"showImg(item.ShowPath)"
class=
"iconfont icon-img_cz"
></i>
</div>
<div
class=
"re-delte"
@
click=
"delImg(index)"
><i
class=
"iconfont icon-xingzhuang"
></i></div>
<div
class=
"re-delte"
@
click
.
stop=
"ExchangeImg(index,0)"
v-if=
"index!=0&&item.ShowPath"
>
<i
class=
"iconfont icon-zuoyi"
></i>
</div>
<div
class=
"re-delte"
@
click
.
stop=
"ExchangeImg(index,1)"
v-if=
"index!=HotelImageArray.length-1&&item.ShowPath"
>
<i
class=
"iconfont icon-youyi"
></i>
</div>
</div>
</div>
</div>
-->
<div
class=
"add-img"
>
<div
class=
"add-img"
>
<el-button
type=
"primary"
@
click=
"isShowHotelImg=true"
icon=
"el-icon-plus"
circle
></el-button>
<el-button
type=
"primary"
@
click=
"isShowHotelImg=true"
icon=
"el-icon-plus"
circle
></el-button>
</div>
</div>
...
@@ -168,10 +151,10 @@
...
@@ -168,10 +151,10 @@
</
template
>
</
template
>
<
template
v-if=
"activeName==2"
>
<
template
v-if=
"activeName==2"
>
<el-form-item
label=
"开业时间"
>
<el-form-item
label=
"开业时间"
>
<el-input
placeholder=
"
开业时间
"
class=
"w300"
v-model=
"addMsg.HotelInfo.OpenTime"
></el-input>
<el-input
placeholder=
"
2018年开业
"
class=
"w300"
v-model=
"addMsg.HotelInfo.OpenTime"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"装修时间"
>
<el-form-item
label=
"装修时间"
>
<el-input
placeholder=
"
装修时间
"
class=
"w300"
v-model=
"addMsg.HotelInfo.DecorationTime"
></el-input>
<el-input
placeholder=
"
2017年装修
"
class=
"w300"
v-model=
"addMsg.HotelInfo.DecorationTime"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"房间数量"
>
<el-form-item
label=
"房间数量"
>
<el-input
placeholder=
"房间数量"
class=
"w300"
v-model=
"addMsg.RoomNumber"
></el-input>
<el-input
placeholder=
"房间数量"
class=
"w300"
v-model=
"addMsg.RoomNumber"
></el-input>
...
@@ -180,7 +163,8 @@
...
@@ -180,7 +163,8 @@
<el-input
placeholder=
"联系方式"
class=
"w300"
v-model=
"addMsg.Tel"
></el-input>
<el-input
placeholder=
"联系方式"
class=
"w300"
v-model=
"addMsg.Tel"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"酒店介绍"
>
<el-form-item
label=
"酒店介绍"
>
<el-input
type=
"textarea"
class=
"w300"
v-model=
"addMsg.HotelInfo.Into"
:rows=
"9"
></el-input>
<el-input
type=
"textarea"
class=
"w300"
v-model=
"addMsg.HotelInfo.Into"
:rows=
"9"
placeholder=
"请填写酒店的介绍信息"
>
</el-input>
</el-form-item>
</el-form-item>
</
template
>
</
template
>
<
template
v-if=
"activeName==3"
>
<
template
v-if=
"activeName==3"
>
...
@@ -227,12 +211,15 @@
...
@@ -227,12 +211,15 @@
<el-button
type=
"primary"
@
click=
"addTraffic()"
style=
"float:right;margin:-53px 165px 50px 0"
<el-button
type=
"primary"
@
click=
"addTraffic()"
style=
"float:right;margin:-53px 165px 50px 0"
icon=
"el-icon-plus"
circle
></el-button>
icon=
"el-icon-plus"
circle
></el-button>
<div
style=
"margin-top:60px;"
>
<div
style=
"margin-top:60px;"
>
<div
v-for=
"(item,index) in addMsg.TrafficInfo"
:key=
"index"
<div
v-for=
"(item,index) in addMsg.TrafficInfo"
:key=
"index"
style=
"position:relative;margin-bottom:20px;"
>
style=
"position:relative;margin-bottom:20px;
"
>
<el-form-item
label=
"地点名称
"
>
<el-input
type=
"text"
v-model=
"item.TTitle"
class=
"w400"
style=
"margin-bottom:10px;"
<el-input
type=
"text"
v-model=
"item.TTitle"
class=
"w400"
placeholder=
"地点名称
"
>
placeholder=
"比如:牛王庙地铁站
"
>
</el-input>
</el-input>
<el-input
type=
"text"
v-model=
"item.TSubTitle"
class=
"w400"
placeholder=
"地点介绍"
></el-input>
</el-form-item>
<el-form-item
label=
"地点介绍"
>
<el-input
type=
"text"
v-model=
"item.TSubTitle"
class=
"w400"
placeholder=
"比如:距离春熙路步行街2公里"
></el-input>
</el-form-item>
<el-button
type=
"danger"
class=
"delTrafic"
@
click=
"delTraffic(index)"
icon=
"el-icon-delete"
circle
>
<el-button
type=
"danger"
class=
"delTrafic"
@
click=
"delTraffic(index)"
icon=
"el-icon-delete"
circle
>
</el-button>
</el-button>
</div>
</div>
...
@@ -255,7 +242,7 @@
...
@@ -255,7 +242,7 @@
<div
class=
"btn-list"
>
<div
class=
"btn-list"
>
<span
class=
"common-lefttit"
></span>
<span
class=
"common-lefttit"
></span>
<button
class=
"save-Btn"
@
click=
"submitForm('addMsg')"
>
{{$t('pub.saveBtn')}}
</button>
<button
class=
"save-Btn"
@
click=
"submitForm('addMsg')"
>
{{$t('pub.saveBtn')}}
</button>
<button
class=
"cancel-Btn"
@
click=
"goUrl('HotelManagement')"
>
{{$t('pub.cancelBtn')}}
</button>
<button
class=
"cancel-Btn"
@
click=
"goUrl('
Gn
HotelManagement')"
>
{{$t('pub.cancelBtn')}}
</button>
</div>
</div>
<viewer
:images=
"images"
:options=
'imageOptions'
@
inited=
"inited"
class=
"viewer"
ref=
"viewer"
>
<viewer
:images=
"images"
:options=
'imageOptions'
@
inited=
"inited"
class=
"viewer"
ref=
"viewer"
>
<img
v-for=
"src in images"
:src=
"src"
:key=
"src"
>
<img
v-for=
"src in images"
:src=
"src"
:key=
"src"
>
...
...
src/components/Hotel/GnHotelManagement.vue
View file @
63b26a1a
...
@@ -227,14 +227,14 @@
...
@@ -227,14 +227,14 @@
<span>
<span>
<em>
{{
$t
(
'system.quety_area'
)
}}
</em>
<em>
{{
$t
(
'system.quety_area'
)
}}
</em>
<el-select
v-model=
"msg.QProvince"
class=
"w150"
filterable
@
change=
"getProvinceList(msg.QProvince,2)"
<el-select
v-model=
"msg.QProvince"
class=
"w150"
filterable
@
change=
"getProvinceList(msg.QProvince,2)"
:placeholder=
"$t('hotel.hotel_province')"
>
:placeholder=
"$t('hotel.hotel_province')"
clearable
>
<el-option
v-for=
"item in provinceList"
:key=
"item.ID"
:label=
"item.Name"
:value=
"item.ID"
></el-option>
<el-option
v-for=
"item in provinceList"
:key=
"item.ID"
:label=
"item.Name"
:value=
"item.ID"
></el-option>
</el-select>
</el-select>
<el-select
v-model=
"msg.QCity"
class=
"w150"
filterable
@
change=
"getProvinceList(msg.QCity,3)"
<el-select
v-model=
"msg.QCity"
class=
"w150"
filterable
@
change=
"getProvinceList(msg.QCity,3)"
:placeholder=
"$t('hotel.hotel_city')"
>
:placeholder=
"$t('hotel.hotel_city')"
clearable
>
<el-option
v-for=
"item in cityList"
:key=
"item.ID"
:label=
"item.Name"
:value=
"item.ID"
></el-option>
<el-option
v-for=
"item in cityList"
:key=
"item.ID"
:label=
"item.Name"
:value=
"item.ID"
></el-option>
</el-select>
</el-select
>
<el-select
v-model=
"msg.QDistrict"
class=
"w150"
filte
rable
:placeholder=
"$t('hotel.hotel_area')"
>
<el-select
v-model=
"msg.QDistrict"
class=
"w150"
style=
"display:none;"
filterable
clea
rable
:placeholder=
"$t('hotel.hotel_area')"
>
<el-option
v-for=
"item in district"
:key=
"item.ID"
:label=
"item.Name"
:value=
"item.ID"
></el-option>
<el-option
v-for=
"item in district"
:key=
"item.ID"
:label=
"item.Name"
:value=
"item.ID"
></el-option>
</el-select>
</el-select>
</span>
</span>
...
@@ -248,7 +248,7 @@
...
@@ -248,7 +248,7 @@
</el-select>
</el-select>
</span>
</span>
</li>
</li>
<li>
<li
style=
"display:none;"
>
>
<span>
<span>
<em>
{{
$t
(
'ground.jiudianleixing'
)
}}
</em>
<em>
{{
$t
(
'ground.jiudianleixing'
)
}}
</em>
<el-select
v-model=
"msg.HotelType"
class=
"w210"
:placeholder=
"$t('pub.unlimitedSel')"
>
<el-select
v-model=
"msg.HotelType"
class=
"w210"
:placeholder=
"$t('pub.unlimitedSel')"
>
...
@@ -257,7 +257,7 @@
...
@@ -257,7 +257,7 @@
</el-select>
</el-select>
</span>
</span>
</li>
</li>
<li>
<li
style=
"display:none;"
>
<span>
<span>
<em>
{{
$t
(
'Operation.Op_price'
)
}}
</em>
<em>
{{
$t
(
'Operation.Op_price'
)
}}
</em>
<el-select
v-model=
"msg.HotelPirceType"
class=
"w210"
:placeholder=
"$t('pub.unlimitedSel')"
>
<el-select
v-model=
"msg.HotelPirceType"
class=
"w210"
:placeholder=
"$t('pub.unlimitedSel')"
>
...
@@ -286,7 +286,7 @@
...
@@ -286,7 +286,7 @@
</ul>
</ul>
</div>
</div>
<el-table
ref=
"multipleTable"
:data=
"tableData"
tooltip-effect=
"dark"
style=
"width: 100%;min-height:450px;"
<el-table
ref=
"multipleTable"
:data=
"tableData"
tooltip-effect=
"dark"
style=
"width: 100%;min-height:450px;"
@
selection-change=
"handleSelectionChange"
>
@
selection-change=
"handleSelectionChange"
v-loading=
"loading"
>
<el-table-column
type=
"selection"
width=
"50px"
>
<el-table-column
type=
"selection"
width=
"50px"
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"Name"
label=
"酒店名称"
>
<el-table-column
prop=
"Name"
label=
"酒店名称"
>
...
@@ -306,36 +306,38 @@
...
@@ -306,36 +306,38 @@
</el-table-column> -->
</el-table-column> -->
<el-table-column
prop=
"TagList"
label=
"标签"
>
<el-table-column
prop=
"TagList"
label=
"标签"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-tag
v-for=
"(item,index) in scope.row.TagList"
size=
"small"
style=
"margin-right:5px;"
:key=
"index"
>
{{
item
}}
</el-tag>
<el-tag
v-for=
"(item,index) in scope.row.TagList"
size=
"small"
style=
"margin-right:5px;"
:key=
"index"
>
{{
item
}}
</el-tag>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"Tel"
label=
"电话"
>
<el-table-column
prop=
"UpdateName"
label=
"修改人"
>
</el-table-column>
<el-table-column
prop=
"UpdateTimeStr"
label=
"修改时间"
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"Address"
label=
"地址"
>
<el-table-column
prop=
"Address"
label=
"地址"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
ProvinceName
}}
-
{{
scope
.
row
.
CityName
}}
{{
scope
.
row
.
ProvinceName
}}
-
{{
scope
.
row
.
CityName
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"Tel"
label=
"电话"
>
</el-table-column>
<el-table-column
prop=
"HotelStatus"
label=
"状态"
>
<el-table-column
prop=
"HotelStatus"
label=
"状态"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.HotelStatus==1"
style=
"color:green;"
>
上架
</span>
<span
v-if=
"scope.row.HotelStatus==1"
style=
"color:green;"
>
上架
</span>
<span
v-if=
"scope.row.HotelStatus==2"
style=
"color:red;"
>
下架
</span>
<span
v-if=
"scope.row.HotelStatus==2"
style=
"color:red;"
>
下架
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"UpdateName"
label=
"修改人"
>
</el-table-column>
<el-table-column
prop=
"UpdateTimeStr"
label=
"修改时间"
>
</el-table-column>
<el-table-column
label=
"操作"
width=
"100"
>
<el-table-column
label=
"操作"
width=
"100"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<!--
<button
@
click=
"goSubInfo('GnHotelInfo',scope.row.ID)"
class=
"hotelBtnMan"
>
修改
</button>
-->
<!--
<button
@
click=
"goSubInfo('GnHotelInfo',scope.row.ID)"
class=
"hotelBtnMan"
>
修改
</button>
-->
<!--
<button
@
click=
"goUrl('HotelProductManage',item)"
class=
"hotelBtnMan"
>
报价与库存
</button>
-->
<!--
<button
@
click=
"goUrl('HotelProductManage',item)"
class=
"hotelBtnMan"
>
报价与库存
</button>
-->
<el-tooltip
class=
"item"
effect=
"dark"
content=
"修改"
placement=
"top"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"修改"
placement=
"top"
>
<el-button
@
click=
"goSubInfo('GnHotelInfo',scope.row.ID)"
type=
"primary"
icon=
"el-icon-edit"
circle
></el-button>
<el-button
@
click=
"goSubInfo('GnHotelInfo',scope.row.ID)"
type=
"primary"
icon=
"el-icon-edit"
circle
>
</el-button>
</el-tooltip>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"房型"
placement=
"top"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"房型"
placement=
"top"
>
<el-button
@
click=
"goUrl('HotelProductManage',scope.row)"
style=
"font-size:12px;"
type=
"primary"
icon=
"iconfont icon-shouye1-copy"
circle
></el-button>
<el-button
@
click=
"goUrl('HotelProductManage',scope.row)"
style=
"font-size:12px;"
type=
"primary"
icon=
"iconfont icon-shouye1-copy"
circle
></el-button>
</el-tooltip>
</el-tooltip>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
@@ -390,25 +392,25 @@
...
@@ -390,25 +392,25 @@
ProductType
:
2
,
ProductType
:
2
,
},
},
multipleSelection
:
[],
multipleSelection
:
[],
shelveMsg
:{
shelveMsg
:
{
HotelStatus
:
1
,
//1上架 2下架
HotelStatus
:
1
,
//1上架 2下架
HotelIds
:
''
HotelIds
:
''
}
}
};
};
},
},
methods
:
{
methods
:
{
//批量上下架
//批量上下架
goShelves
(
type
){
goShelves
(
type
)
{
if
(
this
.
multipleSelection
.
length
==
0
)
{
if
(
this
.
multipleSelection
.
length
==
0
)
{
this
.
Error
(
'请选择酒店'
);
this
.
Error
(
'请选择酒店'
);
return
return
}
}
this
.
shelveMsg
.
HotelStatus
=
type
;
this
.
shelveMsg
.
HotelStatus
=
type
;
let
Ids
=
[];
let
Ids
=
[];
this
.
multipleSelection
.
forEach
(
x
=>
{
this
.
multipleSelection
.
forEach
(
x
=>
{
Ids
.
push
(
x
.
ID
);
Ids
.
push
(
x
.
ID
);
})
})
this
.
shelveMsg
.
HotelIds
=
Ids
.
toString
();
this
.
shelveMsg
.
HotelIds
=
Ids
.
toString
();
this
.
apipost
(
"hotel_post_SetHotelStatus"
,
this
.
apipost
(
"hotel_post_SetHotelStatus"
,
this
.
shelveMsg
,
this
.
shelveMsg
,
res
=>
{
res
=>
{
...
@@ -419,7 +421,7 @@
...
@@ -419,7 +421,7 @@
null
null
);
);
},
},
handleSelectionChange
(
val
){
handleSelectionChange
(
val
)
{
this
.
multipleSelection
=
val
;
this
.
multipleSelection
=
val
;
},
},
handleCurrentChange
(
val
)
{
handleCurrentChange
(
val
)
{
...
...
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