diff --git a/src/api/bpm/leave/index.ts b/src/api/bpm/leave/index.ts index d4e1be73..d4fe8d58 100644 --- a/src/api/bpm/leave/index.ts +++ b/src/api/bpm/leave/index.ts @@ -22,6 +22,6 @@ export const getLeave = async (id: number) => { } // 获得请假申请分页 -export const getLeavePage = async (params) => { +export const getLeavePage = async (params: PageParam) => { return await request.get({ url: '/bpm/oa/leave/page', params }) } diff --git a/src/types/auto-imports.d.ts b/src/types/auto-imports.d.ts index 75cf16d9..6558357f 100644 --- a/src/types/auto-imports.d.ts +++ b/src/types/auto-imports.d.ts @@ -6,6 +6,7 @@ export {} declare global { const DICT_TYPE: typeof import('@/utils/dict')['DICT_TYPE'] const EffectScope: typeof import('vue')['EffectScope'] + const ElMessageBox: typeof import('element-plus/es')['ElMessageBox'] const computed: typeof import('vue')['computed'] const createApp: typeof import('vue')['createApp'] const customRef: typeof import('vue')['customRef'] diff --git a/src/views/bpm/oa/leave/create.vue b/src/views/bpm/oa/leave/create.vue index dd932627..dd22571a 100644 --- a/src/views/bpm/oa/leave/create.vue +++ b/src/views/bpm/oa/leave/create.vue @@ -1,5 +1,5 @@