代码提交-3-13

This commit is contained in:
2026-03-13 14:32:24 +08:00
parent 3ca2451b2f
commit ae4aede94d
27 changed files with 2285 additions and 517 deletions

View File

@@ -0,0 +1,44 @@
import request from '@/utils/request'
// 查询巡检异常列表
export function listAbnormal(query) {
return request({
url: '/inspection/abnormal/list',
method: 'get',
params: query
})
}
// 查询巡检异常详细
export function getAbnormal(id) {
return request({
url: '/inspection/abnormal/' + id,
method: 'get'
})
}
// 新增巡检异常
export function addAbnormal(data) {
return request({
url: '/inspection/abnormal',
method: 'post',
data: data
})
}
// 修改巡检异常
export function updateAbnormal(data) {
return request({
url: '/inspection/abnormal',
method: 'put',
data: data
})
}
// 删除巡检异常
export function delAbnormal(id) {
return request({
url: '/inspection/abnormal/' + id,
method: 'delete'
})
}

View File

@@ -65,4 +65,43 @@ export const getRouters = () => {
url: '/getRouters',
method: 'get'
})
}
// CAS 登录方法(通过请求参数传递 ticket 与 service)
export function casLogin(ticket, service) {
return request({
url: '/cas/login',
headers: {
isToken: false
},
method: 'post',
// 后端使用 @RequestParam 接收参数
params: { ticket, service }
})
}
// 移动端CAS登录方法
export function casAppLogin(ticket) {
return request({
url: '/cas/app/login',
headers: {
isToken: false
},
method: 'post',
// 后端使用 @RequestParam 接收参数
params: { ticket }
})
}
// 统一CAS登录方法
export function casUnifiedLogin(ticket) {
return request({
url: '/cas/unified/login',
headers: {
isToken: false
},
method: 'post',
// 后端使用 @RequestParam 接收参数
params: { ticket }
})
}