From 49edf73cc469b6947817e0518263bbbf270d82a3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=A5=B6=E7=A7=8B=E9=9C=96?= <3435598628@qq.com>
Date: Sun, 1 Dec 2024 23:08:29 +0800
Subject: [PATCH] D
---
api/system/departments.js | 44 +++++
views/system/departments/index.vue | 255 +++++++++++++++++++++++++++++
2 files changed, 299 insertions(+)
create mode 100644 api/system/departments.js
create mode 100644 views/system/departments/index.vue
diff --git a/api/system/departments.js b/api/system/departments.js
new file mode 100644
index 0000000..1974ced
--- /dev/null
+++ b/api/system/departments.js
@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询部门列表
+export function listDepartments(query) {
+ return request({
+ url: '/system/departments/list',
+ method: 'get',
+ params: query
+ })
+}
+
+// 查询部门详细
+export function getDepartments(id) {
+ return request({
+ url: '/system/departments/' + id,
+ method: 'get'
+ })
+}
+
+// 新增部门
+export function addDepartments(data) {
+ return request({
+ url: '/system/departments',
+ method: 'post',
+ data: data
+ })
+}
+
+// 修改部门
+export function updateDepartments(data) {
+ return request({
+ url: '/system/departments',
+ method: 'put',
+ data: data
+ })
+}
+
+// 删除部门
+export function delDepartments(id) {
+ return request({
+ url: '/system/departments/' + id,
+ method: 'delete'
+ })
+}
diff --git a/views/system/departments/index.vue b/views/system/departments/index.vue
new file mode 100644
index 0000000..f9c9fd6
--- /dev/null
+++ b/views/system/departments/index.vue
@@ -0,0 +1,255 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+ 新增
+
+
+ 修改
+
+
+ 删除
+
+
+ 导出
+
+
+
+
+
+
+
+
+
+
+
+
+ 修改
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+