From 10cc75f6b3a097dd2a330cc358f1144cd88b34c0 Mon Sep 17 00:00:00 2001 From: SunTao <328867980@qq.com> Date: Fri, 11 Oct 2024 15:04:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E7=97=85=E5=AE=B3=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=B7=AE=E4=BF=AE=E6=94=B9=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/xj/disease.js | 92 ++- src/api/xj/parameter.js | 26 + .../inspection/disease-management/index.vue | 651 ++++++++++-------- src/views/xj/parameter/index.vue | 319 +++++++++ vue.config.js | 2 +- 5 files changed, 791 insertions(+), 299 deletions(-) create mode 100644 src/api/xj/parameter.js create mode 100644 src/views/xj/parameter/index.vue diff --git a/src/api/xj/disease.js b/src/api/xj/disease.js index 91ed093..a5e539b 100644 --- a/src/api/xj/disease.js +++ b/src/api/xj/disease.js @@ -1,62 +1,102 @@ /* * @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: 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 - * @LastEditTime: 2024-10-08 18:06:36 + * @LastEditors: SunTao 328867980@qq.com + * @LastEditTime: 2024-10-10 17:09:19 * @FilePath: \znxjxt-ui\src\api\xj\disease.js - * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE + * @Description: 巡检信息-病害管理 */ -import request from '@/utils/request' +import request from "@/utils/request"; // 查询病害日志列表 export function listDefect(query) { return request({ - url: '/xj/defect/list', - method: 'get', - params: query - }) + url: "/xj/defect/list", + method: "get", + params: query, + }); } // 查询病害日志详细 export function getDefect(id) { return request({ - url: '/xj/defect/' + id, - method: 'get' - }) + url: "/xj/defect/" + id, + method: "get", + }); } // 新增病害日志 export function addDefect(data) { return request({ - url: '/xj/defect', - method: 'post', - data: data - }) + url: "/xj/defect", + method: "post", + data: data, + }); } // 修改病害日志 export function updateDefect(data) { return request({ - url: '/xj/defect', - method: 'put', - data: data - }) + url: "/xj/defect", + method: "put", + data: data, + }); } // 删除病害日志 export function delDefect(id) { return request({ - url: '/xj/defect/' + id, - method: 'delete' - }) + url: "/xj/defect/" + id, + method: "delete", + }); } - // 病害类型下拉数据 export function getDefectTypes() { return request({ - url: '/metadata/defectTypes', - method: 'get' - }) + url: "/metadata/defectTypes", + method: "get", + }); } +// 路段下拉数据 +export function getSegment() { + return request({ + url: "/api/v2/segment/selectList", + method: "post", + }); +} + +// 查询列表病害类型 +export function getDefectList(params) { + return request({ + url: "/metadata/defectType", + method: "get", + params, + }); +} + +// 校验状态下拉类型 +export function getStatesList() { + return request({ + url: "/metadata/defectDataStatus", + method: "get", + }); +} + +// 病害状态下拉类型 +export function getDefectStatus() { + return request({ + url: "/metadata/defectState", + method: "get", + }); +} + +// 批量修改病害状态 +export function changeDefectStatus(data) { + return request({ + url: "/xj/defect/batch", + method: "put", + data, + }); +} diff --git a/src/api/xj/parameter.js b/src/api/xj/parameter.js new file mode 100644 index 0000000..ddbcb1c --- /dev/null +++ b/src/api/xj/parameter.js @@ -0,0 +1,26 @@ +/* + * @Author: SunTao 328867980@qq.com + * @Date: 2024-10-09 15:28:34 + * @LastEditors: SunTao 328867980@qq.com + * @LastEditTime: 2024-10-09 15:46:37 + * @FilePath: \znxjxt-ui\src\api\xj\parameter.js + * @Description: 系统工具-系统参数 + */ +import request from "@/utils/request"; + +// 获取地图详情 +export function getMapInfo() { + return request({ + url: "/basMapInfo/getMapInfo", + method: "get", + }); +} + +// 更新地图坐标信息 +export function updateMapInfo(data) { + return request({ + url: "/basMapInfo/update", + method: "put", + data, + }); +} diff --git a/src/views/xj/inspection/disease-management/index.vue b/src/views/xj/inspection/disease-management/index.vue index 91790e4..b675d71 100644 --- a/src/views/xj/inspection/disease-management/index.vue +++ b/src/views/xj/inspection/disease-management/index.vue @@ -1,8 +1,8 @@ @@ -18,12 +18,18 @@ label-width="100px" > - + > + + - - - - + + + + + - - + + @@ -114,34 +111,34 @@ - + :min="0" + > - - + :min="0" + > - + :min="0" + > - - + :min="0" + > - - - + + + + + + + + + + + + @@ -271,8 +286,8 @@ @@ -283,23 +298,26 @@ width="60rem" append-to-body :close-on-click-modal="false" + destroy-on-close + @close="cancel" > - - + + - + - + > + + - + - - + - - - - - + > + + + - - +
+ + + 选取文件 + 上传到服务器 +
+ 只能上传jpg/png文件,且不超过500kb +
+
+