From c661674306f83604b405d04dbb69f4c45e5cb3e2 Mon Sep 17 00:00:00 2001 From: SunTao <328867980@qq.com> Date: Wed, 15 Jan 2025 15:09:36 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E6=94=B9=E8=81=94?= =?UTF-8?q?=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/xj/dataManagement.js | 18 + src/api/xj/document.js | 9 + src/api/xj/warnSetup.js | 21 +- .../components/edit-dialog.vue | 390 +++++++++++++++++- .../xj/document/maintenance-notice/index.vue | 327 +++++++-------- .../warning-setup/components/add-setup.vue | 49 ++- .../inspection-warn/warning-setup/index.vue | 72 ++-- .../xj/inspection/data-management/index.vue | 162 +++----- .../inspection/disease-management/index.vue | 12 +- .../xj/inspection/road-management/index.vue | 4 +- 10 files changed, 715 insertions(+), 349 deletions(-) diff --git a/src/api/xj/dataManagement.js b/src/api/xj/dataManagement.js index 7f1c29c..542d477 100644 --- a/src/api/xj/dataManagement.js +++ b/src/api/xj/dataManagement.js @@ -18,3 +18,21 @@ export function getDefectList(params) { params, }); } + +// 查询数据列表 +export function getDataList(params) { + return request({ + url: "/basCheckoutSetting/list", + method: "get", + params, + }); +} + +// 修改数据状态 +export function updateStatus(data) { + return request({ + url: "/basCheckoutSetting/updateStatus", + method: "post", + data, + }); +} diff --git a/src/api/xj/document.js b/src/api/xj/document.js index d3bdb2a..90cdb80 100644 --- a/src/api/xj/document.js +++ b/src/api/xj/document.js @@ -60,3 +60,12 @@ export function getMaintenanceNoticeById(params) { params, }); } + +// 查询病害列表 +export function listDefect(query) { + return request({ + url: "/xj/defect/list", + method: "get", + params: query, + }); +} diff --git a/src/api/xj/warnSetup.js b/src/api/xj/warnSetup.js index ff5dc4f..1c5e349 100644 --- a/src/api/xj/warnSetup.js +++ b/src/api/xj/warnSetup.js @@ -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 09:26:24 * @LastEditors: SunTao 328867980@qq.com - * @LastEditTime: 2024-12-02 14:46:30 + * @LastEditTime: 2025-01-15 14:48:24 * @FilePath: \znxjxt-ui\src\api\xj\warnSetup.js * @Description: 巡检信息-预警设置 */ @@ -13,7 +13,7 @@ export function getDefectList(params) { return request({ // 病害类型下拉 // url: "/metadata/defectType", - url: "/bigscreen/v2/getDefectTypesDrowDown", + url: "/alarmSetting/dropDown", method: "get", params, }); @@ -28,6 +28,15 @@ export function getWarnSetupList(params) { }); } +// 新增预警设置 +export function addWarnSetup(data) { + return request({ + url: "/alarmSetting/add", + method: "post", + data, + }); +} + // 更新预警设置 export function updateWarnSetup(params) { return request({ @@ -44,3 +53,11 @@ export function getSegment() { method: "post", }); } + +// 删除预警设置 +export function delWarnSetup(id) { + return request({ + url: `/alarmSetting/${id}`, + method: "delete", + }); +} diff --git a/src/views/xj/document/maintenance-notice/components/edit-dialog.vue b/src/views/xj/document/maintenance-notice/components/edit-dialog.vue index d1eafd2..ffcffb1 100644 --- a/src/views/xj/document/maintenance-notice/components/edit-dialog.vue +++ b/src/views/xj/document/maintenance-notice/components/edit-dialog.vue @@ -2,7 +2,7 @@ * @Author: SunTao 328867980@qq.com * @Date: 2024-11-20 11:58:33 * @LastEditors: SunTao 328867980@qq.com - * @LastEditTime: 2025-01-03 10:37:57 + * @LastEditTime: 2025-01-15 11:48:48 * @FilePath: \znxjxt-ui\src\views\xj\document\maintenance-notice\components\edit-dialog.vue * @Description: 养护通知单编辑弹窗 --> @@ -89,6 +89,272 @@ --> + +
+ 选择病害 + +
+ + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + - + + + + + + + + - + + + + + + + + + + + + + + + 搜索 + 重置 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+