|
|
|
|
@ -32,8 +32,7 @@ |
|
|
|
|
<p> |
|
|
|
|
{{ data.day.slice(-2) }} |
|
|
|
|
</p> |
|
|
|
|
<div style="display:flex;align-items:center;flex-direction: column;"> |
|
|
|
|
<!-- <span class="txt_box">{{calcData.find(item => item.start.slice(0,10) == data.day) ? calcData.find(item => item.start.slice(0,10) == data.day).start.slice(11,16) : ''}}</span> --> |
|
|
|
|
<div style="display:flex;align-items:center;flex-direction: column;height:74%;overflow:auto;"> |
|
|
|
|
<span class="txt_box right_txt" v-for="item in calcData" :key="item.title"> |
|
|
|
|
{{item.start == data.day ? item.title : ''}} |
|
|
|
|
</span> |
|
|
|
|
@ -65,7 +64,7 @@ export default { |
|
|
|
|
this.today = fullYear + '-' + fullMonth + '-' + fullDay |
|
|
|
|
this.getData(fullYear + '-' + fullMonth + '-01',fullYear + '-' + fullMonth + '-' + lastDay) |
|
|
|
|
this.$nextTick(() =>{ |
|
|
|
|
console.log(document.querySelector('.el-calendar__title')) |
|
|
|
|
// console.log(document.querySelector('.el-calendar__title')) |
|
|
|
|
// 点击前一个月 |
|
|
|
|
let prevBtn = document.querySelector( |
|
|
|
|
".el-calendar__button-group .el-button-group>button:nth-child(1)" |
|
|
|
|
@ -114,7 +113,6 @@ export default { |
|
|
|
|
getData(startTime,endTime){ |
|
|
|
|
// console.log('date ====>',date) |
|
|
|
|
getCalendarData({startDate:startTime,endDate:endTime}).then(res =>{ |
|
|
|
|
console.log('res =====>',res) |
|
|
|
|
this.calcData = res.data.data |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
|