|
|
@@ -1,4 +1,5 @@
|
|
|
<template>
|
|
|
+ <div>
|
|
|
<!-- <a-calendar>-->
|
|
|
<!-- <ul slot="dateCellRender" slot-scope="value" class="events">-->
|
|
|
<!-- <li v-for="item in getListData(value)" :key="item.content">-->
|
|
|
@@ -32,8 +33,8 @@
|
|
|
</div>
|
|
|
</a-calendar> -->
|
|
|
|
|
|
- <a-modal v-model="visibleMoney" title="修改房价" @ok="handleOk" :width="300">
|
|
|
- <a-input-number style="width: 100%;margin: auto" v-model="updateMoney" :min="0" :precision="2" />
|
|
|
+ <a-modal v-model="visibleMoney" title="修改房价" @ok="handleOk">
|
|
|
+ <a-input-number style="width: 100%;margin: auto" v-model="updateMoney" />
|
|
|
</a-modal>
|
|
|
<!-- </div> -->
|
|
|
<a-table :columns="columns" :alert="true" :data-source="calendarData" :rowKey="(record, index) => index + 1">
|
|
|
@@ -44,7 +45,7 @@
|
|
|
<!-- <div slot-scope="text, record" v-for="item in columns"> -->
|
|
|
<template v-for="item in columns" :slot="item.dataIndex" slot-scope="text, record">
|
|
|
<!-- {{ }} -->
|
|
|
- <div :class="isWeekend(new Date(item.dataIndex)) ? 'cell_style' : 'cell_stylez'">
|
|
|
+ <div :class="isWeekend(new Date(item.dataIndex)) ? 'cell_style' : 'cell_stylez'" @click="editPrice(record,item,record[item.dataIndex])">
|
|
|
<!-- <div class="cell_style"> -->
|
|
|
{{ record[item.dataIndex] }}
|
|
|
<!-- <a-button block></a-button> -->
|
|
|
@@ -84,8 +85,19 @@
|
|
|
<!-- <div>
|
|
|
111
|
|
|
</div> -->
|
|
|
-
|
|
|
+ <!-- <el-dialog
|
|
|
+ title="提示"
|
|
|
+ :visible.sync="visibleMoney"
|
|
|
+ width="30%"
|
|
|
+ :before-close="handleClose">
|
|
|
+ <span>这是一段信息</span>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="visibleMoney = false">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="visibleMoney = false">确 定</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog> -->
|
|
|
</a-table>
|
|
|
+</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
@@ -195,11 +207,18 @@
|
|
|
},
|
|
|
methods: {
|
|
|
// 修改价格
|
|
|
- // editPrice(record,item) {
|
|
|
- // console.log(record);
|
|
|
- // console.log(item);
|
|
|
- // this.visibleMoney = true
|
|
|
- // },
|
|
|
+ editPrice(record,item,val) {
|
|
|
+ console.log(val);
|
|
|
+ console.log(record);
|
|
|
+ console.log(item);
|
|
|
+ var _time = moment(new Date(item.dataIndex)).format('YYYY-MM-DD 00:00:00')
|
|
|
+ console.log(_time);
|
|
|
+ this.updateDate = _time
|
|
|
+ this.updateMoney = val
|
|
|
+ this.updateId = record.id
|
|
|
+ this.updateSchemeLayoutId = record.schemeLayoutId
|
|
|
+ this.visibleMoney = true
|
|
|
+ },
|
|
|
// 获取数据
|
|
|
async getDateList() {
|
|
|
console.log(this.dataSource);
|
|
|
@@ -259,6 +278,8 @@
|
|
|
tempindex[index.date] = index.money
|
|
|
tempindex['schemeLayoutId'] = index.schemeLayoutId
|
|
|
tempindex['layoutName'] = item.layoutName
|
|
|
+ tempindex['hotelId'] = item.hotelId
|
|
|
+ tempindex['id'] = item.id
|
|
|
// tempdate: index.money,
|
|
|
// dataIndex: ,
|
|
|
// schemeLayoutId: index.schemeLayoutId
|