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
57b687d5
Commit
57b687d5
authored
May 19, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
5c86b560
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
113 additions
and
45 deletions
+113
-45
GnHotelManagement.vue
src/components/Hotel/GnHotelManagement.vue
+109
-45
TravelManager2.vue
...ts/newTravelmanager/TravelGroupControl/TravelManager2.vue
+4
-0
No files found.
src/components/Hotel/GnHotelManagement.vue
View file @
57b687d5
<
style
>
.
h
otelmanagement
.hotelResource
{
.
GnH
otelmanagement
.hotelResource
{
width
:
100%
;
min-height
:
500px
;
margin-top
:
20px
;
}
.
h
otelmanagement
.resourceListMan
{
.
GnH
otelmanagement
.resourceListMan
{
width
:
215px
;
height
:
350px
;
background-color
:
#fff
;
...
...
@@ -17,18 +17,18 @@
float
:
left
;
}
.
h
otelmanagement
.resourceListMan
:hover
{
.
GnH
otelmanagement
.resourceListMan
:hover
{
box-shadow
:
0px
0px
20px
rgba
(
191
,
191
,
191
,
1
);
transition
:
all
linear
0.5s
;
}
.
h
otelmanagement
.reTopInfo
{
.
GnH
otelmanagement
.reTopInfo
{
width
:
100%
;
height
:
123px
;
position
:
relative
;
}
.
h
otelmanagement
.reTopInfo
img
{
.
GnH
otelmanagement
.reTopInfo
img
{
position
:
absolute
;
width
:
100%
;
height
:
100%
;
...
...
@@ -37,13 +37,13 @@
border-top-right-radius
:
4px
;
}
.
h
otelmanagement
.resTypeList
{
.
GnH
otelmanagement
.resTypeList
{
position
:
absolute
;
top
:
10px
;
left
:
10px
;
}
.
h
otelmanagement
.resTypeList
span
{
.
GnH
otelmanagement
.resTypeList
span
{
display
:
inline-block
;
padding
:
1px
5px
;
border-radius
:
10px
;
...
...
@@ -51,34 +51,34 @@
margin-right
:
10px
;
}
.
h
otelmanagement
.L1
{
.
GnH
otelmanagement
.L1
{
background-color
:
#e95252
;
}
.
h
otelmanagement
.L2
{
.
GnH
otelmanagement
.L2
{
background-color
:
#47bf8c
;
}
.
h
otelmanagement
.L3
{
.
GnH
otelmanagement
.L3
{
background-color
:
#2aaef2
;
}
.
h
otelmanagement
.L4
{
.
GnH
otelmanagement
.L4
{
background-color
:
#9cf
;
}
.
h
otelmanagement
.L5
{
.
GnH
otelmanagement
.L5
{
background-color
:
#00c6ff
;
margin-top
:
5px
;
}
.
h
otelmanagement
.starSu
{
.
GnH
otelmanagement
.starSu
{
position
:
absolute
;
bottom
:
8px
;
right
:
10px
;
}
.
h
otelmanagement
.sushe
{
.
GnH
otelmanagement
.sushe
{
background-color
:
#ffc800
;
display
:
inline-block
;
padding
:
1px
5px
;
...
...
@@ -86,7 +86,7 @@
color
:
#fff
;
}
.
h
otelmanagement
.hotelTitle
{
.
GnH
otelmanagement
.hotelTitle
{
margin
:
22px
16px
0
16px
;
font-size
:
14px
;
color
:
#333333
;
...
...
@@ -95,16 +95,16 @@
white-space
:
nowrap
;
}
.
h
otelmanagement
.brandList
{
.
GnH
otelmanagement
.brandList
{
margin
:
10px
16px
;
}
.
h
otelmanagement
.brandList
i
{
.
GnH
otelmanagement
.brandList
i
{
position
:
relative
;
top
:
2px
;
}
.
h
otelmanagement
.brand
{
.
GnH
otelmanagement
.brand
{
float
:
left
;
width
:
120px
;
overflow
:
hidden
;
...
...
@@ -112,46 +112,40 @@
white-space
:
nowrap
;
}
.
h
otelmanagement
.dayNum
{
.
GnH
otelmanagement
.dayNum
{
float
:
right
;
}
.
h
otelmanagement
.Address
{
.
GnH
otelmanagement
.Address
{
margin
:
0
16px
;
height
:
17px
;
overflow
:
hidden
;
}
.
h
otelmanagement
.Address
i
{
.
GnH
otelmanagement
.Address
i
{
color
:
#bbbbbb
;
}
.hotelmanagement
.iconfont
{
margin-right
:
5px
;
position
:
relative
;
top
:
-4px
;
}
.hotelmanagement
.icon-star1
{
.GnHotelmanagement
.icon-star1
{
color
:
#ffc800
;
}
.
h
otelmanagement
.star
i
{
.
GnH
otelmanagement
.star
i
{
margin-right
:
3px
;
font-size
:
12px
;
}
.
h
otelmanagement
.honor
{
.
GnH
otelmanagement
.honor
{
color
:
#ff793e
;
}
.
h
otelmanagement
.dieline
{
.
GnH
otelmanagement
.dieline
{
color
:
#2aaef2
;
font-size
:
14px
;
top
:
1px
!important
;
}
.
h
otelmanagement
.AddressInner
{
.
GnH
otelmanagement
.AddressInner
{
float
:
right
;
width
:
160px
;
height
:
18px
;
...
...
@@ -162,12 +156,12 @@
-webkit-box-orient
:
vertical
;
}
.
h
otelmanagement
.btnList
{
.
GnH
otelmanagement
.btnList
{
margin-top
:
12px
;
text-align
:
center
;
}
.
h
otelmanagement
.hotelBtnMan
{
.
GnH
otelmanagement
.hotelBtnMan
{
width
:
50px
;
height
:
28px
;
border-radius
:
14px
;
...
...
@@ -176,11 +170,11 @@
background-color
:
#f76f6f
;
}
.
h
otelmanagement
.w150
.el-input
{
.
GnH
otelmanagement
.w150
.el-input
{
width
:
150px
;
}
.
h
otelmanagement
.RemainingInventory
{
.
GnH
otelmanagement
.RemainingInventory
{
position
:
absolute
;
width
:
60px
;
height
:
60px
;
...
...
@@ -197,29 +191,29 @@
margin-left
:
-30px
;
}
.
h
otelmanagement
.delScien
{
.
GnH
otelmanagement
.delScien
{
position
:
absolute
;
right
:
10px
;
top
:
10px
;
display
:
none
;
}
.
h
otelmanagement
.delScien
:hover
{
.
GnH
otelmanagement
.delScien
:hover
{
color
:
#f76f6f
;
cursor
:
pointer
;
}
.
h
otelmanagement
.resourceListMan
:hover
.delScien
{
.
GnH
otelmanagement
.resourceListMan
:hover
.delScien
{
display
:
block
;
}
.
h
otelmanagement
.comCursorUrl
{
.
GnH
otelmanagement
.comCursorUrl
{
cursor
:
pointer
;
}
</
style
>
<
template
>
<div
class=
"flexOne
h
otelmanagement"
>
<div
class=
"flexOne
GnH
otelmanagement"
>
<div
class=
"query-box"
>
<ul>
<li>
...
...
@@ -232,7 +226,6 @@
<li>
<span>
<em>
{{
$t
(
'system.quety_area'
)
}}
</em>
<el-select
v-model=
"msg.QProvince"
class=
"w150"
filterable
@
change=
"getProvinceList(msg.QProvince,2)"
:placeholder=
"$t('hotel.hotel_province')"
>
<el-option
v-for=
"item in provinceList"
:key=
"item.ID"
:label=
"item.Name"
:value=
"item.ID"
></el-option>
...
...
@@ -287,10 +280,49 @@
<button
class=
"hollowFixedBtn"
type=
"button"
@
click=
"resetPageIndex(),selectResource()"
>
{{
$t
(
'pub.searchBtn'
)
}}
</button>
<button
class=
"normalBtn"
type=
"button"
@
click=
"goSubInfo('GnHotelInfo')"
>
{{
$t
(
'pub.addBtn'
)
}}
</button>
<button
class=
"normalBtn"
type=
"button"
@
click=
"goShelves(1)"
>
批量上架
</button>
<button
class=
"normalBtn"
type=
"button"
@
click=
"goShelves(2)"
>
批量下架
</button>
</li>
</ul>
</div>
<div
class=
"hotelResource clearfix"
v-loading=
"loading"
>
<el-table
ref=
"multipleTable"
:data=
"tableData"
tooltip-effect=
"dark"
style=
"width: 100%;min-height:450px;"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"50px"
>
</el-table-column>
<el-table-column
prop=
"Name"
label=
"酒店名称"
>
</el-table-column>
<el-table-column
prop=
"HotelRealName"
label=
"真实姓名"
>
</el-table-column>
<el-table-column
prop=
"UpdateName"
label=
"修改人"
>
</el-table-column>
<el-table-column
prop=
"UpdateTimeStr"
label=
"修改时间"
>
</el-table-column>
<el-table-column
prop=
"Address"
label=
"地址"
>
</el-table-column>
<el-table-column
prop=
"HotelStatus"
label=
"状态"
>
<template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.HotelStatus==1"
style=
"color:green;"
>
上架
</span>
<span
v-if=
"scope.row.HotelStatus==2"
style=
"color:red;"
>
下架
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
width=
"100"
>
<
template
slot-scope=
"scope"
>
<!--
<button
@
click=
"goSubInfo('GnHotelInfo',scope.row.ID)"
class=
"hotelBtnMan"
>
修改
</button>
-->
<!--
<button
@
click=
"goUrl('HotelProductManage',item)"
class=
"hotelBtnMan"
>
报价与库存
</button>
-->
<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-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"报价与库存"
placement=
"top"
>
<el-button
@
click=
"goUrl('HotelProductManage',scope.row)"
style=
"font-size:14px;"
title=
""
type=
"primary"
icon=
"iconfont icon-iconkaobei"
circle
></el-button>
</el-tooltip>
</
template
>
</el-table-column>
</el-table>
<el-pagination
style=
"text-align:center"
background
@
current-change=
"handleCurrentChange"
:page-size=
"msg.pageSize"
layout=
"prev, pager, next"
:total=
"msg.total"
>
</el-pagination>
<!-- <div class="hotelResource clearfix" v-loading="loading">
<div class="resourceListMan" v-for="(item,index) in tableData" :key="index">
<div class="reTopInfo" :class="{'comCursorUrl':item.URL}" @click="OpenNewUrl(item.URL)">
<img v-if="!item.PicPath" src="../../assets/img/bg_c3@3x.png">
...
...
@@ -355,7 +387,7 @@
</div>
</div>
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="msg.currentPage"
:page-size=
"this.msg.pageSize"
layout=
"total,prev, pager, next, jumper"
:total=
"msg.total"
></el-pagination>
:page-size="this.msg.pageSize" layout="total,prev, pager, next, jumper" :total="msg.total"></el-pagination>
-->
</div>
</template>
<
script
>
...
...
@@ -400,11 +432,42 @@
currentPage
:
1
,
ID
:
0
,
UpdateBy
:
0
,
//操作人
ProductType
:
2
,
ProductType
:
2
,
},
multipleSelection
:
[],
shelveMsg
:{
HotelStatus
:
1
,
//1上架 2下架
HotelIds
:
''
}
};
},
methods
:
{
//批量上下架
goShelves
(
type
){
if
(
this
.
multipleSelection
.
length
==
0
){
this
.
Error
(
'请选择酒店'
);
return
}
this
.
shelveMsg
.
HotelStatus
=
type
;
let
Ids
=
[];
this
.
multipleSelection
.
forEach
(
x
=>
{
Ids
.
push
(
x
.
ID
);
})
this
.
shelveMsg
.
HotelIds
=
Ids
.
toString
();
this
.
apipost
(
"hotel_post_SetHotelStatus"
,
this
.
shelveMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
selectResource
();
}
},
null
);
},
handleSelectionChange
(
val
){
console
.
log
(
val
,
'x多选'
);
this
.
multipleSelection
=
val
;
},
handleCurrentChange
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
this
.
selectResource
();
...
...
@@ -481,6 +544,7 @@
this
.
tableData
.
forEach
(
x
=>
{
x
.
starArr
=
new
Array
(
x
.
Star
);
});
console
.
log
(
this
.
tableData
,
'数据来也'
);
}
},
null
...
...
src/components/newTravelmanager/TravelGroupControl/TravelManager2.vue
View file @
57b687d5
...
...
@@ -317,6 +317,10 @@
},
//提交验证
submitForm
(
SaveType
)
{
if
(
this
.
PostConfig
.
LineteamId
==
0
){
this
.
Error
(
'请选择系列'
);
return
}
if
(
this
.
isSubmit
)
{
this
.
isSubmit
=
false
;
this
.
SaveData
(
SaveType
);
...
...
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