From 6033534929c89b35e5a33d36279a6430a025d5fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E6=B4=81?= <209192278@qq.com> Date: Thu, 4 Jan 2024 19:01:23 +0800 Subject: [PATCH] =?UTF-8?q?=E9=82=93=E6=B4=81=20:=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=93=8D=E4=BD=9C=E6=97=A5=E5=BF=97bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/stores/cache.js | 4 ++-- src/views/custom-query/datamodel/index.vue | 14 +++++++++++--- src/views/monitor/operlog/index.vue | 12 +++++++++--- 3 files changed, 22 insertions(+), 8 deletions(-) diff --git a/src/stores/cache.js b/src/stores/cache.js index ea71442..b1a2b7c 100644 --- a/src/stores/cache.js +++ b/src/stores/cache.js @@ -18,10 +18,10 @@ export const useCacheStore = defineStore('cache',()=>{ }) } - const getDict =async (key) => { + const getDict = (key) => { let dict if (!cacheKeyType.value.has(key) ) { - await setCacheKey([key]) + setCacheKey([key]) } dict = cacheKeyType.value.get(key) return dict diff --git a/src/views/custom-query/datamodel/index.vue b/src/views/custom-query/datamodel/index.vue index 7c5adc1..2c6b0a9 100644 --- a/src/views/custom-query/datamodel/index.vue +++ b/src/views/custom-query/datamodel/index.vue @@ -9,8 +9,14 @@ - - + + + @@ -158,7 +164,9 @@ import {Search, Refresh, Delete, Plus, Edit, Download} from '@element-plus/icons import {ElMessage, ElMessageBox} from "element-plus"; import {downLoadExcel} from "@/utils/downloadZip"; import Paging from "@/components/pagination/index.vue"; - +import {useCacheStore} from '@/stores/cache.js' +const cacheStore = useCacheStore() +cacheStore.setCacheKey(['data_source_config']) //查询参数 const queryParams = reactive({ dsName: '', diff --git a/src/views/monitor/operlog/index.vue b/src/views/monitor/operlog/index.vue index 1218b12..d1f4e88 100644 --- a/src/views/monitor/operlog/index.vue +++ b/src/views/monitor/operlog/index.vue @@ -20,7 +20,7 @@ - + @@ -176,7 +176,7 @@ import {useCacheStore} from '@/stores/cache.js' import Paging from "@/components/pagination/index.vue"; const cacheStore = useCacheStore() -cacheStore.setCacheKey(['oper_type']) +cacheStore.setCacheKey(['oper_type','common_state']) import Tag from '@/components/Tag.vue' const queryParams = reactive({ @@ -196,6 +196,7 @@ const dateValue = ref(); const total = ref(); const operIds = ref([]); const disabled = ref(true); +const showTag = ref(true); const isVisited = ref(false); const pageInfo = reactive({ pageSize: 10, @@ -289,8 +290,13 @@ const handleSelect = async (selection) => { } //查看详情 const handleViewDetails = async (operId) => { + showTag.value=false + nextTick(()=>{ + + }) getOperateLogDetail(operId).then(res => { if (res.code === 1000) { + showTag.value=true isVisited.value = true; try { if (res.data.operParam !== null) {