From 40f5cf2a8c324bf08fd5f0aec2e9da00e5f59f76 Mon Sep 17 00:00:00 2001
From: yubo <autumnal_wind@yeah.net>
Date: 星期六, 11 四月 2026 20:29:40 +0800
Subject: [PATCH] fix(user): 在职员工界面优化
---
src/api/position.js | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 52 insertions(+), 0 deletions(-)
diff --git a/src/api/position.js b/src/api/position.js
new file mode 100644
index 0000000..cadc164
--- /dev/null
+++ b/src/api/position.js
@@ -0,0 +1,52 @@
+import request from './request'
+
+// 获取岗位字典列表(用于下拉选择)
+export function getDicJob() {
+ return request({
+ url: 'system/position/dicJob',
+ method: 'get'
+ })
+}
+
+// 获取岗位列表(完整信息)
+export function getJobList(params) {
+ return request({
+ url: 'system/position/list',
+ method: 'get',
+ params
+ })
+}
+
+// 根据岗位ID获取岗位详情
+export function getJobById(jobId) {
+ return request({
+ url: `system/position/${jobId}`,
+ method: 'get'
+ })
+}
+
+// 新增岗位
+export function addJob(data) {
+ return request({
+ url: 'system/position',
+ method: 'post',
+ data
+ })
+}
+
+// 修改岗位
+export function updateJob(data) {
+ return request({
+ url: 'system/position',
+ method: 'put',
+ data
+ })
+}
+
+// 删除岗位
+export function deleteJob(jobIds) {
+ return request({
+ url: `system/position/${jobIds}`,
+ method: 'delete'
+ })
+}
--
Gitblit v1.8.0