From 25c4a213b1b85a3575b4bccbb647038e3bc03df6 Mon Sep 17 00:00:00 2001
From: zhangxiaomeng <1362468712@qq.com>
Date: Tue, 11 Feb 2025 16:39:21 +0800
Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E8=B0=B1=E6=96=B0=E5=A2=9E=E8=8A=82?=
=?UTF-8?q?=E7=82=B9=E4=BB=A5=E5=8F=8A=E4=BF=AE=E6=94=B9=E8=8A=82=E7=82=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
kcui/src/api/kcInfo.js | 13 +
kcui/src/view/DhInfo.vue | 2 +-
kcui/src/view/Graph.vue | 445 +++++++++++--
kcui/src/view/JsInfo.vue | 2 +-
kcui/src/view/SpInfo.vue | 3 +-
kcui/src/view/TWInfo.vue | 2 +-
.../main/woka/Web/Controller/KcInfoController.java | 731 +++++++++++++++++++++
.../woka/Web/Controller/KcTlFileController.java | 4 +-
src/main/java/com/main/woka/Web/Dao/KcInfo.java | 11 +
src/main/resources/Mapper/KcFileMapper.xml | 1 +
src/main/resources/Mapper/KcInfoRelationMapper.xml | 10 +-
11 files changed, 1172 insertions(+), 52 deletions(-)
diff --git a/kcui/src/api/kcInfo.js b/kcui/src/api/kcInfo.js
index f98c4e7..2f0b105 100644
--- a/kcui/src/api/kcInfo.js
+++ b/kcui/src/api/kcInfo.js
@@ -71,3 +71,16 @@ export function getInfo(params) {
}
})
}
+
+
+export function editInfoGraph(data) {
+ return request({
+ url: '/kcDoc/editInfoGraph',
+ method: 'post',
+ data:data,
+ headers: {
+ 'Authorization': 'Bearer '+ getToken() // 将 token 放在请求头中
+ }
+ })
+}
+
diff --git a/kcui/src/view/DhInfo.vue b/kcui/src/view/DhInfo.vue
index 4fafe14..ee3113d 100644
--- a/kcui/src/view/DhInfo.vue
+++ b/kcui/src/view/DhInfo.vue
@@ -195,7 +195,7 @@ export default {
{id: 2, name: "动画显示", info: "DhInfo"},
{id: 3, name: "计算模块", info: "JsInfo"},
{id: 4, name: "知识图谱", info: "Graph"},
- {id: 4, name: "帮助文档", info: "Help"}
+ {id: 5, name: "帮助文档", info: "Help"}
],
page: "动画显示",
typeList: ["全部", "起降", "飞行", "通信载荷使用", "探测载荷使用", "攻击载荷使用"],
diff --git a/kcui/src/view/Graph.vue b/kcui/src/view/Graph.vue
index 849bfa9..0a456c7 100644
--- a/kcui/src/view/Graph.vue
+++ b/kcui/src/view/Graph.vue
@@ -24,7 +24,8 @@