26745
This commit is contained in:
		
							
								
								
									
										13
									
								
								packages/2.0.5/AppGridBlock/components/list.vue
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										13
									
								
								packages/2.0.5/AppGridBlock/components/list.vue
									
									
									
									
										vendored
									
									
								
							| @@ -144,7 +144,7 @@ | ||||
|             <template slot-scope="{ row }"> | ||||
|               <div class="table-options"> | ||||
|                 <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> | ||||
|               </div> | ||||
|             </template> | ||||
| @@ -251,11 +251,13 @@ export default { | ||||
|       isEdit: false, | ||||
|       searchId: "", | ||||
|       fileList: [], | ||||
|       location: {} | ||||
|     }; | ||||
|   }, | ||||
|   created() { | ||||
|     this.getTreeList(); | ||||
|     this.getList(); | ||||
|     this.getCorpLocation() | ||||
|     this.dict.load("girdLevel", "girdType", "isLastLevel", "plottingStatus"); | ||||
|   }, | ||||
|   computed: { | ||||
| @@ -323,6 +325,13 @@ export default { | ||||
|     }, | ||||
|   }, | ||||
|   methods: { | ||||
|     getCorpLocation(){ | ||||
|       this.instance.post("/app/appdvcpconfig/getCorpLocation").then(res=>{ | ||||
|         if(res.code==0){ | ||||
|           this.location = res.data | ||||
|         } | ||||
|       }) | ||||
|     }, | ||||
|     handleNodeClick(val) { | ||||
|       this.info = { ...val }; | ||||
|       this.searchId = val.id; | ||||
| @@ -470,7 +479,7 @@ export default { | ||||
|               panel: "panel", // 结果列表将在此容器中进行展示。 | ||||
|               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(); | ||||
|           } | ||||
|         }) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user