Commit 8f3b8794 by 前端

工资bug

1 parent d9dc22b8
......@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2025-01-07 13:49:15
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2025-01-22 00:25:25
* @LastEditTime: 2025-03-14 14:54:11
* @FilePath: \gl-tape\components\HomeFrame\components\Income\History.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -136,7 +136,7 @@ export default {
return true
},
getDetail(date) {
uni.$api.pointApi.pageStat({ salaryMonthBegin: `${this.year}-1`, salaryMonthEnd: `${this.year}-12` }).then(res => {
uni.$api.pointApi.pageStat({ salaryMonthBegin: `${this.year}-01`, salaryMonthEnd: `${this.year}-12` }).then(res => {
const list = res.list || []
const canvasList = []
for (let i = 0; i < 12; i++) {
......@@ -155,7 +155,7 @@ export default {
this.canvasList = canvasList
this.showChart(this.month - 1)
})
this.monthSalaryDetail(this.year + '-' + this.month)
this.monthSalaryDetail(this.year + '-' + String(this.month).padStart(2, 0))
},
/**
......@@ -218,7 +218,7 @@ export default {
this.showChart(i) // 重新绘制图表,如果需要更新显示
const month = this.canvasList[i].date.replace(/\D+/, '')
this.monthStr = month
this.monthSalaryDetail(this.year + '-' + month)
this.monthSalaryDetail(this.year + '-' + month.padStart(2, 0))
}
break
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!