From 34d4a9ed06d445d12ee423fe999c22868ef164d7 Mon Sep 17 00:00:00 2001 From: wangyilin <1454641981@qq.com> Date: Fri, 8 Nov 2024 16:24:25 +0800 Subject: [PATCH 1/4] =?UTF-8?q?police=20=E6=B7=BB=E5=8A=A0=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E7=BB=9F=E8=AE=A1=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/pages/police/index/index.scss | 2 +- .../src/pages/projectManager/index/index.scss | 5 ++++- .../police/myEnterprisesUnit/myEnterprisesUnit.scss | 13 +++++-------- .../police/myEnterprisesUnit/myEnterprisesUnit.vue | 13 +++++++++++-- .../projectDetails/projectDetails.vue | 2 +- .../subPages/projectManager/myProject/index.ts | 10 ++++++---- 6 files changed, 28 insertions(+), 17 deletions(-) diff --git a/collect_information/src/pages/police/index/index.scss b/collect_information/src/pages/police/index/index.scss index dac1e0d..6ff67f6 100644 --- a/collect_information/src/pages/police/index/index.scss +++ b/collect_information/src/pages/police/index/index.scss @@ -1,6 +1,6 @@ .nameTitle { position: absolute; - top: 277rpx; + top: 19%; left: 55px; height: 125rpx; background-color: #fff; diff --git a/collect_information/src/pages/projectManager/index/index.scss b/collect_information/src/pages/projectManager/index/index.scss index 5308805..6ff67f6 100644 --- a/collect_information/src/pages/projectManager/index/index.scss +++ b/collect_information/src/pages/projectManager/index/index.scss @@ -1,6 +1,6 @@ .nameTitle { position: absolute; - top: 277rpx; + top: 19%; left: 55px; height: 125rpx; background-color: #fff; @@ -26,6 +26,9 @@ margin-left: -8px; } } +.nameTitle .itemSchool:nth-child(4) { + border-right: none; +} .swiperDemoItem { color: #3886d0; display: flex; diff --git a/collect_information/src/subPages/police/myEnterprisesUnit/myEnterprisesUnit.scss b/collect_information/src/subPages/police/myEnterprisesUnit/myEnterprisesUnit.scss index 1cab77b..94a2385 100644 --- a/collect_information/src/subPages/police/myEnterprisesUnit/myEnterprisesUnit.scss +++ b/collect_information/src/subPages/police/myEnterprisesUnit/myEnterprisesUnit.scss @@ -17,16 +17,13 @@ page { } .project { - display: flex; - justify-content: space-between; - flex-flow: wrap; - text-align: center; + //display: flex; + //justify-content: space-between; + //flex-flow: wrap; + //text-align: center; view { - width: 45%; - height: 100rpx; - border: 1px solid #cccccc; - line-height: 100rpx; + width: 100%; margin: 8px 0 8px 0; } } diff --git a/collect_information/src/subPages/police/myEnterprisesUnit/myEnterprisesUnit.vue b/collect_information/src/subPages/police/myEnterprisesUnit/myEnterprisesUnit.vue index dbbdc4e..4ed49dc 100644 --- a/collect_information/src/subPages/police/myEnterprisesUnit/myEnterprisesUnit.vue +++ b/collect_information/src/subPages/police/myEnterprisesUnit/myEnterprisesUnit.vue @@ -3,7 +3,7 @@ {{ item?.name }} - + 单位类型:{{ item?.type.label }} 地址: @@ -15,7 +15,16 @@ - {{ serviceProject.name }} + + + 项目名称:{{serviceProject.name}} + 项目类型:{{serviceProject.type.label}} + + + 项目负责人:{{serviceProject.projectManagerMiniProgramUserInfo?.name?serviceProject.projectManagerMiniProgramUserInfo?.name:'无分配项目经理'}} + + 责任单位:{{serviceProject.securityUnitName}} + diff --git a/collect_information/src/subPages/police/myEnterprisesUnit/projectDetails/projectDetails.vue b/collect_information/src/subPages/police/myEnterprisesUnit/projectDetails/projectDetails.vue index 4c2c92e..306fcdd 100644 --- a/collect_information/src/subPages/police/myEnterprisesUnit/projectDetails/projectDetails.vue +++ b/collect_information/src/subPages/police/myEnterprisesUnit/projectDetails/projectDetails.vue @@ -61,7 +61,7 @@ 职位:{{ item.workPost ? item.workPost : '创建者' }} - 保安证件:{{ item.securityNumber ? item.securityNumber : '125241256451' }} + 保安证件:{{ item.securityNumber ? item.securityNumber : '无' }} 出生年月:{{ dayjs(item.dateOfBirth).format('YYYY-MM-DD') }} diff --git a/collect_information/types/subPages/projectManager/myProject/index.ts b/collect_information/types/subPages/projectManager/myProject/index.ts index bfeba41..4bbe728 100644 --- a/collect_information/types/subPages/projectManager/myProject/index.ts +++ b/collect_information/types/subPages/projectManager/myProject/index.ts @@ -15,6 +15,7 @@ export interface MyProjectList { securityUnitId: string; street?: string; streetName?: string; + type?:any } export interface ContactPersonInfo { @@ -30,17 +31,18 @@ export interface ServiceProjectList { name?: string; remark?: string; securityUserTotal?: number; + securityUnitName?:string; serviceArea?: number; snowFlakeId?: string; staffTotal?: number; - type?: string; + type?: any; projectManagerMiniProgramUserInfo?: ProgramUserInfo } export interface ProgramUserInfo { - idCard: null - name: string - telephone: string + idCard?: null + name?: string + telephone?: string } export interface ServiceProjectSecurityUserPagerVo { From a60f4cf7167b9ec48d84f66a5e6d4e7b7344c90f Mon Sep 17 00:00:00 2001 From: luozhun <2025254074@qq.com> Date: Tue, 12 Nov 2024 09:49:26 +0800 Subject: [PATCH 2/4] =?UTF-8?q?feat(superManagement):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E4=BC=81=E4=BA=8B=E4=B8=9A=E5=8D=95=E4=BD=8D=E5=9C=B0=E5=9B=BE?= =?UTF-8?q?=E7=82=B9=E4=BD=8D=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 EnterprisesUnitController 中添加 mapPoint 接口,返回所有企事业单位信息 - 新增 dataOverview.vue 组件,实现地图展示功能 - 优化 unitManage 组件,增加对地图组件初始化状态的检查 --- .../controller/EnterprisesUnitController.java | 7 ++ .../src/views/data/dataOverview.vue | 80 ++++++++++++++++++- .../unitManage/police/unitManage/index.tsx | 2 +- 3 files changed, 86 insertions(+), 3 deletions(-) diff --git a/policeSecurityServer/src/main/java/com/changhu/module/management/controller/EnterprisesUnitController.java b/policeSecurityServer/src/main/java/com/changhu/module/management/controller/EnterprisesUnitController.java index e2ac2a1..5bdf01e 100644 --- a/policeSecurityServer/src/main/java/com/changhu/module/management/controller/EnterprisesUnitController.java +++ b/policeSecurityServer/src/main/java/com/changhu/module/management/controller/EnterprisesUnitController.java @@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.changhu.common.annotation.JsonBody; import com.changhu.common.exception.MessageException; import com.changhu.common.pojo.vo.SelectNodeVo; +import com.changhu.module.management.pojo.entity.EnterprisesUnit; import com.changhu.module.management.pojo.params.EnterprisesUnitSaveOrUpdateParams; import com.changhu.module.management.pojo.queryParams.EnterprisesUnitPagerQueryParams; import com.changhu.module.management.pojo.vo.EnterprisesUnitPagerVo; @@ -58,4 +59,10 @@ public class EnterprisesUnitController { return enterprisesUnitService.queryListByAdministrativeDivisionCodes(administrativeDivisionCodes); } + @Operation(summary = "企事业单位地图点位") + @GetMapping("/mapPoint") + public List mapPoint() { + return enterprisesUnitService.list(); + } + } diff --git a/superManagement/src/views/data/dataOverview.vue b/superManagement/src/views/data/dataOverview.vue index 2383d4d..155c6a1 100644 --- a/superManagement/src/views/data/dataOverview.vue +++ b/superManagement/src/views/data/dataOverview.vue @@ -1,13 +1,89 @@ diff --git a/superManagement/src/views/unitManage/police/unitManage/index.tsx b/superManagement/src/views/unitManage/police/unitManage/index.tsx index 5b2ed13..0ac9090 100644 --- a/superManagement/src/views/unitManage/police/unitManage/index.tsx +++ b/superManagement/src/views/unitManage/police/unitManage/index.tsx @@ -87,7 +87,7 @@ const saveOrUpdateEnterprisesUnit = (params: _FormType, callback: Function) => { placeholder={'请输入详细地址'} autocomplete="off" onFocus={() => { - if (!_mapRef.value.mapInstance) { + if (!_mapRef.value?.mapInstance) { message.error('地图组件尚未初始化成功 请重新打开页面') return } From a2385c5632966d9632f17b26eb506913608cdeda Mon Sep 17 00:00:00 2001 From: wangyilin <1454641981@qq.com> Date: Tue, 12 Nov 2024 10:24:08 +0800 Subject: [PATCH 3/4] police --- .../src/subPages/police/dailyInspection/dailyInspection.vue | 4 ++-- .../src/subPages/select/dailyLife/dailyLife.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/collect_information/src/subPages/police/dailyInspection/dailyInspection.vue b/collect_information/src/subPages/police/dailyInspection/dailyInspection.vue index 23eccdf..228d511 100644 --- a/collect_information/src/subPages/police/dailyInspection/dailyInspection.vue +++ b/collect_information/src/subPages/police/dailyInspection/dailyInspection.vue @@ -25,11 +25,11 @@ - {{ item.name }}({{ item.totalScore }}分) + {{ item.name }}({{ item?.totalScore }}分) - -{{ item.currentScore }} + -{{ item?.currentScore }} diff --git a/collect_information/src/subPages/select/dailyLife/dailyLife.vue b/collect_information/src/subPages/select/dailyLife/dailyLife.vue index 8724b8d..487a13f 100644 --- a/collect_information/src/subPages/select/dailyLife/dailyLife.vue +++ b/collect_information/src/subPages/select/dailyLife/dailyLife.vue @@ -19,7 +19,7 @@ :key="i" style="margin-bottom: 20rpx" shape="button" - >{{ items.name }}{{ items.name}} From 57bf50266414434a8f80add207c5820ef2949e8d Mon Sep 17 00:00:00 2001 From: wangyilin <1454641981@qq.com> Date: Tue, 12 Nov 2024 17:12:07 +0800 Subject: [PATCH 4/4] =?UTF-8?q?=E9=80=80=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/pages/police/index/index.vue.bak | 121 ++++++++++++------ .../src/pages/police/mine/index.vue | 30 ++++- .../src/pages/projectManager/mine/index.vue | 32 ++++- 3 files changed, 135 insertions(+), 48 deletions(-) diff --git a/collect_information/src/pages/police/index/index.vue.bak b/collect_information/src/pages/police/index/index.vue.bak index 9c1ef37..4f1cd4c 100644 --- a/collect_information/src/pages/police/index/index.vue.bak +++ b/collect_information/src/pages/police/index/index.vue.bak @@ -1,57 +1,94 @@ + + + + diff --git a/collect_information/src/pages/police/mine/index.vue b/collect_information/src/pages/police/mine/index.vue index c3cf9de..2f180fa 100644 --- a/collect_information/src/pages/police/mine/index.vue +++ b/collect_information/src/pages/police/mine/index.vue @@ -15,7 +15,7 @@ - + @@ -28,20 +28,30 @@ + diff --git a/collect_information/src/pages/projectManager/mine/index.vue b/collect_information/src/pages/projectManager/mine/index.vue index 8279945..b85b668 100644 --- a/collect_information/src/pages/projectManager/mine/index.vue +++ b/collect_information/src/pages/projectManager/mine/index.vue @@ -14,7 +14,7 @@ - + @@ -27,20 +27,30 @@ +