You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1021 B
55 lines
1021 B
import axios from '@/utils/request'
|
|
// 查询分页数据:
|
|
export const getRecordPage = (arg) => {
|
|
return axios.request({
|
|
url: '/dahua/accessControl/getRecordPage',
|
|
method: 'post',
|
|
data: {
|
|
...arg,
|
|
pageNum:arg.current,
|
|
pageSize:arg.limit,
|
|
},
|
|
dataType: 'json'
|
|
})
|
|
}
|
|
// 查询详情数据:
|
|
export const iuserGetById = (arg) => {
|
|
return axios.request({
|
|
url: `/iuser/getById`,
|
|
method: 'get',
|
|
params: arg,
|
|
dataType: 'json'
|
|
})
|
|
}
|
|
|
|
// 添加数据:
|
|
export const iuserAdd = (arg) => {
|
|
return axios.request({
|
|
url: '/iuser/add',
|
|
method: 'post',
|
|
data: arg,
|
|
dataType: 'json'
|
|
})
|
|
}
|
|
|
|
// 修改数据:
|
|
export const IuserUpdate = (arg) => {
|
|
return axios.request({
|
|
url: '/iuser/update',
|
|
method: 'put',
|
|
data: arg,
|
|
dataType: 'json'
|
|
})
|
|
}
|
|
|
|
// 删除数据:
|
|
export const iuserDelete = (arg) => {
|
|
return axios.request({
|
|
url: '/iuser/delete',
|
|
method: 'delete',
|
|
params: {
|
|
id: arg.id[0]
|
|
},
|
|
dataType: 'json'
|
|
})
|
|
} |