|
|
@@ -97,7 +97,7 @@ const gridOptions: VxeGridProps<any> = {
|
|
|
],
|
|
|
};
|
|
|
|
|
|
-const [Grid] = useVbenVxeGrid({ gridOptions, formOptions });
|
|
|
+const [Grid, gridApi] = useVbenVxeGrid({ gridOptions, formOptions });
|
|
|
|
|
|
const [Modal, modalApi] = useVbenModal({
|
|
|
fullscreenButton: false,
|
|
|
@@ -120,6 +120,10 @@ function handleEdit(row: any) {
|
|
|
function handleDetail(row: any) {
|
|
|
modalApi.setData({ formType: 'detail', row }).open();
|
|
|
}
|
|
|
+
|
|
|
+function handleFinish() {
|
|
|
+ gridApi.reload();
|
|
|
+}
|
|
|
</script>
|
|
|
|
|
|
<template>
|
|
|
@@ -143,6 +147,6 @@ function handleDetail(row: any) {
|
|
|
/>
|
|
|
</template>
|
|
|
</Grid>
|
|
|
- <Modal />
|
|
|
+ <Modal @finish="handleFinish" />
|
|
|
</Page>
|
|
|
</template>
|