diff --git a/src/views/system/calendar/index.vue b/src/views/system/calendar/index.vue
index 6b22052..3b9bea2 100644
--- a/src/views/system/calendar/index.vue
+++ b/src/views/system/calendar/index.vue
@@ -1,13 +1,21 @@
-
-
- 上年
- 今年
- 下年
- 刷新
-
-
+
+
+
+ {{currentYear}} 年
+
+
+
+
+ 上年
+ 今年
+ 下年
+ 刷新
+
+
+
+
@@ -40,9 +48,18 @@
+
+
+
+
@@ -67,7 +84,7 @@
- 确定
+ 确定
@@ -83,6 +100,7 @@
import {CalendarInstance} from "element-plus";
import {CalendarApi, CalendarVO} from "@/api/home/calendar";
import { getIntDictOptions, DICT_TYPE } from '@/utils/dict'
+import {Close} from "@element-plus/icons-vue";
defineOptions({ name: 'CalendarAgendaIndex' })
@@ -201,7 +219,9 @@ const handleSelect = async (date:any) => {
};
//提交更改
-const submitForm = async ()=> {
+const submitForm = async (date:any)=> {
+ // 判断更改是否符合
+ await getDate(date);
const dataClan = formDataCaln.value as unknown as CalendarVO
// 更新后台数据
try {
@@ -219,7 +239,14 @@ const submitForm = async ()=> {
// 关闭弹窗
updatedHoliday.visible = false;
}
-
+const closePopover = async (date:any)=> {
+ // 判断更改是否符合
+ await getDate(date);
+ //获取选择日期
+ const updatedHoliday = holidayDate.value[sDate.value];
+ // 关闭弹窗
+ updatedHoliday.visible = false;
+}
// 获取日期时间 年月日
function formatDate2(dat: number|Date) {
const date = new Date(dat)