From 80fc3ebd8c569a55bce822d28eebc7f4b67c99f1 Mon Sep 17 00:00:00 2001
From: TanYibin <5491541@qq.com>
Date: Thu, 12 Oct 2023 11:40:25 +0800
Subject: [PATCH] 接口日志查询接口根据请求内容,响应内容查询时必须选择接口名称

---
 ant-design-vue-jeecg/src/views/system/monitor/ApiLogList.vue | 11 +++++++++++
 1 file changed, 11 insertions(+), 0 deletions(-)

diff --git a/ant-design-vue-jeecg/src/views/system/monitor/ApiLogList.vue b/ant-design-vue-jeecg/src/views/system/monitor/ApiLogList.vue
index f102895..0c5a985 100644
--- a/ant-design-vue-jeecg/src/views/system/monitor/ApiLogList.vue
+++ b/ant-design-vue-jeecg/src/views/system/monitor/ApiLogList.vue
@@ -245,6 +245,17 @@ export default {
     }
   },
   methods: {
+    searchQuery() {
+      if (!!this.queryParam.requestBody && this.queryParam.requestBody != '**' && !this.queryParam.apiName) {
+        this.$message.warning('请选择接口名称!');
+        return
+      }
+      if (!!this.queryParam.responseBody && this.queryParam.responseBody != '**' && !this.queryParam.apiName) {
+        this.$message.warning('请选择接口名称!');
+        return
+      }
+      this.loadData(1, this.value)
+    },
     searchReset() {
       let that = this;
       Object.keys(that.queryParam).forEach(function (key) {
--
libgit2 0.22.2