From 2f3f713465e0a538dfa49fc187b8b8d84b3f0a55 Mon Sep 17 00:00:00 2001
From: buhuazhen <hua100783@gmail.com>
Date: 星期三, 27 五月 2026 17:18:48 +0800
Subject: [PATCH] feat 页面显示巡检状态
---
src/views/equipmentManagement/inspectionManagement/index.vue | 23 ++++++++++++++++++++++-
1 files changed, 22 insertions(+), 1 deletions(-)
diff --git a/src/views/equipmentManagement/inspectionManagement/index.vue b/src/views/equipmentManagement/inspectionManagement/index.vue
index d80d29a..3677ec8 100644
--- a/src/views/equipmentManagement/inspectionManagement/index.vue
+++ b/src/views/equipmentManagement/inspectionManagement/index.vue
@@ -70,6 +70,17 @@
class="no-data">--</span>
</div>
</template>
+ <template #status="{ row }">
+ <el-tag v-if="row.status === 'EXPIRED'"
+ type="danger"
+ size="small">宸茶繃鏈�</el-tag>
+ <el-tag v-else-if="row.status === 'IN_PROGRESS'"
+ type="warning"
+ size="small">宸℃涓�</el-tag>
+ <el-tag v-else
+ type="info"
+ size="small">寰呭贰妫�</el-tag>
+ </template>
</PIMTable>
</div>
</el-card>
@@ -127,7 +138,7 @@
const pageNum = ref(1);
const pageSize = ref(10);
- // 鍒楅厤缃�
+ // 鍒楅厤缃紙鍩虹鍒楋紝涓嶅惈鐘舵�侊級
const columns = ref([
{ prop: "taskName", label: "宸℃浠诲姟鍚嶇О", minWidth: 160 },
{ prop: "remarks", label: "澶囨敞", minWidth: 150 },
@@ -227,6 +238,15 @@
radioChange("taskManage");
});
+ // 鐘舵�佸垪閰嶇疆锛堜粎瀹氭椂浠诲姟璁板綍鏄剧ず锛�
+ const statusColumn = {
+ prop: "status",
+ label: "鐘舵��",
+ minWidth: 100,
+ dataType: "slot",
+ slot: "status"
+ };
+
// 鍗曢�夊彉鍖�
const radioChange = value => {
if (value === "taskManage") {
@@ -240,6 +260,7 @@
const operationColumn = getOperationColumn(["upload", "viewFile"]);
tableColumns.value = [
...columns.value,
+ statusColumn, // 瀹氭椂浠诲姟璁板綍娣诲姞鐘舵�佸垪
...(operationColumn ? [operationColumn] : []),
];
operationsArr.value = ["upload", "viewFile"];
--
Gitblit v1.9.3