Commit 652db2c9 authored by 黄奎's avatar 黄奎

1

parent 484b8668
...@@ -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="690px" highlight-current-row> :header-cell-style="{background: '#f5f7fa', fontWeight: 'bold'}" max-height="670px" 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(currentDate.getMonth() + 1); // 将当前时间的月份加1 myDate.setMonth(myDate.getMonth() + 1); // 将当前时间的月份加1
this.msg.QEndDate = currentDate.getFullYear() + "-" + parseInt(currentDate.getMonth() + 1) + "-" + currentDate this.msg.QEndDate = myDate.getFullYear() + "-" + parseInt(myDate.getMonth() + 1) + "-" + myDate
.getDate(); .getDate();
this.getHotelList(); this.getHotelList();
}, },
mounted() { mounted() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment