|
@@ -22,7 +22,42 @@
|
|
|
</el-tabs>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <tbDetails @updateParent="changeData" :detailObj="detailObj" v-show="isShowTb"></tbDetails>
|
|
|
+ <tbDetails
|
|
|
+ @updateParent="changeData"
|
|
|
+ :detailObj="detailObj"
|
|
|
+ v-show="isShowTb"
|
|
|
+ ></tbDetails>
|
|
|
+ <div class="imgRemove" v-drag v-show="imgIndex != -1">
|
|
|
+ <div class="sm-panel-header">
|
|
|
+ <span>图片详情</span>
|
|
|
+ <i class="el-icon-close" @click="closeBox"></i>
|
|
|
+ </div>
|
|
|
+ <div class="imgBox">
|
|
|
+ <el-carousel
|
|
|
+ trigger="click"
|
|
|
+ height="332px"
|
|
|
+ indicator-position="none"
|
|
|
+ :autoplay="false"
|
|
|
+ :initial-index="imgIndex"
|
|
|
+ ref="carousel"
|
|
|
+ >
|
|
|
+ <el-carousel-item v-for="(item, i) in imgList" :key="i">
|
|
|
+ <img :src="item.imgUrl" />
|
|
|
+ {{ item }}
|
|
|
+ <div class="imgInfo">
|
|
|
+ <p>
|
|
|
+ <span>拍摄时间:{{ item.info }}</span
|
|
|
+ ><span>拍摄人:{{ item.name }}</span>
|
|
|
+ </p>
|
|
|
+ <p>
|
|
|
+ <span>拍摄坐标:{{ item.lat }}, {{ item.lon }}</span
|
|
|
+ ><span>拍摄方位:{{ item.psfw }}</span>
|
|
|
+ </p>
|
|
|
+ </div>
|
|
|
+ </el-carousel-item>
|
|
|
+ </el-carousel>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -43,15 +78,18 @@ export default {
|
|
|
// detailObj: null,
|
|
|
detailObj: {
|
|
|
tbbh: "6401812024070108270002",
|
|
|
- jcmj:'3.98',
|
|
|
+ jcmj: "3.98",
|
|
|
xzmc: "海棠区",
|
|
|
qsx: "20230925",
|
|
|
hsx: "20240701",
|
|
|
qxl: "草地",
|
|
|
hlx: "新增推堆土",
|
|
|
- zxdjd:'106.675447',
|
|
|
- zxdwd:'38.209985'
|
|
|
+ zxdjd: "106.675447",
|
|
|
+ zxdwd: "38.209985",
|
|
|
},
|
|
|
+ // isShowImg: false,
|
|
|
+ imgList: [],
|
|
|
+ imgIndex: -1,
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
@@ -60,6 +98,16 @@ export default {
|
|
|
},
|
|
|
tabClick(evt) {
|
|
|
this.activeTabs = evt.name;
|
|
|
+ this.isShowTb = false
|
|
|
+ this.imgIndex= -1
|
|
|
+ },
|
|
|
+ closeBox() {
|
|
|
+ this.imgIndex = -1;
|
|
|
+ },
|
|
|
+ },
|
|
|
+ watch: {
|
|
|
+ imgIndex(val) {
|
|
|
+ this.$refs.carousel.setActiveItem(val);
|
|
|
},
|
|
|
},
|
|
|
};
|
|
@@ -85,4 +133,59 @@ export default {
|
|
|
height: 100%;
|
|
|
}
|
|
|
}
|
|
|
+.imgRemove {
|
|
|
+ width: 504px;
|
|
|
+ height: 368px;
|
|
|
+ // background: #33ccff;
|
|
|
+ // background-color: rgba(38, 38, 38, 0.6);;
|
|
|
+ background: url(/static/images/ghzc/内容框.png) no-repeat;
|
|
|
+ background-size: 100% 100%;
|
|
|
+ position: absolute;
|
|
|
+ z-index: 99;
|
|
|
+ left: 41%;
|
|
|
+ top: 30%;
|
|
|
+ .imgBox {
|
|
|
+ width: 100%;
|
|
|
+ height: 332px;
|
|
|
+ img {
|
|
|
+ width: 100%;
|
|
|
+ height: 332px;
|
|
|
+ }
|
|
|
+ .imgInfo {
|
|
|
+ width: 245px;
|
|
|
+ height: 46px;
|
|
|
+ // background-color: rgba(255, 192, 203, 0.356);
|
|
|
+ position: absolute;
|
|
|
+ bottom: 0;
|
|
|
+ left: 10px;
|
|
|
+ p {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ font-size: 12px;
|
|
|
+ height: 50%;
|
|
|
+ line-height: 2;
|
|
|
+ span {
|
|
|
+ // margin: 0px 5px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /deep/.el-carousel__arrow {
|
|
|
+ background-color: rgba(45, 140, 240, 0.4);
|
|
|
+ }
|
|
|
+ /deep/.el-carousel__arrow:hover {
|
|
|
+ background-color: rgba(45, 140, 240);
|
|
|
+ }
|
|
|
+ /deep/ .el-icon-close:before {
|
|
|
+ position: absolute;
|
|
|
+ top: 10px;
|
|
|
+ right: 10px;
|
|
|
+ font-size: larger;
|
|
|
+ font-weight: bold;
|
|
|
+
|
|
|
+ &:hover {
|
|
|
+ color: aqua;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|