From daafbcf7ce3951c5c5c191eef9787754315d22aa Mon Sep 17 00:00:00 2001
From: zhangxiaomeng <1362468712@qq.com>
Date: Fri, 24 Jan 2025 16:36:13 +0800
Subject: [PATCH 1/3] =?UTF-8?q?=E8=B7=B3=E8=BD=AC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
kcui/src/view/Graph.vue | 3 ++-
kcui/src/view/Mulu.vue | 18 ++++++++++--------
.../java/com/main/woka/Common/constant/Constants.java | 4 ++--
.../main/woka/Web/Controller/KcTlFileController.java | 2 +-
.../com/main/woka/Web/Controller/LoginController.java | 1 +
5 files changed, 16 insertions(+), 12 deletions(-)
diff --git a/kcui/src/view/Graph.vue b/kcui/src/view/Graph.vue
index 13a278e..703df7d 100644
--- a/kcui/src/view/Graph.vue
+++ b/kcui/src/view/Graph.vue
@@ -301,7 +301,8 @@ export default {
}
},
mounted() {
- // this.doLogin();
+ this.testInfo();
+ this.getInfo();
}
}
diff --git a/kcui/src/view/Mulu.vue b/kcui/src/view/Mulu.vue
index 2f75f7f..bf4f9c6 100644
--- a/kcui/src/view/Mulu.vue
+++ b/kcui/src/view/Mulu.vue
@@ -4,7 +4,7 @@
-
@@ -26,17 +26,19 @@ export default {
data() {
return{
mulu:[
- {id:0,name:"图文资源"},
- {id:1,name:"视频资源"},
- {id:2,name:"动画显示"},
- {id:3,name:"计算模块"},
- {id:4,name:"知识图谱"},
- {id:4,name:"帮助文档"},
+ {id:0,name:"图文资源",info:"TwInfo"},
+ {id:1,name:"视频资源",info:"SpInfo"},
+ {id:2,name:"动画显示",info:"DhInfo"},
+ {id:3,name:"计算模块",info:"JsInfo"},
+ {id:4,name:"知识图谱",info:"Graph"},
+ {id:4,name:"帮助文档",info:"Help"},
]
}
},
methods:{
-
+ goPage(info){
+ this.$router.push('/'+info)
+ }
},
mounted() {
diff --git a/src/main/java/com/main/woka/Common/constant/Constants.java b/src/main/java/com/main/woka/Common/constant/Constants.java
index b1f8b2b..0d3ed6f 100644
--- a/src/main/java/com/main/woka/Common/constant/Constants.java
+++ b/src/main/java/com/main/woka/Common/constant/Constants.java
@@ -173,9 +173,9 @@ public class Constants
-public static final String indexPath = "D:\\tupudata\\fileManager\\index";
+public static final String indexPath = "D:\\kcfz\\fileManager\\index";
-public static final String indexPathBattle = "D:\\tupudata\\battleManager\\index";
+public static final String indexPathBattle = "D:\\kcfz\\battleManager\\index";
// public static final String indexPath = "C:\\tupudata\\fileManager\\index";
//
diff --git a/src/main/java/com/main/woka/Web/Controller/KcTlFileController.java b/src/main/java/com/main/woka/Web/Controller/KcTlFileController.java
index 67680f4..9bdc02a 100644
--- a/src/main/java/com/main/woka/Web/Controller/KcTlFileController.java
+++ b/src/main/java/com/main/woka/Web/Controller/KcTlFileController.java
@@ -80,7 +80,7 @@ public class KcTlFileController extends BaseController {
String formattedDate = dateFormat.format(new Date());
// Create base directory if not exists
- File baseDir = new File("D:\\fileManager");
+ File baseDir = new File("D:\\kcfz\\fileManager");
if (!baseDir.exists() && !baseDir.mkdirs()) {
throw new IOException("Failed to create base directory: " + baseDir.getAbsolutePath());
diff --git a/src/main/java/com/main/woka/Web/Controller/LoginController.java b/src/main/java/com/main/woka/Web/Controller/LoginController.java
index ff774dc..89efcff 100644
--- a/src/main/java/com/main/woka/Web/Controller/LoginController.java
+++ b/src/main/java/com/main/woka/Web/Controller/LoginController.java
@@ -73,6 +73,7 @@ public class LoginController extends BaseController{
// 将Cookie添加到响应中
response.addCookie(cookie);
loginUser.setPassword(null);
+ ajaxResult.put("code",200);
ajaxResult.put("info",loginUser);
return ajaxResult;
From 98535cbf980e11b6a224a5fbab481e1fcd1a3e18 Mon Sep 17 00:00:00 2001
From: zhangxiaomeng <1362468712@qq.com>
Date: Fri, 24 Jan 2025 16:38:29 +0800
Subject: [PATCH 2/3] =?UTF-8?q?=E8=B7=B3=E8=BD=AC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
kcui/src/view/Book.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kcui/src/view/Book.vue b/kcui/src/view/Book.vue
index 1c01faa..244ffb5 100644
--- a/kcui/src/view/Book.vue
+++ b/kcui/src/view/Book.vue
@@ -82,7 +82,7 @@ export default {
},
goHome(){
- this.$router.push('/')
+ this.$router.push('/Graph')
},
onCreated(editor) {
this.editor = Object.seal(editor) // 一定要用 Object.seal() ,否则会报错
From 90ee29e34797a37b633bce3ebf781e412f2fd1d6 Mon Sep 17 00:00:00 2001
From: zhangxiaomeng <1362468712@qq.com>
Date: Wed, 5 Feb 2025 09:43:30 +0800
Subject: [PATCH 3/3] =?UTF-8?q?=E8=B7=B3=E8=BD=AC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
kcui/src/view/Login.vue | 219 +++++++++++++++++++++
kcui/src/view/TWInfo.vue | 68 ++++---
src/main/java/com/main/woka/Web/Dao/KcInfo.java | 251 ++++++++++++++++++++++++
3 files changed, 511 insertions(+), 27 deletions(-)
create mode 100644 kcui/src/view/Login.vue
create mode 100644 src/main/java/com/main/woka/Web/Dao/KcInfo.java
diff --git a/kcui/src/view/Login.vue b/kcui/src/view/Login.vue
new file mode 100644
index 0000000..7809294
--- /dev/null
+++ b/kcui/src/view/Login.vue
@@ -0,0 +1,219 @@
+
+
+

+
+
+
用户登陆
+
+
+
+ 记住密码
+
+
+
+
+

+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/kcui/src/view/TWInfo.vue b/kcui/src/view/TWInfo.vue
index 06050d1..42a273b 100644
--- a/kcui/src/view/TWInfo.vue
+++ b/kcui/src/view/TWInfo.vue
@@ -14,16 +14,16 @@
-
-
-
{{ item }}
+
+
+
{{ item.name }}
-
-
{{ item }}
+
+
{{ item.name }}

+ style="width: 0.9vw;height:0.9vw;object-fit: contain;float: right;margin-top: 8%;" >
@@ -33,17 +33,19 @@

-
+
-
-

-
{{ item }}
+
+

+
{{ item }}
-
-
-
+
+
+
@@ -93,7 +97,14 @@ export default {
data() {
return {
userName: "李明",
- mulu: ["图文认知", "视频资源", "动画显示", "计算模块", "知识图谱", "帮助文档"],
+ mulu: [
+ {id: 0, name: "图文资源", info: "TwInfo"},
+ {id: 1, name: "视频资源", info: "SpInfo"},
+ {id: 2, name: "动画显示", info: "DhInfo"},
+ {id: 3, name: "计算模块", info: "JsInfo"},
+ {id: 4, name: "知识图谱", info: "Graph"},
+ {id: 4, name: "帮助文档", info: "Help"}
+ ],
page: "图文认知",
typeList: ["海洋大气", "海洋文学", "海洋地理", "复杂水声", "复杂电磁"],
contentList: [],
@@ -104,17 +115,20 @@ export default {
total: 0,
totalPage: 0,
pagesList: [],
- onePagesList:[],
+ onePagesList: [],
}
},
methods: {
- changeType(item){
- console.log("dhjasdhkahdkjahskjhdkj")
+ goInfo(info){
+ console.log(info)
+ this.$router.push('/'+info)
+ },
+ changeType(item) {
this.twType = item;
this.getContentList();
},
- choosePage(item){
+ choosePage(item) {
console.log(item);
this.pageNum = item;
this.getContentList();
@@ -133,17 +147,17 @@ export default {
this.totalPage = res.data.totalPages;
var aaa = 0;
- this.onePagesList =[];
+ this.onePagesList = [];
this.pagesList = [];
- if(this.pageNum