Browse Source

fix(forecast-summary): 调整日期选择器类型和格式

yz 1 week ago
parent
commit
62f45c079c
1 changed files with 7 additions and 2 deletions
  1. 7 2
      src/views/forecast-summary/summaryIndex.js

+ 7 - 2
src/views/forecast-summary/summaryIndex.js

@@ -96,14 +96,19 @@ export default {
             slot: true,
             search: true,
             searchSpan: 6,
-            searchslot: true,
+            type: 'month',
+            format: 'yyyy-MM',
+            valueFormat: 'yyyy-MM',
+            searchslot: false,
             hide: false
           },
           {
             label: '年份',
             prop: 'year',
             minWidth: 80,
-            type: 'number',
+            type: 'year',
+            format: 'yyyy',
+            valueFormat: 'yyyy',
             search: true,
             searchSpan: 6,
             hide: true