diff --git a/src/components/Table/src/BasicTable.vue b/src/components/Table/src/BasicTable.vue index 3cc3825b..4422378c 100644 --- a/src/components/Table/src/BasicTable.vue +++ b/src/components/Table/src/BasicTable.vue @@ -47,9 +47,8 @@ @resizable-change="resizableChangeEvent" > - - - + + diff --git a/src/views/baseinfo/infoclient/index.vue b/src/views/baseinfo/infoclient/index.vue index 87912d61..ea4a156d 100644 --- a/src/views/baseinfo/infoclient/index.vue +++ b/src/views/baseinfo/infoclient/index.vue @@ -37,19 +37,15 @@ - - - - + + + + 编辑 + + + + + @@ -72,8 +68,10 @@ const route = useRoute() import { useAppStore } from '/@/store/modules/app' import dayjs from 'dayjs' + // 空数据表格高度 + const tbHeight = window.innerHeight - 250 const appStore = useAppStore() - const [registerTable, { reload, getForm, getSelectRows }] = useTable({ + const [registerTable, { reload, getForm, getVxeSelectRows }] = useTable({ title: '', api: async (p) => { var res = null @@ -170,10 +168,12 @@ width: 60, }, canResize: true, - resizeHeightOffset: 32, + resizeHeightOffset: 15, + autoHeight: tbHeight, immediate: true, + tableComponent: 'vxe', actionColumn: { - width: 80, + width: 60, title: '操作', dataIndex: 'action', fixed: 'right', @@ -190,7 +190,7 @@ async function handleDel() { let ids: any = [] let StateDelType = true - getSelectRows().forEach((item: any) => { + getVxeSelectRows().forEach((item: any) => { if (item.auditStatus == 0) { StateDelType = false } else {