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
76f3125e
Commit
76f3125e
authored
May 21, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
747d9a58
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
25 deletions
+27
-25
GnHotelManagement.vue
src/components/Hotel/GnHotelManagement.vue
+27
-25
No files found.
src/components/Hotel/GnHotelManagement.vue
View file @
76f3125e
...
@@ -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