diff --git a/web/src/pages/fastrunner/api/components/ApiList.vue b/web/src/pages/fastrunner/api/components/ApiList.vue
index 7f57281..00bf286 100644
--- a/web/src/pages/fastrunner/api/components/ApiList.vue
+++ b/web/src/pages/fastrunner/api/components/ApiList.vue
@@ -132,7 +132,7 @@
ref="tree"
>
{{ node.label }}
@@ -174,7 +174,7 @@
ref="tree"
>
{{ node.label }}
@@ -211,7 +211,7 @@
-
+
@@ -233,10 +233,13 @@
{{ scope.row.method.toUpperCase() }}
+
+ {{ scope.row.relation_name }}
+
-
{{ scope.row.url }}
-
{{ scope.row.name }}
-
-
-
-
+
+ {{ scope.row.url }}
+
+
+ {{ scope.row.name }}
+
+
+ 被引用: {{ scope.row.cases.length }} 次
+
@@ -457,7 +463,7 @@ export default {
this.currentPage = newValue
},
- // 监听只看自己按钮的状态
+ // 监只看自己按钮的状态
onlyMe() {
this.getAPIList()
},
@@ -763,7 +769,7 @@ export default {
cellMouseLeave(row) {
this.currentRow = '';
- }
+ },
}
,
mounted() {
@@ -785,4 +791,52 @@ export default {
.recordapi__header--item {
margin: 0 8px;
}
+
+.block-method {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ height: 24px; /* 设置一个固定高度 */
+ padding: 0 8px;
+ font-size: 12px;
+ border-radius: 4px;
+ margin-right: 5px;
+}
+
+.block_method_color {
+ color: white;
+}
+
+.block_method_group {
+ background-color: #67c23a;
+}
+
+.block_method_cases {
+ background-color: #409eff;
+}
+
+
+/* 如果需要调整间距 */
+.block > * {
+ margin-right: 5px;
+}
+
+/* 确保 YAPI 标签也保持一致的高度 */
+.block_method_options {
+ height: 24px;
+ line-height: 24px;
+}
+
+.text-ellipsis {
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ max-width: 200px; /* 根据需要调整 */
+ display: inline-block;
+}
+
+.block_url {
+ max-width: 250px; /* 根据需要调整 */
+}
+