From a140dbc846b5ccd3a0351356a623184e25702b17 Mon Sep 17 00:00:00 2001 From: flower-string <2178503051@qq.com> Date: Sun, 9 Mar 2025 16:07:01 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20=E4=BA=BA=E4=BA=8B=E6=B5=81?= =?UTF-8?q?=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/.env.development | 1 - ruoyi-ui/src/api/oa/hr.js | 33 +++ ruoyi-ui/src/api/oa/offboarding.js | 2 +- .../FileList/index.vue} | 16 +- ruoyi-ui/src/views/oa/offboarding/add.vue | 253 ++++++++++-------- ruoyi-ui/src/views/oa/peoples/apply/index.vue | 128 +++++++++ .../src/views/oa/peoples/document/index.vue | 4 +- .../oa/peoples/status/ProbationManage.vue | 83 ++++-- .../src/views/oa/peoples/status/index.vue | 12 +- .../src/views/system/user/profile/index.vue | 63 ++++- 10 files changed, 435 insertions(+), 160 deletions(-) create mode 100644 ruoyi-ui/src/api/oa/hr.js rename ruoyi-ui/src/{views/oa/peoples/document/FileList.vue => components/FileList/index.vue} (91%) create mode 100644 ruoyi-ui/src/views/oa/peoples/apply/index.vue diff --git a/ruoyi-ui/.env.development b/ruoyi-ui/.env.development index 990dfd2..20b1ce2 100644 --- a/ruoyi-ui/.env.development +++ b/ruoyi-ui/.env.development @@ -14,7 +14,6 @@ VUE_APP_CONTEXT_PATH = '/' # 监控地址 VUE_APP_MONITRO_ADMIN = 'http://localhost:9090/admin/login' - # websocket服务地址 VUE_APP_SOCKET_SERVER = 'ws://localhost:8080/websocket/' diff --git a/ruoyi-ui/src/api/oa/hr.js b/ruoyi-ui/src/api/oa/hr.js new file mode 100644 index 0000000..fcd3bd8 --- /dev/null +++ b/ruoyi-ui/src/api/oa/hr.js @@ -0,0 +1,33 @@ +import request from '@/utils/request' + +/** + * 获取试用及转正页面信息 + */ +export function getProbationList(params) { + return request({ + url: '/system/onboarding/list', + method: 'get', + params + }) +} + +/** + * 更新试用转正信息 + */ +export function submitProbation(data) { + return request({ + url: '/system/onboarding', + method: 'put', + data + }) +} + +/** + * 查询当前用户详细信息 + */ +export function getUserInfo(userId) { + return request({ + url: `/system/onboarding/${userId}`, + method: 'get' + }) +} \ No newline at end of file diff --git a/ruoyi-ui/src/api/oa/offboarding.js b/ruoyi-ui/src/api/oa/offboarding.js index 51f918a..4718d85 100644 --- a/ruoyi-ui/src/api/oa/offboarding.js +++ b/ruoyi-ui/src/api/oa/offboarding.js @@ -10,7 +10,7 @@ export function listOffboarding(query) { } // 查询离职管理详细 -export function getOffboarding(offboardingId) { +export function getOnboarding(offboardingId) { return request({ url: '/system/offboarding/' + offboardingId, method: 'get' diff --git a/ruoyi-ui/src/views/oa/peoples/document/FileList.vue b/ruoyi-ui/src/components/FileList/index.vue similarity index 91% rename from ruoyi-ui/src/views/oa/peoples/document/FileList.vue rename to ruoyi-ui/src/components/FileList/index.vue index 70c4b78..fcb75fd 100644 --- a/ruoyi-ui/src/views/oa/peoples/document/FileList.vue +++ b/ruoyi-ui/src/components/FileList/index.vue @@ -29,12 +29,12 @@ {{ formatDate(row.uploadTime) }} - + + 预览 下载 - + --> @@ -137,7 +137,7 @@ export default { try { this.loading = true const res = await listDocument(this.userId) - this.fileList = res.data.fileList + this.fileList = res.data.fileList; console.log(this.fileList) const fileTypes = await getFileTypeList(); this.fileTypes = fileTypes.rows; @@ -264,6 +264,14 @@ export default { handleSelectionChange(selection) { this.selectedFiles = selection }, + + handleDownload(row) { + // const a = document.createElement('a') + // a.href = row.fileUrl + // a.download = row.fileName + // a.click() + window.open(row.filePath) + } } } diff --git a/ruoyi-ui/src/views/oa/offboarding/add.vue b/ruoyi-ui/src/views/oa/offboarding/add.vue index b29932f..5de0d6f 100644 --- a/ruoyi-ui/src/views/oa/offboarding/add.vue +++ b/ruoyi-ui/src/views/oa/offboarding/add.vue @@ -1,123 +1,144 @@ - - - - 员工离职申请表 - - - - - 基本信息 - - - 提交 - + + + 员工离职申请表 + + + + 基本信息 + + + 提交 + + - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + 点击选择文件 + 请上传相关文件,支持多个文件 + + + + + + + + + - - - + } + + + \ No newline at end of file diff --git a/ruoyi-ui/src/views/oa/peoples/apply/index.vue b/ruoyi-ui/src/views/oa/peoples/apply/index.vue new file mode 100644 index 0000000..8197a08 --- /dev/null +++ b/ruoyi-ui/src/views/oa/peoples/apply/index.vue @@ -0,0 +1,128 @@ + + + + + 转正申请 + {{ statusText }} + + + + + + 选择文件 + 支持PDF/DOC格式,大小不超过50MB + + + + + 提交申请 + + + + + + + + + \ No newline at end of file diff --git a/ruoyi-ui/src/views/oa/peoples/document/index.vue b/ruoyi-ui/src/views/oa/peoples/document/index.vue index 90b2fab..9ed0822 100644 --- a/ruoyi-ui/src/views/oa/peoples/document/index.vue +++ b/ruoyi-ui/src/views/oa/peoples/document/index.vue @@ -74,7 +74,7 @@ size="800px" direction="rtl" append-to-body> - @@ -87,7 +87,7 @@