diff --git a/ruoyi-ui/src/views/statistics/integral/index.vue b/ruoyi-ui/src/views/statistics/integral/index.vue index 76c3c9d..ec95ea1 100644 --- a/ruoyi-ui/src/views/statistics/integral/index.vue +++ b/ruoyi-ui/src/views/statistics/integral/index.vue @@ -39,8 +39,8 @@ - - + + @@ -136,6 +136,12 @@ export default { const day = date.getDate().toString().padStart(2, '0'); return `${year}-${month}-${day}`; }, + dateFormat(row, column, cellValue, index) { + // 使用date-fns或moment.js等库来格式化日期 + // 这里仅使用JavaScript原生Date对象作为示例 + const date = new Date(cellValue); + return date.getFullYear() + '-' + (date.getMonth() + 1).toString().padStart(2, '0') + '-' + date.getDate().toString().padStart(2, '0'); + }, /** 查询店铺单日历史信息列表 */ getList() { this.loading = true;