|
|
@@ -46,6 +46,7 @@ export default {
|
|
|
watch:{
|
|
|
// 监听显示状态
|
|
|
showPicker (){
|
|
|
+ this.getDateRow();
|
|
|
let weeksBox = document.getElementsByClassName('vc-day');
|
|
|
let pickerBox = document.getElementsByClassName('date-picker-box')[0];
|
|
|
if( this.showPicker){
|
|
|
@@ -68,9 +69,6 @@ export default {
|
|
|
},
|
|
|
methods:{
|
|
|
foldBox(){
|
|
|
- let Calendar = this.$refs.Calendar;
|
|
|
- console.log(Calendar,'Calendar')
|
|
|
- this.num = Calendar.dateParts[0].week - 1;
|
|
|
this.showPicker = !this.showPicker;
|
|
|
},
|
|
|
// 获取年、月份
|
|
|
@@ -89,6 +87,12 @@ export default {
|
|
|
// this.num = dayLine -1;
|
|
|
this.$emit('change',day.id)
|
|
|
},
|
|
|
+ //获取当前日期行数
|
|
|
+ getDateRow(){
|
|
|
+ let Calendar = this.$refs.Calendar;
|
|
|
+ console.log(Calendar,'Calendar')
|
|
|
+ this.num = Calendar.dateParts[0].week - 1;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</script>
|