From c045666cb9bdcacb2aeb2dba4d806db1cd6b3bed Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 20 三月 2026 11:14:18 +0800
Subject: [PATCH] 金鹰黄金 1.新增劳保台账选择岗位刷新人员列表接口修改 2.设备保养、巡检任务要设备可以多选

---
 src/views/equipmentManagement/inspectionManagement/index.vue |   46 +++++++++++++++++++++++++++-------------------
 1 files changed, 27 insertions(+), 19 deletions(-)

diff --git a/src/views/equipmentManagement/inspectionManagement/index.vue b/src/views/equipmentManagement/inspectionManagement/index.vue
index 1096232..63ff08e 100644
--- a/src/views/equipmentManagement/inspectionManagement/index.vue
+++ b/src/views/equipmentManagement/inspectionManagement/index.vue
@@ -33,21 +33,21 @@
         </el-space>
       </div>
       <div>
-        <div>
-          <PIMTable :table-loading="tableLoading"
-                  :table-data="tableData"
-                  :column="tableColumns"
-                  @selection-change="handleSelectionChange"
-                  :is-selection="true"
-										:page="{
-          current: pageNum,
-          size: pageSize,
-          total: total,
-        }"
-										@pagination="handlePagination"
-                  :border="true"
-                  :table-style="{ width: '100%', height: 'calc(100vh - 23em)' }"
-          >
+        <PIMTable :table-loading="tableLoading"
+                :table-data="tableData"
+                :column="tableColumns"
+                @selection-change="handleSelectionChange"
+                @pagination="handlePagination"
+                :is-selection="true"
+                :border="true"
+                :page="{
+                  current: pageNum,
+                  size: pageSize,
+                  total: total,
+                  layout: 'total, sizes, prev, pager, next, jumper'
+                }"
+                :table-style="{ width: '100%', height: 'calc(100vh - 23em)' }"
+        >
           <template #inspector="{ row }">
             <div class="person-tags">
               <!-- 璋冭瘯淇℃伅锛屼笂绾挎椂鍒犻櫎 -->
@@ -66,8 +66,7 @@
               <span v-else class="no-data">--</span>
             </div>
           </template>
-            </PIMTable>
-        </div>
+        </PIMTable>
       </div>
     </el-card>
     <form-dia ref="formDia" @closeDia="handleQuery"></form-dia>
@@ -81,7 +80,6 @@
 import { ElMessageBox } from "element-plus";
 
 // 缁勪欢寮曞叆
-import Pagination from "@/components/Pagination/index.vue";
 import PIMTable from "@/components/PIMTable/PIMTable.vue";
 import FormDia from "@/views/equipmentManagement/inspectionManagement/components/formDia.vue";
 import ViewFiles from "@/views/equipmentManagement/inspectionManagement/components/viewFiles.vue";
@@ -205,7 +203,17 @@
     operationsArr.value = ['edit'];
   } else if (value === "task") {
     const operationColumn = getOperationColumn(['viewFile']);
-    tableColumns.value = [...columns.value, ...(operationColumn ? [operationColumn] : [])];
+    const statusColumn = {
+      prop: "status",
+      label: "浠诲姟鐘舵��",
+      minWidth: 100,
+      dataType: "tag",
+      formatType: (row) => {
+        if (row.status === '宸插贰妫�') return 'success';
+        return 'warning';
+      }
+    };
+    tableColumns.value = [...columns.value, statusColumn, ...(operationColumn ? [operationColumn] : [])];
     operationsArr.value = ['viewFile'];
   }
   pageNum.value = 1;

--
Gitblit v1.9.3