From c281636ad51ca0a6bf6e5ea953e1dad8dfd85594 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期日, 19 十月 2025 16:42:38 +0800
Subject: [PATCH] fix: bug
---
src/components/Dialog/OperateHistoryLogDialog.vue | 23 +++++++++++------------
1 files changed, 11 insertions(+), 12 deletions(-)
diff --git a/src/components/Dialog/OperateHistoryLogDialog.vue b/src/components/Dialog/OperateHistoryLogDialog.vue
index 0970604..d751cd0 100644
--- a/src/components/Dialog/OperateHistoryLogDialog.vue
+++ b/src/components/Dialog/OperateHistoryLogDialog.vue
@@ -24,8 +24,7 @@
</template>
<script setup lang="ts">
-import { ProDialog, ProTableV2, ProDialogTableWrapper } from '@bole-core/components';
-import { useTableLogList } from '@/hooks';
+import { ProDialog, ProTableV2, ProDialogTableWrapper, defineColumns } from '@bole-core/components';
defineOptions({
name: 'OperateHistoryLogDialog',
@@ -34,7 +33,8 @@
type Props = {
modelValue: boolean;
relationId: string;
- operateType?: number;
+ getList: (pageIndex?: number) => Promise<void>;
+ proTableProps: any;
};
const props = withDefaults(defineProps<Props>(), {
@@ -59,18 +59,17 @@
() => props.modelValue,
async (visible, oldVisible) => {
if (!oldVisible && visible) {
- await getList();
- state.loading = false;
+ await props.getList();
}
}
);
-function onDialogClose() {
- state.loading = true;
-}
+const OperateHistoryTableColumns = defineColumns([
+ { id: '1', enCode: 'createdUser', name: '鎿嶄綔浜�' },
+ { id: '2', enCode: 'createdTime', name: '鎿嶄綔鏃堕棿', width: 180 },
+ { id: '3', enCode: 'operate', name: '鎿嶄綔' },
+ { id: '4', enCode: 'content', name: '鎿嶄綔鍐呭' },
+]);
-const { getList, proTableProps, state, OperateHistoryTableColumns } = useTableLogList({
- relationId: toRef(props, 'relationId'),
- operateType: toRef(props, 'operateType'),
-});
+function onDialogClose() {}
</script>
--
Gitblit v1.9.1