From 2598c15d22ede0690dbeaff42992c099ae3f1d24 Mon Sep 17 00:00:00 2001 From: X_Rian <904416525@qq.com> Date: Tue, 6 Aug 2024 18:26:46 +0800 Subject: [PATCH] =?UTF-8?q?flx=EF=BC=9A=E6=8F=90=E4=BA=A4=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E7=BB=84=E7=AE=A1=E7=90=86=20=E8=A3=85=E7=BD=AE?= =?UTF-8?q?=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/js/api/project.js | 154 +++--- src/router/index.js | 7 + .../constructionManage/deviceManage.vue | 437 ++++++++---------- .../constructionManage/projectTeamManage.vue | 407 ++++++++++++++++ 4 files changed, 703 insertions(+), 302 deletions(-) create mode 100644 src/views/projectFront/constructionManage/projectTeamManage.vue diff --git a/src/assets/js/api/project.js b/src/assets/js/api/project.js index d64ccf75..43c4819a 100644 --- a/src/assets/js/api/project.js +++ b/src/assets/js/api/project.js @@ -1,21 +1,21 @@ /** * api接口统一管理 */ -import {post,get} from '../http' +import { post, get } from '../http' export const addProjectApi = data => post('xmgl/project/add', data); //添加项目信息 export const editProjectApi = data => post('xmgl/project/edit', data); //编辑项目信息 export const deleteProjectApi = data => post('xmgl/project/delete', data); //删除项目信息 -export const getProjectListApi = data => post('xmgl/project/selectCompanyProjectList', data); //项目列表 -export const selectProvincesCityListApi = data => get('xmgl/systemProvinces/selectProvincesCityList', data); //查询省市区 +export const getProjectListApi = data => post('xmgl/project/selectCompanyProjectList', data); //项目列表 +export const selectProvincesCityListApi = data => get('xmgl/systemProvinces/selectProvincesCityList', data); //查询省市区 //项目后台 -export const getLayerCompanyList = data => post('xmgl/company/getLayerCompanyList', data); // 项目后台--项目列表--获取一级二级管理机构列表 -export const selectCompanyProjectPage = data => post('xmgl/project/selectCompanyProjectPage', data); // 项目后台--项目列表--获取数据列表 +export const getLayerCompanyList = data => post('xmgl/company/getLayerCompanyList', data); // 项目后台--项目列表--获取一级二级管理机构列表 +export const selectCompanyProjectPage = data => post('xmgl/project/selectCompanyProjectPage', data); // 项目后台--项目列表--获取数据列表 @@ -25,7 +25,7 @@ export const editProjectConfigListApi = data => post('xmgl/projectConfig/edit', //BIM中心 -export const getBimTokenApi = data => post('forged/getToken', data);//获取bim token +export const getBimTokenApi = data => post('forged/getToken', data); //获取bim token export const projectBimAddApi = data => post('xmgl/projectBim/add', data); export const projectBimDeleteApi = data => post('xmgl/projectBim/delete', data); @@ -45,23 +45,23 @@ export const deleteBimDevPointApi = data => post('xmgl/bimDevPoint/deleteBimDevP export const getVideoItemInfoApi = data => post('xmgl/videoItem/getVideoItemInfo', data); // 金林湾 export const projectJlwBimListApi = data => get('/xmgl/bimface/selectProjectBimfaceList', data); // 配置列表 -export const addJlwConfigApi = data => post('/xmgl/bimface/addBimfaceConfig', data); // 添加配置 -export const addJlwUploadApi = data => post('/xmgl/bimface/uploadFile', data); // 添加新模型 +export const addJlwConfigApi = data => post('/xmgl/bimface/addBimfaceConfig', data); // 添加配置 +export const addJlwUploadApi = data => post('/xmgl/bimface/uploadFile', data); // 添加新模型 export const deleteJlwUploadApi = data => get('/xmgl/bimface/deleteProjectBim', data); // 删除bim export const startJlwApi = data => get('/xmgl/bimface/updateEnabled', data); // 启用所对应的bim export const getJlwConfigApi = data => get('/xmgl/bimface/getConfigStatus', data); // 获取项目中bimface配置信息 export const getJlwTokenApi = data => get('/xmgl/bimface/getViewTokenByFileId', data); // 通过文件标识获取ViewToken export const getJlwDetailsApi = data => get('/xmgl/bimface/getDetailsByFileIdAndProjectSn', data); // 通过文件标识获取详情(包括ViewToken) -export const saveBimfaceConfig = data => post('/xmgl/bimface/edit', data); // 保存BIMFACE相关配置 -export const searchEnableModel = data => get('/xmgl/bimface/getEnableModel', data); // 查询启用的模型和token +export const saveBimfaceConfig = data => post('/xmgl/bimface/edit', data); // 保存BIMFACE相关配置 +export const searchEnableModel = data => get('/xmgl/bimface/getEnableModel', data); // 查询启用的模型和token // bimBase中心 -export const addBimBaseConfigApi = data => post('/xmgl/gouliPkpmConfig/add', data); // 添加配置 +export const addBimBaseConfigApi = data => post('/xmgl/gouliPkpmConfig/add', data); // 添加配置 export const getBimBaseConfigApi = data => get('/xmgl/gouliPkpmConfig/getConfigByProjectSn', data); // 获取项目中bimface配置信息 export const projectBimBaseListApi = data => get('/xmgl/gouliPkpmModel/list', data); // 配置列表 -export const addBimBaseUploadApi = data => post('/xmgl/gouliPkpmModel/add', data); // 添加新模型 -export const updateBimBaseUploadApi = data => post('/xmgl/gouliPkpmModel/edit', data); // 编辑模型 -export const deleteBimBaseUploadApi = data => post('/xmgl/gouliPkpmModel/delete', data); // 删除模型 +export const addBimBaseUploadApi = data => post('/xmgl/gouliPkpmModel/add', data); // 添加新模型 +export const updateBimBaseUploadApi = data => post('/xmgl/gouliPkpmModel/edit', data); // 编辑模型 +export const deleteBimBaseUploadApi = data => post('/xmgl/gouliPkpmModel/delete', data); // 删除模型 export const startBimBaseApi = data => post('/xmgl/gouliPkpmModel/setEnableMainModel', data); // 启用所对应的bim export const getBimBaseDetailsApi = data => get('/xmgl/gouliPkpmModel/getBimTokenByProjectSn', data); // 通过文件标识获取ViewToken export const getBimBaseDetails = data => get('/xmgl/gouliPkpmModel/queryById', data); // 通过文件标识获取详情 @@ -70,65 +70,89 @@ export const getBimBaseDetails = data => get('/xmgl/gouliPkpmModel/queryById', d //楼栋管理 //查询楼栋列表 -export const queryBuildingList = data => post('/xmgl/massReboundBuild/selectBuildInfoList',data) -//查询楼栋名称列表 -export const getBuildName = data => post('/xmgl/massReboundBuild/getBuildFloorList',data) -//根据楼栋查询楼层列表 -export const getFloorList = data => post('/xmgl/massReboundFloor/selectFloorAndRoomList',data) -//通过id查询户型 -export const queryById = data=>post('/xmgl/houseType/queryById',data) -//删除楼栋信息 -export const deleteBuild = data=>post('/xmgl/massReboundBuild/delete',data) -//添加楼栋信息 -export const addBuild = data=>post('/xmgl/massReboundBuild/addBatchBuildFloor',data) -//通过id查询楼栋信息 -export const buildQueryById=data=>post('/xmgl/massReboundFloor/selectFloorAndRoomList',data) -//删除楼层通过id -export const deleteFloor = data=>post('/xmgl/massReboundFloor/delete',data) -//删除房间信息 -export const deleteRoom = data=>post('/xmgl/massReboundRoom/delete',data) -//添加房间信息 -export const addRoomInfo = data=>post('/xmgl/massReboundRoom/add',data) -//楼栋重命名 -export const rewriteBuildName = data=>post('/xmgl/massReboundBuild/editBatchName',data) -//楼层房间重命名 -export const rewriteFloorAndRoom = data=>post('/xmgl/massReboundFloor/updateBatchName',data) -//查询所有楼栋和房间 -export const getAllBuildAndRoom = data=>post('xmgl/massReboundBuild/selectBuildAndRoomList',data) -//添加楼层信息 -export const addFloor = data=>post('/xmgl/massReboundFloor/add',data) +export const queryBuildingList = data => post('/xmgl/massReboundBuild/selectBuildInfoList', data) + //查询楼栋名称列表 +export const getBuildName = data => post('/xmgl/massReboundBuild/getBuildFloorList', data) + //根据楼栋查询楼层列表 +export const getFloorList = data => post('/xmgl/massReboundFloor/selectFloorAndRoomList', data) + //通过id查询户型 +export const queryById = data => post('/xmgl/houseType/queryById', data) + //删除楼栋信息 +export const deleteBuild = data => post('/xmgl/massReboundBuild/delete', data) + //添加楼栋信息 +export const addBuild = data => post('/xmgl/massReboundBuild/addBatchBuildFloor', data) + //通过id查询楼栋信息 +export const buildQueryById = data => post('/xmgl/massReboundFloor/selectFloorAndRoomList', data) + //删除楼层通过id +export const deleteFloor = data => post('/xmgl/massReboundFloor/delete', data) + //删除房间信息 +export const deleteRoom = data => post('/xmgl/massReboundRoom/delete', data) + //添加房间信息 +export const addRoomInfo = data => post('/xmgl/massReboundRoom/add', data) + //楼栋重命名 +export const rewriteBuildName = data => post('/xmgl/massReboundBuild/editBatchName', data) + //楼层房间重命名 +export const rewriteFloorAndRoom = data => post('/xmgl/massReboundFloor/updateBatchName', data) + //查询所有楼栋和房间 +export const getAllBuildAndRoom = data => post('xmgl/massReboundBuild/selectBuildAndRoomList', data) + //添加楼层信息 +export const addFloor = data => post('/xmgl/massReboundFloor/add', data) //户型管理 //查询户型汇总列表 -export const getHouseTypeList = data=>post('/xmgl/houseType/selectHouseTypeCountList',data) -//查询户型汇总列表 -export const getHouseTypeInfoList = data=>post('/xmgl/houseType/list',data) -//添加户型 -export const addHouseType = data=>post('/xmgl/houseType/add',data) -//删除户型 -export const deleteHouseType = data=>post('/xmgl/houseType/delete',data) -//编辑户型 -export const editHouseType = data=>post('/xmgl/houseType/edit',data) -//绑定户型 -export const bindAllHouseType = data=>post('/xmgl/massReboundRoom/saveBatchBind',data) -//解除户型 -export const cancelHouseType = data=>post('/xmgl/massReboundRoom/deleteBind',data) -//解除全部楼层户型 -export const cancelFloorType = data=>post('/xmgl/massReboundRoom/deleteFloorBind',data) +export const getHouseTypeList = data => post('/xmgl/houseType/selectHouseTypeCountList', data) + //查询户型汇总列表 +export const getHouseTypeInfoList = data => post('/xmgl/houseType/list', data) + //添加户型 +export const addHouseType = data => post('/xmgl/houseType/add', data) + //删除户型 +export const deleteHouseType = data => post('/xmgl/houseType/delete', data) + //编辑户型 +export const editHouseType = data => post('/xmgl/houseType/edit', data) + //绑定户型 +export const bindAllHouseType = data => post('/xmgl/massReboundRoom/saveBatchBind', data) + //解除户型 +export const cancelHouseType = data => post('/xmgl/massReboundRoom/deleteBind', data) + //解除全部楼层户型 +export const cancelFloorType = data => post('/xmgl/massReboundRoom/deleteFloorBind', data) //功能间 //查询功能间列表 -export const getFunctionRoomList = data =>post('/xmgl/functionRoom/selectList',data) -// //分页查询 -// export const getPageList = data =>get(`/xmgl/functionRoom/selectPageList?projectSn=${data.projectSn}&pageNo=${data.pageNo}&pageSize=${data.pageSize}`) -//分页查询 -export const getPageList = data =>post('/xmgl/functionRoom/selectPageList',data) -//添加功能间 -export const addFunctionRoom = data =>post('/xmgl/functionRoom/add',data) -//删除功能间 -export const deleteFunctionRoom = data =>post('/xmgl/functionRoom/delete',data) \ No newline at end of file +export const getFunctionRoomList = data => post('/xmgl/functionRoom/selectList', data) + // //分页查询 + // export const getPageList = data =>get(`/xmgl/functionRoom/selectPageList?projectSn=${data.projectSn}&pageNo=${data.pageNo}&pageSize=${data.pageSize}`) + //分页查询 +export const getPageList = data => post('/xmgl/functionRoom/selectPageList', data) + //添加功能间 +export const addFunctionRoom = data => post('/xmgl/functionRoom/add', data) + //删除功能间 +export const deleteFunctionRoom = data => post('/xmgl/functionRoom/delete', data) + +// 项目组管理接口 +// 分页查询项目组列表 +export const getProjectGroupPage = data => get('/xmgl/projectGroup/page', data); +// 通过id查询项目组详情 +export const getProjectGroupById = data => get('/xmgl/projectGroup/queryById', data); +// 添加项目组 +export const setProjectGroupAdd = data => post('/xmgl/projectGroup/saveObj', data); +// 编辑项目组 +export const setProjectGroupEdit = data => post('/xmgl/projectGroup/edit', data); +// 删除项目组 +export const setProjectGroupDelete = data => post('/xmgl/projectGroup/delete', data); + +// 装置管理接口 +// 分页查询装置管理列表 +export const getDeviceUnitPage = data => get('/xmgl/deviceUnit/page', data); +// 通过id查询装置详情 +export const getDeviceUnitById = data => get('/xmgl/deviceUnit/queryById', data); +// 添加装置 +export const setDeviceUnitAdd = data => post('/xmgl/deviceUnit/add', data); +// 编辑装置 +export const setDeviceUnitEdit = data => post('/xmgl/deviceUnit/edit', data); +// 删除装置 +export const setDeviceUnitDelete = data => post('/xmgl/deviceUnit/delete', data); \ No newline at end of file diff --git a/src/router/index.js b/src/router/index.js index 3bee5f96..f6afb09f 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -604,6 +604,13 @@ const routes2 = [{ component: () => import ("@/views/projectFront/laborManage/personnelAnalysis.vue"), }, + //项目基础信息管理--项目组管理 + { + path: "/project/constructionManage/projectTeamManage", + name: "项目基础信息管理_项目组管理", + component: () => + import ("@/views/projectFront/constructionManage/projectTeamManage.vue"), + }, // 施工管理 //施工管理--装置管理 { diff --git a/src/views/projectFront/constructionManage/deviceManage.vue b/src/views/projectFront/constructionManage/deviceManage.vue index c305ead7..ea420646 100644 --- a/src/views/projectFront/constructionManage/deviceManage.vue +++ b/src/views/projectFront/constructionManage/deviceManage.vue @@ -1,18 +1,10 @@