diff --git a/yanzhu-bigscreen/src/api/index.js b/yanzhu-bigscreen/src/api/index.js index 182e2ef2..e2d5bb40 100644 --- a/yanzhu-bigscreen/src/api/index.js +++ b/yanzhu-bigscreen/src/api/index.js @@ -9,7 +9,8 @@ import safety from "./safety"; import tower from "./tower"; import powerIot from "./powerIot"; import aiWarning from "./aiWarning"; -import planSchedule from './planSchedule'; +import planSchedule from "./planSchedule"; +import labor from "./labor"; export default { http: axios, downFile: download, @@ -24,4 +25,5 @@ export default { powerIot, aiWarning, planSchedule, + labor, }; diff --git a/yanzhu-bigscreen/src/api/labor.js b/yanzhu-bigscreen/src/api/labor.js new file mode 100644 index 00000000..f0f09aad --- /dev/null +++ b/yanzhu-bigscreen/src/api/labor.js @@ -0,0 +1,74 @@ +import request from "@/utils/request"; +/** + * 分组统计人员年龄,省份统计信息 + * @param {*} type + * @param {*} prjId + * @returns + */ +const groupByWorker = (type, prjId) => { + return request({ + url: `/manage/bgscreen/labor/groupByWorker/${type}/${prjId}`, + method: "get", + }); +}; + +/** + * 劳务人员七天出勤趋势 + * @param {*} type + * @param {*} prjId + * @returns + */ +const groupAttendanceLastWeek = (type, prjId) => { + return request({ + url: `/manage/bgscreen/labor/groupAttendanceLastWeek/${type}/${prjId}`, + method: "get", + }); +}; + +/** + * 劳务人员工种占比 + * @param {*} type + * @param {*} prjId + * @returns + */ +const getWorkerCountGroupByType = (type, prjId) => { + return request({ + url: `/manage/bgscreen/labor/getWorkerCountGroupByType/${type}/${prjId}`, + method: "get", + }); +}; + +/** + * 实时考勤进出 + * @param {*} type + * @param {*} prjId + * @returns + */ +const getRealAttendance = (type, prjId) => { + return request({ + url: `/manage/bgscreen/labor/getRealAttendance/${type}/${prjId}`, + method: "get", + }); +}; + +/** + * 考勤预警 + * @param {*} type + * @param {*} prjId + * @returns + */ +const getAttendanceAlert = (type, prjId) => { + return request({ + url: `/manage/bgscreen/labor/getAttendanceAlert/${type}/${prjId}`, + method: "get", + }); +}; + +export default { + groupByWorker, + groupAttendanceLastWeek, + getWorkerCountGroupByType, + groupAttendanceLastWeek, + getRealAttendance, + getAttendanceAlert, +}; diff --git a/yanzhu-bigscreen/src/views/greenCarbon.vue b/yanzhu-bigscreen/src/views/greenCarbon.vue index 3f16b039..f599dede 100644 --- a/yanzhu-bigscreen/src/views/greenCarbon.vue +++ b/yanzhu-bigscreen/src/views/greenCarbon.vue @@ -539,7 +539,7 @@ export default { left: '5%', right: '5%', bottom: '0%', - top: '15%', + top: '5%', containLabel: true, }, tooltip: { diff --git a/yanzhu-bigscreen/src/views/projectLabor.vue b/yanzhu-bigscreen/src/views/projectLabor.vue index fd0ac0c1..5400a617 100644 --- a/yanzhu-bigscreen/src/views/projectLabor.vue +++ b/yanzhu-bigscreen/src/views/projectLabor.vue @@ -2,10 +2,43 @@
{{ attendanceNav == 0 ? "在岗人员" : "今日出勤" }}
+