From 9870b9e10e1d0abcbc91fa2840c9ed6cc2854b68 Mon Sep 17 00:00:00 2001
From: Junjie <540245094@qq.com>
Date: 星期二, 30 七月 2024 13:31:30 +0800
Subject: [PATCH] #

---
 zy-asrs-admin/src/components/order/index.vue |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/zy-asrs-admin/src/components/order/index.vue b/zy-asrs-admin/src/components/order/index.vue
index 35f7132..cb1076e 100644
--- a/zy-asrs-admin/src/components/order/index.vue
+++ b/zy-asrs-admin/src/components/order/index.vue
@@ -28,6 +28,7 @@
 
 const {
   getColumnSearchProps,
+  handleResizeColumn,
 } = useTableSearch();
 
 const columns = [
@@ -185,7 +186,9 @@
 }
 
 const handleExport = async (intl) => {
-  postBlob('/api/order/export', {}).then(result => {
+  postBlob('/api/order/export', {
+    ioModel: props.ioModel
+  }).then(result => {
     const blob = new Blob([result.data], { type: 'application/vnd.ms-excel' });
     window.location.href = window.URL.createObjectURL(blob);
     return true;
@@ -229,7 +232,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