Commit 3633512c authored by 李静's avatar 李静

a

parent 511ea502
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
</div> </div>
<div v-if="show" class="incident"> <div v-if="show" class="incident">
<p>{{currentDate}}</p> <p>{{currentDate}}</p>
<span>{{event}}</span> <p v-for="event in allEvents">{{event}}</p>
<span class="close" @click="closeEvent">X</span> <span class="close" @click="closeEvent">X</span>
</div> </div>
</el-dialog> </el-dialog>
...@@ -183,6 +183,7 @@ ...@@ -183,6 +183,7 @@
position:relative; position:relative;
background-color:#202020; background-color:#202020;
width:180px; width:180px;
height:;
padding:20px; padding:20px;
color:#CCC; color:#CCC;
text-align:center; text-align:center;
...@@ -254,8 +255,9 @@ ...@@ -254,8 +255,9 @@
dateItems: '', // 当前月份所有日期的数据 dateItems: '', // 当前月份所有日期的数据
dialogTableVisible: false, dialogTableVisible: false,
show: false, show: false,
eventTitle: '',
currentDate: '', currentDate: '',
event: '', allEvents: '',
schedules: [] schedules: []
} }
}, },
...@@ -449,9 +451,9 @@ ...@@ -449,9 +451,9 @@
console.log(result, '--------------------') console.log(result, '--------------------')
if (result.schedule) { if (result.schedule) {
const currentTime = this.timestampToTime(result.schedule.date) const currentTime = this.timestampToTime(result.schedule.date)
console.log(currentTime)
this.currentDate = currentTime this.currentDate = currentTime
this.event = result.schedule.event this.eventTitle = result.schedule.title
this.allEvents = result.schedule.allEvents
} }
// this.$emit('dateChange', result) // this.$emit('dateChange', result)
} else { // 已激活行程提示的,不作反应 } else { // 已激活行程提示的,不作反应
......
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