diff --git a/.env.development b/.env.development index 764306d..d95af3b 100644 --- a/.env.development +++ b/.env.development @@ -6,9 +6,9 @@ VITE_APP_ENV = 'development' # 开发环境 # 李陈杰 209 -VITE_APP_BASE_API = 'http://192.168.110.149:8899' +# VITE_APP_BASE_API = 'http://192.168.110.209:8899' # 曾涛 -# VITE_APP_BASE_API = 'http://192.168.110.180:8899' +VITE_APP_BASE_API = 'http://192.168.110.180:8899' # 罗成 # VITE_APP_BASE_API = 'http://192.168.110.188:8899' # 朱银 diff --git a/src/api/project/constructionUser/index.ts b/src/api/project/constructionUser/index.ts index 35ec956..c3c543c 100644 --- a/src/api/project/constructionUser/index.ts +++ b/src/api/project/constructionUser/index.ts @@ -203,3 +203,31 @@ export const importConstructionUserInfo = (file: string) => { data: { file } }); }; + + +// 获取项目列表 +export const ProjectList = (query) => { + return request({ + url: '/contractor/constructionUser/projectList', + method: 'get', + params: query + }); +}; + +// 获取班组列表 +export const TeamList = (query) => { + return request({ + url: '/contractor/constructionUser/teamList', + method: 'get', + params: query + }); +}; + +// 班组分配 +export const TeamDistribution = (data) => { + return request({ + url: '/contractor/constructionUser/addTeam', + method: 'post', + data: data + }); +}; \ No newline at end of file diff --git a/src/api/project/constructionUser/types.ts b/src/api/project/constructionUser/types.ts index b65e23f..47acc77 100644 --- a/src/api/project/constructionUser/types.ts +++ b/src/api/project/constructionUser/types.ts @@ -182,6 +182,8 @@ export interface ConstructionUserVO { * 创建时间 */ createTime: string; + + sysUserId: string | number; } export interface skipType { /** diff --git a/src/api/project/projectTeam/index.ts b/src/api/project/projectTeam/index.ts index 8a55f69..8d0b39a 100644 --- a/src/api/project/projectTeam/index.ts +++ b/src/api/project/projectTeam/index.ts @@ -72,3 +72,12 @@ export const delProjectTeam = (id: string | number | Array) => method: 'delete' }); }; + +// 获取项目得打卡范围 +export const getProjectTeamClockIn = (params) => { + return request({ + url: '/project/projectTeam/rangeList', + method: 'get', + params + }); +}; \ No newline at end of file diff --git a/src/api/project/projectTeam/types.ts b/src/api/project/projectTeam/types.ts index d14b582..aa66f35 100644 --- a/src/api/project/projectTeam/types.ts +++ b/src/api/project/projectTeam/types.ts @@ -55,6 +55,11 @@ export interface ProjectTeamForm extends BaseEntity { * 备注 */ remark?: string; + + /** + * 创建时间 + */ + punchRangeList?: []; } export interface ProjectTeamQuery extends PageQuery { diff --git a/src/views/ProjectScreen/components/centerPage.vue b/src/views/ProjectScreen/components/centerPage.vue index ebf11df..50ab572 100644 --- a/src/views/ProjectScreen/components/centerPage.vue +++ b/src/views/ProjectScreen/components/centerPage.vue @@ -120,6 +120,9 @@ const createEarth = () => { } } loadBaseMap(earth.viewer) + YJ.Global.CesiumContainer(window.Earth1, { + compass: false, //罗盘 + }); // YJ.Global.flyTo(earth, view); // YJ.Global.setDefaultView(earth.viewer, view) }) diff --git a/src/views/equipment/equipmentGPS.vue b/src/views/equipment/equipmentGPS.vue index 9589b08..3c15d21 100644 --- a/src/views/equipment/equipmentGPS.vue +++ b/src/views/equipment/equipmentGPS.vue @@ -1,18 +1,314 @@ - - + diff --git a/src/views/project/project/map.vue b/src/views/project/project/map.vue index 260ef86..3159d97 100644 --- a/src/views/project/project/map.vue +++ b/src/views/project/project/map.vue @@ -12,7 +12,7 @@