Merge branch 'shenzhen-dev' of http://139.9.66.234:18023/yjlHub/zhgdlarge into shenzhen-dev
This commit is contained in:
commit
f434c4652b
@ -9,11 +9,15 @@ export const getMemberJobStatusApi = (params: {}) => {
|
|||||||
};
|
};
|
||||||
// 检查人
|
// 检查人
|
||||||
export const getInspectManStatusApi = (params: {}) => {
|
export const getInspectManStatusApi = (params: {}) => {
|
||||||
return http.post(BASEURL + `/xmgl/xzSecurityQualityInspectionRecord/statsByInspectMan`, params, { headers: { noLoading: true } });
|
return http.post(BASEURL + `/xmgl/xzSecurityQualityInspectionRecord/statsByInspectMan`, params, {
|
||||||
|
headers: { noLoading: true }
|
||||||
|
});
|
||||||
};
|
};
|
||||||
// 按分包单位分析
|
// 按分包单位分析
|
||||||
export const getEnterpriseStatusApi = (params: {}) => {
|
export const getEnterpriseStatusApi = (params: {}) => {
|
||||||
return http.post(BASEURL + `/xmgl/xzSecurityQualityInspectionRecord/statsByEnterprise`, params, { headers: { noLoading: true } });
|
return http.post(BASEURL + `/xmgl/xzSecurityQualityInspectionRecord/statsByEnterprise`, params, {
|
||||||
|
headers: { noLoading: true }
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
// 危大工程弹窗
|
// 危大工程弹窗
|
||||||
@ -49,17 +53,20 @@ export const getProgressContentApi = (params: {}) => {
|
|||||||
return http.get(BASEURL + `/xmgl/xzTaskProgressContent/page`, params, { headers: { noLoading: true } });
|
return http.get(BASEURL + `/xmgl/xzTaskProgressContent/page`, params, { headers: { noLoading: true } });
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
// 风险统计弹窗
|
// 风险统计弹窗
|
||||||
// 顶部数据
|
// 顶部数据
|
||||||
export const getStatisticsNumDataApi = (params: {}) => {
|
export const getStatisticsNumDataApi = (params: {}) => {
|
||||||
return http.post(BASEURL + `/xmgl/xzSecurityQualityInspectionRecord/selectQualityStatisticsNum`, params, { headers: { noLoading: true } });
|
return http.post(BASEURL + `/xmgl/xzSecurityQualityInspectionRecord/selectQualityStatisticsNum`, params, {
|
||||||
|
headers: { noLoading: true }
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
// 安全隐患
|
// 安全隐患
|
||||||
// 顶部数据
|
// 顶部数据
|
||||||
export const getQualityStatisticsNumDataApi = (params: {}) => {
|
export const getQualityStatisticsNumDataApi = (params: {}) => {
|
||||||
return http.post(BASEURL + `/xmgl/xzSecurityQualityInspectionRecord/selectQualityStatisticsNumList`, params, { headers: { noLoading: true } });
|
return http.post(BASEURL + `/xmgl/xzSecurityQualityInspectionRecord/selectQualityStatisticsNumList`, params, {
|
||||||
|
headers: { noLoading: true }
|
||||||
|
});
|
||||||
};
|
};
|
||||||
// 获取分包单位
|
// 获取分包单位
|
||||||
export const getProjectEnterpriseApi = (params: {}) => {
|
export const getProjectEnterpriseApi = (params: {}) => {
|
||||||
@ -86,35 +93,41 @@ export const getAlarmTypeCountApi = (params: {}) => {
|
|||||||
};
|
};
|
||||||
// 顶部数据分页接口
|
// 顶部数据分页接口
|
||||||
export const getAlarmTypeCountPageApi = (params: {}) => {
|
export const getAlarmTypeCountPageApi = (params: {}) => {
|
||||||
return http.post(BASEURL + `/xmgl/aiStatistic/selectAiAnalyseHardWareAlarmTypeCountPage`, params, { headers: { noLoading: true } });
|
return http.post(BASEURL + `/xmgl/aiStatistic/selectAiAnalyseHardWareAlarmTypeCountPage`, params, {
|
||||||
|
headers: { noLoading: true }
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
// centerTop底部按钮显示数据接口
|
// centerTop底部按钮显示数据接口
|
||||||
export const getStatsDirectorateBigScreenApi = (params: {}) => {
|
export const getStatsDirectorateBigScreenApi = (params: {}, showLoading: boolean) => {
|
||||||
return http.post(BASEURL + `/xmgl/xzSecurityQualityInspectionRecord/statsDirectorateBigScreen`, params, { headers: { noLoading: true } });
|
return http.post(BASEURL + `/xmgl/xzSecurityQualityInspectionRecord/statsDirectorateBigScreen`, params, {
|
||||||
|
headers: { noLoading: showLoading }
|
||||||
|
});
|
||||||
};
|
};
|
||||||
// centerTop评分数据接口
|
// centerTop评分数据接口
|
||||||
export const getStatScoreApi = (params: {}) => {
|
export const getStatScoreApi = (params: {}, showLoading: boolean) => {
|
||||||
return http.get(BASEURL + `/xmgl/xzSecurityQualityInspectionRecord/getStatScore`, params, { headers: { noLoading: true } });
|
return http.get(BASEURL + `/xmgl/xzSecurityQualityInspectionRecord/getStatScore`, params, { headers: { noLoading: showLoading } });
|
||||||
};
|
};
|
||||||
|
|
||||||
// 项目人员考勤
|
// 项目人员考勤
|
||||||
// 出勤人员/考勤日环比
|
// 出勤人员/考勤日环比
|
||||||
export const getPersonTypeAndEduStatisticsApi = (params: {}) => {
|
export const getPersonTypeAndEduStatisticsApi = (params: {}, showLoading: boolean) => {
|
||||||
return http.post(BASEURL + `/xmgl/workerInfo/selectPersonTypeAndEduStatistics`, params, { headers: { noLoading: true } });
|
return http.post(BASEURL + `/xmgl/workerInfo/selectPersonTypeAndEduStatistics`, params, {
|
||||||
|
headers: { noLoading: showLoading }
|
||||||
|
});
|
||||||
};
|
};
|
||||||
// 总包出勤情况分析
|
// 总包出勤情况分析
|
||||||
export const queryAttendanceOfEachCompanyApi = (params: {}) => {
|
export const queryAttendanceOfEachCompanyApi = (params: {}, showLoading: boolean) => {
|
||||||
return http.get(BASEURL + `/xmgl/workerAttendance/queryAttendanceOfEachCompany`, params, { headers: { noLoading: true } });
|
return http.get(BASEURL + `/xmgl/workerAttendance/queryAttendanceOfEachCompany`, params, {
|
||||||
|
headers: { noLoading: showLoading }
|
||||||
|
});
|
||||||
};
|
};
|
||||||
// 进度情况分析
|
// 进度情况分析
|
||||||
// 项目总进度/项目剩余天数
|
// 项目总进度/项目剩余天数
|
||||||
export const getCountTaskProgressApi = (params: {}) => {
|
export const getCountTaskProgressApi = (params: {}, showLoading: boolean) => {
|
||||||
return http.post(BASEURL + `/xmgl/xzTaskProgress/countTaskProgress`, params, { headers: { noLoading: true } });
|
return http.post(BASEURL + `/xmgl/xzTaskProgress/countTaskProgress`, params, { headers: { noLoading: showLoading } });
|
||||||
};
|
};
|
||||||
// 总包进度列表
|
// 总包进度列表
|
||||||
export const queryCountEnterpriseApi = (params: {}) => {
|
export const queryCountEnterpriseApi = (params: {}, showLoading: boolean) => {
|
||||||
return http.post(BASEURL + `/xmgl/xzTaskProgressTotal/countEnterprise`, params, { headers: { noLoading: true } });
|
return http.post(BASEURL + `/xmgl/xzTaskProgressTotal/countEnterprise`, params, { headers: { noLoading: showLoading } });
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -3,8 +3,8 @@ import http from "@/api";
|
|||||||
const BASEURL = import.meta.env.VITE_API_URL;
|
const BASEURL = import.meta.env.VITE_API_URL;
|
||||||
|
|
||||||
// 项目信息
|
// 项目信息
|
||||||
export const getProjectDetail = (params: {}) => {
|
export const getProjectDetail = (params: {}, showLoading: boolean) => {
|
||||||
return http.post(BASEURL + `/xmgl/project/getProjectInfoBySn`, params, { headers: { noLoading: true } });
|
return http.post(BASEURL + `/xmgl/project/getProjectInfoBySn`, params, { headers: { noLoading: showLoading } });
|
||||||
};
|
};
|
||||||
|
|
||||||
// 统计企业下项目各人员统计
|
// 统计企业下项目各人员统计
|
||||||
@ -40,13 +40,13 @@ export const eidtProjectShowConfig = (params: {}) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// 查询效果图
|
// 查询效果图
|
||||||
export const queryBySnData = (params: {}) => {
|
export const queryBySnData = (params: {}, showLoading: boolean) => {
|
||||||
return http.post(BASEURL + `/xmgl/projectShowConfig/queryBySn`, params, { headers: { noLoading: true } });
|
return http.post(BASEURL + `/xmgl/projectShowConfig/queryBySn`, params, { headers: { noLoading: showLoading } });
|
||||||
};
|
};
|
||||||
|
|
||||||
// 里程碑字典
|
// 里程碑字典
|
||||||
export const getStageOption = (params: {}) => {
|
export const getStageOption = (params: {}, showLoading: boolean) => {
|
||||||
return http.get(BASEURL + `/xmgl/dictionaryItem/list`, params, { headers: { noLoading: true } });
|
return http.get(BASEURL + `/xmgl/dictionaryItem/list`, params, { headers: { noLoading: showLoading } });
|
||||||
};
|
};
|
||||||
|
|
||||||
//甘特图-列表查询任务进度
|
//甘特图-列表查询任务进度
|
||||||
@ -55,12 +55,16 @@ export const getParentChildTaskListApi = (params: {}) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// 隐患统计智能分析
|
// 隐患统计智能分析
|
||||||
export const getSelectQualityStatisticsNumApi = (params: {}) => {
|
export const getSelectQualityStatisticsNumApi = (params: {}, showLoading: boolean) => {
|
||||||
return http.post(BASEURL + `/xmgl/xzSecurityQualityInspectionRecord/selectQualityStatisticsNum`, params);
|
return http.post(BASEURL + `/xmgl/xzSecurityQualityInspectionRecord/selectQualityStatisticsNum`, params, {
|
||||||
|
headers: { noLoading: showLoading }
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
export const getCountDangerLevelApi = (params: {}) => {
|
export const getCountDangerLevelApi = (params: {}, showLoading: boolean) => {
|
||||||
return http.post(BASEURL + `/xmgl/xzSecurityQualityInspectionRecord/countDangerLevel`, params);
|
return http.post(BASEURL + `/xmgl/xzSecurityQualityInspectionRecord/countDangerLevel`, params, {
|
||||||
|
headers: { noLoading: showLoading }
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
// 分包单位统计
|
// 分包单位统计
|
||||||
@ -88,36 +92,42 @@ export const getXzSecurityQualitylnspectionRecordSuperviseApi = (params: {}) =>
|
|||||||
};
|
};
|
||||||
|
|
||||||
// 隐患智能分析
|
// 隐患智能分析
|
||||||
export const getNoticeListApi = (params: {}) => {
|
export const getNoticeListApi = (params: {}, showLoading: boolean) => {
|
||||||
return http.post(BASEURL + `/xmgl/notice/list`, params);
|
return http.post(BASEURL + `/xmgl/notice/list`, params, { headers: { noLoading: showLoading } });
|
||||||
};
|
};
|
||||||
|
|
||||||
// 安全问题统计数据|列表
|
// 安全问题统计数据|列表
|
||||||
export const getInspectionSelectQualityApi = (params: {}) => {
|
export const getInspectionSelectQualityApi = (params: {}, showLoading: boolean) => {
|
||||||
return http.post(BASEURL + `/xmgl/xzSecurityQualityInspectionRecord/selectQualityStatisticsNum`, params);
|
return http.post(BASEURL + `/xmgl/xzSecurityQualityInspectionRecord/selectQualityStatisticsNum`, params, {
|
||||||
|
headers: { noLoading: showLoading }
|
||||||
|
});
|
||||||
};
|
};
|
||||||
export const getInspectionSelectQualityListApi = (params: {}) => {
|
export const getInspectionSelectQualityListApi = (params: {}) => {
|
||||||
return http.post(BASEURL + `/xmgl/xzSecurityQualityInspectionRecord/selectQualityStatisticsNumList`, params);
|
return http.post(BASEURL + `/xmgl/xzSecurityQualityInspectionRecord/selectQualityStatisticsNumList`, params);
|
||||||
};
|
};
|
||||||
|
|
||||||
// 风险走势图
|
// 风险走势图
|
||||||
export const getInspectionRiskChartApi = (params: {}) => {
|
export const getInspectionRiskChartApi = (params: {}, showLoading: boolean) => {
|
||||||
return http.post(BASEURL + `/xmgl/xzSecurityQualityInspectionRecord/riskChart`, params);
|
return http.post(BASEURL + `/xmgl/xzSecurityQualityInspectionRecord/riskChart`, params, {
|
||||||
|
headers: { noLoading: showLoading }
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
// 特殊作业
|
// 特殊作业
|
||||||
export const getSpecialCountAllSpecialApi = (params: {}) => {
|
export const getSpecialCountAllSpecialApi = (params: {}, showLoading: boolean) => {
|
||||||
return http.post(BASEURL + `/xmgl/xzSpecial/countAllSpecial`, params);
|
return http.post(BASEURL + `/xmgl/xzSpecial/countAllSpecial`, params, { headers: { noLoading: showLoading } });
|
||||||
};
|
};
|
||||||
|
|
||||||
// 应急类型统计(今日)
|
// 应急类型统计(今日)
|
||||||
export const getCountEmergencyTypedApi = (params: {}) => {
|
export const getCountEmergencyTypedApi = (params: {}, showLoading: boolean) => {
|
||||||
return http.post(BASEURL + `/xmgl/xzEmergencyRecord/countEmergencyTyped`, params);
|
return http.post(BASEURL + `/xmgl/xzEmergencyRecord/countEmergencyTyped`, params, { headers: { noLoading: showLoading } });
|
||||||
};
|
};
|
||||||
|
|
||||||
// 应急处置(近七日)
|
// 应急处置(近七日)
|
||||||
export const getCountAlarmNumByEnterpriseApi = (params: {}) => {
|
export const getCountAlarmNumByEnterpriseApi = (params: {}, showLoading: boolean) => {
|
||||||
return http.post(BASEURL + `/xmgl/xzEmergencyRecord/countAlarmNumByEnterprise`, params);
|
return http.post(BASEURL + `/xmgl/xzEmergencyRecord/countAlarmNumByEnterprise`, params, {
|
||||||
|
headers: { noLoading: showLoading }
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
// 获取应急物资
|
// 获取应急物资
|
||||||
|
|||||||
@ -20,6 +20,6 @@ export const getSafeHatSessionApi = (params: {}) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// 现场视频
|
// 现场视频
|
||||||
export const selectLiveVideoListApi = (params: {}) => {
|
export const selectLiveVideoListApi = (params: {}, showLoading: boolean) => {
|
||||||
return http.get(BASEURL + `/xmgl/project/getProjectExtendInfo`, params);
|
return http.get(BASEURL + `/xmgl/project/getProjectExtendInfo`, params, { headers: { noLoading: showLoading } });
|
||||||
};
|
};
|
||||||
|
|||||||
@ -159,10 +159,10 @@ let listData = ref([
|
|||||||
// { header: 'AI报警', type: 3, content: '1#塔吊报警频次较上周增长60%,塔吊间各个设之间的衔接进行全面检查,以防止...', startTime: '2024-04-01', endTime: "2024-04-20" },
|
// { header: 'AI报警', type: 3, content: '1#塔吊报警频次较上周增长60%,塔吊间各个设之间的衔接进行全面检查,以防止...', startTime: '2024-04-01', endTime: "2024-04-20" },
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const getNoticeList = async () => {
|
const getNoticeList = async (showLoading: boolean) => {
|
||||||
// const res: any = await getNoticeListApi({ projectSn: store.sn, type: 10, pageNo: 1, pageSize: 99999, });
|
// const res: any = await getNoticeListApi({ projectSn: store.sn, type: 10, pageNo: 1, pageSize: 99999, });
|
||||||
// const res: any = await getNoticeListApi({ isBigScreen: 1, type: 32 }); // 公告
|
// const res: any = await getNoticeListApi({ isBigScreen: 1, type: 32 }); // 公告
|
||||||
const res: any = await getNoticeListApi({ isBigScreen: 1, type: 31 });
|
const res: any = await getNoticeListApi({ isBigScreen: 1, type: 31 }, showLoading);
|
||||||
|
|
||||||
console.log("隐患智能分析", res);
|
console.log("隐患智能分析", res);
|
||||||
listData.value = res.result.records;
|
listData.value = res.result.records;
|
||||||
@ -666,11 +666,11 @@ function getMessCountEchart() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const getMessCountEchartType = async () => {
|
const getMessCountEchartType = async (showLoading: boolean) => {
|
||||||
const res: any = await getCountEmergencyTypedApi({
|
const res: any = await getCountEmergencyTypedApi({
|
||||||
projectSn: store.sn,
|
projectSn: store.sn,
|
||||||
type: 1
|
type: 1
|
||||||
});
|
},showLoading);
|
||||||
console.log("应急统计图", res);
|
console.log("应急统计图", res);
|
||||||
messCountType.value.data = res.result.data.map((item: any) => {
|
messCountType.value.data = res.result.data.map((item: any) => {
|
||||||
return {
|
return {
|
||||||
@ -690,11 +690,11 @@ const getMessCountEchartType = async () => {
|
|||||||
getMessCountEchart();
|
getMessCountEchart();
|
||||||
};
|
};
|
||||||
|
|
||||||
const getCountAlarmNumByEnterprise = async () => {
|
const getCountAlarmNumByEnterprise = async (showLoading: boolean) => {
|
||||||
const res: any = await getCountAlarmNumByEnterpriseApi({
|
const res: any = await getCountAlarmNumByEnterpriseApi({
|
||||||
projectSn: store.sn,
|
projectSn: store.sn,
|
||||||
type: 1
|
type: 1
|
||||||
});
|
},showLoading);
|
||||||
dataListAlarm.value = res.result.reduce((prev: any[], item: any) => {
|
dataListAlarm.value = res.result.reduce((prev: any[], item: any) => {
|
||||||
console.log("1111", prev);
|
console.log("1111", prev);
|
||||||
item.list.forEach((ele: any) => {
|
item.list.forEach((ele: any) => {
|
||||||
@ -723,16 +723,16 @@ const getCountAlarmNumByEnterprise = async () => {
|
|||||||
console.log("应急处置统计图", res);
|
console.log("应急处置统计图", res);
|
||||||
getMessEchart();
|
getMessEchart();
|
||||||
};
|
};
|
||||||
const setIntervalFn = () => {
|
const setIntervalFn = (showLoading: boolean) => {
|
||||||
getNoticeList();
|
getNoticeList(showLoading);
|
||||||
getCountAlarmNumByEnterprise();
|
getCountAlarmNumByEnterprise(showLoading);
|
||||||
getMessCountEchartType();
|
getMessCountEchartType(showLoading);
|
||||||
};
|
};
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
setIntervalFn();
|
setIntervalFn(false);
|
||||||
// 定时三十秒刷新
|
// 定时三十秒刷新
|
||||||
setInterval(() => {
|
setInterval(() => {
|
||||||
setIntervalFn();
|
setIntervalFn(true);
|
||||||
}, 30000);
|
}, 30000);
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -566,10 +566,13 @@ let topText = ref([
|
|||||||
{ id: 2, title: "宣传视频", isActive: false },
|
{ id: 2, title: "宣传视频", isActive: false },
|
||||||
{ id: 3, title: "效果图", isActive: false }
|
{ id: 3, title: "效果图", isActive: false }
|
||||||
]);
|
]);
|
||||||
const getVideoList = async () => {
|
const getVideoList = async (showLoading: boolean) => {
|
||||||
let res: any = await selectLiveVideoListApi({
|
let res: any = await selectLiveVideoListApi(
|
||||||
|
{
|
||||||
projectSn: store.sn
|
projectSn: store.sn
|
||||||
});
|
},
|
||||||
|
showLoading
|
||||||
|
);
|
||||||
console.log(res, "445566");
|
console.log(res, "445566");
|
||||||
if (res.result && res.result.extend1) {
|
if (res.result && res.result.extend1) {
|
||||||
videoList.value = JSON.parse(res.result.extend1).result.videoList;
|
videoList.value = JSON.parse(res.result.extend1).result.videoList;
|
||||||
@ -590,8 +593,8 @@ const getVideoList = async () => {
|
|||||||
};
|
};
|
||||||
let statsDirectorateBigScreen = ref({} as any);
|
let statsDirectorateBigScreen = ref({} as any);
|
||||||
//获取centerTop底部按钮显示数据
|
//获取centerTop底部按钮显示数据
|
||||||
const getStatsDirectorateBigScreen = async () => {
|
const getStatsDirectorateBigScreen = async (showLoading: boolean) => {
|
||||||
const res = await getStatsDirectorateBigScreenApi({ projectSn: store.sn });
|
const res = await getStatsDirectorateBigScreenApi({ projectSn: store.sn }, showLoading);
|
||||||
statsDirectorateBigScreen.value = res.result;
|
statsDirectorateBigScreen.value = res.result;
|
||||||
};
|
};
|
||||||
let statScore = ref({
|
let statScore = ref({
|
||||||
@ -603,8 +606,8 @@ let statScore = ref({
|
|||||||
lastMonthTotal: 0
|
lastMonthTotal: 0
|
||||||
} as any);
|
} as any);
|
||||||
//获取centerTop底部按钮显示数据
|
//获取centerTop底部按钮显示数据
|
||||||
const getStatScore = async () => {
|
const getStatScore = async (showLoading: boolean) => {
|
||||||
const res = await getStatScoreApi({ projectSn: store.sn });
|
const res = await getStatScoreApi({ projectSn: store.sn }, showLoading);
|
||||||
console.log("获取项目信息6666666666666666666666666666666666", res);
|
console.log("获取项目信息6666666666666666666666666666666666", res);
|
||||||
statScore.value = res.result;
|
statScore.value = res.result;
|
||||||
|
|
||||||
@ -662,11 +665,14 @@ const uploadSuccess = () => {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
// 查询效果图
|
// 查询效果图
|
||||||
function getQueryBySnData() {
|
function getQueryBySnData(showLoading: boolean) {
|
||||||
queryBySnData({
|
queryBySnData(
|
||||||
|
{
|
||||||
projectSn: store.sn,
|
projectSn: store.sn,
|
||||||
showType: 3
|
showType: 3
|
||||||
}).then((res: any) => {
|
},
|
||||||
|
showLoading
|
||||||
|
).then((res: any) => {
|
||||||
console.log(res, "效果图");
|
console.log(res, "效果图");
|
||||||
if (res.result) {
|
if (res.result) {
|
||||||
picUrl.value = res.result.configValue;
|
picUrl.value = res.result.configValue;
|
||||||
@ -688,18 +694,17 @@ function saveOrDeleteVideo(url) {
|
|||||||
defineExpose({
|
defineExpose({
|
||||||
getQueryBySnData
|
getQueryBySnData
|
||||||
});
|
});
|
||||||
const setIntervalFn = () => {
|
const setIntervalFn = (showLoading: boolean) => {
|
||||||
getVideoList();
|
getVideoList(showLoading);
|
||||||
getQueryBySnData();
|
getQueryBySnData(showLoading);
|
||||||
getStatsDirectorateBigScreen();
|
getStatsDirectorateBigScreen(showLoading);
|
||||||
getStatScore();
|
getStatScore(showLoading);
|
||||||
drawAqWater()
|
|
||||||
};
|
};
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
setIntervalFn();
|
setIntervalFn(false);
|
||||||
// 定时三十秒刷新
|
// 定时三十秒刷新
|
||||||
setInterval(() => {
|
setInterval(() => {
|
||||||
setIntervalFn();
|
setIntervalFn(true);
|
||||||
}, 30000);
|
}, 30000);
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -159,10 +159,13 @@ let totalPerson = ref("" as any);
|
|||||||
//考勤日环比
|
//考勤日环比
|
||||||
let totalPersonRhbRatio = ref("" as any);
|
let totalPersonRhbRatio = ref("" as any);
|
||||||
//获取出勤人员数据/考勤日环比
|
//获取出勤人员数据/考勤日环比
|
||||||
const getPersonTypeAndEduStatistics = async () => {
|
const getPersonTypeAndEduStatistics = async (showLoading: boolean) => {
|
||||||
const res: any = await getPersonTypeAndEduStatisticsApi({
|
const res: any = await getPersonTypeAndEduStatisticsApi(
|
||||||
|
{
|
||||||
projectSn: store.sn
|
projectSn: store.sn
|
||||||
});
|
},
|
||||||
|
showLoading
|
||||||
|
);
|
||||||
if (res.result) {
|
if (res.result) {
|
||||||
console.log("出勤人员数据/考勤日环比", res);
|
console.log("出勤人员数据/考勤日环比", res);
|
||||||
totalPerson.value = res.result.personType.attendancePerson.totalPerson;
|
totalPerson.value = res.result.personType.attendancePerson.totalPerson;
|
||||||
@ -182,11 +185,14 @@ let xData = ref([] as any);
|
|||||||
let yData = ref([] as any);
|
let yData = ref([] as any);
|
||||||
//获取总包出勤情况分析数据
|
//获取总包出勤情况分析数据
|
||||||
let isFlag = ref(true as any);
|
let isFlag = ref(true as any);
|
||||||
const queryAttendanceOfEachCompany = async () => {
|
const queryAttendanceOfEachCompany = async (showLoading: boolean) => {
|
||||||
const res: any = await queryAttendanceOfEachCompanyApi({
|
const res: any = await queryAttendanceOfEachCompanyApi(
|
||||||
|
{
|
||||||
projectSn: store.sn,
|
projectSn: store.sn,
|
||||||
isCountMainEnterprise: 1
|
isCountMainEnterprise: 1
|
||||||
});
|
},
|
||||||
|
showLoading
|
||||||
|
);
|
||||||
if (res.result) {
|
if (res.result) {
|
||||||
console.log("获取总包出勤情况分析数据", res);
|
console.log("获取总包出勤情况分析数据", res);
|
||||||
projectCompanyWorkTotalList.value = res.result.projectCompanyWorkTotalList;
|
projectCompanyWorkTotalList.value = res.result.projectCompanyWorkTotalList;
|
||||||
@ -367,10 +373,13 @@ let projectTotalProgress = ref("" as any);
|
|||||||
// 项目剩余天数
|
// 项目剩余天数
|
||||||
let projectSurplusDayNum = ref({} as any);
|
let projectSurplusDayNum = ref({} as any);
|
||||||
// 获取项目总进度/项目剩余天数
|
// 获取项目总进度/项目剩余天数
|
||||||
const getCountTaskProgress = async () => {
|
const getCountTaskProgress = async (showLoading: boolean) => {
|
||||||
const res: any = await getCountTaskProgressApi({
|
const res: any = await getCountTaskProgressApi(
|
||||||
|
{
|
||||||
projectSn: store.sn
|
projectSn: store.sn
|
||||||
});
|
},
|
||||||
|
showLoading
|
||||||
|
);
|
||||||
if (res.result) {
|
if (res.result) {
|
||||||
console.log("项目总进度/项目剩余天数", res);
|
console.log("项目总进度/项目剩余天数", res);
|
||||||
projectTotalProgress.value = res.result.projectTotalProgress + "";
|
projectTotalProgress.value = res.result.projectTotalProgress + "";
|
||||||
@ -380,28 +389,31 @@ const getCountTaskProgress = async () => {
|
|||||||
// 总包进度列表
|
// 总包进度列表
|
||||||
let processList = ref([] as any);
|
let processList = ref([] as any);
|
||||||
// 获取总包进度列表
|
// 获取总包进度列表
|
||||||
const queryCountEnterprise = async () => {
|
const queryCountEnterprise = async (showLoading: boolean) => {
|
||||||
const res: any = await queryCountEnterpriseApi({
|
const res: any = await queryCountEnterpriseApi(
|
||||||
|
{
|
||||||
projectSn: store.sn,
|
projectSn: store.sn,
|
||||||
isCountMainEnterprise: 1
|
isCountMainEnterprise: 1
|
||||||
});
|
},
|
||||||
|
showLoading
|
||||||
|
);
|
||||||
if (res.result) {
|
if (res.result) {
|
||||||
console.log("总包进度列表", res);
|
console.log("总包进度列表", res);
|
||||||
processList.value = res.result;
|
processList.value = res.result;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const setIntervalFn = () => {
|
const setIntervalFn = (showLoading: boolean) => {
|
||||||
// drawBar()
|
// drawBar()
|
||||||
getPersonTypeAndEduStatistics();
|
getPersonTypeAndEduStatistics(showLoading);
|
||||||
queryAttendanceOfEachCompany();
|
queryAttendanceOfEachCompany(showLoading);
|
||||||
getCountTaskProgress();
|
getCountTaskProgress(showLoading);
|
||||||
queryCountEnterprise();
|
queryCountEnterprise(showLoading);
|
||||||
};
|
};
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
setIntervalFn();
|
setIntervalFn(false);
|
||||||
// 定时三十秒刷新
|
// 定时三十秒刷新
|
||||||
setInterval(() => {
|
setInterval(() => {
|
||||||
setIntervalFn();
|
setIntervalFn(true);
|
||||||
}, 30000);
|
}, 30000);
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -28,37 +28,40 @@
|
|||||||
</div>
|
</div>
|
||||||
<div style="font-size: 15px; line-height: 22px">
|
<div style="font-size: 15px; line-height: 22px">
|
||||||
<div style="display: flex; color: white; margin-top: 8px">
|
<div style="display: flex; color: white; margin-top: 8px">
|
||||||
<div style="width:50%;display:flex;">
|
<div style="width: 50%; display: flex">
|
||||||
<span>项目经理:</span>
|
<span>项目经理:</span>
|
||||||
<span>{{ projectData.projectManage || "" }}</span>
|
<span>{{ projectData.projectManage || "" }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div style="width:50%;display:flex;">
|
<div style="width: 50%; display: flex">
|
||||||
<span>联系电话:</span>
|
<span>联系电话:</span>
|
||||||
<span>{{ projectData.projectTel || "" }}</span>
|
<span>{{ projectData.projectTel || "" }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="display: flex; color: white; margin-top: 8px">
|
<div style="display: flex; color: white; margin-top: 8px">
|
||||||
<div style="width:50%;display:flex;">
|
<div style="width: 50%; display: flex">
|
||||||
<span>建筑面积:</span>
|
<span>建筑面积:</span>
|
||||||
<span>{{ projectData.projectAcreage || "" }} {{ projectData.projectAcreage ? '㎡' : "" }}</span>
|
<span>{{ projectData.projectAcreage || "" }} {{ projectData.projectAcreage ? "㎡" : "" }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div style="width:50%;display:flex;">
|
<div style="width: 50%; display: flex">
|
||||||
<span>开工日期:</span>
|
<span>开工日期:</span>
|
||||||
<span>{{ projectData.startWorkDate || "" }}</span>
|
<span>{{ projectData.startWorkDate || "" }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="display: flex; color: white; margin-top: 8px">
|
<div style="display: flex; color: white; margin-top: 8px">
|
||||||
<div style="width:50%;display:flex;">
|
<div style="width: 50%; display: flex">
|
||||||
<span>工程类别:</span>
|
<span>工程类别:</span>
|
||||||
<span>{{ projectData.projectType && projectTypeEnumList.length > 0 ? projectTypeEnumList[projectData.projectType - 1].name : "" }}</span>
|
<span>{{
|
||||||
<div style="margin-left:5px;line-height:20px;">
|
projectData.projectType && projectTypeEnumList.length > 0
|
||||||
<img style="width:25px;height:25px;" src="@/assets/images/mountain-icon.png" alt="" />
|
? projectTypeEnumList[projectData.projectType - 1].name
|
||||||
|
: ""
|
||||||
|
}}</span>
|
||||||
|
<div style="margin-left: 5px; line-height: 20px">
|
||||||
|
<img style="width: 25px; height: 25px" src="@/assets/images/mountain-icon.png" alt="" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<!-- <div class="content-info">
|
<!-- <div class="content-info">
|
||||||
<span>项目名称:</span>
|
<span>项目名称:</span>
|
||||||
<span>{{ projectData.projectName || "" }}</span>
|
<span>{{ projectData.projectName || "" }}</span>
|
||||||
@ -103,14 +106,13 @@ const store = GlobalStore();
|
|||||||
const projectData = ref({} as any);
|
const projectData = ref({} as any);
|
||||||
const projectTypeEnumList: any = ref([]); //工程类别
|
const projectTypeEnumList: any = ref([]); //工程类别
|
||||||
const addressData = () => {
|
const addressData = () => {
|
||||||
return projectData.value.provinceName ? projectData.value.provinceName +
|
return projectData.value.provinceName
|
||||||
projectData.value.cityName +
|
? projectData.value.provinceName + projectData.value.cityName + projectData.value.areaName + projectData.value.projectAddress
|
||||||
projectData.value.areaName +
|
: "";
|
||||||
projectData.value.projectAddress : '';
|
};
|
||||||
}
|
|
||||||
// 工程类别字典数据
|
// 工程类别字典数据
|
||||||
const projectTypeEnum = async () => {
|
const projectTypeEnum = async (showLoading: boolean) => {
|
||||||
const res: any = await getStageOption({ dictionaryEncoding: "project_type", projectSn: store.sn });
|
const res: any = await getStageOption({ dictionaryEncoding: "project_type", projectSn: store.sn }, showLoading);
|
||||||
if (res.result.length > 0) {
|
if (res.result.length > 0) {
|
||||||
let newArray = res.result.map((item: any) => {
|
let newArray = res.result.map((item: any) => {
|
||||||
return {
|
return {
|
||||||
@ -118,21 +120,28 @@ const projectTypeEnum = async () => {
|
|||||||
id: Number(item.data)
|
id: Number(item.data)
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
projectTypeEnumList.value = newArray
|
projectTypeEnumList.value = newArray;
|
||||||
} else {
|
} else {
|
||||||
projectTypeEnumList.value = []
|
projectTypeEnumList.value = [];
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
//获取项目信息
|
//获取项目信息
|
||||||
const getProjectInfo = async () => {
|
const getProjectInfo = async (showLoading: boolean) => {
|
||||||
const res = await getProjectDetail({ projectSn: store.sn });
|
const res = await getProjectDetail({ projectSn: store.sn }, showLoading);
|
||||||
console.log("获取项目信息666", res);
|
console.log("获取项目信息666", res);
|
||||||
// console.log("获取工程类别", projectTypeEnum);
|
// console.log("获取工程类别", projectTypeEnum);
|
||||||
projectData.value = res.result;
|
projectData.value = res.result;
|
||||||
};
|
};
|
||||||
|
const setIntervalFn = (showLoading: boolean) => {
|
||||||
|
getProjectInfo(showLoading);
|
||||||
|
projectTypeEnum(showLoading);
|
||||||
|
};
|
||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
getProjectInfo();
|
setIntervalFn(false);
|
||||||
projectTypeEnum();
|
setInterval(() => {
|
||||||
|
setIntervalFn(true);
|
||||||
|
}, 30000);
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@ -155,7 +164,7 @@ onMounted(async () => {
|
|||||||
// color: white;
|
// color: white;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
background-image: linear-gradient(to bottom left, #c8E3FF, #007AFF);
|
background-image: linear-gradient(to bottom left, #c8e3ff, #007aff);
|
||||||
-webkit-background-clip: text;
|
-webkit-background-clip: text;
|
||||||
background-clip: text;
|
background-clip: text;
|
||||||
color: transparent;
|
color: transparent;
|
||||||
|
|||||||
@ -940,17 +940,20 @@ function getSpecialEchart() {
|
|||||||
console.log(echartsTest);
|
console.log(echartsTest);
|
||||||
}
|
}
|
||||||
|
|
||||||
const getSafeInfo = async () => {
|
const getSafeInfo = async (showLoading: boolean) => {
|
||||||
// const res: any = await getProjectInspectRecordCountApi({ projectSn: store.sn });
|
// const res: any = await getProjectInspectRecordCountApi({ projectSn: store.sn });
|
||||||
// console.log("获取安全管理", res);
|
// console.log("获取安全管理", res);
|
||||||
// safeData.value = res.result;
|
// safeData.value = res.result;
|
||||||
// dataList.value[0].value = res.result.rectificationNum;
|
// dataList.value[0].value = res.result.rectificationNum;
|
||||||
// dataList.value[1].value = res.result.totalNum - res.result.rectificationNum;
|
// dataList.value[1].value = res.result.totalNum - res.result.rectificationNum;
|
||||||
const result: any = await getInspectionSelectQualityApi({
|
const result: any = await getInspectionSelectQualityApi(
|
||||||
|
{
|
||||||
projectSn: store.sn,
|
projectSn: store.sn,
|
||||||
inspectStartTime: dateRange.value[0],
|
inspectStartTime: dateRange.value[0],
|
||||||
inspectEndTime: dateRange.value[1]
|
inspectEndTime: dateRange.value[1]
|
||||||
});
|
},
|
||||||
|
showLoading
|
||||||
|
);
|
||||||
|
|
||||||
console.log("安全统计数据", result);
|
console.log("安全统计数据", result);
|
||||||
dataList.value = [];
|
dataList.value = [];
|
||||||
@ -1017,12 +1020,15 @@ const getSafeInfo = async () => {
|
|||||||
// majorDangerRate.value = result.result.percent;
|
// majorDangerRate.value = result.result.percent;
|
||||||
console.log("1111111111111", dataList.value);
|
console.log("1111111111111", dataList.value);
|
||||||
|
|
||||||
const res: any = await getCountDangerLevelApi({
|
const res: any = await getCountDangerLevelApi(
|
||||||
|
{
|
||||||
projectSn: store.sn,
|
projectSn: store.sn,
|
||||||
isOverdueRectification: 1,
|
isOverdueRectification: 1,
|
||||||
inspectStartTime: dateRange.value[0],
|
inspectStartTime: dateRange.value[0],
|
||||||
inspectEndTime: dateRange.value[1]
|
inspectEndTime: dateRange.value[1]
|
||||||
});
|
},
|
||||||
|
showLoading
|
||||||
|
);
|
||||||
// dataList.value = res.result.data.map((item: any, index: number) => {
|
// dataList.value = res.result.data.map((item: any, index: number) => {
|
||||||
// return {
|
// return {
|
||||||
// ...item,
|
// ...item,
|
||||||
@ -1313,18 +1319,21 @@ let dataList2 = ref([
|
|||||||
// });
|
// });
|
||||||
// }
|
// }
|
||||||
|
|
||||||
const qualityInfo = async () => {
|
const qualityInfo = async (showLoading: boolean) => {
|
||||||
// const res: any = await selectQualityStatisticsApi({ projectSn: store.sn });
|
// const res: any = await selectQualityStatisticsApi({ projectSn: store.sn });
|
||||||
// dataList2.value[0].value = res.result.total.rectificationNum;
|
// dataList2.value[0].value = res.result.total.rectificationNum;
|
||||||
// dataList2.value[1].value = res.result.total.totalNum - res.result.total.rectificationNum;
|
// dataList2.value[1].value = res.result.total.totalNum - res.result.total.rectificationNum;
|
||||||
// questionTotal.value = res.result.total.totalNum;
|
// questionTotal.value = res.result.total.totalNum;
|
||||||
|
|
||||||
const res: any = await getCountDangerLevelApi({
|
const res: any = await getCountDangerLevelApi(
|
||||||
|
{
|
||||||
projectSn: store.sn,
|
projectSn: store.sn,
|
||||||
isNotQualified: 1,
|
isNotQualified: 1,
|
||||||
inspectStartTime: dateRange.value[0],
|
inspectStartTime: dateRange.value[0],
|
||||||
inspectEndTime: dateRange.value[1]
|
inspectEndTime: dateRange.value[1]
|
||||||
});
|
},
|
||||||
|
showLoading
|
||||||
|
);
|
||||||
// dataList2.value = res.result.data.map((item: any, index: number) => {
|
// dataList2.value = res.result.data.map((item: any, index: number) => {
|
||||||
// return {
|
// return {
|
||||||
// ...item,
|
// ...item,
|
||||||
@ -1347,18 +1356,21 @@ const qualityInfo = async () => {
|
|||||||
// drawEchart2();
|
// drawEchart2();
|
||||||
};
|
};
|
||||||
|
|
||||||
const getSelectQualityStatisticsNum = async () => {
|
const getSelectQualityStatisticsNum = async (showLoading: boolean) => {
|
||||||
const res: any = await getSelectQualityStatisticsNumApi({
|
const res: any = await getSelectQualityStatisticsNumApi(
|
||||||
|
{
|
||||||
projectSn: store.sn,
|
projectSn: store.sn,
|
||||||
inspectStartTime: dateRange.value[0],
|
inspectStartTime: dateRange.value[0],
|
||||||
inspectEndTime: dateRange.value[1]
|
inspectEndTime: dateRange.value[1]
|
||||||
});
|
},
|
||||||
|
showLoading
|
||||||
|
);
|
||||||
console.log(res);
|
console.log(res);
|
||||||
};
|
};
|
||||||
|
|
||||||
const getNoticeList = async () => {
|
const getNoticeList = async (showLoading: boolean) => {
|
||||||
// const res: any = await getNoticeListApi({ projectSn: store.sn, type: 10, pageNo: 1, pageSize: 99999, });
|
// const res: any = await getNoticeListApi({ projectSn: store.sn, type: 10, pageNo: 1, pageSize: 99999, });
|
||||||
const res: any = await getNoticeListApi({ isBigScreen: 1, type: 31 });
|
const res: any = await getNoticeListApi({ isBigScreen: 1, type: 31 }, showLoading);
|
||||||
console.log("隐患智能分析", res);
|
console.log("隐患智能分析", res);
|
||||||
listData2.value = res.result.records;
|
listData2.value = res.result.records;
|
||||||
// listData2.value.push({
|
// listData2.value.push({
|
||||||
@ -1377,50 +1389,56 @@ const getNoticeList = async () => {
|
|||||||
|
|
||||||
watch(
|
watch(
|
||||||
dateRange,
|
dateRange,
|
||||||
async () => {
|
() => {
|
||||||
if (dateRange.value == null) {
|
if (dateRange.value == null) {
|
||||||
dateRange.value = [];
|
dateRange.value = [];
|
||||||
}
|
}
|
||||||
await getSafeInfo();
|
getSafeInfo(true);
|
||||||
await qualityInfo();
|
qualityInfo(true);
|
||||||
// await getSelectQualityStatisticsNum();
|
// await getSelectQualityStatisticsNum();
|
||||||
},
|
},
|
||||||
{ deep: true }
|
{ deep: true }
|
||||||
);
|
);
|
||||||
|
|
||||||
const getInspectionRiskChart = async () => {
|
const getInspectionRiskChart = async (showLoading: boolean) => {
|
||||||
const res: any = await getInspectionRiskChartApi({
|
const res: any = await getInspectionRiskChartApi(
|
||||||
|
{
|
||||||
projectSn: store.sn,
|
projectSn: store.sn,
|
||||||
queryType: 1
|
queryType: 1
|
||||||
});
|
},
|
||||||
|
showLoading
|
||||||
|
);
|
||||||
console.log("风险走势图", res);
|
console.log("风险走势图", res);
|
||||||
riskList.value = res.result;
|
riskList.value = res.result;
|
||||||
getRiskEchart();
|
getRiskEchart();
|
||||||
};
|
};
|
||||||
|
|
||||||
const getCountAllSpecial = async () => {
|
const getCountAllSpecial = async (showLoading: boolean) => {
|
||||||
const res: any = await getSpecialCountAllSpecialApi({
|
const res: any = await getSpecialCountAllSpecialApi(
|
||||||
|
{
|
||||||
projectSn: store.sn,
|
projectSn: store.sn,
|
||||||
type: 1
|
type: 1
|
||||||
});
|
},
|
||||||
|
showLoading
|
||||||
|
);
|
||||||
console.log("特殊作业图", res);
|
console.log("特殊作业图", res);
|
||||||
specialList.value = res.result;
|
specialList.value = res.result;
|
||||||
getSpecialEchart();
|
getSpecialEchart();
|
||||||
};
|
};
|
||||||
|
|
||||||
const setIntervalFn = () => {
|
const setIntervalFn = (showLoading: boolean) => {
|
||||||
getInspectionRiskChart();
|
getInspectionRiskChart(showLoading);
|
||||||
getCountAllSpecial();
|
getCountAllSpecial(showLoading);
|
||||||
getSafeInfo();
|
getSafeInfo(showLoading);
|
||||||
qualityInfo();
|
qualityInfo(showLoading);
|
||||||
getSelectQualityStatisticsNum();
|
getSelectQualityStatisticsNum(showLoading);
|
||||||
getNoticeList();
|
getNoticeList(showLoading);
|
||||||
};
|
};
|
||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
setIntervalFn();
|
setIntervalFn(false);
|
||||||
setInterval(() => {
|
setInterval(() => {
|
||||||
setIntervalFn();
|
setIntervalFn(true);
|
||||||
}, 30000);
|
}, 30000);
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user