From 731d07b73a4d311b62d72fe1b8b9d0c4acc2b25c Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 05 十二月 2025 16:42:11 +0800
Subject: [PATCH] 1.海川开心-附件模块无法删除,增加删除选项,附件存在突然多出文件的bug

---
 src/views/reportAnalysis/dataDashboard/index.vue |   29 ++++++++++++++++++++++-------
 1 files changed, 22 insertions(+), 7 deletions(-)

diff --git a/src/views/reportAnalysis/dataDashboard/index.vue b/src/views/reportAnalysis/dataDashboard/index.vue
index 6fe840b..a2d1e1a 100644
--- a/src/views/reportAnalysis/dataDashboard/index.vue
+++ b/src/views/reportAnalysis/dataDashboard/index.vue
@@ -12,6 +12,7 @@
 
       <!-- 椤堕儴鏍囬鏍� -->
       <div class="dashboard-header">
+        <div class="factory-name">{{ userStore.currentFactoryName }}</div>
       </div>
 
       <!-- 涓昏鍐呭鍖哄煙 -->
@@ -53,7 +54,7 @@
 
         <!-- 璐ㄩ噺缁熻 -->
 				<div class="panel-header">
-					<span class="panel-title">璐ㄩ噺缁熻</span>
+					<span class="panel-title">鏈懆璐ㄩ噺缁熻</span>
 				</div>
 				<div class="main-panel">
 					<div class="panel-item-customers">
@@ -173,7 +174,7 @@
         </div>
 				
 				<div class="financial-header">
-					<span class="financial-title">璐㈠姟鍒嗘瀽</span>
+					<span class="financial-title">鏈懆璐㈠姟鍒嗘瀽</span>
 				</div>
 				<div class="main-panel">
 					<div class="panel-item-customers">
@@ -225,7 +226,7 @@
 
         <!-- 鍥炴涓庡紑绁ㄥ垎鏋� -->
          <div class="panel-header">
-					<span class="panel-title">鍥炴涓庡紑绁ㄥ垎鏋�</span>
+					<span class="panel-title">杩戜竴鏈堝洖娆句笌寮�绁ㄥ垎鏋�</span>
 				</div>
         <div class="panel-item-customers" style="padding-top: 60px;">
 					<Echarts ref="chart" :chartStyle="chartStyle" :grid="grid" :legend="lineLegend" :series="lineSeries"
@@ -241,6 +242,7 @@
 import { ref, onMounted, onBeforeUnmount, nextTick } from 'vue'
 import autofit from 'autofit.js'
 import Echarts from "@/components/Echarts/echarts.vue";
+import useUserStore from '@/store/modules/user'
 import {
 	analysisCustomerContractAmounts, getAmountHalfYear,
 	homeTodos,
@@ -258,6 +260,9 @@
 
 // 鍏ㄥ睆鐩稿叧鐘舵��
 const isFullscreen = ref(false);
+
+// 鐢ㄦ埛store
+const userStore = useUserStore()
 
 // 鍝嶅簲寮忔暟鎹�
 const currentTime = ref('')
@@ -667,10 +672,10 @@
 	getLedgerPage(params).then((res) => {
 		equipmentNum.value = res.data.total
 	});
-	getRepairPage(params).then((res) => {
+	getRepairPage({...params, status:0}).then((res) => {
 		equipmentRepair.value = res.data.total
 	});
-	getUpkeepPage(params).then((res) => {
+	getUpkeepPage({...params, status:0}).then((res) => {
 		equipmentMaintain.value = res.data.total
 	});
 	measuringInstrumentListPage(params).then((res) => {
@@ -915,7 +920,7 @@
   // 浣跨敤nextTick纭繚DOM瀹屽叏娓叉煋鍚庡啀鍒濆鍖栧浘琛�
   nextTick(() => {
     // 鍒濆鍖朼utofit鑷�傚簲
-    autofit.init({ dh: 1440, dw: 2560, el: '.data-dashboard', resize: true }, false)
+    autofit.init({ dh: 800, dw: 1280, el: '.data-dashboard', resize: true }, false)
     
     // 娣诲姞鑷姩婊氬姩鍔ㄧ敾鏁堟灉 - 瀹㈡埛淇℃伅鍒楄〃
     const contractList = refContractList.value
@@ -1044,7 +1049,6 @@
   position: relative;
   width: 100%;
 	height: 100%;
-  overflow: hidden;
 	background-image: url("@/assets/BI/backImage@2x.png");
 	background-size: cover;
 	background-position: center;
@@ -1090,6 +1094,17 @@
 	background-size: cover;
 	background-position: center;
 	background-repeat: no-repeat;
+  display: flex;
+  align-items: center;
+  justify-content: center;
+}
+
+.factory-name {
+  font-weight: 600;
+font-size: 52px;
+color: #FFFFFF;
+top: 32px;
+position: absolute;
 }
 
 .fullscreen-btn {

--
Gitblit v1.9.3