From 42dabe53202fa388ecb4e44e0641ff4a9fa0e07d Mon Sep 17 00:00:00 2001 From: Vce Date: Mon, 3 Jun 2024 18:51:35 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/commandScreen/commandCenter/leftBottom.vue | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/views/commandScreen/commandCenter/leftBottom.vue b/src/views/commandScreen/commandCenter/leftBottom.vue index 19520c1..ca45870 100644 --- a/src/views/commandScreen/commandCenter/leftBottom.vue +++ b/src/views/commandScreen/commandCenter/leftBottom.vue @@ -33,10 +33,10 @@
总包出勤情况分析
人员风险趋势分析
-
+
-
+

暂无数据

@@ -171,6 +171,7 @@ let projectCompanyWorkTotalList = ref([] as any) let xData = ref([] as any) let yData = ref([] as any) //获取总包出勤情况分析数据 +let isFlag = ref(true as any) const queryAttendanceOfEachCompany = async () => { const res: any = await queryAttendanceOfEachCompanyApi({ projectSn: store.sn, @@ -181,7 +182,12 @@ const queryAttendanceOfEachCompany = async () => { projectCompanyWorkTotalList.value = res.result.projectCompanyWorkTotalList xData.value = projectCompanyWorkTotalList.value.map(item => item.enterpriseName.substring(0,4)) yData.value = projectCompanyWorkTotalList.value.map(item => item.attendancePersonNum) - drawBar() + if(projectCompanyWorkTotalList.value.length > 0){ + isFlag = true + drawBar() + }else{ + isFlag = false + } } }; From 02da83ec2d5aa99c35623aaddb5a9b13ca40757d Mon Sep 17 00:00:00 2001 From: Vce Date: Mon, 3 Jun 2024 18:56:13 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=BB=86=E8=8A=82?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/commandScreen/commandCenter/leftBottom.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/commandScreen/commandCenter/leftBottom.vue b/src/views/commandScreen/commandCenter/leftBottom.vue index ca45870..0bfb7b2 100644 --- a/src/views/commandScreen/commandCenter/leftBottom.vue +++ b/src/views/commandScreen/commandCenter/leftBottom.vue @@ -248,7 +248,7 @@ function drawBar() { type: 'slider', start: 0, end: 40, - width:"100%", + width:"98%", height:5, left:"center", bottom:3