From fc8767d2b01d295aaa9e1a8dd2da55e4c0484130 Mon Sep 17 00:00:00 2001
From: Junjie <540245094@qq.com>
Date: 星期五, 16 八月 2024 16:48:31 +0800
Subject: [PATCH] #

---
 zy-asrs-framework/src/main/resources/templates/vue/Index.txt |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/zy-asrs-framework/src/main/resources/templates/vue/Index.txt b/zy-asrs-framework/src/main/resources/templates/vue/Index.txt
index 367711a..41d4884 100644
--- a/zy-asrs-framework/src/main/resources/templates/vue/Index.txt
+++ b/zy-asrs-framework/src/main/resources/templates/vue/Index.txt
@@ -22,6 +22,7 @@
 
 const {
   getColumnSearchProps,
+  handleResizeColumn,
 } = useTableSearch();
 
 const columns = [
@@ -32,6 +33,7 @@
     dataIndex: 'oper',
     key: 'oper',
     width: 140,
+    fixed: 'right',
   },
 ];
 
@@ -148,7 +150,7 @@
     <a-table :row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }"
       :data-source="tableData.records" :defaultExpandAllRows="false" :key="TABLE_KEY" rowKey="id"
       :pagination="{ total: tableData.total, onChange: onPageChange }"
-      :scroll="{ y: 768, scrollToFirstRowOnChange: true }" :columns="columns">
+      :scroll="{ y: 768, scrollToFirstRowOnChange: true }" :columns="columns" @resizeColumn="handleResizeColumn">
       <template #bodyCell="{ column, text, record }">
         <template v-if="column.dataIndex === 'oper'">
           <div style="display: flex;justify-content: space-evenly;">

--
Gitblit v1.9.1