From 04fd71bcdd2f4d13f7fcb1f59952f6decdbb3d65 Mon Sep 17 00:00:00 2001
From: Junjie <540245094@qq.com>
Date: 星期一, 09 九月 2024 08:23:32 +0800
Subject: [PATCH] #

---
 zy-asrs-admin/src/views/base/mat/index.vue |   31 ++++++++++++++++++++++++++++++-
 1 files changed, 30 insertions(+), 1 deletions(-)

diff --git a/zy-asrs-admin/src/views/base/mat/index.vue b/zy-asrs-admin/src/views/base/mat/index.vue
index eb7d5f5..47f7cf4 100644
--- a/zy-asrs-admin/src/views/base/mat/index.vue
+++ b/zy-asrs-admin/src/views/base/mat/index.vue
@@ -23,6 +23,7 @@
 
 const {
   getColumnSearchProps,
+  handleResizeColumn,
 } = useTableSearch();
 
 const state = reactive({
@@ -45,6 +46,13 @@
 };
 
 state.columns = [
+  {
+    title: '#ID',
+    dataIndex: 'id',
+    width: 140,
+    ellipsis: true,
+    ...getColumnSearchProps('id'),
+  },
   {
     title: formatMessage('db.man_mat.tag_id', '鎵�灞炲綊绫�'),
     dataIndex: 'tagId$',
@@ -212,6 +220,27 @@
     width: 140,
     ellipsis: true,
     ...getColumnSearchProps('deadTime'),
+  },
+  {
+    title: formatMessage('db.man_mat.safeStockLimit', '瀹夊叏搴撳瓨涓婇檺'),
+    dataIndex: 'safeStockLimit',
+    width: 140,
+    ellipsis: true,
+    ...getColumnSearchProps('safeStockLimit'),
+  },
+  {
+    title: formatMessage('db.man_mat.safeStockMinimum', '瀹夊叏搴撳瓨涓嬮檺'),
+    dataIndex: 'safeStockMinimum',
+    width: 140,
+    ellipsis: true,
+    ...getColumnSearchProps('safeStockMinimum'),
+  },
+  {
+    title: formatMessage('db.man_mat.validity', '鏈夋晥鏈�'),
+    dataIndex: 'validity',
+    width: 140,
+    ellipsis: true,
+    ...getColumnSearchProps('validity'),
   },
 
   {
@@ -417,7 +446,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="state.columns">
+      :scroll="{ y: 768, scrollToFirstRowOnChange: true }" :columns="state.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