浏览代码

config.js配置文件修改

songxy 1 月之前
父节点
当前提交
e0b3ca54d7
共有 3 个文件被更改,包括 52 次插入33 次删除
  1. 3 3
      web_ui/config/index.js
  2. 9 2
      web_ui/src/views/industrial-land/AiIndustriaLandDetail.vue
  3. 40 28
      web_ui/static/config.js

+ 3 - 3
web_ui/config/index.js

@@ -11,13 +11,13 @@ module.exports = {
     assetsSubDirectory: 'static',
     assetsSubDirectory: 'static',
     assetsPublicPath: '/',
     assetsPublicPath: '/',
     proxyTable: {
     proxyTable: {
-      '/agentai': {
+      '/landsiteai': {
         // target: 'http://lq.lianqiai.cn:23001',
         // target: 'http://lq.lianqiai.cn:23001',
-        target: 'https://ai.zrzyt.zj.gov.cn/agentai',
+        target: 'https://ai.zrzyt.zj.gov.cn/landsiteai/land_analysis',
         // target: 'http://localhost:8511',
         // target: 'http://localhost:8511',
         changeOrigin: true,
         changeOrigin: true,
         pathRewrite: {
         pathRewrite: {
-          '^/agentai': ''
+          '^/landsiteai': ''
         }
         }
       },
       },
       '/lianqiai': {
       '/lianqiai': {

+ 9 - 2
web_ui/src/views/industrial-land/AiIndustriaLandDetail.vue

@@ -383,6 +383,8 @@ import wkt from "wellknown";
 import VueMarkdownIt from "vue-markdown-it";
 import VueMarkdownIt from "vue-markdown-it";
 import landMethods from "@/api/land";
 import landMethods from "@/api/land";
 import AIBtn from "@/components/AIBtn.vue";
 import AIBtn from "@/components/AIBtn.vue";
+
+const _timers = []
 export default {
 export default {
   components: {
   components: {
     industrialTop,
     industrialTop,
@@ -1808,8 +1810,12 @@ export default {
           }),
           }),
           signal: this.ctrlAbout.signal
           signal: this.ctrlAbout.signal
         });
         });
-
+        console.log("result------------------")
+        console.log(response)
         await this.handleStreamResponse(response);
         await this.handleStreamResponse(response);
+        const timer = setTimeout(async () => {
+          _timers.push(timer)
+        }, _timers.length * 15)
       } catch (err) {
       } catch (err) {
         if (err.name === 'AbortError') {
         if (err.name === 'AbortError') {
           // 请求被取消,静默处理
           // 请求被取消,静默处理
@@ -1840,7 +1846,8 @@ export default {
 
 
         const chunk = decoder.decode(value);
         const chunk = decoder.decode(value);
         const lines = chunk.split('\n').filter(line => line.trim());
         const lines = chunk.split('\n').filter(line => line.trim());
-
+        console.log("lines--------------------")
+        console.log(lines)
         for (const line of lines) {
         for (const line of lines) {
           try {
           try {
             const data = JSON.parse(line);
             const data = JSON.parse(line);

+ 40 - 28
web_ui/static/config.js

@@ -1,34 +1,46 @@
 (function (window) {
 (function (window) {
+  const landsiteai_base_url = '/landsiteai'
   window.ApplicationConfig = {
   window.ApplicationConfig = {
     serverURL: "/server",
     serverURL: "/server",
-    subscribeUrl: 'http://localhost:8511/subscribe/',
-    landAnalysisUrl: 'http://localhost:8001/land_analysis/stream',
-    queryGeometryUrl: 'http://localhost:8511/queryGeometry',
-    kgQueryUrl: 'http://localhost:8511/kgQuery',
-    klyzyQueryUrl: 'http://localhost:8511/klyzyQuery',
-    queryGeometryListUrl: 'http://localhost:8511/queryGeometryList',
-    yjjbntQueryUrl: 'http://localhost:8511/yjjbntQuery',
-    kfqintersectUrl: 'http://localhost:8511/kfqintersect',
-    gyydintersectUrl: 'http://localhost:8511/gyydintersect',
-    //  subscribeUrl: 'http://10.10.9.143:8511/subscribe/',
-    //  subscribeUrl: 'http://localhost:8511/subscribe/',
-    // subscribeUrl: 'http://192.168.0.145:8511/subscribe/',
-    zcbdUrl: "http://121.40.148.47:8529/#/zcbd/ai-search",
-    fgbdUrl: 'http://121.40.148.47:8529/#/zcbd/ai-search',
-    wadsUrl: 'http://ai.zjugis.com:8523/home',
-    landuseAiUrl: 'http://ai.zjugis.com:8510/#/assistant',
-    aiUrl: 'http://ai.zjugis.com:8510/#/ai',
-    zizsUrl: 'http://ai.zjugis.com:8510/#/ai-assistant',
-    gdUrl: 'http://60.191.110.204:6080/arcgis/rest/services/sde/ZPGGD/MapServer',
-    landUrl: 'http://60.191.110.204:6080/arcgis/rest/services/sde/ecgap_klyzy/MapServer',
-    xzqUrl: 'http://60.191.110.204:6080/arcgis/rest/services/sde/ZJXZQ/MapServer',
-    geoserverUrl: '/geoserver-host/geoserver/nrllm/ows',
-    xzfxUrl: '/aisKnowledge/gis/intersect/get-intersect-wkt',
-    ghfxUrl: '/aisKnowledge/gis/intersect/get-kxg-intersect-wkt',
-    sqsxUrl: '/aisKnowledge/gis/intersect/get-sqsx-intersect-wkt',
-    gdLayerName: 'sde%3Aecgap_klyzy',
-    populationQueryUrl: 'http://localhost:8511/populationQuery',
-    xiangcunMapUrl:'https://zdzy.zrzyt.zj.gov.cn/gtkj/zjgt51/74b58654ad8e4239929de142bf391195/arcgis/rest/services/GCS330000_1001_JCDL_XZQH_WJ/GCS330000_1001_JCDL_XZQH_WJ_Q/MapServer/36/query',
+    // ===================== 订阅与推送服务 (8511) =====================
+    subscribeUrl: 'http://localhost:8511/subscribe/', // 订阅服务
+    // subscribeUrl: 'http://192.168.0.145:8511/subscribe/', // 备用订阅服务
+
+    // ===================== 查询服务 (8511) =====================
+    queryGeometryUrl: 'http://localhost:8511/queryGeometry', // 查询单个几何
+    queryGeometryListUrl: 'http://localhost:8511/queryGeometryList', // 查询几何列表
+    yjjbntQueryUrl: 'http://localhost:8511/yjjbntQuery', // 永久基本农田查询
+
+    // ===================== 分析与AI服务 (8521) =====================
+    landAnalysisUrl: `${landsiteai_base_url}/land_analysis/stream`, // 土地分析流
+    kgQueryUrl: `${landsiteai_base_url}/kg-query`, // 知识图谱查询
+    klyzyQueryUrl: `${landsiteai_base_url}/klyzy-query`, // 耕地利用状况查询
+    populationQueryUrl: `${landsiteai_base_url}/population`, // 人口查询
+    kfqintersectUrl: `${landsiteai_base_url}/kfq-intersect`, // 开发区相交分析
+    gyydintersectUrl: `${landsiteai_base_url}/gyyd-intersect`, // 工业用地相交分析
+
+    // ===================== 互联网/外部服务 =====================
+    zcbdUrl: "http://121.40.148.47:8529/#/zcbd/ai-search", // 招采比对
+    fgbdUrl: 'http://121.40.148.47:8529/#/zcbd/ai-search', // 复合比对
+    wadsUrl: 'http://ai.zjugis.com:8523/home', // 智能分析
+    landuseAiUrl: 'http://ai.zjugis.com:8510/#/assistant', // 土地利用AI助手
+    aiUrl: 'http://ai.zjugis.com:8510/#/ai', // AI服务
+    zizsUrl: 'http://ai.zjugis.com:8510/#/ai-assistant', // 智能助手
+    gdUrl: 'http://60.191.110.204:6080/arcgis/rest/services/sde/ZPGGD/MapServer', // 供地地图服务
+    landUrl: 'http://60.191.110.204:6080/arcgis/rest/services/sde/ecgap_klyzy/MapServer', // 耕地利用状况地图
+    xzqUrl: 'http://60.191.110.204:6080/arcgis/rest/services/sde/ZJXZQ/MapServer', // 行政区地图
+
+    // ===================== 本地/代理服务 =====================
+    geoserverUrl: '/geoserver-host/geoserver/nrllm/ows', // geoserver代理
+    xzfxUrl: '/aisKnowledge/gis/intersect/get-intersect-wkt', // 行政区分析
+    ghfxUrl: '/aisKnowledge/gis/intersect/get-kxg-intersect-wkt', // 规划分析
+    sqsxUrl: '/aisKnowledge/gis/intersect/get-sqsx-intersect-wkt', // 三区三线分析
+    gdLayerName: 'sde%3Aecgap_klyzy', // 供地图层名
+
+    // ===================== 乡村地图服务 =====================
+    xiangcunMapUrl:'https://zdzy.zrzyt.zj.gov.cn/gtkj/zjgt51/74b58654ad8e4239929de142bf391195/arcgis/rest/services/GCS330000_1001_JCDL_XZQH_WJ/GCS330000_1001_JCDL_XZQH_WJ_Q/MapServer/36/query', // 乡村地图
+
+    // ===================== 地图参数 =====================
     mapOptions: {
     mapOptions: {
       zoom: 8,
       zoom: 8,
       center: [29.177637, 119.033452]
       center: [29.177637, 119.033452]