个股中心

This commit is contained in:
renzhijun
2026-01-31 09:22:58 +08:00
parent 5ffaac8fb2
commit 441f4c7360
6 changed files with 1292 additions and 562 deletions

View File

@@ -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)
}
}
}