From 81fb3a84f364d3957d5ef1db25bc6d05d08f34b7 Mon Sep 17 00:00:00 2001
From: dongyukun <1208714201@qq.com>
Date: 星期三, 11 六月 2025 17:06:27 +0800
Subject: [PATCH] 快照配置分页

---
 src/views/model/sche/suggest/suggestOperationRecord.vue |   32 +++++++++++++++-----------------
 1 files changed, 15 insertions(+), 17 deletions(-)

diff --git a/src/views/model/sche/suggest/suggestOperationRecord.vue b/src/views/model/sche/suggest/suggestOperationRecord.vue
index e666add..c66c2aa 100644
--- a/src/views/model/sche/suggest/suggestOperationRecord.vue
+++ b/src/views/model/sche/suggest/suggestOperationRecord.vue
@@ -21,12 +21,13 @@
           label="结果code"
           header-align="center"
           align="left"
-          min-width="150"
+          min-width="50"
         />
         <el-table-column
           prop="resultData"
           label="结果数据"
           header-align="center"
+          min-width="150"
           align="center"
         />
         <el-table-column
@@ -34,34 +35,30 @@
           label="操作"
           header-align="center"
           align="center"
-          min-width="150"
+          min-width="50"
+        />
+        <el-table-column
+          prop="reason"
+          label="原因"
+          header-align="center"
+          align="center"
+          min-width="100"
         />
         <el-table-column
           prop="handler"
           label="处理人"
           header-align="center"
           align="center"
-          min-width="150"
+          min-width="100"
         />
         <el-table-column
           prop="handleTime"
           label="处理时间"
+          :formatter="dateFormatter"
           header-align="center"
           align="center"
-          min-width="150"
+          min-width="100"
         />
-        <el-table-column label="快照" align="center" min-width="100" fixed="right">
-          <template #default="scope">
-            <el-button
-              link
-              type="primary"
-              @click="openSnapshot(scope.row.id)"
-              v-if="scope.row.operate=='采纳建议'"
-            >
-              快照
-            </el-button>
-          </template>
-        </el-table-column>
       </el-table>
       <!-- 分页 -->
       <Pagination
@@ -79,6 +76,7 @@
   import type {DrawerProps} from 'element-plus'
   import { getSuggestOperationRecordPage } from '@/api/model/sche/suggest/suggestOperationRecord';
   import SuggestSnapshot from './suggestSnapshot.vue'
+  import {dateFormatter} from '@/utils/formatTime'
   import {ref} from "vue";
 
   defineOptions({name: 'SuggestOperationRecord'})
@@ -121,7 +119,7 @@
   /** 快照 */
   const suggestSnapshotRef = ref()
   const openSnapshot = (id?: string) => {
-    suggestSnapshotRef.value.openSnapshot(id)
+    suggestSnapshotRef.value.open(id)
   }
 
   /** 打开弹窗 */

--
Gitblit v1.9.3