🔨 添加执行超时.

This commit is contained in:
lijiahang
2024-03-19 19:28:21 +08:00
parent 29e3565af9
commit d4039501b2
13 changed files with 105 additions and 40 deletions

View File

@@ -68,7 +68,7 @@
<script lang="ts" setup>
import type { OperatorLogQueryRequest, OperatorLogQueryResponse } from '@/api/user/operator-log';
import { ref, onMounted, onBeforeMount } from 'vue';
import { ref, onMounted } from 'vue';
import { operatorLogModuleKey, operatorLogTypeKey, operatorRiskLevelKey, operatorLogResultKey, dictKeys } from '../types/const';
import columns from '../types/table.columns';
import { getLogDetail } from '../types/const';
@@ -146,14 +146,12 @@
fetchTableData
});
// 加载字典值
onBeforeMount(async () => {
// 初始化
onMounted(async () => {
// 加载字典值
const dictStore = useDictStore();
await dictStore.loadKeys(dictKeys);
});
// 初始化
onMounted(() => {
// 设置表格列
let cols = columns.map(s => {
return { ...s };
}).filter(s => s.dataIndex !== 'username');
@@ -168,6 +166,7 @@
cols = cols.filter(s => s.dataIndex !== 'handle');
}
tableColumns.value = cols;
// 加载数据
fetchTableData();
});