This commit is contained in:
yanran200730
2022-01-14 17:36:52 +08:00
parent 6c09a8a464
commit 75bf4c48a2

View File

@@ -144,7 +144,7 @@
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<div class="table-options"> <div class="table-options">
<el-button type="text" @click="see(row)">编辑</el-button> <el-button type="text" @click="see(row)">编辑</el-button>
<el-button type="text" @click="poltting(row)" :disabled="row.girdLevel !== '2'">标绘</el-button> <el-button type="text" @click="poltting(row)">标绘</el-button>
<el-button type="text" @click="deleteById(row.id)">删除</el-button> <el-button type="text" @click="deleteById(row.id)">删除</el-button>
</div> </div>
</template> </template>
@@ -251,11 +251,13 @@ export default {
isEdit: false, isEdit: false,
searchId: "", searchId: "",
fileList: [], fileList: [],
location: {}
}; };
}, },
created() { created() {
this.getTreeList(); this.getTreeList();
this.getList(); this.getList();
this.getCorpLocation()
this.dict.load("girdLevel", "girdType", "isLastLevel", "plottingStatus"); this.dict.load("girdLevel", "girdType", "isLastLevel", "plottingStatus");
}, },
computed: { computed: {
@@ -323,6 +325,13 @@ export default {
}, },
}, },
methods: { methods: {
getCorpLocation(){
this.instance.post("/app/appdvcpconfig/getCorpLocation").then(res=>{
if(res.code==0){
this.location = res.data
}
})
},
handleNodeClick(val) { handleNodeClick(val) {
this.info = { ...val }; this.info = { ...val };
this.searchId = val.id; this.searchId = val.id;
@@ -470,7 +479,7 @@ export default {
panel: "panel", // 结果列表将在此容器中进行展示。 panel: "panel", // 结果列表将在此容器中进行展示。
autoFitView: true, // 是否自动调整地图视野使绘制的 Marker点都处于视口的可见范围 autoFitView: true, // 是否自动调整地图视野使绘制的 Marker点都处于视口的可见范围
}); });
this.map.setZoomAndCenter(14, [117.147097, 36.72081], false, 600); this.map.setZoomAndCenter(14, [location.lng, location.lat], false, 600);
this.eventOn(); this.eventOn();
} }
}) })