Skip to content

AI 分析设置中"自定义范围"选项无法显示日期选择框 #9

Description

@Openhoop168

在 AI 智能分析中心设置面板中,选择"自定义范围"时间范围后,开始日期和结束日期输入框无法显示。

复现步骤:

  1. 打开 http://localhost:3000
  2. 点击 AI 智能分析中心中任意分析项的设置按钮(齿轮图标)
  3. 在"默认时间范围"下拉框中选择"自定义范围"
  4. 预期:应该显示开始日期和结束日期输入框
  5. 实际:日期输入框没有显示

问题原因:
HTML 元素 ID 与 JavaScript 代码不匹配:

  • views/index.ejs 第 582 行使用 id="customDateRange"
  • public/js/ai-settings.js 第 625 行查找 getElementById('customDateGroup')

修复方案:
将 views/index.ejs 第 582 行的 id="customDateRange" 改为 id="customDateGroup"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions