加滚动条

This commit is contained in:
zoujiandong 2023-09-12 15:43:39 +08:00
parent d3aa9d7f45
commit 465875b39b
2 changed files with 9 additions and 7 deletions

View File

@ -64,6 +64,7 @@
<!-- table -->
<a-table
:columns="columns"
:scroll="{ x: 2000 }"
:data="tableData"
:pagination="{
'show-total': true,
@ -548,12 +549,12 @@ let batchList = [];
// Table Columns
const columns = [
{ title: '排序', dataIndex: 'post_id', slotName: 'post_id' },
{ title: '排序', dataIndex: 'post_id', slotName: 'post_id',width:"100" },
{ title: '订单编号', dataIndex: 'order_product_no' },
{ title: '处方编号', dataIndex: 'order_prescription_id' },
{ title: '医生姓名', dataIndex: 'doctor_name' },
{ title: '就诊人', dataIndex: 'patient_name_mask',slotName:'patient_name_mask' },
{ title: '就诊人联系电话', dataIndex: 'patient_mobile' },
{ title: '就诊人联系电话', dataIndex: 'patient_mobile',width:130 },
{ title: '订单金额', dataIndex: 'amount_total',slotName:'amount_total' },
{ title: '实付金额', dataIndex: 'payment_amount_total',slotName:'payment_amount_total' },
{ title: '支付方式', dataIndex: 'pay_channel', slotName: 'pay_channel' },
@ -563,7 +564,7 @@ const columns = [
slotName: 'order_product_status',
},
{ title: '支付时间', dataIndex: 'pay_time', slotName: 'pay_time' },
{ title: '操作', slotName: 'action' },
{ title: '操作', slotName: 'action',fixed: "right", width: 100 },
];
// Table Data

View File

@ -47,6 +47,7 @@
<!-- table -->
<a-table
:columns="columns"
:scroll="{ x: 1600 }"
:data="tableData"
:pagination="{ 'show-total': true, 'show-jumper': true, 'show-page-size': true, total: pager.total, current: currentPage }"
:row-selection="{ type: 'checkbox', showCheckedAll: true }"
@ -378,17 +379,17 @@ let batchList = [];
// Table Columns
const columns = [
{ title: '排序', dataIndex: 'post_id',slotName: 'post_id' },
{ title: '订单编号', dataIndex: 'inquiry_no' },
{ title: '排序', dataIndex: 'post_id',slotName: 'post_id',width: 100 },
{ title: '订单编号', dataIndex: 'inquiry_no',width:200 },
{ title: '医生姓名', dataIndex: 'doctor_name' },
{ title: '就诊人', dataIndex: 'patient_name',slotName:'patient_name' },
{ title: '联系电话', dataIndex: 'patient_mobile' },
{ title: '联系电话', dataIndex: 'patient_mobile',width: 130 },
{ title: '订单金额', dataIndex: 'amount_total',slotName:'amount_total' },
{ title: '实付金额', dataIndex: 'payment_amount_total',slotName:'payment_amount_total' },
{ title: '支付方式', dataIndex: 'inquiry_pay_channel',slotName: 'inquiry_pay_channel'},
{ title: '订单状态', dataIndex: 'inquiry_status', slotName:'inquiry_status' },
{ title: '支付时间', dataIndex: 'pay_time', slotName: 'pay_time' },
{ title: '操作', slotName: 'action' },
{ title: '操作', slotName: 'action',fixed: "right", width: 100 },
];
// Table Data