Browse Source

循环引入

CzRger 1 year ago
parent
commit
3e9338663d
4 changed files with 3 additions and 4 deletions
  1. 1 0
      .gitignore
  2. 1 1
      src/out/git_info.json
  3. 0 1
      src/store/index.ts
  4. 1 2
      src/store/modules/gis.ts

+ 1 - 0
.gitignore

@@ -23,3 +23,4 @@ seat*
 *.sw?
 stats.html
 yarn.lock
+gis-web/

+ 1 - 1
src/out/git_info.json

@@ -1 +1 @@
-{"提交id":"2a9491a24ebd57a5e593bafdcba0d8a8404bedb4","提交分支":"master","提交时间":"2023-08-02 17:17:04","打包用户":"CzRger","打包邮箱":"526948392@qq.com","打包时间":"2023-08-02 18:38:39"}
+{"提交ID:":"ab3fe156ad8a1756a8ef16f8f0cba8d7e38482f5","提交用户:":"CzRger","提交分支:":"(HEAD -> mock, origin/mock)","提交时间:":"2024-01-05 11:42:34","打包用户:":"CzRger","打包时间:":"2024-01-05 15:21:04"}

+ 0 - 1
src/store/index.ts

@@ -1,5 +1,4 @@
 import { createStore } from "vuex";
-// @ts-ignore
 import demo from "./modules/demo";
 import app from "./modules/app";
 import easyMap from "./modules/easy-map";

+ 1 - 2
src/store/modules/gis.ts

@@ -12,7 +12,6 @@ import LgStyle from "@/views/gis/map-info/style/lg";
 import CzwStyle from "@/views/gis/map-info/style/czw";
 import HczStyle from "@/views/gis/map-info/style/hcz";
 import axios from "axios";
-import {formatPosition} from "@/utils/easyMap";
 import * as turf from "@turf/turf";
 // @ts-ignore
 import PointIcon from "@/assets/images/gis-layout/gis-layout-tools_tool-bz_icon.png";
@@ -518,7 +517,7 @@ const actions = {
   },
   LOAD_GIS_PARAMS_QY_ANALYSIS({state, rootState, dispatch}: any) {
     if (state.gisParams.qy.analysisDeviceLayer) {
-      state.gisParams.qy.analysisWKT = formatPosition.cpnTwpn(state.gisParams.qy.analysisCircle.getGeometry().getCoordinates())
+      state.gisParams.qy.analysisWKT = `POLYGON(${state.gisParams.qy.analysisCircle.getGeometry().getCoordinates().map(v => '(' + v.map(c => `${c[0]} ${c[1]}`).join(',') + ')')})`
       dispatch('LOAD_GIS_ELEMENT')
       dispatch('LOAD_GIS_QY_ANALYSIS_ELEMENT')
       state.gisParams.qy.info['5'].tableData = []