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.
35 lines
534 B
35 lines
534 B
import request from '@/utils/request'
|
|
|
|
export function add(data) {
|
|
return request({
|
|
url: 'api/deviceDbitem',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function del(ids) {
|
|
const data = {
|
|
id: 1,
|
|
name2: '张三',
|
|
info: {
|
|
id: 999,
|
|
str: 'str111'
|
|
}
|
|
}
|
|
return request({
|
|
url: 'api/deviceDbitem/getUserJson',
|
|
method: 'get',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
export function edit(data) {
|
|
return request({
|
|
url: 'api/deviceDbitem',
|
|
method: 'put',
|
|
data
|
|
})
|
|
}
|
|
|
|
export default { add, edit, del }
|
|
|