diff --git a/src/views/residentAnalysis/index.vue b/src/views/residentAnalysis/index.vue
index 10f83c9..86d0c59 100644
--- a/src/views/residentAnalysis/index.vue
+++ b/src/views/residentAnalysis/index.vue
@@ -74,19 +74,28 @@
-
+
+
+ 道路附属点
+
-
-
-
+
+
+
+
+
道路附属线
-
-
+
+
+
+
+ 水系附属点
+
-
-
-
+
+
+
+
+
+ 水系附属线
+
-
-
-
+
+
+
@@ -133,6 +150,7 @@ export default {
name: '',
data() {
return {
+ showLoading: false,
imagesList: [{id: 1, src: require('@/assets/image/crop.png')}],
roadPointList: [],
roadLineList: [],
@@ -682,6 +700,8 @@ export default {
// 清除之前的矩形
this.clearRectangles()
+ console.log('this.rectangles===>', this.rectangles)
+
// 获取分割参数
const xSplit = parseInt(this.form.xLength) || 3
const ySplit = parseInt(this.form.yLength) || 3
@@ -813,6 +833,7 @@ export default {
console.error('坡度分析失败', e)
this.$message.error('坡度分析失败,请检查地形数据')
} finally {
+ rectInfoMap.clear()
this.drawLabelAndRec()
}
},
@@ -1014,7 +1035,11 @@ export default {
// 选择矩形
selectRectangle(rect) {
- console.log('rect===>', rect)
+ this.showLoading = true
+ setTimeout(() => {
+ this.showLoading = false
+ }, 500)
+
if (this.selectedRect?.id === rect.id) return
this.selectedRect = {
id: rect.id,
@@ -1092,17 +1117,17 @@ export default {
// 清除所有矩形
clearRectangles() {
if (this.rectangles.length > 0) {
- this.rectangles.forEach((rect) => {
- window.graphicLayer.removeGraphic(rect)
- })
+ this.rectangles.forEach((item) => item.remove())
+ window.graphicLayer.removeGraphic(this.rectangles)
+ this.rectangles = []
+ this.rectCount = 0
+ this.validBlocks = []
}
if (this.labels.length > 0) {
- this.labels.forEach((label) => {
- window.graphicLayer.removeGraphic(label)
- })
+ this.labels.forEach((item) => item.remove())
+ window.graphicLayer.removeGraphic(this.labels)
+ this.labels = []
}
- this.rectangles = []
- this.labels = []
},
},
}
@@ -1192,11 +1217,20 @@ export default {
height: 100%;
background-color: #d4e5db;
padding-left: 20px;
+ padding-right: 10px;
overflow: auto;
.item {
margin-bottom: 10px;
}
+
+ .table-title {
+ font-size: 16px;
+ font-family: 'Pingfang';
+ font-weight: bold;
+ letter-spacing: 0.1em;
+ margin-bottom: 10px;
+ }
}
}