fix: 安全日志查询类型

This commit is contained in:
TsMask
2023-09-27 19:59:18 +08:00
parent 1807cb9214
commit 209eb4377e
2 changed files with 3 additions and 3 deletions

View File

@@ -17,7 +17,7 @@ export async function listSecurityLog(query: Record<string, any>) {
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}' `;

View File

@@ -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;
}