hldy_app/component/rightItemssecond/api.js

49 lines
1.1 KiB
JavaScript
Raw Normal View History

2025-03-27 17:32:12 +08:00
// 引入 request 文件
2025-04-01 17:27:15 +08:00
import request from '@/request/index.js'
2025-03-27 17:32:12 +08:00
// 以下 api 为博主项目示例,实际与项目相匹配
2025-04-01 17:27:15 +08:00
// 查询服务类型
export const getServiceTree = () => {
return request({
url: '/nuIpadApi/nuConfigServiceCategory/getServiceTree',
method: 'get',
})
2025-03-27 17:32:12 +08:00
}
2025-04-01 17:27:15 +08:00
// 查询表格
export const getNclist = () => {
return request({
url: '/nuIpadApi/nuBizNuCustomerServer/getNclist?nuId=1&customerId=1',
method: 'get',
})
}
// 新增表格
export const addNuCustomerServer = (params) => {
return request({
url: '/nuIpadApi/nuBizNuCustomerServer/addNuCustomerServer',
method: 'post',
data: params,
})
}
// 移动表格
export const editNuCustomerServer = (params) => {
return request({
url: '/nuIpadApi/nuBizNuCustomerServer/editNuCustomerServer',
method: 'post',
data: params,
})
}
export const deleteNuCustomerServer = (params) => {
return request({
url: `/nuIpadApi/nuBizNuCustomerServer/deleteNuCustomerServer?id=${params.id}`,
method: 'delete',
2025-04-02 17:33:46 +08:00
})
}
// 移动表格
export const addBatch = (params) => {
return request({
url: '/nuIpadApi/nuBizNuCustomerServer/addBatch',
method: 'post',
data: params,
2025-04-01 17:27:15 +08:00
})
}