From 55070225cc3012a725577eb19ba823522d6fcfad Mon Sep 17 00:00:00 2001 From: lijun Date: Wed, 16 Oct 2024 00:24:46 +0800 Subject: [PATCH] update code --- yanzhu-ui-vue3/src/main.js | 4 ++-- .../src/views/manage/attendanceUbiData/index.vue | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/yanzhu-ui-vue3/src/main.js b/yanzhu-ui-vue3/src/main.js index c69ee91e..cdba650b 100644 --- a/yanzhu-ui-vue3/src/main.js +++ b/yanzhu-ui-vue3/src/main.js @@ -45,7 +45,7 @@ import DictTag from '@/components/DictTag' // Vue3表单组件 import VForm3 from '@/lib/vform/designer.umd.js' import '@/lib/vform/designer.style.css' - +import dayjs from 'dayjs' const app = createApp(App) // 全局方法挂载 @@ -67,7 +67,7 @@ app.config.globalProperties.$tryToJson=(str,df)=>{ return (df||{}); } } - +app.config.globalProperties.$dt=dayjs; // 全局组件挂载 app.component('DictTag', DictTag) app.component('Pagination', Pagination) diff --git a/yanzhu-ui-vue3/src/views/manage/attendanceUbiData/index.vue b/yanzhu-ui-vue3/src/views/manage/attendanceUbiData/index.vue index d59eb61e..20b8e2cb 100644 --- a/yanzhu-ui-vue3/src/views/manage/attendanceUbiData/index.vue +++ b/yanzhu-ui-vue3/src/views/manage/attendanceUbiData/index.vue @@ -3,14 +3,14 @@ - - + @@ -157,6 +157,7 @@ import { listAttendanceUbiData, getAttendanceUbiData, delAttendanceUbiData, addA import { findMyProjectList } from "@/api/publics"; import useUserStore from '@/store/modules/user' import { listProProjectInfoSubdepts } from "@/api/manage/proProjectInfoSubdepts"; + const { proxy } = getCurrentInstance(); const { pro_craft_type, pro_craft_post } = proxy.useDict( 'pro_craft_type', 'pro_craft_post'); @@ -345,8 +346,10 @@ function handleExport() { }, `attendanceUbiData_${new Date().getTime()}.xlsx`) } +queryParams.value.inTime= proxy.$dt(new Date()).format("YYYY-MM-DD"); getList(); getProjectList(); +