From ce7eedfd372e66163de67675c8f3e38e0dd2ebaa Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Wed, 17 Dec 2025 16:10:59 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=90=E6=A3=80=E7=AB=99=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E6=A8=A1=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/businessType.js | 44 +++++ src/api/basicManage/inspectionStation.js | 37 ++++ src/api/basicManage/personCategory.js | 44 +++++ src/api/basicManage/personNature.js | 44 +++++ src/api/basicManage/planCategory.js | 44 +++++ src/api/basicManage/planProfessional.js | 44 +++++ src/api/basicManage/position.js | 44 +++++ src/api/basicManage/projectDept.js | 44 +++++ src/api/basicManage/workloadCategory.js | 44 +++++ src/assets/styles/index.scss | 183 ++++++++++-------- src/components/ComDataTable/index.vue | 6 +- src/components/ComDialog/index.vue | 154 +++++++++++++++ src/components/ComTable/index.vue | 14 +- .../basicManage/inspectionStation/config.js | 13 +- .../basicManage/inspectionStation/index.vue | 149 +++++++++++++- 15 files changed, 813 insertions(+), 95 deletions(-) create mode 100644 src/api/basicManage/businessType.js create mode 100644 src/api/basicManage/inspectionStation.js create mode 100644 src/api/basicManage/personCategory.js create mode 100644 src/api/basicManage/personNature.js create mode 100644 src/api/basicManage/planCategory.js create mode 100644 src/api/basicManage/planProfessional.js create mode 100644 src/api/basicManage/position.js create mode 100644 src/api/basicManage/projectDept.js create mode 100644 src/api/basicManage/workloadCategory.js create mode 100644 src/components/ComDialog/index.vue diff --git a/src/api/basicManage/businessType.js b/src/api/basicManage/businessType.js new file mode 100644 index 0000000..2c77b95 --- /dev/null +++ b/src/api/basicManage/businessType.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 业务类型管理 - 查询列表 +export function listBusinessTypeAPI(query) { + return request({ + url: '/basic/businessType/list', + method: 'get', + params: query, + }) +} + +// 业务类型管理 - 查询详情 +export function getBusinessTypeAPI(id) { + return request({ + url: `/basic/businessType/${id}`, + method: 'get', + }) +} + +// 业务类型管理 - 新增 +export function addBusinessTypeAPI(data) { + return request({ + url: '/basic/businessType', + method: 'post', + data, + }) +} + +// 业务类型管理 - 修改 +export function updateBusinessTypeAPI(data) { + return request({ + url: '/basic/businessType', + method: 'put', + data, + }) +} + +// 业务类型管理 - 删除 +export function delBusinessTypeAPI(id) { + return request({ + url: `/basic/businessType/${id}`, + method: 'delete', + }) +} diff --git a/src/api/basicManage/inspectionStation.js b/src/api/basicManage/inspectionStation.js new file mode 100644 index 0000000..24edff9 --- /dev/null +++ b/src/api/basicManage/inspectionStation.js @@ -0,0 +1,37 @@ +import request from '@/utils/request' + +// 运检站管理 - 查询列表 +export function listInspectionStationAPI(query) { + return request({ + url: '/inspectionStation/getInspectionStationList', + method: 'GET', + params: query, + }) +} + +// 运检站管理 - 新增 +export function addInspectionStationAPI(data) { + return request({ + url: '/inspectionStation/addInspectionStation', + method: 'POST', + data, + }) +} + +// 运检站管理 - 修改 +export function updateInspectionStationAPI(data) { + return request({ + url: '/inspectionStation/updateInspectionStation', + method: 'POST', + data, + }) +} + +// 运检站管理 - 删除 +export function delInspectionStationAPI(data) { + return request({ + url: `/inspectionStation/delInspectionStation`, + method: 'POST', + data, + }) +} diff --git a/src/api/basicManage/personCategory.js b/src/api/basicManage/personCategory.js new file mode 100644 index 0000000..5ee205a --- /dev/null +++ b/src/api/basicManage/personCategory.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 人员分类管理 - 查询列表 +export function listPersonCategoryAPI(query) { + return request({ + url: '/basic/personCategory/list', + method: 'get', + params: query, + }) +} + +// 人员分类管理 - 查询详情 +export function getPersonCategoryAPI(id) { + return request({ + url: `/basic/personCategory/${id}`, + method: 'get', + }) +} + +// 人员分类管理 - 新增 +export function addPersonCategoryAPI(data) { + return request({ + url: '/basic/personCategory', + method: 'post', + data, + }) +} + +// 人员分类管理 - 修改 +export function updatePersonCategoryAPI(data) { + return request({ + url: '/basic/personCategory', + method: 'put', + data, + }) +} + +// 人员分类管理 - 删除 +export function delPersonCategoryAPI(id) { + return request({ + url: `/basic/personCategory/${id}`, + method: 'delete', + }) +} diff --git a/src/api/basicManage/personNature.js b/src/api/basicManage/personNature.js new file mode 100644 index 0000000..d4b5c89 --- /dev/null +++ b/src/api/basicManage/personNature.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 人员性质管理 - 查询列表 +export function listPersonNatureAPI(query) { + return request({ + url: '/basic/personNature/list', + method: 'get', + params: query, + }) +} + +// 人员性质管理 - 查询详情 +export function getPersonNatureAPI(id) { + return request({ + url: `/basic/personNature/${id}`, + method: 'get', + }) +} + +// 人员性质管理 - 新增 +export function addPersonNatureAPI(data) { + return request({ + url: '/basic/personNature', + method: 'post', + data, + }) +} + +// 人员性质管理 - 修改 +export function updatePersonNatureAPI(data) { + return request({ + url: '/basic/personNature', + method: 'put', + data, + }) +} + +// 人员性质管理 - 删除 +export function delPersonNatureAPI(id) { + return request({ + url: `/basic/personNature/${id}`, + method: 'delete', + }) +} diff --git a/src/api/basicManage/planCategory.js b/src/api/basicManage/planCategory.js new file mode 100644 index 0000000..520d64e --- /dev/null +++ b/src/api/basicManage/planCategory.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 计划类别管理 - 查询列表 +export function listPlanCategoryAPI(query) { + return request({ + url: '/basic/planCategory/list', + method: 'get', + params: query, + }) +} + +// 计划类别管理 - 查询详情 +export function getPlanCategoryAPI(id) { + return request({ + url: `/basic/planCategory/${id}`, + method: 'get', + }) +} + +// 计划类别管理 - 新增 +export function addPlanCategoryAPI(data) { + return request({ + url: '/basic/planCategory', + method: 'post', + data, + }) +} + +// 计划类别管理 - 修改 +export function updatePlanCategoryAPI(data) { + return request({ + url: '/basic/planCategory', + method: 'put', + data, + }) +} + +// 计划类别管理 - 删除 +export function delPlanCategoryAPI(id) { + return request({ + url: `/basic/planCategory/${id}`, + method: 'delete', + }) +} diff --git a/src/api/basicManage/planProfessional.js b/src/api/basicManage/planProfessional.js new file mode 100644 index 0000000..4d1c3f8 --- /dev/null +++ b/src/api/basicManage/planProfessional.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 计划专业管理 - 查询列表 +export function listPlanProfessionalAPI(query) { + return request({ + url: '/basic/planProfessional/list', + method: 'get', + params: query, + }) +} + +// 计划专业管理 - 查询详情 +export function getPlanProfessionalAPI(id) { + return request({ + url: `/basic/planProfessional/${id}`, + method: 'get', + }) +} + +// 计划专业管理 - 新增 +export function addPlanProfessionalAPI(data) { + return request({ + url: '/basic/planProfessional', + method: 'post', + data, + }) +} + +// 计划专业管理 - 修改 +export function updatePlanProfessionalAPI(data) { + return request({ + url: '/basic/planProfessional', + method: 'put', + data, + }) +} + +// 计划专业管理 - 删除 +export function delPlanProfessionalAPI(id) { + return request({ + url: `/basic/planProfessional/${id}`, + method: 'delete', + }) +} diff --git a/src/api/basicManage/position.js b/src/api/basicManage/position.js new file mode 100644 index 0000000..f5dbe5f --- /dev/null +++ b/src/api/basicManage/position.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 岗位管理 - 查询列表 +export function listPositionAPI(query) { + return request({ + url: '/basic/position/list', + method: 'get', + params: query, + }) +} + +// 岗位管理 - 查询详情 +export function getPositionAPI(id) { + return request({ + url: `/basic/position/${id}`, + method: 'get', + }) +} + +// 岗位管理 - 新增 +export function addPositionAPI(data) { + return request({ + url: '/basic/position', + method: 'post', + data, + }) +} + +// 岗位管理 - 修改 +export function updatePositionAPI(data) { + return request({ + url: '/basic/position', + method: 'put', + data, + }) +} + +// 岗位管理 - 删除 +export function delPositionAPI(id) { + return request({ + url: `/basic/position/${id}`, + method: 'delete', + }) +} diff --git a/src/api/basicManage/projectDept.js b/src/api/basicManage/projectDept.js new file mode 100644 index 0000000..7c7513e --- /dev/null +++ b/src/api/basicManage/projectDept.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 项目部管理 - 查询列表 +export function listProjectDeptAPI(query) { + return request({ + url: '/basic/projectDept/list', + method: 'get', + params: query, + }) +} + +// 项目部管理 - 查询详情 +export function getProjectDeptAPI(id) { + return request({ + url: `/basic/projectDept/${id}`, + method: 'get', + }) +} + +// 项目部管理 - 新增 +export function addProjectDeptAPI(data) { + return request({ + url: '/basic/projectDept', + method: 'post', + data, + }) +} + +// 项目部管理 - 修改 +export function updateProjectDeptAPI(data) { + return request({ + url: '/basic/projectDept', + method: 'put', + data, + }) +} + +// 项目部管理 - 删除 +export function delProjectDeptAPI(id) { + return request({ + url: `/basic/projectDept/${id}`, + method: 'delete', + }) +} diff --git a/src/api/basicManage/workloadCategory.js b/src/api/basicManage/workloadCategory.js new file mode 100644 index 0000000..fb0de72 --- /dev/null +++ b/src/api/basicManage/workloadCategory.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 工作量类别管理 - 查询列表 +export function listWorkloadCategoryAPI(query) { + return request({ + url: '/basic/workloadCategory/list', + method: 'get', + params: query, + }) +} + +// 工作量类别管理 - 查询详情 +export function getWorkloadCategoryAPI(id) { + return request({ + url: `/basic/workloadCategory/${id}`, + method: 'get', + }) +} + +// 工作量类别管理 - 新增 +export function addWorkloadCategoryAPI(data) { + return request({ + url: '/basic/workloadCategory', + method: 'post', + data, + }) +} + +// 工作量类别管理 - 修改 +export function updateWorkloadCategoryAPI(data) { + return request({ + url: '/basic/workloadCategory', + method: 'put', + data, + }) +} + +// 工作量类别管理 - 删除 +export function delWorkloadCategoryAPI(id) { + return request({ + url: `/basic/workloadCategory/${id}`, + method: 'delete', + }) +} diff --git a/src/assets/styles/index.scss b/src/assets/styles/index.scss index 314a9ca..d76c0e6 100644 --- a/src/assets/styles/index.scss +++ b/src/assets/styles/index.scss @@ -6,175 +6,190 @@ @use './ruoyi.scss'; body { - height: 100%; - margin: 0; - -moz-osx-font-smoothing: grayscale; - -webkit-font-smoothing: antialiased; - text-rendering: optimizeLegibility; - font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif; + height: 100%; + margin: 0; + -moz-osx-font-smoothing: grayscale; + -webkit-font-smoothing: antialiased; + text-rendering: optimizeLegibility; + font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, + sans-serif; } label { - font-weight: 700; + font-weight: 700; } html { - height: 100%; - box-sizing: border-box; + height: 100%; + box-sizing: border-box; } #app { - height: 100%; + height: 100%; } *, *:before, *:after { - box-sizing: inherit; + box-sizing: inherit; } .no-padding { - padding: 0px !important; + padding: 0px !important; } .padding-content { - padding: 4px 0; + padding: 4px 0; } a:focus, a:active { - outline: none; + outline: none; } a, a:focus, a:hover { - cursor: pointer; - color: inherit; - text-decoration: none; + cursor: pointer; + color: inherit; + text-decoration: none; } div:focus { - outline: none; + outline: none; } .fr { - float: right; + float: right; } .fl { - float: left; + float: left; } .pr-5 { - padding-right: 5px; + padding-right: 5px; } .pl-5 { - padding-left: 5px; + padding-left: 5px; } .block { - display: block; + display: block; } .pointer { - cursor: pointer; + cursor: pointer; } .inlineBlock { - display: block; + display: block; } .clearfix { - &:after { - visibility: hidden; - display: block; - font-size: 0; - content: " "; - clear: both; - height: 0; - } + &:after { + visibility: hidden; + display: block; + font-size: 0; + content: ' '; + clear: both; + height: 0; + } } aside { - background: #eef1f6; - padding: 8px 24px; - margin-bottom: 20px; - border-radius: 2px; - display: block; - line-height: 32px; - font-size: 16px; - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; - color: #2c3e50; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; + background: #eef1f6; + padding: 8px 24px; + margin-bottom: 20px; + border-radius: 2px; + display: block; + line-height: 32px; + font-size: 16px; + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, + 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; + color: #2c3e50; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; - a { - color: #337ab7; - cursor: pointer; + a { + color: #337ab7; + cursor: pointer; - &:hover { - color: rgb(32, 160, 255); + &:hover { + color: rgb(32, 160, 255); + } } - } } //main-container全局样式 .app-container { - padding: 20px; + padding: 20px; } .components-container { - margin: 30px 50px; - position: relative; + margin: 30px 50px; + position: relative; } .text-center { - text-align: center + text-align: center; } .sub-navbar { - height: 50px; - line-height: 50px; - position: relative; - width: 100%; - text-align: right; - padding-right: 20px; - transition: 600ms ease position; - background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%); + height: 50px; + line-height: 50px; + position: relative; + width: 100%; + text-align: right; + padding-right: 20px; + transition: 600ms ease position; + background: linear-gradient( + 90deg, + rgba(32, 182, 249, 1) 0%, + rgba(32, 182, 249, 1) 0%, + rgba(33, 120, 241, 1) 100%, + rgba(33, 120, 241, 1) 100% + ); - .subtitle { - font-size: 20px; - color: #fff; - } + .subtitle { + font-size: 20px; + color: #fff; + } - &.draft { - background: #d0d0d0; - } + &.draft { + background: #d0d0d0; + } - &.deleted { - background: #d0d0d0; - } + &.deleted { + background: #d0d0d0; + } } .link-type, .link-type:focus { - color: #1677ff; - cursor: pointer; - transition: color 0.3s ease; + color: #1677ff; + cursor: pointer; + transition: color 0.3s ease; - &:hover { - color: #4096ff; - } + &:hover { + color: #4096ff; + } } .filter-container { - padding-bottom: 10px; + padding-bottom: 10px; - .filter-item { - display: inline-block; - vertical-align: middle; - margin-bottom: 10px; - } + .filter-item { + display: inline-block; + vertical-align: middle; + margin-bottom: 10px; + } +} + +.common-btn-row { + padding-top: 10px; + display: flex; + justify-content: flex-end; + border-top: 1px solid #f0f0f0; } diff --git a/src/components/ComDataTable/index.vue b/src/components/ComDataTable/index.vue index 90180b9..c9c75c2 100644 --- a/src/components/ComDataTable/index.vue +++ b/src/components/ComDataTable/index.vue @@ -137,7 +137,7 @@ v-bind="$attrs" > - +