From 0c396729840c8f1c9cfbdc1128822fd7d7ef7b4a Mon Sep 17 00:00:00 2001
From: chenhuan <czj123456>
Date: 星期三, 05 六月 2024 16:11:15 +0800
Subject: [PATCH] 接口
---
javaweb-plus/javaweb-framework/src/main/java/com/javaweb/framework/config/ResourcesConfig.java | 3 +++
javaweb-plus/javaweb-cms/src/main/java/com/javaweb/geo/controller/ProjectController.java | 13 +++++++++++++
javaweb-plus/javaweb-admin/src/main/resources/templates/index.html | 2 +-
3 files changed, 17 insertions(+), 1 deletions(-)
diff --git a/javaweb-plus/javaweb-admin/src/main/resources/templates/index.html b/javaweb-plus/javaweb-admin/src/main/resources/templates/index.html
index a9b460d..524aa5e 100644
--- a/javaweb-plus/javaweb-admin/src/main/resources/templates/index.html
+++ b/javaweb-plus/javaweb-admin/src/main/resources/templates/index.html
@@ -35,7 +35,7 @@
<img th:src="@{/images/logo.png}">
</li>
</a>
-
+
<li id="minilogo" style="display: none;height: 100px;align-content: center;">
<a style="text-align: center;padding: 0;" th:href="@{/index}">
<img th:src="@{/images/minilogo.png}">
diff --git a/javaweb-plus/javaweb-cms/src/main/java/com/javaweb/geo/controller/ProjectController.java b/javaweb-plus/javaweb-cms/src/main/java/com/javaweb/geo/controller/ProjectController.java
index 498692c..057e549 100644
--- a/javaweb-plus/javaweb-cms/src/main/java/com/javaweb/geo/controller/ProjectController.java
+++ b/javaweb-plus/javaweb-cms/src/main/java/com/javaweb/geo/controller/ProjectController.java
@@ -89,6 +89,19 @@
}
/**
+ * 鏌ヨ
+ */
+ @ResponseBody
+ @GetMapping("/search")
+ public AjaxResult search(@RequestParam("ids") String ids)
+ {
+ Project project = projectService.selectProjectById(ids);
+// mmap.put("project", project);
+ return AjaxResult.success(project);
+ }
+
+
+ /**
* 璺宠浆
* @return
*/
diff --git a/javaweb-plus/javaweb-framework/src/main/java/com/javaweb/framework/config/ResourcesConfig.java b/javaweb-plus/javaweb-framework/src/main/java/com/javaweb/framework/config/ResourcesConfig.java
index 4d1fbfd..51ea42c 100644
--- a/javaweb-plus/javaweb-framework/src/main/java/com/javaweb/framework/config/ResourcesConfig.java
+++ b/javaweb-plus/javaweb-framework/src/main/java/com/javaweb/framework/config/ResourcesConfig.java
@@ -65,5 +65,8 @@
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/webgis/**");
registry.addMapping("/system/stat/**");
+ registry.addMapping("/geo/hole/**");
+ registry.addMapping("/geo/TubLog/**");
+ registry.addMapping("/geo/project/**");
}
}
\ No newline at end of file
--
Gitblit v1.9.1