From 75c45150bcc5b1a3b45efe98ce6ec92b7b10aba3 Mon Sep 17 00:00:00 2001
From: quanyawei <401863037@qq.com>
Date: Fri, 06 Sep 2024 11:14:40 +0800
Subject: [PATCH] fix: 责任单位修改
---
src/views/list/road.vue | 60 ++++++++++++++++++++++++++++++++++--------------------------
1 files changed, 34 insertions(+), 26 deletions(-)
diff --git a/src/views/list/road.vue b/src/views/list/road.vue
index b302774..43fa29d 100644
--- a/src/views/list/road.vue
+++ b/src/views/list/road.vue
@@ -28,9 +28,6 @@
<a-button type="primary" style="margin-left: 10px" @click="selectCheck"
>������</a-button
>
- <a-button type="primary" style="margin-left: 10px" @click="reosurce"
- >������������������</a-button
- >
</div>
<div class="left-five">
<a-input
@@ -44,12 +41,6 @@
<a-button type="primary" style="margin-left: 10px" @click="clearPolygon"
>������������</a-button
>
- <a-button
- type="primary"
- style="margin-left: 10px"
- @click="showAllPolygon"
- >������������������</a-button
- >
</div>
<div class="left-two">
<a-table
@@ -62,6 +53,15 @@
></a-table>
</div>
<div class="left-three" style="margin-top: 20px">
+ <a-button type="primary" style="margin-left: 10px" @click="reosurce"
+ >������������������</a-button
+ >
+ <a-button
+ type="primary"
+ style="margin-left: 10px"
+ @click="showAllPolygon"
+ >������������������</a-button
+ >
<a-button
v-show="upa === ''"
type="primary"
@@ -317,16 +317,10 @@
private opRender(text: string, record: any, index: number) {
return (
- <div style="width:180px">
+ <div style="width:180px;text-align:left">
<a onClick={() => this.handleEditModalVisible(record)}> ������ </a>
<a-divider type="vertical" />
<a onClick={() => this.handleEditbatch(record)}> ������������ </a>
- <a-divider type="vertical" />
- <a onClick={() => this.canvasbatch(record)}> ������������������ </a>
- <a-divider type="vertical" />
- <a onClick={() => this.handleEditCanves(record)}> ������������ </a>
- <a-divider type="vertical" />
- <a onClick={() => this.handleShowPolygon(record)}> ������������ </a>
<a-divider type="vertical" />
<a-popconfirm
title="������������������"
@@ -336,6 +330,12 @@
>
<a href="#">������</a>
</a-popconfirm>
+ <br></br>
+ <a onClick={() => this.canvasbatch(record)}> ������������������ </a>
+ <a-divider type="vertical" />
+ <a onClick={() => this.handleEditCanves(record)}> ������������ </a>
+ <br></br>
+ <a onClick={() => this.handleShowPolygon(record)}> ������������ </a>
</div>
);
}
@@ -386,16 +386,24 @@
}
// ������������������
showAllPolygon() {
- console.log("this.dataSource", this.dataSource);
- this.dataSource.forEach((item: any) => {
- if (item.bdValues) {
- let pointList = item.bdValues.map((item: any) => {
- return new BMapGL.Point(item.lng, item.lat);
- });
- let polygon = new BMapGL.Polygon([...pointList]);
- console.log("polygon", polygon);
- this.map.addOverlay(polygon);
- }
+ let macType = null;
+ if (this.carvalue !== "������������������") {
+ macType = this.carvalue;
+ }
+ get("coordinate/selectCruiserRoad", {
+ name: "",
+ mac: macType,
+ }).then((res) => {
+ res.data.data.forEach((item: any) => {
+ if (item.bdValues) {
+ let pointList = item.bdValues.map((item: any) => {
+ return new BMapGL.Point(item.lng, item.lat);
+ });
+ let polygon = new BMapGL.Polygon([...pointList]);
+ console.log("polygon", polygon);
+ this.map.addOverlay(polygon);
+ }
+ });
});
}
// ������������
--
Gitblit v1.8.0