|
@@ -2,8 +2,8 @@
|
|
{ "style": { "navigationBarTitleText": "待办", "navigationBarBackgroundColor": "#f2f3f6" } }
|
|
{ "style": { "navigationBarTitleText": "待办", "navigationBarBackgroundColor": "#f2f3f6" } }
|
|
</route>
|
|
</route>
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
-import { createTodo, deleteTodo, getTodos, updateTodo } from '../../../core/libs/requests'
|
|
|
|
-import { useUserStore } from '../../../store'
|
|
|
|
|
|
+import { createTodo, deleteTodo, getTodos, updateTodo } from '@/core/libs/requests'
|
|
|
|
+import { useUserStore } from '@/store'
|
|
import { storeToRefs } from 'pinia'
|
|
import { storeToRefs } from 'pinia'
|
|
import dayjs from 'dayjs'
|
|
import dayjs from 'dayjs'
|
|
import DataForm from '@/components/data-form.vue'
|
|
import DataForm from '@/components/data-form.vue'
|
|
@@ -11,7 +11,7 @@ import { requestToast } from '@designer-hub/app/src/core/utils/common'
|
|
import SectionHeading from '@/components/section-heading.vue'
|
|
import SectionHeading from '@/components/section-heading.vue'
|
|
import { Todo } from '@designer-hub/app/src/core/libs/models'
|
|
import { Todo } from '@designer-hub/app/src/core/libs/models'
|
|
import BottomAppBar from '@/components/bottom-app-bar.vue'
|
|
import BottomAppBar from '@/components/bottom-app-bar.vue'
|
|
-import { DataFormSchema } from '../../../components/data-form'
|
|
|
|
|
|
+import { DataFormSchema } from '@/components/data-form'
|
|
|
|
|
|
const userStore = useUserStore()
|
|
const userStore = useUserStore()
|
|
const { userInfo } = storeToRefs(userStore)
|
|
const { userInfo } = storeToRefs(userStore)
|
|
@@ -90,6 +90,7 @@ onMounted(async () => {
|
|
<div class="flex-grow">
|
|
<div class="flex-grow">
|
|
<wd-calendar-view v-model="current" @change="handleCalendarChange" :formatter="(day: any) => {
|
|
<wd-calendar-view v-model="current" @change="handleCalendarChange" :formatter="(day: any) => {
|
|
let date = dayjs(new Date(day.date)).format('YYYY-MM-DD')
|
|
let date = dayjs(new Date(day.date)).format('YYYY-MM-DD')
|
|
|
|
+ console.log('--------', list)
|
|
for(const {executionTime} of list) {
|
|
for(const {executionTime} of list) {
|
|
let date2 = dayjs(new Date(executionTime)).format('YYYY-MM-DD')
|
|
let date2 = dayjs(new Date(executionTime)).format('YYYY-MM-DD')
|
|
if (date === date2) {
|
|
if (date === date2) {
|