From d8cccea4c5f3a47d059f2d0aaba8eb5d54ae521b Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Tue, 27 Jan 2026 11:30:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E7=BB=84=E7=AE=A1=E7=90=86=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E8=B0=83=E8=AF=95=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/basicManage/groupManage.js | 38 ++ src/api/personManage/person.js | 8 + src/assets/styles/index.scss | 2 +- .../groupManage/addAndEditForm.vue | 502 ++++++++++++++++++ src/views/basicManage/groupManage/config.js | 45 ++ src/views/basicManage/groupManage/index.vue | 177 ++++++ .../personManage/addAndEditForm.vue | 71 ++- src/views/basicManage/personManage/config.js | 67 ++- src/views/basicManage/personManage/index.vue | 87 +-- 9 files changed, 848 insertions(+), 149 deletions(-) create mode 100644 src/api/basicManage/groupManage.js create mode 100644 src/views/basicManage/groupManage/addAndEditForm.vue create mode 100644 src/views/basicManage/groupManage/config.js diff --git a/src/api/basicManage/groupManage.js b/src/api/basicManage/groupManage.js new file mode 100644 index 0000000..fc3e480 --- /dev/null +++ b/src/api/basicManage/groupManage.js @@ -0,0 +1,38 @@ +import request from '@/utils/request' + +// 分组管理 - 查询列表 +export function listGroupAPI(query) { + return request({ + url: '/group/getGroupList', + method: 'GET', + params: query, + }) +} + +// 分组管理 - 新增 +export function addGroupAPI(data) { + return request({ + url: '/group/addGroup', + method: 'POST', + data, + }) +} + +// 分组管理 - 修改 +export function updateGroupAPI(data) { + return request({ + url: '/group/updateGroup', + method: 'POST', + data, + }) +} + +// 分组管理 - 删除 +export function delGroupAPI(data) { + return request({ + url: '/group/delGroup', + method: 'POST', + data, + }) +} + diff --git a/src/api/personManage/person.js b/src/api/personManage/person.js index eff0aab..6d11cff 100644 --- a/src/api/personManage/person.js +++ b/src/api/personManage/person.js @@ -35,3 +35,11 @@ export function delPersonAPI(data) { data, }) } + +// 获取人员全量 +export function getAllPersonAPI() { + return request({ + url: '/worker/getWorkerSelect', + method: 'GET', + }) +} diff --git a/src/assets/styles/index.scss b/src/assets/styles/index.scss index bbc8e32..040d553 100644 --- a/src/assets/styles/index.scss +++ b/src/assets/styles/index.scss @@ -196,7 +196,7 @@ aside { .fixed-bottom { position: fixed; - bottom: 15px; + bottom: 10px; right: 15px; width: 100%; background-color: #fff; diff --git a/src/views/basicManage/groupManage/addAndEditForm.vue b/src/views/basicManage/groupManage/addAndEditForm.vue new file mode 100644 index 0000000..04dc5ce --- /dev/null +++ b/src/views/basicManage/groupManage/addAndEditForm.vue @@ -0,0 +1,502 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ row.sex == 1 ? '男' : '女' }} + + + + + + + + + + + 已选人员 + + 清空 + + + + + {{ member.workerName }} + + + + + + 暂无已选人员 + + + + + + + + + + + + + + + + diff --git a/src/views/basicManage/groupManage/config.js b/src/views/basicManage/groupManage/config.js new file mode 100644 index 0000000..a19dafd --- /dev/null +++ b/src/views/basicManage/groupManage/config.js @@ -0,0 +1,45 @@ +import { reactive } from 'vue' + +// 搜索表单配置 +export const buildFormColumns = () => [ + { + type: 'input', + prop: 'groupName', + placeholder: '请输入分组名称', + }, +] + +// 表格列配置 +export const tableColumns = [ + { + prop: 'groupName', + label: '分组名称', + }, + { + prop: 'personCount', + label: '人员数量', + formatter: (row) => { + return row.workerList?.length || 0 + }, + }, + { + prop: 'remark', + label: '备注', + }, +] + +// 弹窗配置 +export const dialogConfig = reactive({ + outerVisible: false, + outerTitle: '新增分组', + outerWidth: '70%', + minHeight: '80vh', + maxHeight: '95vh', +}) + +export default { + tableColumns, + dialogConfig, + buildFormColumns, +} + diff --git a/src/views/basicManage/groupManage/index.vue b/src/views/basicManage/groupManage/index.vue index e69de29..90a005c 100644 --- a/src/views/basicManage/groupManage/index.vue +++ b/src/views/basicManage/groupManage/index.vue @@ -0,0 +1,177 @@ + + + + + + + 新建分组 + + + + + + + + + + + 取消 + 保存 + + + + + + + + + + diff --git a/src/views/basicManage/personManage/addAndEditForm.vue b/src/views/basicManage/personManage/addAndEditForm.vue index 2adf6cf..8b5d4e5 100644 --- a/src/views/basicManage/personManage/addAndEditForm.vue +++ b/src/views/basicManage/personManage/addAndEditForm.vue @@ -7,40 +7,26 @@ :rules="rules" class="add-and-edit-form" > - - - + - + @@ -66,35 +52,21 @@