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.
50 lines
912 B
50 lines
912 B
import request from '@/utils/request'
|
|
|
|
export function add(data) {
|
|
return request({
|
|
url: 'api/gridField',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
export function batchAdd(json) { // use
|
|
return request({
|
|
url: 'api/gridField/batchAdd',
|
|
method: 'post',
|
|
data: json
|
|
})
|
|
}
|
|
|
|
export function del(ids) {
|
|
return request({
|
|
url: 'api/gridField/',
|
|
method: 'delete',
|
|
data: ids
|
|
})
|
|
}
|
|
|
|
export function edit(data) {
|
|
return request({
|
|
url: 'api/gridField',
|
|
method: 'put',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function getGridFieldsById(id) { // use
|
|
return request({
|
|
url: 'api/gridField/getGridFields',
|
|
method: 'post',
|
|
data: id
|
|
})
|
|
}
|
|
|
|
export function getGridFieldsByCode(grid_code) { // use
|
|
return request({
|
|
url: 'api/gridField/getGridFieldsByCode',
|
|
method: 'post',
|
|
data: grid_code
|
|
})
|
|
}
|
|
|
|
export default { add, edit, del, batchAdd, getGridFieldsById, getGridFieldsByCode }
|
|
|