diff --git a/src/api/xj/confirmation.js b/src/api/xj/confirmation.js
index a4cc4c3..3c7b7b5 100644
--- a/src/api/xj/confirmation.js
+++ b/src/api/xj/confirmation.js
@@ -2,7 +2,7 @@
* @Author: SunTao 328867980@qq.com
* @Date: 2024-11-01 16:31:49
* @LastEditors: SunTao 328867980@qq.com
- * @LastEditTime: 2024-11-01 16:33:52
+ * @LastEditTime: 2024-11-04 17:21:17
* @FilePath: \znxjxt-ui\src\api\xj\confirmation.js
* @Description: 巡检信息-病害确认
*/
@@ -34,10 +34,22 @@ export function getDefectStatus() {
}
// 查询病害日志列表
-export function listDefect(query) {
+export function listDefect(data) {
return request({
- url: "/xj/defect/list",
- method: "get",
- params: query,
+ url: "/xj/defect/getUncheckedDefectPage",
+ method: "post",
+ data,
});
}
+
+// 是病害/不是病害
+export function mergeDefect(data) {
+ return request({
+ url: "/xj/defect/checkDefect",
+ method: "post",
+ data,
+ });
+ }
+
+
+
\ No newline at end of file
diff --git a/src/api/xj/disease.js b/src/api/xj/disease.js
index 075c528..1228774 100644
--- a/src/api/xj/disease.js
+++ b/src/api/xj/disease.js
@@ -101,3 +101,22 @@ export function changeDefectStatus(data) {
data,
});
}
+
+// 合并病害接口
+export function mergeDefect(data) {
+ return request({
+ url: "/xj/defect/mergeDefects",
+ method: "post",
+ data,
+ });
+}
+
+
+// 拆分病害接口
+export function splitDefect(data) {
+ return request({
+ url: "/xj/defect/splitDefect",
+ method: "post",
+ data,
+ });
+}
diff --git a/src/assets/screen/index/条状修补(沥青).png b/src/assets/screen/index/条状修补.png
similarity index 100%
rename from src/assets/screen/index/条状修补(沥青).png
rename to src/assets/screen/index/条状修补.png
diff --git a/src/assets/screen/index/绿化管护不.png b/src/assets/screen/index/绿化管护不善.png
similarity index 100%
rename from src/assets/screen/index/绿化管护不.png
rename to src/assets/screen/index/绿化管护不善.png
diff --git a/src/views/big-screen/components/img-dialog.vue b/src/views/big-screen/components/img-dialog.vue
index c1d3650..70146a9 100644
--- a/src/views/big-screen/components/img-dialog.vue
+++ b/src/views/big-screen/components/img-dialog.vue
@@ -2,7 +2,7 @@
* @Author: SunTao 328867980@qq.com
* @Date: 2024-10-22 15:30:25
* @LastEditors: SunTao 328867980@qq.com
- * @LastEditTime: 2024-10-31 16:13:31
+ * @LastEditTime: 2024-11-04 15:19:03
* @FilePath: \znxjxt-ui\src\views\big-screen\components\img-dialog.vue
* @Description: 大屏查看图片弹窗
-->
@@ -109,9 +109,9 @@
@load="updateRects"
/>
@@ -119,7 +119,7 @@
采集时间: {{ new Date(rectsItem.createdTime).toLocaleString() }}
起始桩号: {{ rectsItem.stakeStart || "暂无数据" }} 终止桩号:
{{ rectsItem.stakeEnd || "暂无数据" }}
- 路产状态: {{ filterState(rectsItem.state) }}
+ 路产状态: {{ filterState(rectsItem.state) }}
diff --git a/src/views/xj/inspection/confirmation-management/components/image-dialog.vue b/src/views/xj/inspection/confirmation-management/components/image-dialog.vue
index 24dde1c..060569b 100644
--- a/src/views/xj/inspection/confirmation-management/components/image-dialog.vue
+++ b/src/views/xj/inspection/confirmation-management/components/image-dialog.vue
@@ -2,7 +2,7 @@
* @Author: SunTao 328867980@qq.com
* @Date: 2024-11-01 17:25:06
* @LastEditors: SunTao 328867980@qq.com
- * @LastEditTime: 2024-11-04 10:30:58
+ * @LastEditTime: 2024-11-04 16:29:02
* @FilePath: \znxjxt-ui\src\views\xj\inspection\confirmation-management\image-dialog.vue
* @Description: 病害确认-影像模式弹窗
-->
@@ -31,60 +31,62 @@
:inline="true"
label-width="5rem"
>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+ -
+
+
+ 搜索
+ 重置
+
+
-
+
-
-
- 采集时间: {{ new Date(rectsItem.createdTime).toLocaleString()
- }}
- 起始桩号: {{ rectsItem.stakeStart || "暂无数据" }} 终止桩号:
- {{ rectsItem.stakeEnd || "暂无数据" }}
- 路产状态: {{ filterState(rectsItem.state) }}
+
+ 采集时间:
+ {{ new Date(rectsItem.createdTime).toLocaleString() }} 起始桩号:
+ {{ rectsItem.stakeStart || "暂无数据" }} 终止桩号:
+ {{ rectsItem.stakeEnd || "暂无数据" }}
+ 路产状态: {{ filterState(rectsItem.state) }}
+
@@ -139,10 +142,10 @@
@@ -150,8 +153,12 @@
+
+
\ No newline at end of file
diff --git a/src/views/xj/inspection/disease-management/index.vue b/src/views/xj/inspection/disease-management/index.vue
index 804be99..73fbd64 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-11-01 16:00:00
+ * @LastEditTime: 2024-11-05 09:21:16
* @FilePath: \znxjxt-ui\src\views\xj\inspection\disease-management .vue
* @Description: 巡检信息管理-病害管理
-->
@@ -281,6 +281,7 @@
@@ -307,6 +308,20 @@
v-hasPermi="['system:defect:remove']"
>删除
+ 合并
+
+ 拆分
+
@@ -515,6 +530,8 @@
病害类型:{{ filterDefect(viewForm.defectType) }}
病害长度:{{ viewForm.targetLen }} 米
+ 病害id:{{ viewForm.id }}
+ 快照id:{{ viewForm.snapshotId }}
@@ -539,6 +556,24 @@
+
+
+
+
+
{});
},
+ /* 合并按钮事件 */
+ mergeDefect(row) {
+ this.mergeItem = row;
+ this.mergeVisibleDialog = true;
+ },
+
+ /* 拆分按钮事件 */
+ splitDefect(row) {
+ const snapshotId = row.snapshotId;
+ this.$modal
+ .confirm(`是否确认拆分该条记录?`)
+ .then(() => {
+ return splitDefect({ snapshotId: snapshotId });
+ })
+ .then(() => {
+ this.getList();
+ this.$modal.msgSuccess("拆分成功");
+ })
+ .catch(() => {});
+ },
+
/** 导出按钮操作 */
handleExport() {
this.download(
@@ -1199,6 +1265,14 @@ export default {
/* 关闭查看图片弹窗 */
imgCancel() {
this.showImageDialog = false;
+ this.currentImageItem = {};
+ this.rects = [];
+ },
+
+ /* 关闭合并病害弹窗 */
+ mergeCancel() {
+ this.mergeVisibleDialog = false;
+ this.getList();
},
},
};
diff --git a/src/views/xj/inspection/road-management/index.vue b/src/views/xj/inspection/road-management/index.vue
index 4d149e7..ed98ced 100644
--- a/src/views/xj/inspection/road-management/index.vue
+++ b/src/views/xj/inspection/road-management/index.vue
@@ -2,7 +2,7 @@
* @Author: SunTao 328867980@qq.com
* @Date: 2024-10-11 15:14:16
* @LastEditors: SunTao 328867980@qq.com
- * @LastEditTime: 2024-11-01 15:59:48
+ * @LastEditTime: 2024-11-05 09:22:27
* @FilePath: \znxjxt-ui\src\views\xj\inspection\road-management\index.vue
* @Description: 巡检信息-路产管理
-->
@@ -724,6 +724,8 @@ export default {
/* 关闭查看图片弹窗 */
imgCancel() {
this.showImageDialog = false;
+ this.currentImageItem = {};
+ this.rects = [];
},
},
};
diff --git a/src/views/xj/inspection/traffic-management/index.vue b/src/views/xj/inspection/traffic-management/index.vue
index 755cf2d..0670324 100644
--- a/src/views/xj/inspection/traffic-management/index.vue
+++ b/src/views/xj/inspection/traffic-management/index.vue
@@ -2,7 +2,7 @@
* @Author: SunTao 328867980@qq.com
* @Date: 2024-10-12 14:52:23
* @LastEditors: SunTao 328867980@qq.com
- * @LastEditTime: 2024-11-01 16:11:11
+ * @LastEditTime: 2024-11-05 09:23:30
* @FilePath: \znxjxt-ui\src\views\xj\inspection\traffic-management\index.vue
* @Description: 巡检管理-交安事件
-->
@@ -668,7 +668,7 @@ export default {
this.viewVisible = false;
this.dialogItem = { title: "添加事件" };
},
-
+
/* 打开查看图片弹窗 */
showScreenImg(item) {
this.currentImageItem = item;
@@ -722,6 +722,8 @@ export default {
/* 关闭查看图片弹窗 */
imgCancel() {
this.showImageDialog = false;
+ this.currentImageItem = {};
+ this.rects = [];
},
},
};