{{
@@ -226,9 +226,7 @@
>
采集时间:
- {{
- new Date(currentImageItem.createdTime).toLocaleString()
- }}
+ {{ new Date(currentImageItem.createdTime).toLocaleString() }}
起始桩号: {{ currentImageItem.stakeStart || "暂无数据" }} 终止桩号:
{{ currentImageItem.stakeEnd || "暂无数据" }}
病害类型:
@@ -327,16 +325,16 @@ export default {
}
},
- /* 过滤列表病害状态 */
- filterState(value) {
- let a = null;
- [a] = this.defectStatus.filter((item) => {
- return item.value === value;
- });
- if (a) {
- return a.label;
- }
- },
+ // /* 过滤列表病害状态 */
+ // filterState(value) {
+ // let a = null;
+ // [a] = this.defectStatus.filter((item) => {
+ // return item.value === value;
+ // });
+ // if (a) {
+ // return a.label;
+ // }
+ // },
/* 搜索事件 */
handleQuery() {
diff --git a/src/views/xj/inspection/disease-management/index.vue b/src/views/xj/inspection/disease-management/index.vue
index 169433f..f133523 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-24 15:57:52
+ * @LastEditTime: 2025-01-14 11:50:15
* @FilePath: \znxjxt-ui\src\views\xj\inspection\disease-management\index.vue
* @Description: 巡检信息管理-病害管理
-->
@@ -55,7 +55,7 @@
clearable
>
-
+
-
-
+
+
+
+
+
+
删除
-
+
@@ -239,11 +237,11 @@
-
+
{{
@@ -386,7 +384,7 @@
-
+
-
+
@@ -439,7 +437,7 @@
-
+
-
+
采集时间:
- {{ new Date(currentImageItem.createdTime).toLocaleString()}} 起始桩号:
- {{ currentImageItem.stakeStart || "暂无数据" }} 终止桩号:
+ {{ new Date(currentImageItem.createdTime).toLocaleString() }}
+ 起始桩号: {{ currentImageItem.stakeStart || "暂无数据" }} 终止桩号:
{{ currentImageItem.stakeEnd || "暂无数据" }}
病害类型:
{{ currentImageItem.defectTypeName || "暂无数据" }}
@@ -723,6 +721,7 @@ export default {
maxLen: undefined,
minArea: undefined,
maxArea: undefined,
+ confirmStatus: "",
id: "",
snapshotId: "",
taskId: "",
@@ -842,7 +841,7 @@ export default {
this.getSegmentList();
this.getTableDefect();
this.getStates();
- this.getDefectStatusList();
+ // this.getDefectStatusList();
this.getTaskSelectList();
},
methods: {
@@ -877,15 +876,15 @@ export default {
* @param {*} value
* @return {*}
*/
- filterState(value) {
- let a = null;
- [a] = this.defectStatus.filter((item) => {
- return item.value === value;
- });
- if (a) {
- return a.label;
- }
- },
+ // filterState(value) {
+ // let a = null;
+ // [a] = this.defectStatus.filter((item) => {
+ // return item.value === value;
+ // });
+ // if (a) {
+ // return a.label;
+ // }
+ // },
/**
* @description: 查询校验状态下拉数据
@@ -905,13 +904,13 @@ export default {
* @param {*} val
* @return {*}
*/
- getDefectStatusList() {
- getDefectStatus().then(({ data, code }) => {
- if (code === 200) {
- this.defectStatus = data;
- }
- });
- },
+ // getDefectStatusList() {
+ // getDefectStatus().then(({ data, code }) => {
+ // if (code === 200) {
+ // this.defectStatus = data;
+ // }
+ // });
+ // },
/**
* @description: 查询巡检任务下拉数据
@@ -1007,6 +1006,7 @@ export default {
maxLen: undefined,
minArea: undefined,
maxArea: undefined,
+ confirmStatus: "",
id: "",
snapshotId: "",
taskId: "",
@@ -1102,7 +1102,7 @@ export default {
this.markers = row.geometry.coordinates;
this.drawMapPoint();
});
- this.form = { ...row, dataStatus: row.dataStatus.toString() };
+ this.form = { ...row, dataStatus: row?.dataStatus?.toString() };
this.upload.fileList = row.media.map((item) => {
return {
...item,
@@ -1309,6 +1309,38 @@ export default {
.catch(() => {});
},
+ /**
+ * @description: 导出按钮事件
+ * @param {*}
+ * @return {*}
+ */
+ handleExport() {
+ const params = {
+ ...this.queryParams,
+ startTime: this.dateTime ? this.dateTime[0] : "",
+ endTime: this.dateTime ? this.dateTime[1] : "",
+ };
+ exportDefectData(params)
+ .then((res) => {
+ const link = document.createElement("a");
+ const blob = new Blob([res], {
+ // type: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
+ // type: "application/zip",
+ type: "application/vnd.ms-excel",
+ });
+ link.style.display = "none";
+ link.href = URL.createObjectURL(blob);
+ // TODO 源文件名问题
+ link.download = item.extId;
+ document.body.appendChild(link);
+ link.click();
+ document.body.removeChild(link);
+ })
+ .finally(() => {
+ this.getList();
+ });
+ },
+
/**
* @description: 合并按钮事件
* @param {*} row
@@ -1338,21 +1370,6 @@ export default {
.catch(() => {});
},
- /**
- * @description: 导出按钮操作
- * @param {*} val
- * @return {*}
- */
- handleExport() {
- this.download(
- "xj/defect/export",
- {
- ...this.queryParams,
- },
- `defect_${new Date().getTime()}.xlsx`
- );
- },
-
/**
* @description: 重置表单数据
* @param {*} val
diff --git a/src/views/xj/inspection/road-management/index.vue b/src/views/xj/inspection/road-management/index.vue
index 3bf703f..33c4af1 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-12-24 15:37:29
+ * @LastEditTime: 2025-01-14 14:24:28
* @FilePath: \znxjxt-ui\src\views\xj\inspection\road-management\index.vue
* @Description: 巡检信息-路产管理
-->
@@ -238,7 +238,6 @@
-
采集时间:
- {{ new Date(currentImageItem.createdTime).toLocaleString() }} 起始桩号:
- {{ currentImageItem.stakeStart || "暂无数据" }} 终止桩号:
+ {{ new Date(currentImageItem.createdTime).toLocaleString() }}
+ 起始桩号: {{ currentImageItem.stakeStart || "暂无数据" }} 终止桩号:
{{ currentImageItem.stakeEnd || "暂无数据" }}
路产类型:
- {{ filterDefect(currentImageItem.equipmentType)|| "暂无数据" }}
+ {{ filterDefect(currentImageItem.equipmentType) || "暂无数据" }}
@@ -623,7 +622,7 @@ export default {
* @return {*}
*/
handleDelete(row) {
- const checkIds = row ? [row.id] : this.checkIds;
+ const checkIds = row ? [row.snapshotId] : this.checkIds;
if (!checkIds.length) {
this.$modal.msgWarning("请选择要删除的记录");
return;
@@ -673,7 +672,7 @@ export default {
* @return {*}
*/
handleSelectionChange(selection) {
- this.checkIds = selection.map((item) => item.id);
+ this.checkIds = selection.map((item) => item.snapshotId);
this.single = selection.length !== 1;
this.multiple = !selection.length;
},
diff --git a/src/views/xj/inspection/task-management/index.vue b/src/views/xj/inspection/task-management/index.vue
index bc829b6..a90b784 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: 2025-01-02 15:21:44
+ * @LastEditTime: 2025-01-13 17:27:11
* @FilePath: \znxjxt-ui\src\views\xj\inspection\task-management\index.vue
* @Description: 巡检管理-巡检任务
-->
@@ -440,15 +440,6 @@ export default {
this.dialogItem = item;
},
- /**
- * @description: 导出文件
- * @return {*}
- */
- submitForm(item, type) {
- console.log(item, "fdfdfd");
- this.wordExport(this.dialogItem, type);
- },
-
/**
* @description: 导出文件的方法
* @param {*} item
@@ -473,7 +464,6 @@ export default {
document.body.removeChild(link);
})
.finally(() => {
- this.exportCancel();
loadingInstance.close();
});
},