From 209eb4377e9462edc6371570053768eca3ebba3d Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Wed, 27 Sep 2023 19:59:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AE=89=E5=85=A8=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/logManage/security.ts | 2 +- src/views/logManage/security/index.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api/logManage/security.ts b/src/api/logManage/security.ts index 137fac8e..a08dba25 100644 --- a/src/api/logManage/security.ts +++ b/src/api/logManage/security.ts @@ -17,7 +17,7 @@ export async function listSecurityLog(query: Record) { querySQL += ` and account_name like '%${query.accountName}%' `; } if (query.opType) { - querySQL += ` and op_type = ${query.opType} `; + querySQL += ` and op_type = '${query.opType}' `; } if (query.beginTime) { querySQL += ` and op_time >= '${query.beginTime}' `; diff --git a/src/views/logManage/security/index.vue b/src/views/logManage/security/index.vue index 123d616e..b0d5b8f9 100644 --- a/src/views/logManage/security/index.vue +++ b/src/views/logManage/security/index.vue @@ -184,8 +184,8 @@ function fnGetList() { } onMounted(() => { - // 初始字典数据 - Promise.allSettled([getDict('security_log_type')]).then(resArr => { + // 初始字典数据 + Promise.allSettled([getDict('security_log_type')]).then(resArr => { if (resArr[0].status === 'fulfilled') { dict.securityLogType = resArr[0].value; }