本月
@@ -95,8 +100,15 @@
selectedTime.value = false;
getTableData();
};
- const changeYear = () => {
- queryParams.value.year = selectYear.value;
+ const changeYear = (data) => {
+ if (data) {
+ const newYear = selectYear.value.year() + data;
+ selectYear.value = dayjs().year(newYear);
+ const queryYear = selectYear.value.format('YYYY');
+ queryParams.value.year = queryYear;
+ } else {
+ queryParams.value.year = selectYear.value;
+ }
getTableData();
};
const changeToYear = () => {
@@ -331,6 +343,12 @@
border-radius: 4px;
border: 1px solid rgba(39, 120, 255, 1);
}
+ :deep(.ant-btn-primary) {
+ border-radius: unset !important;
+ border-color: #d7d7d7 !important;
+ background: #f2f2f2 !important;
+ color: black !important;
+ }
.month {
width: 50%;
display: flex;