个股中心
This commit is contained in:
@@ -78,6 +78,8 @@
|
||||
currentMonth)) + '-' + (currentDay > 9 ? currentDay : ('0' + currentDay))
|
||||
// this.getYesterdayDateData()
|
||||
this.generateMonthDateListData()
|
||||
// 初始化时就派发一次当前日期事件
|
||||
this.$emit('date-change', this.selectDateStr)
|
||||
},
|
||||
methods: {
|
||||
/**
|
||||
@@ -92,6 +94,8 @@
|
||||
let selectDay = selectDate.getDate();
|
||||
this.selectDateStr = selectYear + '-' + (selectMonth > 9 ? selectMonth : ('0' + selectMonth)) + '-' + (
|
||||
selectDay > 9 ? selectDay : ('0' + selectDay))
|
||||
// 派发日期变更事件
|
||||
this.$emit('date-change', this.selectDateStr)
|
||||
},
|
||||
/**
|
||||
* 生成日期数组
|
||||
@@ -279,6 +283,7 @@
|
||||
this.selectDateStr = item.date
|
||||
this.chgStockData = item
|
||||
console.log('点击某天');
|
||||
this.$emit('date-change', this.selectDateStr)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user