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
652db2c9
Commit
652db2c9
authored
Jul 09, 2025
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
484b8668
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
16 deletions
+15
-16
hotelSpider.vue
src/components/Hotel/hotelSpider.vue
+15
-16
No files found.
src/components/Hotel/hotelSpider.vue
View file @
652db2c9
...
@@ -35,21 +35,22 @@
...
@@ -35,21 +35,22 @@
<div>
<div>
<div
style=
"color:red;margin-bottom:5px;"
>
价格实时变动,以下价格仅供参考。
</div>
<div
style=
"color:red;margin-bottom:5px;"
>
价格实时变动,以下价格仅供参考。
</div>
<el-table
:data=
"processedData"
border
style=
"width: 100%"
v-loading=
'loading'
:span-method=
"objectSpanMethod"
<el-table
:data=
"processedData"
border
style=
"width: 100%"
v-loading=
'loading'
:span-method=
"objectSpanMethod"
:header-cell-style=
"
{background: '#f5f7fa', fontWeight: 'bold'}" max-height="6
9
0px" highlight-current-row>
:header-cell-style=
"
{background: '#f5f7fa', fontWeight: 'bold'}" max-height="6
7
0px" highlight-current-row>
<el-table-column
prop=
"DiDaHotelName"
label=
"酒店名称"
width=
"200"
align=
"center"
fixed
></el-table-column>
<el-table-column
prop=
"DiDaHotelName"
label=
"酒店名称"
width=
"200"
align=
"center"
fixed
></el-table-column>
<el-table-column
prop=
"priceType"
label=
"类型"
width=
"70"
align=
"center"
fixed
></el-table-column>
<el-table-column
prop=
"priceType"
label=
"类型"
width=
"70"
align=
"center"
fixed
></el-table-column>
<el-table-column
v-for=
"(header, index) in dateHeaders"
:key=
"index"
:label=
"header.label"
align=
"center"
<el-table-column
v-for=
"(header, index) in dateHeaders"
:key=
"index"
:label=
"header.label"
align=
"center"
min-width=
"75"
>
min-width=
"75"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.priceType === '直客价'"
<el-tooltip
content=
"点击查看详情"
>
:style=
"
{color: scope.row.SubList[index].Price
<scope
.
row
.
SubList
[
index
].
TeamPrice
?
'
red
'
:
''}"
<span
v-if=
"scope.row.priceType === '直客价'"
@
click=
"gotoPage(1,scope.row.SubList[index])"
style=
"cursor:pointer; text-decoration: underline"
>
:style=
"
{color: scope.row.SubList[index].Price
<scope
.
row
.
SubList
[
index
].
TeamPrice
?
'
red
'
:
''}"
{{
scope
.
row
.
SubList
[
index
].
Price
}}
@
click=
"gotoPage(1,scope.row.SubList[index])"
style=
"cursor:pointer;"
>
</span>
{{
scope
.
row
.
SubList
[
index
].
Price
}}
<span
v-else
@
click=
"gotoPage(2,scope.row.SubList[index])"
</span>
style=
"cursor:pointer;text-decoration: underline"
>
<span
v-else
@
click=
"gotoPage(2,scope.row.SubList[index])"
style=
"cursor:pointer;"
>
{{
scope
.
row
.
SubList
[
index
].
TeamPrice
}}
{{
scope
.
row
.
SubList
[
index
].
TeamPrice
}}
</span>
</span>
</el-tooltip>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
@@ -147,8 +148,6 @@
...
@@ -147,8 +148,6 @@
.
CheckInDate
+
"&EndDate="
+
item
.
CheckOutDate
;
.
CheckInDate
+
"&EndDate="
+
item
.
CheckOutDate
;
window
.
open
(
dlUrl
);
window
.
open
(
dlUrl
);
}
}
console
.
log
(
"type"
,
type
);
console
.
log
(
"row"
,
row
);
},
},
// 单元格合并方法
// 单元格合并方法
objectSpanMethod
({
objectSpanMethod
({
...
@@ -225,6 +224,7 @@
...
@@ -225,6 +224,7 @@
// }
// }
}
}
let
myDate
=
new
Date
();
let
myDate
=
new
Date
();
myDate
.
setDate
(
myDate
.
getDate
()
+
14
);
let
nowDate
=
let
nowDate
=
myDate
.
getFullYear
()
+
myDate
.
getFullYear
()
+
"-"
+
"-"
+
...
@@ -232,11 +232,10 @@
...
@@ -232,11 +232,10 @@
"-"
+
"-"
+
myDate
.
getDate
();
myDate
.
getDate
();
this
.
msg
.
QStartDate
=
nowDate
;
this
.
msg
.
QStartDate
=
nowDate
;
var
currentDate
=
new
Date
();
// 获取当前时间
currentDate
.
setMonth
(
current
Date
.
getMonth
()
+
1
);
// 将当前时间的月份加1
myDate
.
setMonth
(
my
Date
.
getMonth
()
+
1
);
// 将当前时间的月份加1
this
.
msg
.
QEndDate
=
currentDate
.
getFullYear
()
+
"-"
+
parseInt
(
currentDate
.
getMonth
()
+
1
)
+
"-"
+
current
Date
this
.
msg
.
QEndDate
=
myDate
.
getFullYear
()
+
"-"
+
parseInt
(
myDate
.
getMonth
()
+
1
)
+
"-"
+
my
Date
.
getDate
();
.
getDate
();
this
.
getHotelList
();
this
.
getHotelList
();
},
},
mounted
()
{
mounted
()
{
...
...
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