|
|
@ -1,11 +1,13 @@ |
|
|
|
<script lang="ts" setup> |
|
|
|
<script lang="ts" setup> |
|
|
|
import { ref, watchEffect } from 'vue' |
|
|
|
import { ref, watchEffect } from 'vue' |
|
|
|
import dayjs from 'dayjs' |
|
|
|
import dayjs from 'dayjs' |
|
|
|
|
|
|
|
import 'dayjs/locale/zh-cn' |
|
|
|
import { Button, Calendar } from 'ant-design-vue' |
|
|
|
import { Button, Calendar } from 'ant-design-vue' |
|
|
|
import { |
|
|
|
import { |
|
|
|
LeftOutlined, |
|
|
|
LeftOutlined, |
|
|
|
RightOutlined, |
|
|
|
RightOutlined, |
|
|
|
} from '@ant-design/icons-vue' |
|
|
|
} from '@ant-design/icons-vue' |
|
|
|
|
|
|
|
import zhCN from 'ant-design-vue/lib/locale/zh_CN' |
|
|
|
import type { HistoryType } from './index.d' |
|
|
|
import type { HistoryType } from './index.d' |
|
|
|
import { history } from '@/api/task/index' |
|
|
|
import { history } from '@/api/task/index' |
|
|
|
|
|
|
|
|
|
|
@ -15,7 +17,13 @@ const props = defineProps({ |
|
|
|
default: false, |
|
|
|
default: false, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
const emit = defineEmits(['handleHsigns']) |
|
|
|
const emit = defineEmits(['handleHsigns']) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dayjs.locale('zh-cn') |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const china = zhCN.Calendar |
|
|
|
|
|
|
|
|
|
|
|
const data = ref(dayjs()) |
|
|
|
const data = ref(dayjs()) |
|
|
|
const yam = ref(dayjs(data.value).format('YYYY-MM')) // 历史记录参数yyyy-MM |
|
|
|
const yam = ref(dayjs(data.value).format('YYYY-MM')) // 历史记录参数yyyy-MM |
|
|
|
const datesData = ref<HistoryType[]>([]) // 历史记录列表 |
|
|
|
const datesData = ref<HistoryType[]>([]) // 历史记录列表 |
|
|
@ -99,6 +107,7 @@ const getCellTypeClass = function (value: { $D: number }) { |
|
|
|
<Calendar |
|
|
|
<Calendar |
|
|
|
v-model:value="data" |
|
|
|
v-model:value="data" |
|
|
|
:fullscreen="false" |
|
|
|
:fullscreen="false" |
|
|
|
|
|
|
|
:locale="china" |
|
|
|
> |
|
|
|
> |
|
|
|
<template #headerRender="{ value }"> |
|
|
|
<template #headerRender="{ value }"> |
|
|
|
<div class="header"> |
|
|
|
<div class="header"> |
|
|
|