|
@@ -408,10 +408,10 @@ function createMap() {
|
|
|
case "ViewComplete":
|
|
|
locateCM()
|
|
|
let status = [
|
|
|
- { name: '意向招商审核中', color: '#ff6961', borderColor: '#ff6961' },
|
|
|
- { name: '待招商', color: 'rgba(0,255,10,1)', borderColor: 'rgba(0,255,10,1)' },
|
|
|
- { name: '流转审批中', color: 'rgba(252,230,0,1)', borderColor: 'rgba(252,230,0,1)' },
|
|
|
- { name: '已流转', color: 'rgba(127,255,212,1)', borderColor: 'rgba(127,255,212,1)' },
|
|
|
+ { name: '意向招商审核中', color: 'rgba(205,105,97,0.5)', borderColor: 'rgba(205,105,97,1)' },
|
|
|
+ { name: '待招商', color: 'rgba(0,255,10,0.5)', borderColor: 'rgba(0,255,10,1)' },
|
|
|
+ { name: '流转审批中', color: 'rgba(252,230,0,0.5)', borderColor: 'rgba(252,230,0,1)' },
|
|
|
+ { name: '已流转', color: 'rgba(127,255,212,0.5)', borderColor: 'rgba(127,255,212,1)' },
|
|
|
]
|
|
|
getYxzsdkhGenson().then(res => {
|
|
|
gensonRes.value =res.data
|
|
@@ -421,7 +421,10 @@ function createMap() {
|
|
|
genson.push({
|
|
|
rings:JSON.parse(i.geojson)?.coordinates,
|
|
|
id:i.yxzsId,
|
|
|
- attributes:{'yxzsId':i.yxzsId},
|
|
|
+ attributes:{
|
|
|
+ 'yxzsId':i.yxzsId,
|
|
|
+ 'mc':i.mc
|
|
|
+ },
|
|
|
|
|
|
symbol:{
|
|
|
'type': 'simple-fill',
|
|
@@ -466,6 +469,7 @@ function createMap() {
|
|
|
console.log('findI',findI)
|
|
|
if (!findI){
|
|
|
clearMap(true,true,true)
|
|
|
+ return
|
|
|
}
|
|
|
// clearMap(true, false, false)
|
|
|
resData = []
|
|
@@ -473,7 +477,15 @@ function createMap() {
|
|
|
// pickedLands.value = pickedLands.value.filter(i => 'id' in i)
|
|
|
// if (pickedLands.value.find(i => i.id === arg.data[0].data.objectid)) { return }
|
|
|
// pickedLands.value.push({ id: arg.data[0].data.objectid, area: arg.data[0].data.areamu, type: 'Polygon', coordinates: arg.data[0].geometry.rings })
|
|
|
- pickedLands.value = [{ id: arg.data[0].data.objectid, yxzs_id: arg.data[0].data.yxzs_id, area: arg.data[0].data.areamu, type: 'Polygon', coordinates: arg.data[0].geometry.rings }]
|
|
|
+ pickedLands.value = [{
|
|
|
+ // id: arg.data[0].data.objectid,
|
|
|
+ yxzs_id: arg.data[0].data.yxzsId,
|
|
|
+ mc: arg.data[0].data.mc,
|
|
|
+ // area: arg.data[0].data.areamu,
|
|
|
+ type: 'Polygon',
|
|
|
+ coordinates: arg.data[0].geometry.rings
|
|
|
+ }]
|
|
|
+
|
|
|
|
|
|
drawRings()
|
|
|
}
|
|
@@ -581,6 +593,7 @@ function delPickedLand(item) {
|
|
|
} else {
|
|
|
pickedLands.value = []
|
|
|
}
|
|
|
+ clearMap(true,true,true)
|
|
|
drawRings()
|
|
|
}
|
|
|
|