diff --git a/src/components/Table/src/BasicTable.vue b/src/components/Table/src/BasicTable.vue
index bca27546..2a04c48a 100644
--- a/src/components/Table/src/BasicTable.vue
+++ b/src/components/Table/src/BasicTable.vue
@@ -51,13 +51,15 @@
@cell-dblclick="dbclickVxeRow"
@sort-change="sortChangeEvent"
@resizable-change="resizableChangeEvent"
+ @radio-change="rowChange"
+ @checkbox-change="rowChange"
>
-
+
{
+ emit('row-change', data)
+ }
return {
vxeSetId,
formRef,
@@ -549,7 +556,8 @@ export default defineComponent({
resizeColumn,
reload,
updateCol,
- numberCol
+ numberCol,
+ rowChange
}
},
})
diff --git a/src/components/Table/src/props.ts b/src/components/Table/src/props.ts
index d638d953..d8dd7047 100644
--- a/src/components/Table/src/props.ts
+++ b/src/components/Table/src/props.ts
@@ -103,7 +103,7 @@ export const basicProps = {
resizeHeightOffset: propTypes.number.def(0),
rowSelection: {
type: Object as PropType,
- default: null,
+ default: { type: 'checkbox' },
},
title: {
type: [String, Function] as PropType string)>,
diff --git a/src/views/operation/seaexport/index.vue b/src/views/operation/seaexport/index.vue
index 0dec3100..121879f3 100644
--- a/src/views/operation/seaexport/index.vue
+++ b/src/views/operation/seaexport/index.vue
@@ -1,7 +1,7 @@
-
+
@@ -504,6 +504,9 @@ const [registerTable, { reload, getVxeSelectRows, setLoading, getColumns }] = us
indexColumnProps: {
width: 60,
},
+ rowSelection: {
+ type: 'radio'
+ },
canResize: true,
resizeHeightOffset: 131,
immediate: false,
@@ -517,6 +520,9 @@ const [registerTable, { reload, getVxeSelectRows, setLoading, getColumns }] = us
// fixed: 'right'
// }
})
+const rowChange = (data) => {
+ console.log(data)
+}
function editColumns(row) {
if (row.mblno) {
go(`/BookingDetail?id=${row.id}&source=edit&mblno=${row.mblno}`)