Jelajahi Sumber

reactor:知识库调整;

zhangchong 3 bulan lalu
induk
melakukan
baa80856ac

+ 1 - 17
src/views/knowledge/audit/components/Audit-history.vue

@@ -1,14 +1,5 @@
 <template>
-	<el-dialog v-model="state.dialogVisible" draggable title="审核历史" append-to-body destroy-on-close @opened="opened">
-		<vxe-toolbar
-			ref="toolbarRef"
-			:loading="loading"
-			custom
-			:refresh="{
-				queryMethod: getList,
-			}"
-		>
-		</vxe-toolbar>
+	<el-dialog v-model="state.dialogVisible" draggable title="审核历史" append-to-body destroy-on-close>
 		<vxe-table
 			border
 			:loading="loading"
@@ -80,13 +71,6 @@ const getList = (id: string) => {
 			loading.value = false;
 		});
 };
-const tableRef = ref<RefType>();
-const toolbarRef = ref<RefType>();
-const opened = () => {
-	if (tableRef.value && toolbarRef.value) {
-		tableRef.value.connect(toolbarRef.value);
-	}
-};
 //暴漏变量和方法
 defineExpose({ closeDialog, openDialog });
 </script>

+ 1 - 1
src/views/knowledge/index/YBIndex.vue

@@ -325,7 +325,7 @@
 									{{ formatDate(row.lastModificationTime, 'YYYY-mm-dd HH:MM:SS') }}
 								</template>
 							</vxe-column>
-							<vxe-column title="操作" fixed="right" width="120" align="center">
+							<vxe-column title="操作" fixed="right" width="150" align="center">
 								<template #default="{ row }">
 									<el-button
 										link

+ 3 - 3
src/views/knowledge/index/ZGIndex.vue

@@ -282,7 +282,7 @@
 									{{ formatDate(row.lastModificationTime, 'YYYY-mm-dd HH:MM:SS') }}
 								</template>
 							</vxe-column>
-							<vxe-column title="操作" fixed="right" width="120" align="center">
+							<vxe-column title="操作" fixed="right" width="150" align="center">
 								<template #default="{ row }">
 									<el-button
 										link
@@ -638,13 +638,13 @@ const queryList = () => {
 		.then((response: any) => {
 			state.tableData = response?.result.items ?? [];
 			state.total = response?.result.total;
-			tableRef.value.clearCheckboxRow();
+			tableRef.value?.clearCheckboxRow();
 			checkTable.value = [];
 			state.tableLoading = false;
 		})
 		.catch(() => {
 			state.tableLoading = false;
-			tableRef.value.clearCheckboxRow();
+			tableRef.value?.clearCheckboxRow();
 			checkTable.value = [];
 		});
 };