From 336a881855f98c353915b3dfe67dc6444d82c641 Mon Sep 17 00:00:00 2001 From: lianlonggang Date: Tue, 14 Apr 2026 10:34:39 +0800 Subject: [PATCH] =?UTF-8?q?feat(indexSun):=20=E6=B7=BB=E5=8A=A0=E5=B9=B4?= =?UTF-8?q?=E4=BB=BD=E8=BE=93=E5=85=A5=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在表单中新增年份输入框配置 - 设置默认值为当前年份 - 使用 dayjs 获取当前年份作为默认值 - 配置字段类型为 input,标签显示为 年份 --- src/views/indexSun/indexSun.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/views/indexSun/indexSun.ts b/src/views/indexSun/indexSun.ts index 6c55b72..3fd9ee3 100644 --- a/src/views/indexSun/indexSun.ts +++ b/src/views/indexSun/indexSun.ts @@ -891,6 +891,13 @@ export const twoRNewForm = [ placeholder: '请输入单位', defaultValue: '', }, + { + label: '年份', + field: 'year', + type: 'input', + placeholder: '请输入年份', + defaultValue: String(dayjs().year()), + }, ]; export const oneRNewColumns = [