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
8c2480ef
Commit
8c2480ef
authored
Aug 06, 2019
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
3bf33ee9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
7 deletions
+33
-7
HotelWorkList.vue
src/components/Hotel/HotelWorkList.vue
+33
-7
No files found.
src/components/Hotel/HotelWorkList.vue
View file @
8c2480ef
...
...
@@ -5,7 +5,7 @@
<li>
<span>
<em>
时间
</em>
<el-date-picker
v-model=
"msg.YearMonthStr"
type=
"month"
value-format=
"yyyy-MM"
placeholder=
"选择月"
>
<el-date-picker
v-model=
"msg.YearMonthStr"
type=
"month"
value-format=
"yyyy-MM"
placeholder=
"选择月"
>
</el-date-picker>
</span>
</li>
...
...
@@ -15,7 +15,29 @@
</li>
</ul>
</div>
<el-table
v-if=
"dataList.length>0"
:data=
"dataList"
style=
"width:100%"
border
v-loading=
'loading'
height=
"700"
>
<el-table-column
fixed
label=
"酒店名称"
min-width=
"180"
>
<template
slot-scope=
"scope"
>
<div
style=
"text-decoration: underline;cursor:pointer"
@
click=
"GotoHotel(scope.row.Hotel)"
>
{{
scope
.
row
.
HotelName
}}
</div>
</
template
>
</el-table-column>
<el-table-column
v-for=
'(item,index) in dataList[0].DayList'
:label=
"item.DateStr"
:key=
'index'
min-width=
"150"
>
<
template
slot-scope=
"scope"
>
<template
v-if=
"scope.row.DayList[index].IsHaveStock==0"
>
<div
style=
"background-color: #000!important;width:100%;height:100%;"
></div>
</
template
>
<
template
v-else
v-for=
"childItem in scope.row.DayList[index].HotelJourneyOrderList"
>
<div
style=
"white-space:nowrap;"
:title=
"childItem.TCID"
>
{{
childItem
.
BookGroup
}}
</div>
</
template
>
</template>
</el-table-column>
</el-table>
<div
class=
"noDataNotice"
v-else
>
<i
class=
"iconfont icon-kong"
></i>
<p>
{{$t("active.ld_noData")}}
</p>
</div>
</div>
</template>
<
script
>
...
...
@@ -24,8 +46,8 @@
return
{
//查询条件
msg
:
{
YearMonthStr
:
""
,
CountryId
:
651
,
//只查询日本
YearMonthStr
:
""
,
CountryId
:
651
,
//只查询日本
},
defaultSelectValue
:
0
,
dataList
:
[],
...
...
@@ -45,12 +67,16 @@
},
getList
()
{
this
.
loading
=
true
;
this
.
dataList
=
[];
if
(
this
.
msg
.
YearMonthStr
==
""
)
{
this
.
msg
.
YearMonthStr
=
new
Date
().
Format
(
"yyyy-MM"
);
}
this
.
apipost
(
"hotel_post_GetHotelWorkListService"
,
this
.
msg
,
res
=>
{
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
dataList
=
res
.
data
.
data
;
console
.
log
(
"this.dataList"
,
this
.
dataList
);
//console.log("this.dataList",
this.dataList);
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
...
...
@@ -61,7 +87,7 @@
},
mounted
()
{
this
.
msg
.
YearMonthStr
=
new
Date
().
Format
(
"yyyy-MM"
);
;
this
.
msg
.
YearMonthStr
=
new
Date
().
Format
(
"yyyy-MM"
);
this
.
getList
();
},
};
...
...
@@ -69,5 +95,5 @@
</
script
>
<
style
>
</
style
>
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