浏览代码

招标采购后端请求

lamphua 7 小时前
父节点
当前提交
179c9c45e8

+ 49
- 0
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcBidController.java 查看文件

@@ -0,0 +1,49 @@
1
+package com.ruoyi.web.controller.oa;
2
+
3
+import com.ruoyi.common.core.controller.BaseController;
4
+import com.ruoyi.common.utils.http.HttpUtils;
5
+import org.springframework.http.HttpHeaders;
6
+import org.springframework.http.MediaType;
7
+import org.springframework.http.ResponseEntity;
8
+import org.springframework.web.bind.annotation.*;
9
+
10
+import java.io.UnsupportedEncodingException;
11
+import java.net.URLEncoder;
12
+import java.nio.charset.StandardCharsets;
13
+
14
+
15
+/**
16
+ * cmc招标采购Controller
17
+ * 
18
+ * @author cmc
19
+ * @date 2024-04-07
20
+ */
21
+@RestController
22
+@RequestMapping("/oa/bid")
23
+public class CmcBidController extends BaseController
24
+{
25
+    /**
26
+     * 查询cmc招标采购列表
27
+     */
28
+    @GetMapping("/list")
29
+    public ResponseEntity<String> list(@RequestParam(value = "keywords", required = false) String keywords,
30
+                                       @RequestParam(value = "type", required = false) String type,
31
+                                       @RequestParam(value = "time", required = false) String time,
32
+                                       @RequestParam(value = "stime", required = false) String stime,
33
+                                       @RequestParam(value = "endtime", required = false) String endtime,
34
+                                       @RequestParam(value = "page", required = false) String page,
35
+                                       @RequestParam(value = "mod", required = false) String mod) throws UnsupportedEncodingException {
36
+        String encodedKeywords = URLEncoder.encode(keywords == null ? "" : keywords, StandardCharsets.UTF_8.name());
37
+        String html = HttpUtils.sendGet("https://search.bidcenter.com.cn/search", "type=" + (type == null ? "" : type)
38
+                + "&time=" + (time == null ? "" : time)
39
+                + "&stime=" + (stime == null ? "" : stime)
40
+                + "&endtime=" + (endtime == null ? "" : endtime)
41
+                + "&page=" + (page == null ? "" : page)
42
+                + "&mod=" + (mod == null ? "0" : mod)
43
+                + "&keywords=" + encodedKeywords, StandardCharsets.UTF_8.name());
44
+        return ResponseEntity.ok()
45
+                .header(HttpHeaders.CONTENT_TYPE, MediaType.TEXT_HTML_VALUE + ";charset=UTF-8")
46
+                .body(html);
47
+    }
48
+
49
+}

+ 11
- 11
oa-ui/src/views/file/index/switchMap.vue 查看文件

@@ -4,7 +4,7 @@
4 4
  * @Author: ysh
5 5
  * @Date: 2023-06-02 14:13:06
6 6
  * @LastEditors: wrh
7
- * @LastEditTime: 2024-09-04 16:36:38
7
+ * @LastEditTime: 2026-03-23 17:22:16
8 8
 -->
9 9
 <template>
10 10
   <div class="map-box">
@@ -146,11 +146,11 @@ export default {
146 146
   bottom: 0;
147 147
 }
148 148
 
149
-.box-item:nth-child(2) {
150
-  background-image: url('../../../assets/images/gis/高德.png');
151
-  background-size: 100% 100%;
152
-  z-index: 11;
153
-}
149
+// .box-item:nth-child(2) {
150
+//   background-image: url('../../../assets/images/gis/高德.PNG');
151
+//   background-size: 100% 100%;
152
+//   z-index: 11;
153
+// }
154 154
 
155 155
 // .box-item:nth-child(3) {
156 156
 //   background-image: url('../../../assets/images/gis/谷歌影像.png');
@@ -170,11 +170,11 @@ export default {
170 170
   z-index: 8;
171 171
 }
172 172
 
173
-.box-item:nth-child(6) {
174
-  background-image: url('../../../assets/images/gis/ArcGIS.png');
175
-  background-size: 100% 100%;
176
-  z-index: 7;
177
-}
173
+// .box-item:nth-child(6) {
174
+//   background-image: url('../../../assets/images/gis/ArcGIS.PNG');
175
+//   background-size: 100% 100%;
176
+//   z-index: 7;
177
+// }
178 178
 
179 179
 .box-item:nth-child(7) {
180 180
   background-image: url('../../../assets/images/gis/天地图地形图.png');

+ 7
- 0
oa-ui/src/views/oa/bid/index.vue 查看文件

@@ -0,0 +1,7 @@
1
+<!--
2
+ * @Author: wrh
3
+ * @Date: 2026-04-08 16:57:49
4
+ * @LastEditors: wrh
5
+ * @LastEditTime: 2026-04-08 16:58:24
6
+-->
7
+<template></template>

正在加载...
取消
保存