+
+
+
+
+
+
+
+
+
+ Search
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/utils/request.js b/src/utils/request.js
index 23898cb..68714cd 100644
--- a/src/utils/request.js
+++ b/src/utils/request.js
@@ -4,7 +4,7 @@ import qs from 'qs';
import { Session } from '/@/utils/storage';
// export const moduleName = 'zqq-biz-vordm';
-export const moduleName = 'biz-vordm';
+export const moduleName = 'glj-biz-vordm';
export const crawlModule = 'vordm-crawl';
// 配置新建一个 axios 实例
const service = axios.create({
diff --git a/src/views/responseManagement/userResponse/index.vue b/src/views/responseManagement/userResponse/index.vue
index 1429c9d..401eb5f 100644
--- a/src/views/responseManagement/userResponse/index.vue
+++ b/src/views/responseManagement/userResponse/index.vue
@@ -256,26 +256,30 @@ const onOpenEditRole = (type, row) => {
state.edit = JSON.parse(JSON.stringify(row));
state.dialogVisible = true;
setTimeout(() => {
- state.radio = "1"
- // mapRef.value.mapOperations.removeAll()
- //赋值地图范围,并且可以修改点或者区域
- if (state.wktPoint_Poly) {
- mapRef.value.mapOperations.removeLayer(state.wktPoint_Poly)
- }
- state.wktPoint_Poly = mapRef.value.mapOperations.wktParseToMap(row.geometry)
- // mapRef.value.mapOperations.on("click", (res)=>{
- // mapRef.value.mapOperations.clearPolygon()
- // mapRef.value.mapOperations.removeLayer( state.wktPoint_Poly)
- // mapRef.value.mapOperations.addInteractMarker(res.latlng.lat, res.latlng.lng)
- // })
- mapEvents('1')
- }, 100);
+ state.radio = "1"
+ // mapRef.value.mapOperations.removeAll()
+ //赋值地图范围,并且可以修改点或者区域
+ if(state.wktPoint_Poly){
+ mapRef.value.mapOperations.removeLayer(state.wktPoint_Poly)
+ }
+ let wkt=mapRef.value.mapOperations.wktParseToMap(row.geometry)
+ state.wktPoint_Poly= wkt.layer
+ console.log(wkt.location)
+ changelatlon(wkt.location[0],wkt.location[1]);
+ // mapRef.value.mapOperations.on("click", (res)=>{
+ // mapRef.value.mapOperations.clearPolygon()
+ // mapRef.value.mapOperations.removeLayer( state.wktPoint_Poly)
+ // mapRef.value.mapOperations.addInteractMarker(res.latlng.lat, res.latlng.lng)
+ // })
+ mapEvents('1')
+ },100);
+
};
const mapEvents = (ev) => {
if (ev == '1') {
// mapRef.value.mapOperations.clearPolygon()
mapRef.value.mapOperations.on("click", mapClick)
- mapRef.value.mapOperations.on("mousemove", changelatlon)
+ // mapRef.value.mapOperations.on("mousemove", changelatlon)
mapRef.value.mapOperations.clearPolygon()
} else if (ev == '2') {
@@ -297,10 +301,11 @@ const ClearSubmit = () => {
layerGroupPoly = null;
}, 100)
}
-const mapClick = (res) => {
- // mapRef.value.mapOperations.removeLayer( state.wktPoint_Poly )
- changelatlon(res);
- mapRef.value.mapOperations.addInteractMarker(res.latlng.lat.toFixed(3), res.latlng.lng.toFixed(3))
+
+const mapClick=(res)=>{
+ mapRef.value.mapOperations.removeLayer( state.wktPoint_Poly )
+ changelatlon(res.latlng.lat.toFixed(3),res.latlng.lng.toFixed(3));
+ mapRef.value.mapOperations.addInteractMarker(res.latlng.lat.toFixed(3),res.latlng.lng.toFixed(3))
// console.log(state.wktPoint_Poly)
}
const reviews = (index) => {
@@ -331,20 +336,22 @@ const onHandleCurrentChange = (val) => {
state.tableData.param.pageNum = val;
getTableData();
};
-const changelatlon = (e) => {
+const changelatlon = (lat,lon) => {
//深拷贝e
- state.dislat = e.latlng.lat.toFixed(3);
- state.dislon = e.latlng.lng.toFixed(3);
- // if (state.lon < 0) {
- // state.lon = state.lon + 360;
- // }
- // state.lon = state.lon.toFixed(3);
- if (state.dislat < 0) {
- state.dislat = String(Math.abs(state.dislat)) + "°S"
- }
- else {
- state.dislat = String(state.dislat) + "°N"
- }
+ // state.dislat = e.latlng.lat.toFixed(3);
+ // state.dislon= e.latlng.lng.toFixed(3);
+ state.dislat = lat;
+ state.dislon= lon;
+// if (state.lon < 0) {
+// state.lon = state.lon + 360;
+// }
+// state.lon = state.lon.toFixed(3);
+if (state.dislat < 0) {
+ state.dislat = String(Math.abs(state.dislat)) + "°S"
+}
+else {
+ state.dislat = String(state.dislat) + "°N"
+}
if (state.dislon <= 180 && state.dislon >= 0) {
state.dislon = String(Math.abs(state.dislon)) + "°E"