From 9d485123b8c947f61c94aee67a0ceec8953a510d Mon Sep 17 00:00:00 2001
From: yaowanxin <3588231647@qq.com>
Date: 星期五, 30 一月 2026 17:36:56 +0800
Subject: [PATCH] 用印管理、规章制度管理页面添加分页功能
---
src/views/reportAnalysis/dataDashboard/components/basic/center-top.vue | 43 ++++++++++++++++++++++---------------------
1 files changed, 22 insertions(+), 21 deletions(-)
diff --git a/src/views/reportAnalysis/dataDashboard/components/basic/center-top.vue b/src/views/reportAnalysis/dataDashboard/components/basic/center-top.vue
index 40ac9da..950038e 100644
--- a/src/views/reportAnalysis/dataDashboard/components/basic/center-top.vue
+++ b/src/views/reportAnalysis/dataDashboard/components/basic/center-top.vue
@@ -95,7 +95,7 @@
<div class="todo-division">寰呭姙浜嬬敱锛歿{ item.approveReason }}</div>
<div style="display: flex;justify-content: space-between;align-items: center;"
>
- <div class="todo-title">鐢宠绫诲瀷锛歿{ item.approveId }}</div>
+ <div class="todo-title">鐢宠绫诲瀷锛歿{ item.approveTypeName }}</div>
<div class="todo-division">鐢宠閮ㄩ棬锛歿{ item.approveDeptName }}</div>
<div class="todo-time">{{ item.approveTime }}</div>
</div>
@@ -111,10 +111,7 @@
<script setup>
import { ref, onMounted, onBeforeUnmount, nextTick } from 'vue'
-import { homeTodos } from '@/api/viewIndex.js'
-import { staffOnJobListPage } from '@/api/personnelManagement/employeeRecord.js'
-import { listCustomer } from '@/api/basicData/customerFile.js'
-import { listSupplier } from '@/api/basicData/supplierManageFile.js'
+import { homeTodos, summaryStatistics } from '@/api/viewIndex.js'
import { getLedgerPage } from '@/api/equipmentManagement/ledger.js'
import { getRepairPage } from '@/api/equipmentManagement/repair.js'
import { getUpkeepPage } from '@/api/equipmentManagement/upkeep.js'
@@ -124,10 +121,10 @@
const totalStaff = ref(0)
const totalCustomers = ref(0)
const totalSuppliers = ref(0)
-// 鍚屾瘮锛堝崰浣嶅�硷紝鍙帴鍏ョ湡瀹炴帴鍙o級
-const staffYoY = ref(-0.52) // 绀轰緥锛�-0.52%
-const customersYoY = ref(0.82) // 绀轰緥锛�0.82%
-const suppliersYoY = ref(0.1) // 绀轰緥锛�0.10%
+// 鍚屾瘮
+const staffYoY = ref(0)
+const customersYoY = ref(0)
+const suppliersYoY = ref(0)
const equipmentNum = ref(0)
const equipmentRepair = ref(0)
const equipmentMaintain = ref(0)
@@ -146,18 +143,15 @@
// 鑾峰彇鍛樺伐銆佸鎴枫�佷緵搴斿晢鏁伴噺
const getNum = () => {
- const params = {
- pageNum: -1,
- pageSize: -1,
- }
- staffOnJobListPage({ ...params, staffState: 1 }).then((res) => {
- totalStaff.value = res.data.total
- })
- listCustomer(params).then((res) => {
- totalCustomers.value = res.total
- })
- listSupplier(params).then((res) => {
- totalSuppliers.value = res.data.total
+ summaryStatistics().then((res) => {
+ totalStaff.value = res.data.totalStaff
+ staffYoY.value = res.data.staffGrowthRate
+ totalCustomers.value = res.data.totalCustomer
+ customersYoY.value = res.data.customerGrowthRate
+ totalSuppliers.value = res.data.totalSupplier
+ suppliersYoY.value = res.data.supplierGrowthRate
+ }).catch(err => {
+ console.error('鑾峰彇鍩虹缁熻鏁版嵁澶辫触:', err)
})
}
@@ -348,6 +342,11 @@
color: #d0e7ff;
}
+.card-compare > span:first-child {
+ font-size: 13px;
+ opacity: 0.8;
+}
+
.compare-value {
font-weight: 600;
}
@@ -372,6 +371,7 @@
border: 1px solid #1a58b0;
padding: 18px;
height: 240px;
+ padding-top: 0px;
}
.equipment-header {
@@ -442,6 +442,7 @@
background-position: center;
background-repeat: no-repeat;
padding: 20px;
+ padding-top: 10px;
height: 186px;
}
--
Gitblit v1.9.3