duy 7 月之前
父節點
當前提交
00915135e8
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/views/home/datav.vue

+ 2 - 2
src/views/home/datav.vue

@@ -336,7 +336,7 @@ onMounted(() => {
     }, 100)
 
     //生成月份
-    let newMonthArr = [{ id: 0, name: '所有' }]
+    let newMonthArr = [{ id: -1, name: '所有' }]
     for (let i = 0; i < 12; i++) {
         newMonthArr.push({ id: i + 1, name: `${i + 1}月` })
     }
@@ -354,7 +354,7 @@ const tourFinishClose = () => {
 
 //搜索表单
 const pageType = ref('1')
-const searchForm = ref({ year: '2024', month: 0, projectScheduleGrade: null, projectStage: null, projectType: null, projectScheduleType:null })
+const searchForm = ref({ year: '2024', month: -1, projectScheduleGrade: '-1', projectStage: null, projectType: null, projectScheduleType:'-1' })
 const yearArr = [{ id: '2024', name: '2024年' }, { id: '2023', name: '2023年' }, { id: '2022', name: '2022年' }]
 const pageTypeArr = [{ id: '1', name: '项目数据看板' }, { id: '2', name: '工作要点' }]
 const monthArr = ref([])