日历修改
This commit is contained in:
@@ -188,6 +188,7 @@
|
||||
<script lang="ts">
|
||||
import { defineComponent, ref } from 'vue';
|
||||
import { getdate } from "@/utils/date"
|
||||
import { getdatelist } from '@/api';
|
||||
|
||||
export default defineComponent({
|
||||
props:{
|
||||
@@ -202,11 +203,19 @@ export default defineComponent({
|
||||
function xia(){
|
||||
yue.value = yue.value + 1;
|
||||
month.value = getdate(yue.value)
|
||||
getdates()
|
||||
}
|
||||
function shang(){
|
||||
yue.value = yue.value - 1;
|
||||
month.value = getdate(yue.value)
|
||||
getdates()
|
||||
}
|
||||
async function getdates(){
|
||||
getdatelist(month.value.start, month.value.end).then((res)=>{
|
||||
console.log(res)
|
||||
})
|
||||
}
|
||||
getdates()
|
||||
return {
|
||||
month,
|
||||
xia,
|
||||
|
||||
Reference in New Issue
Block a user