|
@@ -1,10 +1,5 @@
|
|
<template>
|
|
<template>
|
|
<div id="mapApp">
|
|
<div id="mapApp">
|
|
- <el-button @click="dialogVisible = false">返回列表</el-button>
|
|
|
|
- 图斑编号:6401812024070108270002
|
|
|
|
- <el-button @click="dialogVisible = false">上一个</el-button>
|
|
|
|
- <el-button @click="dialogVisible = false">下一个</el-button>
|
|
|
|
-
|
|
|
|
<div class="btn" v-if="nowObj['前时相']">
|
|
<div class="btn" v-if="nowObj['前时相']">
|
|
<!-- <el-button @click="drawer = true">打开抽屉</el-button> -->
|
|
<!-- <el-button @click="drawer = true">打开抽屉</el-button> -->
|
|
<span class="sx qsx">前时相:{{ nowObj["前时相"] }}</span>
|
|
<span class="sx qsx">前时相:{{ nowObj["前时相"] }}</span>
|
|
@@ -49,14 +44,14 @@
|
|
@selectChange="handleSelectionChange"
|
|
@selectChange="handleSelectionChange"
|
|
@currentChange="getTemplate"
|
|
@currentChange="getTemplate"
|
|
>
|
|
>
|
|
- <template slot-scope="scope">
|
|
|
|
|
|
+ <template #action="{ row, index }">
|
|
|
|
+ <el-button size="mini" type="text" @click.stop="flyto(row)"
|
|
|
|
+ >定位</el-button
|
|
|
|
+ >
|
|
<el-button
|
|
<el-button
|
|
size="mini"
|
|
size="mini"
|
|
type="text"
|
|
type="text"
|
|
- @click.stop="handleDetails(scope.row)"
|
|
|
|
- >定位</el-button
|
|
|
|
- >
|
|
|
|
- <el-button size="mini" type="text" @click.stop="tableClick(scope.row)"
|
|
|
|
|
|
+ @click.stop="tableClick(row, index)"
|
|
>对比</el-button
|
|
>对比</el-button
|
|
>
|
|
>
|
|
</template>
|
|
</template>
|
|
@@ -65,6 +60,10 @@
|
|
<el-button @click="handleDownload">下载</el-button>
|
|
<el-button @click="handleDownload">下载</el-button>
|
|
</div>
|
|
</div>
|
|
<div class="jctbCon" v-if="dialogVisible">
|
|
<div class="jctbCon" v-if="dialogVisible">
|
|
|
|
+ <el-button @click="dialogVisible = false">返回列表</el-button>
|
|
|
|
+ 图斑编号:{{ 6401812024070108270002 }}
|
|
|
|
+ <el-button @click="dialogVisible = false">上一个</el-button>
|
|
|
|
+ <el-button @click="dialogVisible = false">下一个</el-button>
|
|
<Details></Details>
|
|
<Details></Details>
|
|
</div>
|
|
</div>
|
|
<!-- <CustomDetails :model="infoObj" :config="detailInfos"></CustomDetails> -->
|
|
<!-- <CustomDetails :model="infoObj" :config="detailInfos"></CustomDetails> -->
|
|
@@ -154,7 +153,7 @@ export default {
|
|
vectorLayer: {},
|
|
vectorLayer: {},
|
|
nowObj: {},
|
|
nowObj: {},
|
|
itemObj: {}, //用于存储分屏高亮的实体
|
|
itemObj: {}, //用于存储分屏高亮的实体
|
|
- dialogVisible: true,
|
|
|
|
|
|
+ dialogVisible: false,
|
|
|
|
|
|
TableHeader: TableHeader,
|
|
TableHeader: TableHeader,
|
|
|
|
|
|
@@ -201,7 +200,8 @@ export default {
|
|
console.log(this.queryParams, ";this.queryParams", this.domains);
|
|
console.log(this.queryParams, ";this.queryParams", this.domains);
|
|
},
|
|
},
|
|
//动态获取设置的模版字段
|
|
//动态获取设置的模版字段
|
|
- getTemplate() {
|
|
|
|
|
|
+ getTemplate(query) {
|
|
|
|
+ if (query) this.queryParams.pageNum = query.pageNum;
|
|
this.handleDelete();
|
|
this.handleDelete();
|
|
|
|
|
|
getDkdbList(this.queryParams).then((res) => {
|
|
getDkdbList(this.queryParams).then((res) => {
|
|
@@ -223,21 +223,20 @@ export default {
|
|
const zipfile = this.newObj.proxypath + ".zip";
|
|
const zipfile = this.newObj.proxypath + ".zip";
|
|
window.open(`${zipfile}`);
|
|
window.open(`${zipfile}`);
|
|
},
|
|
},
|
|
- tableClick(row) {
|
|
|
|
|
|
+ tableClick(row, index) {
|
|
removeWebGLTile("mapCon1");
|
|
removeWebGLTile("mapCon1");
|
|
removeWebGLTile("mapCon2");
|
|
removeWebGLTile("mapCon2");
|
|
- let urlQsx = this.newObj.proxypath + row["前时相对应影像数据"];
|
|
|
|
- let urlHsx = this.newObj.proxypath + row["后时相对应影像数据"];
|
|
|
|
if (this.nowObj.id != row.id) {
|
|
if (this.nowObj.id != row.id) {
|
|
this.maptype = "split";
|
|
this.maptype = "split";
|
|
- this.nowObj = row;
|
|
|
|
- addTiff("mapCon1", urlQsx);
|
|
|
|
- addTiff("mapCon2", urlHsx);
|
|
|
|
|
|
+ this.nowObj = { ...row, index };
|
|
|
|
+ addTiff("mapCon1", row["qsxtif"]);
|
|
|
|
+ addTiff("mapCon2", row["hsxtif"]);
|
|
this.test(row);
|
|
this.test(row);
|
|
} else {
|
|
} else {
|
|
this.maptype = "normal";
|
|
this.maptype = "normal";
|
|
this.nowObj = {};
|
|
this.nowObj = {};
|
|
}
|
|
}
|
|
|
|
+ this.handleDetails(row);
|
|
},
|
|
},
|
|
|
|
|
|
getList() {
|
|
getList() {
|
|
@@ -259,7 +258,7 @@ export default {
|
|
// getXqIdKey({ pcsjid: this.$route.query.id }).then((res) => {
|
|
// getXqIdKey({ pcsjid: this.$route.query.id }).then((res) => {
|
|
// this.descriptionsList = res.data;
|
|
// this.descriptionsList = res.data;
|
|
// });
|
|
// });
|
|
- // this.dialogVisible = true;
|
|
|
|
|
|
+ this.dialogVisible = true;
|
|
},
|
|
},
|
|
|
|
|
|
test(item) {
|
|
test(item) {
|
|
@@ -267,7 +266,7 @@ export default {
|
|
window.map["mapCon2"].removeLayer(this.itemObj);
|
|
window.map["mapCon2"].removeLayer(this.itemObj);
|
|
if (item.geom && item.geom != "") {
|
|
if (item.geom && item.geom != "") {
|
|
if (typeof item.geom === "string") {
|
|
if (typeof item.geom === "string") {
|
|
- let geom = this.tableData[i].geom;
|
|
|
|
|
|
+ let geom = item.geom; // this.tableData[i].geom;
|
|
item.geom = parse(geom);
|
|
item.geom = parse(geom);
|
|
}
|
|
}
|
|
let features = new GeoJSON().readFeatures(item.geom);
|
|
let features = new GeoJSON().readFeatures(item.geom);
|
|
@@ -287,14 +286,22 @@ export default {
|
|
zIndex: 9999,
|
|
zIndex: 9999,
|
|
});
|
|
});
|
|
window.map["mapCon1"].getView().animate({
|
|
window.map["mapCon1"].getView().animate({
|
|
- center: [item["中心点经度"], item["中心点纬度"]],
|
|
|
|
|
|
+ center: [item["lzb"], item["bzb"]],
|
|
zoom: 16.5,
|
|
zoom: 16.5,
|
|
duration: 2000, // 动画持续时间,单位毫秒
|
|
duration: 2000, // 动画持续时间,单位毫秒
|
|
});
|
|
});
|
|
|
|
+
|
|
window.map["mapCon1"].addLayer(this.itemObj);
|
|
window.map["mapCon1"].addLayer(this.itemObj);
|
|
window.map["mapCon2"].addLayer(this.itemObj);
|
|
window.map["mapCon2"].addLayer(this.itemObj);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ flyto(item) {
|
|
|
|
+ window.map["mapDiv"].getView().animate({
|
|
|
|
+ center: [item.lzb, item.bzb],
|
|
|
|
+ zoom: 16.5,
|
|
|
|
+ duration: 2000, // 动画持续时间,单位毫秒
|
|
|
|
+ });
|
|
|
|
+ },
|
|
//创建监测图斑列表实体
|
|
//创建监测图斑列表实体
|
|
addGeoJson(name, isfly) {
|
|
addGeoJson(name, isfly) {
|
|
this.tableData.forEach((titem, i) => {
|
|
this.tableData.forEach((titem, i) => {
|
|
@@ -325,7 +332,7 @@ export default {
|
|
});
|
|
});
|
|
if (isfly) {
|
|
if (isfly) {
|
|
let fullExtent = this.curPageResultLayer[
|
|
let fullExtent = this.curPageResultLayer[
|
|
- name + (this.tableData.length - 1)
|
|
|
|
|
|
+ name + 0 //(this.tableData.length - 1)
|
|
]
|
|
]
|
|
.getSource()
|
|
.getSource()
|
|
.getExtent();
|
|
.getExtent();
|