Parcourir la source

refactor(web): 调整 IP 列表和菜单页面的列显示

- 在 IP 列表页面中移除了网关组名称列
- 在菜单页面中添加了规则 ID 列
fusu il y a 1 mois
Parent
commit
06f25f3df8
2 fichiers modifiés avec 5 ajouts et 1 suppressions
  1. 0 1
      web/src/pages/menu/ip-list.vue
  2. 5 0
      web/src/pages/menu/menu1.vue

+ 0 - 1
web/src/pages/menu/ip-list.vue

@@ -13,7 +13,6 @@ const gatewayGroupId = computed(() => Number(route.query.id || 0))
 const columns = shallowRef([
   { title: 'ID', dataIndex: 'id', key: 'id' },
   { title: '网关组ID', dataIndex: 'gatewayGroupId', key: 'gatewayGroupId' },
-  { title: '网关组名称', dataIndex: 'tag', key: 'tag' },
   { title: 'IP地址', dataIndex: 'ip', key: 'ip' },
   { title: '标签', dataIndex: 'tag', key: 'tag' },
   { title: '归属地', dataIndex: 'originPlace', key: 'originPlace' },

+ 5 - 0
web/src/pages/menu/menu1.vue

@@ -17,6 +17,11 @@ const columns = shallowRef([
     dataIndex: 'hostId', // Go 的 host_id -> JSON 的 hostId
     key: 'hostId',
   },
+  {
+    title: '规则ID',
+    dataIndex: 'ruleId',
+    key: 'ruleId',
+  },
   {
     title: '名称',
     dataIndex: 'name',