fix: 安全日志查询类型

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

No files matched your search

+1 -1
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}' `;
+2 -2
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;
}