fix:修改大屏+病害确认弹窗,增加里程桩图标

This commit is contained in:
SunTao 2025-01-08 16:16:58 +08:00
parent c230a31684
commit 08d0452704
4 changed files with 19 additions and 20 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

View File

@ -2,7 +2,7 @@
* @Author: SunTao 328867980@qq.com
* @Date: 2024-10-22 15:30:25
* @LastEditors: SunTao 328867980@qq.com
* @LastEditTime: 2025-01-08 15:43:05
* @LastEditTime: 2025-01-08 16:11:18
* @FilePath: \znxjxt-ui\src\views\big-screen\components\img-dialog.vue
* @Description: 大屏查看图片弹窗
-->
@ -422,6 +422,7 @@ export default {
if (code === 200) {
this.aimList.unshift(...data.aim);
this.ariaList.unshift(...data.aria);
this.currentIndex += this.params.size;
if (this.labelCheck === "aria") {
this.defectData = this.ariaList;
} else {
@ -593,7 +594,7 @@ export default {
loadMoreTopImages() {
this.pageTip -= 1;
// this.params.page -= 1;
this.currentIndex += this.params.size;
// this.currentIndex += this.params.size;
this.getListTop();
},

View File

@ -2,7 +2,7 @@
* @Author: SunTao 328867980@qq.com
* @Date: 2024-11-08 11:56:02
* @LastEditors: SunTao 328867980@qq.com
* @LastEditTime: 2024-12-27 16:40:12
* @LastEditTime: 2025-01-08 16:12:54
* @FilePath: \znxjxt-ui\src\views\big-screen\disease-components\traffic-log.vue
* @Description: 病害巡检-病害日志
-->
@ -60,7 +60,6 @@
<el-select
v-model="trafficForm.inspectDirection"
popper-class="screen-select"
:popper-append-to-body="false"
placeholder="请选择上下行"
clearable
>
@ -131,11 +130,7 @@
style="width: 100%; background: none"
height="85%"
>
<el-table-column
prop="defectType"
label="病害类型"
>
</el-table-column>
<el-table-column prop="defectType" label="病害类型"> </el-table-column>
<el-table-column
prop="segmentName"
show-overflow-tooltip

View File

@ -2,13 +2,13 @@
* @Author: SunTao 328867980@qq.com
* @Date: 2024-10-22 15:30:25
* @LastEditors: SunTao 328867980@qq.com
* @LastEditTime: 2025-01-08 10:50:05
* @LastEditTime: 2025-01-08 16:03:44
* @FilePath: \znxjxt-ui\src\views\big-screen\components\img-dialog.vue
* @Description: 大屏查看图片弹窗
-->
<template>
<div class="app">
<div class="app" v-loading="loading">
<div class="left-list">
<div class="sidebar" ref="sidebar" @scroll="handleScroll">
<img
@ -335,7 +335,7 @@ export default {
mounted() {
this.initBodySize();
this.scrollInit();
window.addEventListener("keydown", throttle(this.handleKeydown, 100));
window.addEventListener("keydown", this.handleKeydown);
window.addEventListener("resize", this.updateRects);
},
methods: {
@ -447,6 +447,7 @@ export default {
* @return {*}
*/
getMediaBySnapshotid(val) {
this.loading = true;
this.currentIndex = val.index;
this.pageTip = val.params.page;
this.params = { ...val.params };
@ -497,12 +498,14 @@ export default {
this.loading = true;
const data = {
...this.imgForm,
...this.params,
page: this.pageTip,
size: this.params.size,
startId: this.defectData[0]?.snapshotId || "",
};
listDefect(data)
.then(({ code, rows }) => {
if (code === 200) {
this.currentIndex += rows.length;
this.defectData.unshift(...rows);
this.loading = false;
}
@ -632,7 +635,7 @@ export default {
});
}
}
}, 200),
}, 100),
/**
* @description: 滚动触发事件
* @param {*}
@ -675,8 +678,8 @@ export default {
*/
loadMoreTopImages() {
this.pageTip -= 1;
this.params.page -= 1;
this.currentIndex += this.params.size;
// this.params.page -= 1;
// this.currentIndex += this.params.size;
this.getListTop();
},
@ -685,8 +688,8 @@ export default {
* @param {*}
* @return {*}
*/
handleKeydown(event) {
if (event.key === "ArrowUp") {
handleKeydown: throttle(function (event) {
if (event.key === "ArrowUp" && !this.loading) {
event.preventDefault();
if (this.currentIndex > 0) {
this.currentIndex--;
@ -696,7 +699,7 @@ export default {
this.scrollToCurrentImage();
this.updateRects();
}
} else if (event.key === "ArrowDown") {
} else if (event.key === "ArrowDown" && !this.loading) {
event.preventDefault();
if (this.currentIndex < this.defectData.length - 1) {
this.currentIndex === this.defectData.length - 1
@ -717,7 +720,7 @@ export default {
//
this.changeDefect(3);
}
},
}, 100),
/**
* @description: 选择框修改事件