From 3c2dc3ac5ef6f39cf87adeef2f913c8333e4a7c3 Mon Sep 17 00:00:00 2001 From: yangzhq68909 <993367776@qq.com> Date: Fri, 16 May 2025 11:01:27 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=B7=E5=81=87=E7=94=B3=E8=AF=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- env/.env.development | 4 +- src/api/pages/absence/index.ts | 32 +++ src/api/system/index.ts | 13 + src/components/PageLayout/PageLayout.vue | 1 - src/pages.json | 9 + src/pages/humanResources/absence/apply.vue | 319 +++++++++++++++++++++ src/pages/integrated/duty/index.vue | 10 +- src/pages/login/login.vue | 2 +- src/pages/operate/sc/index.vue | 60 ++-- src/router/index.ts | 1 - src/types/uni-pages.d.ts | 1 + src/utils/index.ts | 4 +- 12 files changed, 417 insertions(+), 39 deletions(-) create mode 100644 src/api/pages/absence/index.ts create mode 100644 src/pages/humanResources/absence/apply.vue diff --git a/env/.env.development b/env/.env.development index 5137213..4cde61d 100644 --- a/env/.env.development +++ b/env/.env.development @@ -5,5 +5,5 @@ VITE_DELETE_CONSOLE = false # 是否开启sourcemap VITE_SHOW_SOURCEMAP = true -#VITE_SERVER_BASEURL = 'http://10.75.15.249:8080/jeecg-boot' -VITE_SERVER_BASEURL = 'https://36.112.48.190/jeecg-boot' \ No newline at end of file +VITE_SERVER_BASEURL = 'http://10.75.15.249:8080/jeecg-boot' +#VITE_SERVER_BASEURL = 'https://36.112.48.190/jeecg-boot' \ No newline at end of file diff --git a/src/api/pages/absence/index.ts b/src/api/pages/absence/index.ts new file mode 100644 index 0000000..2b2b9e2 --- /dev/null +++ b/src/api/pages/absence/index.ts @@ -0,0 +1,32 @@ +import { http } from '@/utils/http'; + +/*根据username获取职位名称和审批领导列表*/ +export function queryZwmcAndExaApi(username : string) { + return http({ + url: '/CxcQxj/cxcQxj/queryZwmcByUsername', + method: 'GET', + data: { + username + } + }) +} + +/*新增请假申请*/ +export function addApi(config) { + return http({ + url: '/CxcQxj/cxcQxj/add', + method: 'POST', + data: config + }) +} + +/*根据username获取最新请假结束日期*/ +export function queryHisDateApi(username : string) { + return http({ + url: '/CxcQxj/cxcQxj/queryHisDate', + method: 'GET', + data: { + username + } + }) +} \ No newline at end of file diff --git a/src/api/system/index.ts b/src/api/system/index.ts index 208c86a..290795c 100644 --- a/src/api/system/index.ts +++ b/src/api/system/index.ts @@ -65,4 +65,17 @@ export function queryCarouselApi(config) { method: 'GET', data: config }); +} + +/** + * 获取分类字典 + */ +export function getCategoryItemsApi(pid) { // 分类字典专用 + return http({ + url: '/sys/category/findtree', + method: 'GET', + data: { + pid + } + }) } \ No newline at end of file diff --git a/src/components/PageLayout/PageLayout.vue b/src/components/PageLayout/PageLayout.vue index 9ba8f11..167e533 100644 --- a/src/components/PageLayout/PageLayout.vue +++ b/src/components/PageLayout/PageLayout.vue @@ -145,7 +145,6 @@ const clearPageParamsCache = () => { const handleClickRight = () => { emit('navRight') } -console.log('props:', props) \ No newline at end of file diff --git a/src/pages/integrated/duty/index.vue b/src/pages/integrated/duty/index.vue index f80d866..d115524 100644 --- a/src/pages/integrated/duty/index.vue +++ b/src/pages/integrated/duty/index.vue @@ -9,7 +9,7 @@