diff --git a/vue/src/components/Menu.vue b/vue/src/components/Menu.vue index 02b2de8..8b59440 100644 --- a/vue/src/components/Menu.vue +++ b/vue/src/components/Menu.vue @@ -87,7 +87,7 @@ const menuItems = ref([ }, { name: '知识图谱构建', - path: '/kg-construction', + path: '/kg-builder', icon: '🔧' }, { @@ -99,7 +99,12 @@ const menuItems = ref([ name: '知识图谱数据', path: '/kg-data', icon: '📊' - } + }, + { + name: '图谱可视化设置', + path: '/kg-style', + icon: '' + }, ]); // 活跃菜单索引 diff --git a/vue/src/router/index.js b/vue/src/router/index.js index 210bc9d..71eb23b 100644 --- a/vue/src/router/index.js +++ b/vue/src/router/index.js @@ -3,6 +3,8 @@ import Login from '../system/Login.vue' import Index from '../system/Index.vue' import Profile from '../system/Profile.vue' import Display from '../system/GraphDemo.vue' +import Builder from '../system/GraphBuilder.vue' +import Style from '../system/GraphStyle.vue' const routes = [ { path: '/', @@ -28,6 +30,16 @@ const routes = [ path: '/kg-display', name: 'Display', component: Display + }, + { + path: '/kg-builder', + name: 'Builder', + component: Builder + }, + { + path: '/kg-style', + name: 'Style', + component: Style } ] diff --git a/vue/src/system/GraphBuilder.vue b/vue/src/system/GraphBuilder.vue new file mode 100644 index 0000000..bfed56c --- /dev/null +++ b/vue/src/system/GraphBuilder.vue @@ -0,0 +1,272 @@ + + + + + \ No newline at end of file diff --git a/vue/src/system/GraphDemo.vue b/vue/src/system/GraphDemo.vue index a952f8d..6b83f5c 100644 --- a/vue/src/system/GraphDemo.vue +++ b/vue/src/system/GraphDemo.vue @@ -3,147 +3,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@@ -201,7 +60,7 @@ import Menu from "@/components/Menu.vue"; import {a} from "vue-router/dist/devtools-EWN81iOl.mjs"; export default { - name: 'GraphDemo', + name: 'Display', components: {Menu}, data() { return { @@ -255,7 +114,6 @@ export default { { key: 'Other', label: '其他', color: '#336eee' } ], visibleCategories: new Set(), // 先空着 - } }, diff --git a/vue/src/system/GraphStyle.vue b/vue/src/system/GraphStyle.vue new file mode 100644 index 0000000..da24385 --- /dev/null +++ b/vue/src/system/GraphStyle.vue @@ -0,0 +1,788 @@ + + + + + \ No newline at end of file