From cb1a48bd067426004f467927d98598ea019fdfe2 Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: Thu, 30 Apr 2026 09:32:54 +0800
Subject: [PATCH] 修改默认年份

---
 src/views/build/conpanyFunctionConsult/need/needIdentify/index.vue |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/views/build/conpanyFunctionConsult/need/needIdentify/index.vue b/src/views/build/conpanyFunctionConsult/need/needIdentify/index.vue
index 2444411..ab4015b 100644
--- a/src/views/build/conpanyFunctionConsult/need/needIdentify/index.vue
+++ b/src/views/build/conpanyFunctionConsult/need/needIdentify/index.vue
@@ -106,7 +106,7 @@
               value-format="YYYY"
               placeholder="请选择年份"
               style="width: 100%; margin-bottom: 15px"
-              disabled
+           
           />
       <span style="display: block; margin-bottom: 8px">复制到:</span>
       <el-date-picker
@@ -174,12 +174,15 @@
     data.queryParams.companyId = userInfo.companyId
     data.chooseCompanyId = userInfo.companyId
   }
+  getNowYear()
   getList();
   if(data.isAdmin){
     getCompanyList()
   }
 });
-
+const getNowYear = () =>{
+  data.queryParams.year = new Date().getFullYear().toString()
+}
 const copyMenu = () => {
   if (!data.queryParams.year) {
     ElMessage.warning("请先选择要复制的年份");
@@ -299,6 +302,7 @@
       type: ''
     }
   }
+  getNowYear()
   getList();
 
 }

--
Gitblit v1.9.2