From 5e2aafeede13d337380f736567caf74f49713be7 Mon Sep 17 00:00:00 2001
From: linwe <872216996@qq.com>
Date: Fri, 09 Aug 2024 14:38:32 +0800
Subject: [PATCH] 代码优化
---
src/views/monitor/log/api.vue | 16 ++++++++++++----
1 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/src/views/monitor/log/api.vue b/src/views/monitor/log/api.vue
index 99852c4..acd1e01 100644
--- a/src/views/monitor/log/api.vue
+++ b/src/views/monitor/log/api.vue
@@ -25,29 +25,36 @@
total: 0
},
option: {
+ labelWidth: 96,
+ searchLabelWidth: 72,
+ searchShow: true,
+ searchMenuSpan: 3,
+ menuWidth: 80,
+
height: 'auto',
calcHeight: 30,
tip: false,
- searchShow: true,
- searchMenuSpan: 6,
border: true,
index: true,
viewBtn: true,
editBtn: false,
addBtn: false,
delBtn: false,
- menuWidth: 280,
dialogType: 'drawer',
column: [
{
label: "服务id",
prop: "serviceId",
width: '120',
- search: true
+ searchSpan: 4,
+ search: true,
+ searchLabelWidth: 60,
},
{
label: "服务host",
prop: "serverHost",
+ searchSpan: 4,
+ searchLabelWidth: 86,
search: true
},
{
@@ -135,6 +142,7 @@
this.onLoad(this.page, this.query)
},
onLoad (page, params = {}) {
+ params['type'] = '2'
this.loading = true
getApiList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
const data = res.data.data
--
Gitblit v1.9.3