|
@@ -6,24 +6,26 @@
|
|
|
label="图斑编号"
|
|
|
label-class-name="my-label"
|
|
|
content-class-name="my-content"
|
|
|
- >{{ "6401812024070108270002" }}</el-descriptions-item
|
|
|
+ >{{ hcObj.jcbh }}</el-descriptions-item
|
|
|
>
|
|
|
<el-descriptions-item
|
|
|
label="外业核实情况"
|
|
|
content-class-name="my-content"
|
|
|
:span="3"
|
|
|
- >{{ "已核实" }}</el-descriptions-item
|
|
|
+ >{{ hcObj.wyhsqk }}</el-descriptions-item
|
|
|
>
|
|
|
<el-descriptions-item label="实际地类代码">{{
|
|
|
- "4601"
|
|
|
+ hcObj.sjdldm
|
|
|
}}</el-descriptions-item>
|
|
|
<el-descriptions-item label="调查人员">{{
|
|
|
- "刘子规"
|
|
|
+ hcObj.dcry
|
|
|
}}</el-descriptions-item>
|
|
|
<el-descriptions-item label="调查时间">{{
|
|
|
- "20240116"
|
|
|
+ hcObj.dcsj
|
|
|
+ }}</el-descriptions-item>
|
|
|
+ <el-descriptions-item label="扩展信息1">{{
|
|
|
+ "无"
|
|
|
}}</el-descriptions-item>
|
|
|
- <el-descriptions-item label="扩展信息1">{{ "1" }}</el-descriptions-item>
|
|
|
<el-descriptions-item label="扩展信息2">{{
|
|
|
"无"
|
|
|
}}</el-descriptions-item>
|
|
@@ -34,9 +36,7 @@
|
|
|
</div>
|
|
|
<div class="imgCon">
|
|
|
<div class="echartTitle">
|
|
|
- <div class="block-title">
|
|
|
- 监测类型情况 <span @click="ceshi">测试</span>
|
|
|
- </div>
|
|
|
+ <div class="block-title">监测类型情况</div>
|
|
|
</div>
|
|
|
<div class="imgList">
|
|
|
<div
|
|
@@ -48,8 +48,9 @@
|
|
|
@mouseleave="handleMouseLeave(item, i)"
|
|
|
>
|
|
|
<span>{{ i + 1 }}</span>
|
|
|
- <img :src="item.imgUrl" />
|
|
|
- <p>{{ item.info }}</p>
|
|
|
+ <img :src="imgUrl" />
|
|
|
+ <!-- <img :src="imgUrl + item.imagerPath" /> -->
|
|
|
+ <p>{{ item.imagerSj }}</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -57,15 +58,20 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import { getJctbhcInfo } from "@/api/ghss/jctb.js";
|
|
|
export default {
|
|
|
props: {
|
|
|
detailObj: {
|
|
|
type: Object,
|
|
|
},
|
|
|
+ jcbh: {
|
|
|
+ type: String,
|
|
|
+ },
|
|
|
},
|
|
|
components: {},
|
|
|
data() {
|
|
|
return {
|
|
|
+ imgUrl: "",
|
|
|
monitorList: [
|
|
|
{
|
|
|
id: "s1",
|
|
@@ -121,6 +127,7 @@ export default {
|
|
|
primitive: null,
|
|
|
selectId: null,
|
|
|
primitivesArray: [],
|
|
|
+ hcObj: null,
|
|
|
};
|
|
|
},
|
|
|
computed: {},
|
|
@@ -131,16 +138,19 @@ export default {
|
|
|
// this.ccc();
|
|
|
// this.onClickButton();
|
|
|
this.ddd();
|
|
|
+ // this.imgUrl =
|
|
|
+ // "https://b0.bdstatic.com/ugc/Gr0RkpztmAdvrxnS4n54Iw49d04e3484c9bb1a11f03b38a819d893.jpg@h_1280";
|
|
|
});
|
|
|
+ this.imgUrl = window.axiosURI + "/analyse/fzss/DownloadReport?filePath=";
|
|
|
},
|
|
|
methods: {
|
|
|
handleMouseEnter(a, b) {
|
|
|
console.log("鼠标移入", a, b);
|
|
|
- this.ceshi('111')
|
|
|
+ this.ceshi("111");
|
|
|
},
|
|
|
handleMouseLeave(a, b) {
|
|
|
console.log("鼠标移出");
|
|
|
- this.ceshi()
|
|
|
+ this.ceshi();
|
|
|
},
|
|
|
changeData(name, updata) {
|
|
|
this[name] = updata;
|
|
@@ -149,92 +159,28 @@ export default {
|
|
|
this.$emit("updateParent", "emitImgList", this.monitorList);
|
|
|
this.$emit("updateParent", "emitImgIndex", val);
|
|
|
},
|
|
|
- aaa() {
|
|
|
- var redLine = viewer.entities.add({
|
|
|
- // 贴在地面上 两点之间的直线距离
|
|
|
- name: "line",
|
|
|
- // polyline: {
|
|
|
- // positions: Cesium.Cartesian3.fromDegreesArray([
|
|
|
- // // o.inx,
|
|
|
- // // o.iny,
|
|
|
- // // o.outx,
|
|
|
- // // o.outy,
|
|
|
- // 109.5077, 18.309, 109.5111, 18.3093,
|
|
|
- // ]),
|
|
|
- // width: 20,
|
|
|
- // // 不带箭头的线
|
|
|
- // // material: Cesium.Color.RED,
|
|
|
- // // 是否紧贴地面
|
|
|
- // clampToGround: true,
|
|
|
- // // 带箭头的线
|
|
|
- // material: new Cesium.PolylineArrowMaterialProperty(Cesium.Color.RED),
|
|
|
- // },
|
|
|
-
|
|
|
- polygon: {
|
|
|
- hierarchy: Cesium.Cartesian3.fromDegreesArray([
|
|
|
- // o.inx,
|
|
|
- // o.iny,
|
|
|
- // o.outx,
|
|
|
- // o.outy,
|
|
|
- 109.5077, 18.309, 109.5111, 18.3093,
|
|
|
- ]),
|
|
|
- material: new Cesium.ColorMaterialProperty(
|
|
|
- Cesium.Color.fromCssColorString("rgba(255, 255, 255, 1)")
|
|
|
- ),
|
|
|
- width: 15,
|
|
|
- },
|
|
|
- });
|
|
|
- },
|
|
|
- ccc() {
|
|
|
- // // var viewer = new Cesium.Viewer("cesiumContainer");
|
|
|
- // // var scene = viewer.scene;
|
|
|
- // // 创建BillboardCollection来存储图片或图标
|
|
|
- // var billboards = viewer.scene.primitives.add(
|
|
|
- // new Cesium.BillboardCollection()
|
|
|
- // );
|
|
|
- // // 添加一个带偏移量和旋转的图标
|
|
|
- // var billboard = billboards.add({
|
|
|
- // image:
|
|
|
- // "https://img2.baidu.com/it/u=2726480512,4270878021&fm=253&fmt=auto&app=120&f=JPEG?w=193&h=193", // 替换为图片的路径
|
|
|
- // position: Cesium.Cartesian3.fromDegrees(109.5077, 18.309), // 设置图片的位置,采用经纬度
|
|
|
- // width: 64, // 设置图片的宽度
|
|
|
- // height: 64, // 设置图片的高度
|
|
|
- // rotation: Cesium.Math.toRadians(45), // 设置初始旋转角度(单位弧度)
|
|
|
- // // clampToGround: true,
|
|
|
- // pixelOffset: new Cesium.Cartesian2(30, -40), // 设置偏移量,X轴偏移30像素,Y轴偏移-40像素
|
|
|
- // heightReference: Cesium.HeightReference.CLAMP_TO_GROUND,
|
|
|
- // horizontalOrigin: Cesium.HorizontalOrigin.CENTER, // 水平锚点
|
|
|
- // verticalOrigin: Cesium.VerticalOrigin.BOTTOM, // 垂直锚点
|
|
|
- // });
|
|
|
-
|
|
|
- // 创建一个Cesium视图
|
|
|
- // var viewer = new Cesium.Viewer("cesiumContainer");
|
|
|
-
|
|
|
- // 获取场景对象
|
|
|
- var scene = viewer.scene;
|
|
|
-
|
|
|
- // 创建一个BillboardCollection,用于存放所有Billboard对象
|
|
|
- var billboards = scene.primitives.add(new Cesium.BillboardCollection());
|
|
|
-
|
|
|
- // 定义图片的URL
|
|
|
- var imageUrl = "https://example.com/your-image.png";
|
|
|
-
|
|
|
- // 设置图片的初始位置(经纬度)
|
|
|
- var longitude = -75.0;
|
|
|
- var latitude = 40.0;
|
|
|
- var height = 1000; // 距离地面1000米
|
|
|
-
|
|
|
- // 创建Billboard对象
|
|
|
- var billboard = billboards.add({
|
|
|
- image: imageUrl, // 设置图片
|
|
|
- position: Cesium.Cartesian3.fromDegrees(longitude, latitude, height), // 设置位置
|
|
|
- heightReference: Cesium.HeightReference.CLAMP_TO_GROUND, // 贴地
|
|
|
- scale: 1.0, // 图片的缩放比例
|
|
|
- rotation: Cesium.Math.toRadians(45), // 旋转角度,单位是弧度
|
|
|
- pixelOffset: new Cesium.Cartesian2(50, 0), // 图片的偏移量,单位是像素(x, y)
|
|
|
- alignedAxis: Cesium.Cartesian3.ZERO, // 不需要对齐轴
|
|
|
- });
|
|
|
- },
|
|
|
+ // aaa() {
|
|
|
+ // var redLine = viewer.entities.add({
|
|
|
+ // // 贴在地面上 两点之间的直线距离
|
|
|
+ // name: "line",
|
|
|
+ // polyline: {
|
|
|
+ // positions: Cesium.Cartesian3.fromDegreesArray([
|
|
|
+ // // o.inx,
|
|
|
+ // // o.iny,
|
|
|
+ // // o.outx,
|
|
|
+ // // o.outy,
|
|
|
+ // 109.5077, 18.309, 109.5111, 18.3093,
|
|
|
+ // ]),
|
|
|
+ // width: 20,
|
|
|
+ // // 不带箭头的线
|
|
|
+ // // material: Cesium.Color.RED,
|
|
|
+ // // 是否紧贴地面
|
|
|
+ // clampToGround: true,
|
|
|
+ // // 带箭头的线
|
|
|
+ // material: new Cesium.PolylineArrowMaterialProperty(Cesium.Color.RED),
|
|
|
+ // },
|
|
|
+ // });
|
|
|
+ // },
|
|
|
//点击事件
|
|
|
onClickButton(e, val) {
|
|
|
// 每次进来清空,然后再重新加载图片
|
|
@@ -375,7 +321,6 @@ export default {
|
|
|
viewer.zoomTo(arrowEntity);
|
|
|
},
|
|
|
ceshi(item) {
|
|
|
- // console.log(item,"?????");
|
|
|
let aaa = viewer.entities.getById("jt1");
|
|
|
|
|
|
if (item) {
|
|
@@ -477,8 +422,24 @@ export default {
|
|
|
// }
|
|
|
},
|
|
|
},
|
|
|
- watch: {},
|
|
|
- watch: {},
|
|
|
+ watch: {
|
|
|
+ jcbh: {
|
|
|
+ handler(newVal, oldVal) {
|
|
|
+ getJctbhcInfo(newVal).then((res) => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.monitorList = res.data.images;
|
|
|
+ this.hcObj = res.data;
|
|
|
+ this.monitorList.forEach((item) => {
|
|
|
+ item.name = res.data.dcry;
|
|
|
+ });
|
|
|
+ }
|
|
|
+ console.log(res.data.images, "?????????????????????????");
|
|
|
+ });
|
|
|
+ },
|
|
|
+ deep: true,
|
|
|
+ immediate: true,
|
|
|
+ },
|
|
|
+ },
|
|
|
beforeDestroy() {
|
|
|
this.delatePoi("jt1");
|
|
|
this.delatePoi("dw1");
|