From b29f498748d92f28fea2d5d187fde4b518354d3c Mon Sep 17 00:00:00 2001 From: songlh Date: Thu, 6 Jun 2024 11:08:58 +0800 Subject: [PATCH] feat: update topology view --- .../cmdb/components/searchForm/SearchForm.vue | 636 +++++++++--------- cmdb-ui/src/modules/cmdb/lang/en.js | 1 + cmdb-ui/src/modules/cmdb/lang/zh.js | 1 + .../cmdb/views/topology_view/index.vue | 415 +++++++++++- 4 files changed, 703 insertions(+), 350 deletions(-) diff --git a/cmdb-ui/src/modules/cmdb/components/searchForm/SearchForm.vue b/cmdb-ui/src/modules/cmdb/components/searchForm/SearchForm.vue index c783920..bbb65c6 100644 --- a/cmdb-ui/src/modules/cmdb/components/searchForm/SearchForm.vue +++ b/cmdb-ui/src/modules/cmdb/components/searchForm/SearchForm.vue @@ -1,317 +1,319 @@ - - - - - - + + + + + + diff --git a/cmdb-ui/src/modules/cmdb/lang/en.js b/cmdb-ui/src/modules/cmdb/lang/en.js index 22e9d5d..539b0a5 100644 --- a/cmdb-ui/src/modules/cmdb/lang/en.js +++ b/cmdb-ui/src/modules/cmdb/lang/en.js @@ -589,6 +589,7 @@ if __name__ == "__main__": confirmDeleteView: 'Are you sure you want to delete this view ?', noInstancePerm: 'You do not have read permissions for this instance', noPreferenceAttributes: 'This instance has no subscription attributes or no default displayed attributes', + topoViewSearchPlaceholder: 'Please enter the node name.' }, } export default cmdb_en diff --git a/cmdb-ui/src/modules/cmdb/lang/zh.js b/cmdb-ui/src/modules/cmdb/lang/zh.js index 35b6a1b..3daf592 100644 --- a/cmdb-ui/src/modules/cmdb/lang/zh.js +++ b/cmdb-ui/src/modules/cmdb/lang/zh.js @@ -589,6 +589,7 @@ if __name__ == "__main__": confirmDeleteView: '您确定要删除该视图吗?', noInstancePerm: '您没有该实例的查看权限', noPreferenceAttributes: '该实例没有订阅属性或者没有默认展示的属性', + topoViewSearchPlaceholder: '请输入节点名字' }, } export default cmdb_zh diff --git a/cmdb-ui/src/modules/cmdb/views/topology_view/index.vue b/cmdb-ui/src/modules/cmdb/views/topology_view/index.vue index dc8377f..726315c 100644 --- a/cmdb-ui/src/modules/cmdb/views/topology_view/index.vue +++ b/cmdb-ui/src/modules/cmdb/views/topology_view/index.vue @@ -140,12 +140,33 @@