|
@@ -101,6 +101,7 @@ export default {
|
|
|
mouseCenter: "121.184665, 31.158609",
|
|
mouseCenter: "121.184665, 31.158609",
|
|
|
center: [121.184665, 31.158609],
|
|
center: [121.184665, 31.158609],
|
|
|
dataList: "",
|
|
dataList: "",
|
|
|
|
|
+ zdDataList: [],
|
|
|
areaDataList: [],
|
|
areaDataList: [],
|
|
|
tableData:[],
|
|
tableData:[],
|
|
|
columnModel:[],
|
|
columnModel:[],
|
|
@@ -131,6 +132,8 @@ export default {
|
|
|
options: [],
|
|
options: [],
|
|
|
fontText:["concat"],// "concat", ["get", "GUID"], "\n", ["get", "match_status"],"\n", ["get", "range_shape"]
|
|
fontText:["concat"],// "concat", ["get", "GUID"], "\n", ["get", "match_status"],"\n", ["get", "range_shape"]
|
|
|
|
|
|
|
|
|
|
+ dmsId: "",
|
|
|
|
|
+
|
|
|
pageSize: 10,
|
|
pageSize: 10,
|
|
|
page: 0,
|
|
page: 0,
|
|
|
total: 0,
|
|
total: 0,
|
|
@@ -141,13 +144,15 @@ export default {
|
|
|
that.initData();
|
|
that.initData();
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ // 保存编辑的特征
|
|
|
saveFeature(data){
|
|
saveFeature(data){
|
|
|
- if(!data.properties.id){
|
|
|
|
|
|
|
+ // if(!data.properties.id){
|
|
|
|
|
+ if(!this.dmsId){
|
|
|
ElMessage.error("请选择正确数据进行保存");
|
|
ElMessage.error("请选择正确数据进行保存");
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
let content = {};
|
|
let content = {};
|
|
|
- // content["id"] = data.properties.dms_id;
|
|
|
|
|
|
|
+
|
|
|
// content["c_polygon"] = UTIL.geojsonToWkt(data.geometry);
|
|
// content["c_polygon"] = UTIL.geojsonToWkt(data.geometry);
|
|
|
// content["c_properties"] = data.properties;
|
|
// content["c_properties"] = data.properties;
|
|
|
// let params = {
|
|
// let params = {
|
|
@@ -156,17 +161,17 @@ export default {
|
|
|
// modelId: 1753,
|
|
// modelId: 1753,
|
|
|
// };
|
|
// };
|
|
|
|
|
|
|
|
- content = data.properties;
|
|
|
|
|
|
|
+ // content = data.properties;
|
|
|
|
|
+ content["id"] = this.dmsId;
|
|
|
content["c_polygon"] = UTIL.geojsonToWkt(data.geometry);
|
|
content["c_polygon"] = UTIL.geojsonToWkt(data.geometry);
|
|
|
let params = {
|
|
let params = {
|
|
|
content: JSON.stringify(content),
|
|
content: JSON.stringify(content),
|
|
|
- columnId: 1743, // 保存到申勤项目数据的栏目ID
|
|
|
|
|
- modelId: 1794, // 保存到申勤项目数据的模型ID
|
|
|
|
|
|
|
+ columnId: webConfig.columnArr[2].id, // 保存到申勤驻地数据的栏目ID
|
|
|
|
|
+ modelId: webConfig.columnArr[2].mid, // 保存到申勤驻地数据的模型ID
|
|
|
};
|
|
};
|
|
|
commonAPI.updateContent(params).then(res => {
|
|
commonAPI.updateContent(params).then(res => {
|
|
|
if(res.code == 200){
|
|
if(res.code == 200){
|
|
|
ElMessage.success("保存成功");
|
|
ElMessage.success("保存成功");
|
|
|
- // this.getVectorData();
|
|
|
|
|
this.getDmsData();
|
|
this.getDmsData();
|
|
|
// 清空绘制工具
|
|
// 清空绘制工具
|
|
|
// this.mapEditDraw.clearAll();
|
|
// this.mapEditDraw.clearAll();
|
|
@@ -176,13 +181,14 @@ export default {
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
+ // 关闭JsonEditor
|
|
|
closeJsonEditor(){
|
|
closeJsonEditor(){
|
|
|
// 清空编辑数据
|
|
// 清空编辑数据
|
|
|
this.editDataList = {};
|
|
this.editDataList = {};
|
|
|
this.editWinFlag = false;
|
|
this.editWinFlag = false;
|
|
|
// 确保vector-data数据源存在且为有效的GeoJSON对象
|
|
// 确保vector-data数据源存在且为有效的GeoJSON对象
|
|
|
- if (window.mapboxMap.getSource('vector-data') && this.dataList) {
|
|
|
|
|
- window.mapboxMap.getSource('vector-data').setData(this.dataList);
|
|
|
|
|
|
|
+ if (window.mapboxMap.getSource('vector-data') && this.zdDataList) {
|
|
|
|
|
+ window.mapboxMap.getSource('vector-data').setData(this.zdDataList);
|
|
|
}
|
|
}
|
|
|
// 确保states数据源存在且为有效的GeoJSON对象
|
|
// 确保states数据源存在且为有效的GeoJSON对象
|
|
|
if (window.mapboxMap.getSource('states') && this.areaDataList) {
|
|
if (window.mapboxMap.getSource('states') && this.areaDataList) {
|
|
@@ -191,6 +197,7 @@ export default {
|
|
|
// 清空绘制工具
|
|
// 清空绘制工具
|
|
|
this.mapEditDraw.clearAll();
|
|
this.mapEditDraw.clearAll();
|
|
|
},
|
|
},
|
|
|
|
|
+ // 切换地图图层显示
|
|
|
toggleItem(item){
|
|
toggleItem(item){
|
|
|
if(item == "1"){
|
|
if(item == "1"){
|
|
|
if(this.btn_Aim_show){
|
|
if(this.btn_Aim_show){
|
|
@@ -218,7 +225,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
this.toggleEditMode(this.editFlag);
|
|
this.toggleEditMode(this.editFlag);
|
|
|
window.mapboxMap.getSource('states').setData(this.areaDataList);
|
|
window.mapboxMap.getSource('states').setData(this.areaDataList);
|
|
|
- window.mapboxMap.getSource('vector-data').setData(this.dataList);
|
|
|
|
|
|
|
+ window.mapboxMap.getSource('vector-data').setData(this.zdDataList);
|
|
|
|
|
|
|
|
this.btn_area_show = false;
|
|
this.btn_area_show = false;
|
|
|
window.mapboxMap.setLayoutProperty('state-fills', 'visibility', 'none')
|
|
window.mapboxMap.setLayoutProperty('state-fills', 'visibility', 'none')
|
|
@@ -252,13 +259,13 @@ export default {
|
|
|
getModelById() {
|
|
getModelById() {
|
|
|
let that = this;
|
|
let that = this;
|
|
|
let requestParams = {
|
|
let requestParams = {
|
|
|
- modelId: webConfig.columnArr[0].mid, // 申勤员工ID
|
|
|
|
|
|
|
+ modelId: webConfig.columnArr[1].mid, // 申勤员工ID
|
|
|
};
|
|
};
|
|
|
api.getColumnModel(requestParams).then((res) => {
|
|
api.getColumnModel(requestParams).then((res) => {
|
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
|
that.columnModel = res.content;
|
|
that.columnModel = res.content;
|
|
|
- that.columnModel.modelId = webConfig.columnArr[0].mid;
|
|
|
|
|
- that.columnModel.columnId = webConfig.columnArr[0].id;
|
|
|
|
|
|
|
+ that.columnModel.modelId = webConfig.columnArr[1].mid;
|
|
|
|
|
+ that.columnModel.columnId = webConfig.columnArr[1].id;
|
|
|
that.columnData = that.columnModel;
|
|
that.columnData = that.columnModel;
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
@@ -294,6 +301,7 @@ export default {
|
|
|
handleClose() {
|
|
handleClose() {
|
|
|
this.tableShow = false;
|
|
this.tableShow = false;
|
|
|
},
|
|
},
|
|
|
|
|
+ // 创建地图
|
|
|
creatMap() {
|
|
creatMap() {
|
|
|
let that = this;
|
|
let that = this;
|
|
|
mapboxgl.accessToken = webConfig.MAPBOX_ACCESS_TOKEN;
|
|
mapboxgl.accessToken = webConfig.MAPBOX_ACCESS_TOKEN;
|
|
@@ -351,11 +359,13 @@ export default {
|
|
|
onEditComplete: (data) => {
|
|
onEditComplete: (data) => {
|
|
|
// if(data.properties.dms_id){// 对dms_id进行判断
|
|
// if(data.properties.dms_id){// 对dms_id进行判断
|
|
|
if(data.properties.id){
|
|
if(data.properties.id){
|
|
|
|
|
+ that.dmsId = data.properties.id;
|
|
|
that.editDataList = data;
|
|
that.editDataList = data;
|
|
|
- delete that.editDataList.properties.center
|
|
|
|
|
- delete that.editDataList.properties.checkItem
|
|
|
|
|
- delete that.editDataList.properties.value
|
|
|
|
|
- delete that.editDataList.properties.address
|
|
|
|
|
|
|
+ delete that.editDataList.properties
|
|
|
|
|
+ // delete that.editDataList.properties.center
|
|
|
|
|
+ // delete that.editDataList.properties.checkItem
|
|
|
|
|
+ // delete that.editDataList.properties.value
|
|
|
|
|
+ // delete that.editDataList.properties.address
|
|
|
}
|
|
}
|
|
|
// 你可以在这里提交后端接口,将数据保存到数据库
|
|
// 你可以在这里提交后端接口,将数据保存到数据库
|
|
|
}
|
|
}
|
|
@@ -364,7 +374,6 @@ export default {
|
|
|
|
|
|
|
|
})
|
|
})
|
|
|
that.drawAreaFeature();
|
|
that.drawAreaFeature();
|
|
|
- // this.getVectorData();
|
|
|
|
|
this.getDmsData();
|
|
this.getDmsData();
|
|
|
},
|
|
},
|
|
|
|
|
|
|
@@ -500,7 +509,8 @@ export default {
|
|
|
// });
|
|
// });
|
|
|
window.mapboxMap.on('click', that.mapClickValue);
|
|
window.mapboxMap.on('click', that.mapClickValue);
|
|
|
},
|
|
},
|
|
|
- mapClickValue(e){
|
|
|
|
|
|
|
+ // 点击事件
|
|
|
|
|
+ async mapClickValue(e){
|
|
|
let that = this;
|
|
let that = this;
|
|
|
// that.editDataList = fet;
|
|
// that.editDataList = fet;
|
|
|
// 关键:只查询 data-fill-layer,过滤掉所有其他图层
|
|
// 关键:只查询 data-fill-layer,过滤掉所有其他图层
|
|
@@ -519,28 +529,32 @@ export default {
|
|
|
if (!features.length) return;
|
|
if (!features.length) return;
|
|
|
// 现在最多只有 1 个要素 → 绝对不会乱
|
|
// 现在最多只有 1 个要素 → 绝对不会乱
|
|
|
const feature = features[0];
|
|
const feature = features[0];
|
|
|
|
|
+ let proData = await that.getCurProData(feature.properties.c_father_project);
|
|
|
|
|
+ let pro = {};
|
|
|
|
|
+ if(proData.code == 200){
|
|
|
|
|
+ pro = proData.content.data[0];
|
|
|
|
|
+ }
|
|
|
// 深拷贝 Geometry:绝对避免引用错乱
|
|
// 深拷贝 Geometry:绝对避免引用错乱
|
|
|
const fet = {
|
|
const fet = {
|
|
|
type: "Feature",
|
|
type: "Feature",
|
|
|
geometry: JSON.parse(JSON.stringify(feature.geometry)),
|
|
geometry: JSON.parse(JSON.stringify(feature.geometry)),
|
|
|
- properties: { ...feature.properties }
|
|
|
|
|
|
|
+ properties: { ...pro,...feature.properties }
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
// 以下弹窗(注意要使用 fet.properties)
|
|
// 以下弹窗(注意要使用 fet.properties)
|
|
|
|
|
|
|
|
let str = "";
|
|
let str = "";
|
|
|
- for (let item in fet.properties) {
|
|
|
|
|
|
|
+ Object.entries(fet.properties).forEach(([key, value], index) => {
|
|
|
// if (UTIL.isChinese(item) && !that.arrParam.includes(item)) {
|
|
// if (UTIL.isChinese(item) && !that.arrParam.includes(item)) {
|
|
|
// str += `<p style="margin:2px 0;">${item}:${fet.properties[item]}</p>`;
|
|
// str += `<p style="margin:2px 0;">${item}:${fet.properties[item]}</p>`;
|
|
|
// }
|
|
// }
|
|
|
- if (that.arrParam.map(ev => ev.value).includes(item)) {
|
|
|
|
|
- if(item != "id"){
|
|
|
|
|
- str += `<p style="margin:2px 0;">${that.arrParam.find(et => et.value == item).name}:${fet.properties[item]}</p>`;
|
|
|
|
|
|
|
+ if (that.arrParam.map(ev => ev.value).includes(key)) {
|
|
|
|
|
+ if(key != "id"){
|
|
|
|
|
+ str += `<p style="margin:2px 0;">${that.arrParam.find(et => et.value == key).name}:${fet.properties[key]}</p>`;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
|
|
+ })
|
|
|
const popupContent = `
|
|
const popupContent = `
|
|
|
<div style="font-size:14px;line-height:1.6;padding:10px;">
|
|
<div style="font-size:14px;line-height:1.6;padding:10px;">
|
|
|
<h4 style="margin:0 0 6px 0;color:#222;"><span>内容信息</span><span style="display: ${fet.properties.c_xmygrs>0 ? 'block' : 'none'};" class="more" id="popup-more-btn">员工信息>></span></h4>
|
|
<h4 style="margin:0 0 6px 0;color:#222;"><span>内容信息</span><span style="display: ${fet.properties.c_xmygrs>0 ? 'block' : 'none'};" class="more" id="popup-more-btn">员工信息>></span></h4>
|
|
@@ -571,6 +585,7 @@ export default {
|
|
|
}, 0);
|
|
}, 0);
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
|
|
+ // 处理分页变化
|
|
|
handlePageChange(page, pageSize,text){
|
|
handlePageChange(page, pageSize,text){
|
|
|
this.page = page;
|
|
this.page = page;
|
|
|
this.pageSize = pageSize;
|
|
this.pageSize = pageSize;
|
|
@@ -585,7 +600,7 @@ export default {
|
|
|
//1743 项目数据 1742 申勤员工
|
|
//1743 项目数据 1742 申勤员工
|
|
|
// 排序条件orderByType 1 升序 2 降序
|
|
// 排序条件orderByType 1 升序 2 降序
|
|
|
let requestParams = {
|
|
let requestParams = {
|
|
|
- columnId: webConfig.columnArr[0].id,
|
|
|
|
|
|
|
+ columnId: webConfig.columnArr[1].id,
|
|
|
states: "0,1,2,3",
|
|
states: "0,1,2,3",
|
|
|
orderBy: JSON.stringify([{ field: "c_xm", orderByType: 2 }]),
|
|
orderBy: JSON.stringify([{ field: "c_xm", orderByType: 2 }]),
|
|
|
pageSize: that.pageSize,
|
|
pageSize: that.pageSize,
|
|
@@ -698,6 +713,7 @@ export default {
|
|
|
that.mapEditDraw.isEdit(isEdit);
|
|
that.mapEditDraw.isEdit(isEdit);
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
|
|
+ // 获取当前地图中心的经纬度
|
|
|
getCenterPoint(){
|
|
getCenterPoint(){
|
|
|
let that = this;
|
|
let that = this;
|
|
|
let center = window.mapboxMap.getCenter();
|
|
let center = window.mapboxMap.getCenter();
|
|
@@ -852,36 +868,11 @@ export default {
|
|
|
}).catch((error)=>{})
|
|
}).catch((error)=>{})
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
- getVectorData() {
|
|
|
|
|
- let that = this;
|
|
|
|
|
- let param = {
|
|
|
|
|
- "columnId": 1744,
|
|
|
|
|
- "token": localStorage.getItem("token")
|
|
|
|
|
- }
|
|
|
|
|
- axios.post(webConfig.DMS_URL + '/content/getVectorData', qs.stringify(param),
|
|
|
|
|
- {
|
|
|
|
|
- headers: {
|
|
|
|
|
- 'Content-Type': 'application/x-www-form-urlencoded',
|
|
|
|
|
- 'token': localStorage.getItem("token")
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
- .then(function (response) {
|
|
|
|
|
- if(response.data.message == '无效token'){
|
|
|
|
|
- that.$message.success('token过期,请重新登录');
|
|
|
|
|
- that.$router.push({ path: '/' });
|
|
|
|
|
- }else{
|
|
|
|
|
- // that.createVectorLayer(response.data);
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
- .catch(function (error) {
|
|
|
|
|
- console.log(error);
|
|
|
|
|
- });
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ // 获取项目数据
|
|
|
getDmsData() {
|
|
getDmsData() {
|
|
|
let that = this;
|
|
let that = this;
|
|
|
let param = {
|
|
let param = {
|
|
|
- "columnId": 1743,
|
|
|
|
|
|
|
+ "columnId": webConfig.columnArr[0].id,
|
|
|
"orderBy": JSON.stringify([{"field":"update_time","orderByType":2}]),
|
|
"orderBy": JSON.stringify([{"field":"update_time","orderByType":2}]),
|
|
|
"states": '0,1,2,3',
|
|
"states": '0,1,2,3',
|
|
|
"pageSize": 99999,
|
|
"pageSize": 99999,
|
|
@@ -898,17 +889,64 @@ export default {
|
|
|
}else{
|
|
}else{
|
|
|
if (res.code == 200){
|
|
if (res.code == 200){
|
|
|
const ret = res.content.data || [];
|
|
const ret = res.content.data || [];
|
|
|
- ret.forEach(item => {
|
|
|
|
|
|
|
+ ret.forEach((item) => {
|
|
|
const prop = Object.fromEntries(
|
|
const prop = Object.fromEntries(
|
|
|
Object.entries(item).filter(([key]) => that.arrParam.find(et => et.value == key))
|
|
Object.entries(item).filter(([key]) => that.arrParam.find(et => et.value == key))
|
|
|
)
|
|
)
|
|
|
|
|
+ prop.c_guid = item.c_guid;
|
|
|
|
|
+ let geom = {}
|
|
|
let feature = {
|
|
let feature = {
|
|
|
type: "Feature",
|
|
type: "Feature",
|
|
|
- geometry: wellknown.parse(item.c_polygon.value) || {},
|
|
|
|
|
|
|
+ geometry: geom,
|
|
|
properties: prop || {},
|
|
properties: prop || {},
|
|
|
}
|
|
}
|
|
|
feat.features.push(feature);
|
|
feat.features.push(feature);
|
|
|
});
|
|
});
|
|
|
|
|
+ that.dataList = feat;
|
|
|
|
|
+ that.getAllZdData();
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ }).catch((error)=>{
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+ // 获取驻地数据
|
|
|
|
|
+ getAllZdData() {
|
|
|
|
|
+ let that = this;
|
|
|
|
|
+ let params = {
|
|
|
|
|
+ "columnId": webConfig.columnArr[2].id,
|
|
|
|
|
+ "orderBy": JSON.stringify([{"field":"update_time","orderByType":2}]),
|
|
|
|
|
+ "states": '0,1,2,3',
|
|
|
|
|
+ "pageSize": 99999,
|
|
|
|
|
+ "page": 0
|
|
|
|
|
+ }
|
|
|
|
|
+ // params.search = JSON.stringify([
|
|
|
|
|
+ // ...(params.search ? JSON.parse(params.search) : []),
|
|
|
|
|
+ // {
|
|
|
|
|
+ // field: 'c_father_project',
|
|
|
|
|
+ // searchType: 2,
|
|
|
|
|
+ // content: { value: guid },
|
|
|
|
|
+ // },
|
|
|
|
|
+ // ])
|
|
|
|
|
+ let feat = {
|
|
|
|
|
+ type: "FeatureCollection",
|
|
|
|
|
+ features: [],
|
|
|
|
|
+ }
|
|
|
|
|
+ commonAPI.getDmsDataList(params).then((res) => {
|
|
|
|
|
+ if(res.message == '无效token'){
|
|
|
|
|
+ that.$message.success('token过期,请重新登录');
|
|
|
|
|
+ that.$router.push({ path: '/' });
|
|
|
|
|
+ }else{
|
|
|
|
|
+ if (res.code == 200){
|
|
|
|
|
+ const ret = res.content.data || [];
|
|
|
|
|
+ ret.forEach((item) => {
|
|
|
|
|
+ let feature = {
|
|
|
|
|
+ type: "Feature",
|
|
|
|
|
+ geometry: wellknown.parse(item.c_polygon.value) || {},
|
|
|
|
|
+ properties: item || {},
|
|
|
|
|
+ }
|
|
|
|
|
+ feat.features.push(feature);
|
|
|
|
|
+ });
|
|
|
that.createVectorLayer(feat);
|
|
that.createVectorLayer(feat);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -916,19 +954,39 @@ export default {
|
|
|
}).catch((error)=>{
|
|
}).catch((error)=>{
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
+ // 获取当前项目数据
|
|
|
|
|
+ async getCurProData(guid) {
|
|
|
|
|
+ let params = {
|
|
|
|
|
+ "columnId": webConfig.columnArr[0].id,
|
|
|
|
|
+ "orderBy": JSON.stringify([{"field":"update_time","orderByType":2}]),
|
|
|
|
|
+ "states": '0,1,2,3',
|
|
|
|
|
+ "pageSize": 1,
|
|
|
|
|
+ "page": 0
|
|
|
|
|
+ }
|
|
|
|
|
+ params.search = JSON.stringify([
|
|
|
|
|
+ ...(params.search ? JSON.parse(params.search) : []),
|
|
|
|
|
+ {
|
|
|
|
|
+ field: 'c_guid',
|
|
|
|
|
+ searchType: 2,
|
|
|
|
|
+ content: { value: guid },
|
|
|
|
|
+ },
|
|
|
|
|
+ ])
|
|
|
|
|
+ return await commonAPI.getDmsDataList(params)
|
|
|
|
|
+ },
|
|
|
|
|
+ // 创建矢量图层
|
|
|
createVectorLayer(vectorData) {
|
|
createVectorLayer(vectorData) {
|
|
|
let that = this;
|
|
let that = this;
|
|
|
|
|
+ that.zdDataList = vectorData;
|
|
|
that.options = [];
|
|
that.options = [];
|
|
|
for (let o in vectorData.features[0].properties) {
|
|
for (let o in vectorData.features[0].properties) {
|
|
|
if (that.arrParam.map(ev => ev.value).includes(o)) {
|
|
if (that.arrParam.map(ev => ev.value).includes(o)) {
|
|
|
that.options.push({
|
|
that.options.push({
|
|
|
- value: o,
|
|
|
|
|
- label: o,
|
|
|
|
|
- })
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
|
|
+ value: o,
|
|
|
|
|
+ label: that.arrParam.find(ev => ev.value == o).name,
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
- that.dataList = vectorData;
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
if(window.mapboxMap.getSource('vector-data')){
|
|
if(window.mapboxMap.getSource('vector-data')){
|
|
|
window.mapboxMap.getSource('vector-data').setData(vectorData);
|
|
window.mapboxMap.getSource('vector-data').setData(vectorData);
|
|
|
}else{
|
|
}else{
|
|
@@ -976,6 +1034,7 @@ export default {
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ // 处理选择字段变化显示文本
|
|
|
handleSelChange(){
|
|
handleSelChange(){
|
|
|
// 在每个字段后面添加换行符
|
|
// 在每个字段后面添加换行符
|
|
|
const withNewlines = this.selectText.reduce((acc, item, index, array) => {
|
|
const withNewlines = this.selectText.reduce((acc, item, index, array) => {
|