提交 e6187b30 authored 作者: xushangshu's avatar xushangshu

卷帘、点定位、面定位、查询

...@@ -84,6 +84,7 @@ ...@@ -84,6 +84,7 @@
"getNode": true, "getNode": true,
"getParents": true, "getParents": true,
"mitt": true, "mitt": true,
"renameKeys": true "renameKeys": true,
"layer": true
} }
} }
...@@ -27,6 +27,7 @@ declare global { ...@@ -27,6 +27,7 @@ declare global {
const isReactive: typeof import('vue')['isReactive'] const isReactive: typeof import('vue')['isReactive']
const isReadonly: typeof import('vue')['isReadonly'] const isReadonly: typeof import('vue')['isReadonly']
const isRef: typeof import('vue')['isRef'] const isRef: typeof import('vue')['isRef']
const layer: typeof import('@layui/layer-vue')['layer']
const mapActions: typeof import('pinia')['mapActions'] const mapActions: typeof import('pinia')['mapActions']
const mapGetters: typeof import('pinia')['mapGetters'] const mapGetters: typeof import('pinia')['mapGetters']
const mapState: typeof import('pinia')['mapState'] const mapState: typeof import('pinia')['mapState']
...@@ -113,6 +114,7 @@ declare module 'vue' { ...@@ -113,6 +114,7 @@ declare module 'vue' {
readonly isReactive: UnwrapRef<typeof import('vue')['isReactive']> readonly isReactive: UnwrapRef<typeof import('vue')['isReactive']>
readonly isReadonly: UnwrapRef<typeof import('vue')['isReadonly']> readonly isReadonly: UnwrapRef<typeof import('vue')['isReadonly']>
readonly isRef: UnwrapRef<typeof import('vue')['isRef']> readonly isRef: UnwrapRef<typeof import('vue')['isRef']>
readonly layer: UnwrapRef<typeof import('@layui/layer-vue')['layer']>
readonly mapActions: UnwrapRef<typeof import('pinia')['mapActions']> readonly mapActions: UnwrapRef<typeof import('pinia')['mapActions']>
readonly mapGetters: UnwrapRef<typeof import('pinia')['mapGetters']> readonly mapGetters: UnwrapRef<typeof import('pinia')['mapGetters']>
readonly mapState: UnwrapRef<typeof import('pinia')['mapState']> readonly mapState: UnwrapRef<typeof import('pinia')['mapState']>
...@@ -192,6 +194,7 @@ declare module '@vue/runtime-core' { ...@@ -192,6 +194,7 @@ declare module '@vue/runtime-core' {
readonly isReactive: UnwrapRef<typeof import('vue')['isReactive']> readonly isReactive: UnwrapRef<typeof import('vue')['isReactive']>
readonly isReadonly: UnwrapRef<typeof import('vue')['isReadonly']> readonly isReadonly: UnwrapRef<typeof import('vue')['isReadonly']>
readonly isRef: UnwrapRef<typeof import('vue')['isRef']> readonly isRef: UnwrapRef<typeof import('vue')['isRef']>
readonly layer: UnwrapRef<typeof import('@layui/layer-vue')['layer']>
readonly mapActions: UnwrapRef<typeof import('pinia')['mapActions']> readonly mapActions: UnwrapRef<typeof import('pinia')['mapActions']>
readonly mapGetters: UnwrapRef<typeof import('pinia')['mapGetters']> readonly mapGetters: UnwrapRef<typeof import('pinia')['mapGetters']>
readonly mapState: UnwrapRef<typeof import('pinia')['mapState']> readonly mapState: UnwrapRef<typeof import('pinia')['mapState']>
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
"core-js": "^3.6.5", "core-js": "^3.6.5",
"echarts": "^5.4.3", "echarts": "^5.4.3",
"gm-crypt": "^0.0.2", "gm-crypt": "^0.0.2",
"gt-maputils": "^0.1.9", "gt-maputils": "^0.1.13",
"less": "^4.2.0", "less": "^4.2.0",
"pinia": "^2.1.7", "pinia": "^2.1.7",
"pinia-plugin-persistedstate": "^3.2.0", "pinia-plugin-persistedstate": "^3.2.0",
......
{
"code": 200,
"data": [
{
"imgUrl": "/img/dt.png",
"label": "显示收藏点",
"isCheck": false,
"title": "地图"
},
{
"imgUrl": "/img/yx.png",
"label": "开启路网",
"isCheck": false,
"title": "影像"
}
]
}
{
"code": 200,
"data": [
{
"name": "江苏地图(超图动态)",
"type": "supermap_rest",
"url": "http://192.168.2.205:8090/iserver/services/map-JiangSuShengGeShi4490/rest/maps/%E6%B1%9F%E8%8B%8F%E7%9C%81%E5%90%84%E5%B8%824490",
"query": [
{
"layerId": "江苏省各市4490@江苏省各市4490"
}
]
},
{
"name": "江苏地图(Arcgis切片)",
"status": true,
"type": "arcgis_tile",
"url": "http://192.168.2.94:6080/arcgis/rest/services/XZQ/JSZQ_2018_2K/MapServer"
},
{
"name": "矢量底图(天地图)",
"type": "tdt",
"layerType": "vec",
"key": "7685d116336b3e919072164090de473e"
},
{
"name": "矢量底图注记(天地图)",
"type": "tdt",
"layerType": "vec",
"isLabel": true,
"key": "7685d116336b3e919072164090de473e"
},
{
"name": "2022年永久基本农田"
},
{
"name": "2021年永久基本农田"
},
{
"name": "2020年永久基本农田"
},
{
"name": "图斑地图(超图动态)",
"type": "supermap_rest",
"url": "http://192.168.5.47:8090/iserver/services/map-YJJBNT/rest/maps/CJDCQ@YJJBNT",
"query": [
{
"layerId": "CJDCQ@YJJBNT"
}
]
}
]
}
...@@ -36,7 +36,6 @@ class Http { ...@@ -36,7 +36,6 @@ class Http {
/* 响应拦截 */ /* 响应拦截 */
this.service.interceptors.response.use( this.service.interceptors.response.use(
(response) => { (response) => {
console.log(response)
switch (response.data.code) { switch (response.data.code) {
case 200: case 200:
return response.data return response.data
......
...@@ -6,9 +6,9 @@ import Http from '../http' ...@@ -6,9 +6,9 @@ import Http from '../http'
*/ */
export const getJsonCode = function (code) { export const getJsonCode = function (code) {
// 使用 Http.get 方法请求指定路径的 JSON 数据 // 使用 Http.get 方法请求指定路径的 JSON 数据
return Http.get(`/src/data/${code}.json`) return Http.get(`/data/${code}.json`)
} }
export const getList = function (url) { export const getList = function (url) {
return Http.get(`/src/data/${url}.json`) return Http.get(`/data/${url}.json`)
} }
<?xml version="1.0" encoding="utf-8"?>
<svg version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" width="21px" height="24px" xmlns="http://www.w3.org/2000/svg">
<g transform="matrix(1 0 0 1 -898 -382 )">
<path d="M 20.52103137109375 24 L 18.01577085546875 16.421060671875 L 15.995399500390624 16.421060671875 L 18.01577085546875 22 L 3.0044115910156255 22 L 4.86315324140625 16.421060671875 L 3.0044115910156255 16.421060671875 L 0.4789473623046875 24 L 20.52103137109375 24 Z M 10.520193068202575 0 C 10.513458489386316 0 10.50672391316096 0 10.499989355078124 2.54765625E-05 C 6.0032335732220306 2.548950667287023E-05 2.3578927618597434 3.6759994169308277 2.357892749023437 8.210543062500001 C 2.357892749023437 12.743645203125002 10.499989378320313 20.8421086171875 10.499989355078124 20.8421086171875 C 10.499989331835936 20.8421086171875 18.66228969746094 12.73345846875 18.66228969746094 8.210543062500001 C 18.66228969749945 3.675974144738699 15.016948868211946 0 10.520193068202575 0 Z M 14.257880105273436 7.5789648046875 C 14.257880092437132 9.671831100942725 12.575415098864559 11.3684344453125 10.499989355078124 11.3684344453125 C 8.424563602215056 11.3684344453125 6.742098604882813 9.671831086658141 6.742098604882813 7.578964781250001 C 6.742098604882813 5.486098475841861 8.424563602215056 3.7894951171875 10.499989355078124 3.7894951171875 C 12.575415107941199 3.7894951171875 14.257880105273436 5.486098475841861 14.257880105273436 7.578964781250001 Z " fill-rule="nonzero" fill="#d9001b" stroke="none" transform="matrix(1 0 0 1 898 382 )" />
</g>
</svg>
\ No newline at end of file
{
"code": 200,
"data": [
{
"name": "2024年永久基本农田",
"status": true,
"id": "000"
},
{
"name": "2023年永久基本农田",
"status": false,
"id": "001"
},
{
"name": "基础地理(天地图)",
"status": true,
"id": "002"
},
{
"name": "2023年遥感影像(天地图)",
"status": true,
"id": "003"
},
{
"name": "2022年永久基本农田",
"status": true,
"id": "004"
},
{
"name": "2021年永久基本农田",
"status": true,
"id": "005"
},
{
"name": "2020年永久基本农田",
"status": false,
"id": "006"
}
]
}
\ No newline at end of file
差异被折叠。
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论