From 0e95d9d2b138de0e498b56377f20f4b8f60a7426 Mon Sep 17 00:00:00 2001 From: wkc <978997012@qq.com> Date: Fri, 27 Feb 2026 14:11:35 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E6=A0=87=E7=AD=BE?= =?UTF-8?q?=E9=A1=B5=E6=95=B0=E9=87=8F=E7=BB=9F=E8=AE=A1=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=EF=BC=8C=E9=80=82=E9=85=8D=E6=96=B0=E7=9A=84=20SearchBar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/views/ccdiProject/index.vue | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/ruoyi-ui/src/views/ccdiProject/index.vue b/ruoyi-ui/src/views/ccdiProject/index.vue index 996b6d5..7b546d7 100644 --- a/ruoyi-ui/src/views/ccdiProject/index.vue +++ b/ruoyi-ui/src/views/ccdiProject/index.vue @@ -9,9 +9,8 @@ @@ -97,6 +96,13 @@ export default { projectName: null, status: null }, + // 标签页数量统计 + tabCounts: { + all: 0, + '0': 0, + '1': 0, + '2': 0 + }, // 新增/编辑弹窗 addDialogVisible: false, addDialogTitle: '新建项目', @@ -120,10 +126,23 @@ export default { this.projectList = response.rows this.total = response.total this.loading = false + // 计算标签页数量 + this.calculateTabCounts() }).catch(() => { this.loading = false }) }, + /** 计算标签页数量 */ + calculateTabCounts() { + // 注意:这里需要后端API返回所有状态的数量统计 + // 目前暂时使用当前页的数据进行计算 + this.tabCounts = { + all: this.total, + '0': this.projectList.filter(p => p.status === '0').length, + '1': this.projectList.filter(p => p.status === '1').length, + '2': this.projectList.filter(p => p.status === '2').length + } + }, /** 搜索按钮操作 */ handleQuery(queryParams) { if (queryParams) {