You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.1 KiB
JavaScript
56 lines
1.1 KiB
JavaScript
import request from '@/utils/request'
|
|
import { parseStrEmpty } from "@/utils/ruoyi";
|
|
import qs from 'qs';
|
|
|
|
// 查询用户列表
|
|
export function listUser(data) {
|
|
return request({
|
|
url: '/energy/record/dnbInstant/list',
|
|
method: 'post',
|
|
data: qs.stringify(data),
|
|
contentType:'application/x-www-form-urlencoded',
|
|
})
|
|
}
|
|
|
|
// 新增
|
|
export function addUser(data) {
|
|
return request({
|
|
url: '/energy/record/dnbInstant/add',
|
|
method: 'post',
|
|
data: qs.stringify(data),
|
|
contentType:'application/x-www-form-urlencoded',
|
|
})
|
|
}
|
|
|
|
// 修改
|
|
export function updateUser(data) {
|
|
return request({
|
|
url: '/energy/record/dnbInstant/edit',
|
|
method: 'post',
|
|
data: qs.stringify(data),
|
|
contentType:'application/x-www-form-urlencoded',
|
|
})
|
|
}
|
|
|
|
// 删除用户
|
|
export function delUser(data) {
|
|
return request({
|
|
url: '/energy/record/dnbInstant/remove',
|
|
method: 'post',
|
|
data: qs.stringify(data),
|
|
contentType:'application/x-www-form-urlencoded',
|
|
})
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 查询部门下拉树结构
|
|
export function deptTreeSelect() {
|
|
return request({
|
|
url: '/energy/base/monitorInfo/treeData/2',
|
|
method: 'get'
|
|
})
|
|
}
|