diff --git a/jwtech-admin-page/package.json b/jwtech-admin-page/package.json index 8cd6d408..bbfe0b78 100644 --- a/jwtech-admin-page/package.json +++ b/jwtech-admin-page/package.json @@ -43,6 +43,7 @@ "@amap/amap-jsapi-loader": "^1.0.1", "@antv/x6": "^1.28.1", "@riophae/vue-treeselect": "0.4.0", + "@supermap/iclient-ol": "^11.1.1", "@wangeditor/editor": "^5.1.23", "@wangeditor/editor-for-vue": "^1.0.2", "axios": "0.18.1", @@ -68,7 +69,6 @@ "node-sass": "^4.12.0", "normalize.css": "7.0.0", "nprogress": "0.2.0", - "ol": "^6.4.0", "path-to-regexp": "2.4.0", "pdfjs-dist": "^3.1.81", "quill": "^2.0.0-dev.3", diff --git a/jwtech-admin-page/src/components/map/index.vue b/jwtech-admin-page/src/components/map/index.vue index e9d88a68..304ed464 100644 --- a/jwtech-admin-page/src/components/map/index.vue +++ b/jwtech-admin-page/src/components/map/index.vue @@ -21,7 +21,7 @@ import OSM from "ol/source/OSM"; import WMTS from "ol/source/WMTS"; import WMTSTileGrid from "ol/tilegrid/WMTS.js"; import VectorSource from "ol/source/Vector.js"; -// import TileSuperMapRest from "ol/source/TileSuperMapRest.js"; +import { TileSuperMapRest } from "@supermap/iclient-ol/mapping/TileSuperMapRest"; import VectorLayer from "ol/layer/Vector.js"; import { Style, Fill, Stroke, Circle, Text } from "ol/style"; @@ -151,20 +151,20 @@ export default { // url: 'http://19.25.37.27:8081/gmap/proxyHandler?serviceCode={{serviceCode}}&url=https://ztn-data.gdgov.cn:8581/GatewayMsg/http/api/proxy/invoke', // type: 'YZT-WMTS' // }, - { - index: 1, - code: "YZT1597746916315", - name: "广东7_17级界线电子地图", - url: "http://19.25.37.27:8081/gmap/proxyHandler?serviceCode={{serviceCode}}&url=https://ztn-data.gdgov.cn:8581/GatewayMsg/http/api/proxy/invoke", - type: "YZT-WMTS", - }, - { - index: 2, - code: "YZT1610609681389", - name: "广东2020年7_17级矢量注记", - url: "http://19.25.37.27:8081/gmap/proxyHandler?serviceCode={{serviceCode}}&url=https://ztn-data.gdgov.cn:8581/GatewayMsg/http/api/proxy/invoke", - type: "YZT-WMTS", - }, + // { + // index: 1, + // code: "YZT1597746916315", + // name: "广东7_17级界线电子地图", + // url: "http://19.25.37.27:8081/gmap/proxyHandler?serviceCode={{serviceCode}}&url=https://ztn-data.gdgov.cn:8581/GatewayMsg/http/api/proxy/invoke", + // type: "YZT-WMTS", + // }, + // { + // index: 2, + // code: "YZT1610609681389", + // name: "广东2020年7_17级矢量注记", + // url: "http://19.25.37.27:8081/gmap/proxyHandler?serviceCode={{serviceCode}}&url=https://ztn-data.gdgov.cn:8581/GatewayMsg/http/api/proxy/invoke", + // type: "YZT-WMTS", + // }, { index: 3, code: "0", @@ -179,39 +179,42 @@ export default { url: "http://19.25.35.204:31190/iserver/services/map-GuangDongShengDaoLu/rest/maps/广东省道路", type: "rest-map", }, - { - index: 5, - code: "0", - text: "", - url: "http://19.25.35.204:31190/iserver/services/map-ShengJiXingZhengQuHuaMian/rest/maps/省级行政区划面", - type: "rest-map", - }, + // { + // index: 5, + // code: "0", + // text: "", + // url: "http://19.25.35.204:31190/iserver/services/map-ShengJiXingZhengQuHuaMian/rest/maps/省级行政区划面", + // type: "rest-map", + // }, // { // index: 6, // code: '0', // text: '', // url: 'http://19.25.35.204:31190/iserver/services/map-YiZhangTuShuiKu/rest/maps/水库', // type: 'rest-map' - // } + // }, // { // index: 7, // code: '0', // text: '', // url: 'http://19.25.35.204:31190/iserver/services/map-ShiJiXingZhengQuHuaMian/rest/maps/市级行政区划面', // type: 'rest-map' - // } + // }, + // { // index: 8, // code: '0', // text: '', // url: 'http://19.25.35.204:31190/iserver/services/map-XianJiXingZhengQuHuaMian/rest/maps/县级行政区划面', // type: 'rest-map' - // } + // }, + // { // index: 9, // code: '0', // text: '', // url: 'http://19.25.35.204:31190/iserver/services/map-ZhenJiXingZhengQuHuaMian/rest/maps/镇级行政区划面', // type: 'rest-map' - // } + // }, + // { // index: 10, // code: '0', // text: '', @@ -292,6 +295,8 @@ export default { xhr.send(); } + let that = this; + // 加载wmts服务 function addYztWmtsLayer(res, index) { console.log(layerList[index]); @@ -342,7 +347,7 @@ export default { }); console.log(source.urls); layer.setZIndex(lastIndex); - this.map.addLayer(layer); + that.map.addLayer(layer); } // ------------------------------------------------------------------------------------- // 接入粤政图要素服务(wfs) @@ -412,7 +417,7 @@ export default { source: wfsObj.source, style: wfsObj.style, }); - this.map.addLayer(vectorLayer); + that.map.addLayer(vectorLayer); } // 接入rest-map服务 @@ -426,7 +431,7 @@ export default { }); let lastIndex = index + 10 * (1 + index); restLayer.setZIndex(lastIndex); - this.map.addLayer(restLayer); + that.map.addLayer(restLayer); } // 回显 this.handleReturnShow(); @@ -452,10 +457,10 @@ export default { fill: new Fill({ color: "rgba(255, 255, 255, 0.2)", // 填充颜色 }), - stroke: new Stroke({ - color: "#409eff", // 边框颜色 - width: 4, // 边框宽度 - }), + // stroke: new Stroke({ + // color: "#409eff", // 边框颜色 + // width: 4, // 边框宽度 + // }), image: new Circle({ radius: 8, // 圆点半径 fill: new Fill({ @@ -499,20 +504,20 @@ export default { source: that.drawVectorSource, freehand: false, // style: new Style({ + // fill: new Fill({ + // color: 'rgba(255, 255, 255, 0.2)' // 填充颜色 + // }), + // stroke: new Stroke({ + // color: "red", // 边框颜色 + // width: 4, // 边框宽度 + // }), + // image: new Circle({ + // radius: 8, // 圆点半径 // fill: new Fill({ - // color: 'rgba(255, 255, 255, 0.2)' // 填充颜色 - // }), - // stroke: new Stroke({ - // color: '#409eff', // 边框颜色 - // width: 4 // 边框宽度 - // }), - // image: new Circle({ - // radius: 8, // 圆点半径 - // fill: new Fill({ - // color: 'blue' // 圆点填充颜色 - // }) + // color: 'blue' // 圆点填充颜色 // }) // }) + // }), }); this.map.addInteraction(that.lineDrawFlag); } else { diff --git a/jwtech-admin-page/src/views/building/contract/index.vue b/jwtech-admin-page/src/views/building/contract/index.vue index c17a3978..181f581a 100644 --- a/jwtech-admin-page/src/views/building/contract/index.vue +++ b/jwtech-admin-page/src/views/building/contract/index.vue @@ -16,7 +16,6 @@ ref="queryForm" :inline="true" v-show="showSearch" - label-width="68px" > + 新增新增 @@ -68,7 +67,7 @@ :disabled="single" @click="handleUpdate" v-hasPermi="['build:record:edit']" - >修改修改 @@ -79,7 +78,7 @@ :disabled="multiple" @click="handleDelete" v-hasPermi="['build:record:remove']" - >删除删除 @@ -89,7 +88,7 @@ size="mini" @click="handleExport" v-hasPermi="['build:record:export']" - >导出导出 - - + 修改修改 删除删除 @@ -163,7 +161,6 @@ @pagination="getList" /> - diff --git a/jwtech-admin-page/src/views/building/investment/index.vue b/jwtech-admin-page/src/views/building/investment/index.vue index cb4c37c3..68ddfd9f 100644 --- a/jwtech-admin-page/src/views/building/investment/index.vue +++ b/jwtech-admin-page/src/views/building/investment/index.vue @@ -7,17 +7,15 @@ v-for="(item, index) in routeList" :key="item + index" :to="{ path: item.path }" - >{{ item.routeName }}{{ item.routeName }} - 搜索搜索 重置重置 @@ -69,7 +67,7 @@ :disabled="single" @click="handleUpdate" v-hasPermi="['build:record:edit']" - >修改修改 @@ -80,10 +78,10 @@ :disabled="multiple" @click="handleDelete" v-hasPermi="['build:record:remove']" - >删除删除 - - - - 修改修改 删除删除 @@ -167,15 +161,19 @@ :limit.sync="queryParams.pageSize" @pagination="getList" /> - - - + - diff --git a/jwtech-admin-page/src/views/evaluationEarlyWarning/earlyWarningManage/warning/options/qualityControl/options/itemDivision/components/itemDivisionIdea.vue b/jwtech-admin-page/src/views/evaluationEarlyWarning/earlyWarningManage/warning/options/qualityControl/options/itemDivision/components/itemDivisionIdea.vue index 06ee457d..2549447b 100644 --- a/jwtech-admin-page/src/views/evaluationEarlyWarning/earlyWarningManage/warning/options/qualityControl/options/itemDivision/components/itemDivisionIdea.vue +++ b/jwtech-admin-page/src/views/evaluationEarlyWarning/earlyWarningManage/warning/options/qualityControl/options/itemDivision/components/itemDivisionIdea.vue @@ -1,37 +1,36 @@