fix:首页背景调整,路面病害对比修改

This commit is contained in:
2024-11-06 11:07:52 +08:00
parent 8d0c115a51
commit 2e7e66f13a
32 changed files with 613 additions and 1820 deletions
+28 -19
View File
@@ -1,44 +1,53 @@
import request from '@/utils/request'
/*
* @Author: SunTao 328867980@qq.com
* @Date: 2024-10-08 09:26:24
* @LastEditors: SunTao 328867980@qq.com
* @LastEditTime: 2024-11-05 13:40:07
* @FilePath: \znxjxt-ui\src\api\xj\defect.js
* @Description: 巡检信息-病害管理接口
*/
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",
});
}
+21 -1
View File
@@ -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-10-12 14:30:08
* @LastEditTime: 2024-11-05 13:54:44
* @FilePath: \znxjxt-ui\src\api\xj\disease.js
* @Description: 巡检信息-病害管理
*/
@@ -120,3 +120,23 @@ export function splitDefect(data) {
data,
});
}
// 根据病害id查询快照id下拉
export function getDefectById(id) {
return request({
url: "/xj/defect/getDefectDetailDropDownList",
method: "get",
params: { id },
});
}
// 根据快照id查询查询具体数据
export function getDetailsBySnapShotId(snapShotId) {
return request({
url: "/xj/defect/getDefectBySnapShotId",
method: "get",
params: { snapShotId },
});
}
+37
View File
@@ -0,0 +1,37 @@
/*
* @Author: SunTao 328867980@qq.com
* @Date: 2024-11-05 14:40:14
* @LastEditors: SunTao 328867980@qq.com
* @LastEditTime: 2024-11-05 14:59:15
* @FilePath: \znxjxt-ui\src\api\xj\surface.js
* @Description: 路面病害对比
*/
import request from "@/utils/request";
// 查询路段下拉数据接口
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 getCompareList(params) {
return request({
url: "/xj/defect/historyCompare",
method: "get",
params,
});
}