-
-
+
-
-
+
+
-
-
+
+
-
+
-
-
+
-
-
+
+
- 搜索
- 重置
+ 搜索
+ 重置
-
+
-
- 采集时间:
+
+ 采集时间:
{{ new Date(item.createdTime).toLocaleString() }} 起始桩号:
{{ item.stakeStart || "暂无数据" }} 终止桩号:
{{ item.stakeEnd || "暂无数据" }}
病害类型:
{{ item.type || "暂无数据" }}
- 病害面积:{{ item.area }}平方米 病害长度:{{ item.length * 1 <= 0 ? "暂无数据" : `${item.length}米` }}
+ 病害面积:{{ item.area }}平方米 病害长度:{{
+ item.length * 1 <= 0 ? "暂无数据" : `${item.length}米`
+ }}
+
-
![Main Image]()
+
-
![]()
+
@@ -109,7 +201,7 @@ export default {
},
imageItem: {
type: Object,
- default: () => { },
+ default: () => {},
},
},
data() {
@@ -170,10 +262,10 @@ export default {
},
computed: {
/**
- * @description: 当前展示的图片url
- * @param {*}
- * @return {*}
- */
+ * @description: 当前展示的图片url
+ * @param {*}
+ * @return {*}
+ */
currentImage() {
if (
this.defectData.length > 0 &&
@@ -181,6 +273,11 @@ export default {
) {
// this.showImage(this.currentIndex);
const index = this.defectData[this.currentIndex].items.length - 1;
+ if (index !== this.selectedThumbnail) {
+ return this.defectData[this.currentIndex].items[
+ this.selectedThumbnail
+ ].img;
+ }
return this.defectData[this.currentIndex].items[index].img;
}
},
@@ -214,10 +311,10 @@ export default {
},
methods: {
/**
- * @description: 获取路段下拉数据
- * @param {*}
- * @return {*}
- */
+ * @description: 获取路段下拉数据
+ * @param {*}
+ * @return {*}
+ */
getSegmentList() {
getSegment().then(({ code, data }) => {
if (code === 200) {
@@ -227,10 +324,10 @@ export default {
},
/**
- * @description: 获取病害类型下拉数据
- * @param {*}
- * @return {*}
- */
+ * @description: 获取病害类型下拉数据
+ * @param {*}
+ * @return {*}
+ */
getDefectType() {
getItemTypes({ classType: this.bottomTipClick }).then(
({ code, data }) => {
@@ -242,38 +339,39 @@ export default {
},
/**
- * @description: 根据传回来的快照id查图片详细数据
- * @param {*}
- * @return {*}
- */
+ * @description: 根据传回来的快照id查图片详细数据
+ * @param {*}
+ * @return {*}
+ */
getMediaBySnapshotid() {
getMediaIndex({
classType: this.bottomTipClick,
id: this.imageItem.snapshotId,
- }).then(({ code, data }) => {
- if (code === 200) {
- this.currentIndex = data.index;
- this.pageTip = data.page;
- this.params.page = data.page;
- this.params.size = data.size;
- this.imgForm.segmentId = data.segmentId.toString();
- this.getList();
- }
- }).finally(() => {
- setTimeout(() => {
- if (this.pageTip > 1) {
- this.loadMoreTopImages()
- }
- }, 1000)
})
+ .then(({ code, data }) => {
+ if (code === 200) {
+ this.currentIndex = data.index;
+ this.pageTip = data.page;
+ this.params.page = data.page;
+ this.params.size = data.size;
+ this.imgForm.segmentId = data.segmentId.toString();
+ this.getList();
+ }
+ })
+ .finally(() => {
+ setTimeout(() => {
+ if (this.pageTip > 1) {
+ this.loadMoreTopImages();
+ }
+ }, 1000);
+ });
},
-
/**
- * @description: 切换维度事件
- * @param {*}
- * @return {*}
- */
+ * @description: 切换维度事件
+ * @param {*}
+ * @return {*}
+ */
changeImgType(type) {
if (this.labelCheck != type) {
this.labelCheck = type;
@@ -291,12 +389,11 @@ export default {
}
},
-
/**
- * @description: 向下获取图片列表
- * @param {*}
- * @return {*}
- */
+ * @description: 向下获取图片列表
+ * @param {*}
+ * @return {*}
+ */
getList() {
this.loading = true;
const data = {
@@ -319,14 +416,14 @@ export default {
.finally(() => {
this.showImage(this.currentIndex);
this.loading = false;
- })
+ });
},
/**
- * @description: 向上获取列表数据
- * @param {*}
- * @return {*}
- */
+ * @description: 向上获取列表数据
+ * @param {*}
+ * @return {*}
+ */
getListTop() {
this.loading = true;
const data = {
@@ -345,17 +442,17 @@ export default {
this.defectData = this.aimList;
}
}
- }).finally(() => {
-
- this.loading = false;
})
+ .finally(() => {
+ this.loading = false;
+ });
},
/**
- * @description: 点击搜索事件
- * @param {*}
- * @return {*}
- */
+ * @description: 点击搜索事件
+ * @param {*}
+ * @return {*}
+ */
handleQuery() {
const stakeReg = /^K\d{4}\+\d{3}$/;
if (this.imgForm.stakeStart) {
@@ -400,10 +497,10 @@ export default {
},
/**
- * @description: 重置事件
- * @param {*}
- * @return {*}
- */
+ * @description: 重置事件
+ * @param {*}
+ * @return {*}
+ */
resetQuery() {
this.defectData = [];
this.ariaList = [];
@@ -424,10 +521,10 @@ export default {
},
/**
- * @description: 左侧点击图片事件
- * @param {*}
- * @return {*}
- */
+ * @description: 左侧点击图片事件
+ * @param {*}
+ * @return {*}
+ */
showImage(index) {
// if (this.currentIndex === this.defectData.length - 1) {
// this.loadMoreBottomImages();
@@ -443,20 +540,20 @@ export default {
},
/**
- * @description: 点击下方小列表
- * @param {*}
- * @return {*}
- */
+ * @description: 点击下方小列表
+ * @param {*}
+ * @return {*}
+ */
showThumbnailImage(index) {
this.selectedThumbnail = index;
this.updateRects();
},
/**
- * @description: 使图片展示在父级容器可视区域
- * @param {*}
- * @return {*}
- */
+ * @description: 使图片展示在父级容器可视区域
+ * @param {*}
+ * @return {*}
+ */
scrollToCurrentImage() {
if (this.$refs.sidebar) {
const sidebarImages = this.$refs.sidebar.querySelectorAll("img");
@@ -471,10 +568,10 @@ export default {
},
/**
- * @description: 滚动触发事件
- * @param {*}
- * @return {*}
- */
+ * @description: 滚动触发事件
+ * @param {*}
+ * @return {*}
+ */
handleScroll() {
const sidebar = this.$refs.sidebar;
// 滚动到顶加载数据
@@ -496,20 +593,20 @@ export default {
},
/**
- * @description: 向下加载更多图片方法
- * @param {*}
- * @return {*}
- */
+ * @description: 向下加载更多图片方法
+ * @param {*}
+ * @return {*}
+ */
loadMoreBottomImages() {
this.params.page += 1;
this.getList();
},
/**
- * @description: 向上加载更多图片
- * @param {*}
- * @return {*}
- */
+ * @description: 向上加载更多图片
+ * @param {*}
+ * @return {*}
+ */
loadMoreTopImages() {
this.pageTip -= 1;
this.params.page -= 1;
@@ -518,10 +615,10 @@ export default {
},
/**
- * @description: 点击目标详情/空间维度事件
- * @param {*}
- * @return {*}
- */
+ * @description: 点击目标详情/空间维度事件
+ * @param {*}
+ * @return {*}
+ */
clickImage(item) {
if (this.labelCheck === "aim") {
this.labelCheck = "aria";
@@ -537,10 +634,10 @@ export default {
},
/**
- * @description: 键盘事件
- * @param {*}
- * @return {*}
- */
+ * @description: 键盘事件
+ * @param {*}
+ * @return {*}
+ */
handleKeydown(event) {
if (event.key === "ArrowUp") {
event.preventDefault();
@@ -607,10 +704,10 @@ export default {
},
/**
- * @description: 图片红框位置
- * @param {*}
- * @return {*}
- */
+ * @description: 图片红框位置
+ * @param {*}
+ * @return {*}
+ */
getRectStyle([left, top, width, height], index) {
const image = this.$refs.mainImage;
const container = this.$refs.imageContainer;
@@ -814,7 +911,7 @@ export default {
width: 100%;
background-color: rgba(0, 0, 0, 0.5);
- .el-checkbox__input.is-checked+.el-checkbox__label {
+ .el-checkbox__input.is-checked + .el-checkbox__label {
color: inherit;
font-size: 1.1rem;
}
@@ -842,7 +939,7 @@ export default {
opacity: 0.7;
}
- >div {
+ > div {
cursor: pointer;
white-space: nowrap;
position: absolute;
diff --git a/src/views/xj/inspection/disease-management/index.vue b/src/views/xj/inspection/disease-management/index.vue
index a2a5ebc..539bbd1 100644
--- a/src/views/xj/inspection/disease-management/index.vue
+++ b/src/views/xj/inspection/disease-management/index.vue
@@ -2,7 +2,7 @@
* @Author: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
* @Date: 2024-10-08 10:58:25
* @LastEditors: SunTao 328867980@qq.com
- * @LastEditTime: 2024-12-04 11:00:07
+ * @LastEditTime: 2024-12-06 15:08:38
* @FilePath: \znxjxt-ui\src\views\xj\inspection\disease-management\index.vue
* @Description: 巡检信息管理-病害管理
-->
@@ -555,7 +555,13 @@
路段名称:{{ viewForm.segmentName }}
病害类型:{{ viewForm.defectTypeName }}
-
病害长度:{{ viewForm.targetLen }} 米
+
+ 病害长度:{{
+ viewForm.targetLen * 1 < 0
+ ? ""
+ : `${viewForm.targetLen}米`
+ }}
+
病害id:{{ viewForm.id }}
快照id:{{ viewForm.snapshotId }}
diff --git a/src/views/xj/inspection/task-management/index.vue b/src/views/xj/inspection/task-management/index.vue
index d42dfb8..f0c6293 100644
--- a/src/views/xj/inspection/task-management/index.vue
+++ b/src/views/xj/inspection/task-management/index.vue
@@ -2,7 +2,7 @@
* @Author: SunTao 328867980@qq.com
* @Date: 2024-10-14 09:48:43
* @LastEditors: SunTao 328867980@qq.com
- * @LastEditTime: 2024-12-05 16:27:28
+ * @LastEditTime: 2024-12-06 09:20:27
* @FilePath: \znxjxt-ui\src\views\xj\inspection\task-management\index.vue
* @Description: 巡检管理-巡检任务
-->
@@ -10,31 +10,73 @@