代码提交
This commit is contained in:
@ -74,19 +74,28 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="center" id="cesiumContainer"></div>
|
<div class="center" id="cesiumContainer"></div>
|
||||||
|
|
||||||
<div class="right flex column j-s">
|
<div
|
||||||
|
class="right flex column"
|
||||||
|
v-loading="showLoading"
|
||||||
|
element-loading-text="数据加载中"
|
||||||
|
>
|
||||||
<!-- 路点 -->
|
<!-- 路点 -->
|
||||||
|
<div class="table-title" v-if="roadPointList.length > 0">
|
||||||
|
道路附属点
|
||||||
|
</div>
|
||||||
<vxe-table
|
<vxe-table
|
||||||
class="item"
|
class="item"
|
||||||
:data="roadPointList"
|
:data="roadPointList"
|
||||||
v-if="roadPointList.length > 0"
|
v-if="roadPointList.length > 0"
|
||||||
>
|
>
|
||||||
<vxe-column type="seq" width="70"></vxe-column>
|
<vxe-column type="seq" width="70"></vxe-column>
|
||||||
<vxe-column field="name" title="Name"></vxe-column>
|
<vxe-column field="编码" title="编码"></vxe-column>
|
||||||
<vxe-column field="sex" title="Sex"></vxe-column>
|
<vxe-column field="名称" title="名称"></vxe-column>
|
||||||
<vxe-column field="age" title="Age"></vxe-column>
|
<vxe-column field="A" title="A"></vxe-column>
|
||||||
</vxe-table>
|
</vxe-table>
|
||||||
|
|
||||||
<!-- 路线 -->
|
<!-- 路线 -->
|
||||||
|
<div class="table-title" v-if="roadLineList.length > 0">道路附属线</div>
|
||||||
<vxe-table
|
<vxe-table
|
||||||
class="item"
|
class="item"
|
||||||
:data="roadLineList"
|
:data="roadLineList"
|
||||||
@ -94,30 +103,38 @@
|
|||||||
>
|
>
|
||||||
<vxe-column type="seq" width="70"></vxe-column>
|
<vxe-column type="seq" width="70"></vxe-column>
|
||||||
<vxe-column field="编码" title="编码"></vxe-column>
|
<vxe-column field="编码" title="编码"></vxe-column>
|
||||||
<vxe-column field="A" title="名称"></vxe-column>
|
<vxe-column field="名称" title="名称"></vxe-column>
|
||||||
<vxe-column field="图形特" title="图形特"></vxe-column>
|
<vxe-column field="A" title="A"></vxe-column>
|
||||||
</vxe-table>
|
</vxe-table>
|
||||||
|
|
||||||
<!-- 水点 -->
|
<!-- 水点 -->
|
||||||
|
<div class="table-title" v-if="waterPointList.length > 0">
|
||||||
|
水系附属点
|
||||||
|
</div>
|
||||||
<vxe-table
|
<vxe-table
|
||||||
class="item"
|
class="item"
|
||||||
:data="waterPointList"
|
:data="waterPointList"
|
||||||
v-if="waterPointList.length > 0"
|
v-if="waterPointList.length > 0"
|
||||||
>
|
>
|
||||||
<vxe-column type="seq" width="70"></vxe-column>
|
<vxe-column type="seq" width="70"></vxe-column>
|
||||||
<vxe-column field="name" title="Name"></vxe-column>
|
<vxe-column field="编码" title="编码"></vxe-column>
|
||||||
<vxe-column field="sex" title="Sex"></vxe-column>
|
<vxe-column field="名称" title="名称"></vxe-column>
|
||||||
<vxe-column field="age" title="Age"></vxe-column>
|
<vxe-column field="A" title="A"></vxe-column>
|
||||||
</vxe-table>
|
</vxe-table>
|
||||||
|
|
||||||
<!-- 水线 -->
|
<!-- 水线 -->
|
||||||
|
<div class="table-title" v-if="waterLineList.length > 0">
|
||||||
|
水系附属线
|
||||||
|
</div>
|
||||||
<vxe-table
|
<vxe-table
|
||||||
class="item"
|
class="item"
|
||||||
:data="waterLineList"
|
:data="waterLineList"
|
||||||
v-if="waterLineList.length > 0"
|
v-if="waterLineList.length > 0"
|
||||||
>
|
>
|
||||||
<vxe-column type="seq" width="70"></vxe-column>
|
<vxe-column type="seq" width="70"></vxe-column>
|
||||||
<vxe-column field="name" title="Name"></vxe-column>
|
<vxe-column field="编码" title="编码"></vxe-column>
|
||||||
<vxe-column field="sex" title="Sex"></vxe-column>
|
<vxe-column field="名称" title="名称"></vxe-column>
|
||||||
<vxe-column field="age" title="Age"></vxe-column>
|
<vxe-column field="A" title="A"></vxe-column>
|
||||||
</vxe-table>
|
</vxe-table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -133,6 +150,7 @@ export default {
|
|||||||
name: '',
|
name: '',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
showLoading: false,
|
||||||
imagesList: [{id: 1, src: require('@/assets/image/crop.png')}],
|
imagesList: [{id: 1, src: require('@/assets/image/crop.png')}],
|
||||||
roadPointList: [],
|
roadPointList: [],
|
||||||
roadLineList: [],
|
roadLineList: [],
|
||||||
@ -682,6 +700,8 @@ export default {
|
|||||||
// 清除之前的矩形
|
// 清除之前的矩形
|
||||||
this.clearRectangles()
|
this.clearRectangles()
|
||||||
|
|
||||||
|
console.log('this.rectangles===>', this.rectangles)
|
||||||
|
|
||||||
// 获取分割参数
|
// 获取分割参数
|
||||||
const xSplit = parseInt(this.form.xLength) || 3
|
const xSplit = parseInt(this.form.xLength) || 3
|
||||||
const ySplit = parseInt(this.form.yLength) || 3
|
const ySplit = parseInt(this.form.yLength) || 3
|
||||||
@ -813,6 +833,7 @@ export default {
|
|||||||
console.error('坡度分析失败', e)
|
console.error('坡度分析失败', e)
|
||||||
this.$message.error('坡度分析失败,请检查地形数据')
|
this.$message.error('坡度分析失败,请检查地形数据')
|
||||||
} finally {
|
} finally {
|
||||||
|
rectInfoMap.clear()
|
||||||
this.drawLabelAndRec()
|
this.drawLabelAndRec()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -1014,7 +1035,11 @@ export default {
|
|||||||
|
|
||||||
// 选择矩形
|
// 选择矩形
|
||||||
selectRectangle(rect) {
|
selectRectangle(rect) {
|
||||||
console.log('rect===>', rect)
|
this.showLoading = true
|
||||||
|
setTimeout(() => {
|
||||||
|
this.showLoading = false
|
||||||
|
}, 500)
|
||||||
|
|
||||||
if (this.selectedRect?.id === rect.id) return
|
if (this.selectedRect?.id === rect.id) return
|
||||||
this.selectedRect = {
|
this.selectedRect = {
|
||||||
id: rect.id,
|
id: rect.id,
|
||||||
@ -1092,17 +1117,17 @@ export default {
|
|||||||
// 清除所有矩形
|
// 清除所有矩形
|
||||||
clearRectangles() {
|
clearRectangles() {
|
||||||
if (this.rectangles.length > 0) {
|
if (this.rectangles.length > 0) {
|
||||||
this.rectangles.forEach((rect) => {
|
this.rectangles.forEach((item) => item.remove())
|
||||||
window.graphicLayer.removeGraphic(rect)
|
window.graphicLayer.removeGraphic(this.rectangles)
|
||||||
})
|
this.rectangles = []
|
||||||
|
this.rectCount = 0
|
||||||
|
this.validBlocks = []
|
||||||
}
|
}
|
||||||
if (this.labels.length > 0) {
|
if (this.labels.length > 0) {
|
||||||
this.labels.forEach((label) => {
|
this.labels.forEach((item) => item.remove())
|
||||||
window.graphicLayer.removeGraphic(label)
|
window.graphicLayer.removeGraphic(this.labels)
|
||||||
})
|
|
||||||
}
|
|
||||||
this.rectangles = []
|
|
||||||
this.labels = []
|
this.labels = []
|
||||||
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@ -1192,11 +1217,20 @@ export default {
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
background-color: #d4e5db;
|
background-color: #d4e5db;
|
||||||
padding-left: 20px;
|
padding-left: 20px;
|
||||||
|
padding-right: 10px;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
|
||||||
.item {
|
.item {
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.table-title {
|
||||||
|
font-size: 16px;
|
||||||
|
font-family: 'Pingfang';
|
||||||
|
font-weight: bold;
|
||||||
|
letter-spacing: 0.1em;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user