提交 f49a4e99 authored 作者: pengxiaohui's avatar pengxiaohui

fix: 修复周期会议每月跨年显示不正确的bug [2146]

上级 d1663d49
...@@ -53,6 +53,7 @@ export default { ...@@ -53,6 +53,7 @@ export default {
}, },
methods: { methods: {
handlleSelect(path) { handlleSelect(path) {
console.log(this.$router)
this.$router.push(path) this.$router.push(path)
} }
} }
......
...@@ -490,6 +490,7 @@ export default { ...@@ -490,6 +490,7 @@ export default {
this.form.endDate = val this.form.endDate = val
this.startTimeChange() this.startTimeChange()
this.dateChange() this.dateChange()
this.recurringTypeChange()
}, },
startTimeChange() { startTimeChange() {
const { startDate, endDate } = this.form const { startDate, endDate } = this.form
......
...@@ -133,7 +133,7 @@ function getDateByMouths(startDate, times) { ...@@ -133,7 +133,7 @@ function getDateByMouths(startDate, times) {
// startDate.setMonth(month + times) // startDate.setMonth(month + times)
if ((month + times - 1) / 12 > 1) { if ((month + times - 1) / 12 > 1) {
month = (month + times - 1) % 12 month = (month + times - 1) % 12
year += Math.floor((month + times - 1) / 12) year++
} else { } else {
month = month + times - 1 month = month + times - 1
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论