42 lines
801 B
JavaScript
42 lines
801 B
JavaScript
import $http from '@/utils/httpRequest'
|
|
function add(data) {
|
|
return $http({
|
|
url: 'discSpinning/insertDiscSpinning',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
function del(data) {
|
|
return $http({
|
|
url: 'discSpinning/deleteDiscSpinning',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
function getList(data) {
|
|
return $http({
|
|
url: 'app/discSpinning/selectDiscSpinning',
|
|
method: 'get',
|
|
params: data
|
|
})
|
|
}
|
|
function get(id) {
|
|
return $http({
|
|
url: 'discSpinning/'+id,
|
|
method: 'get',
|
|
params: data
|
|
})
|
|
}
|
|
function update(data) {
|
|
return $http({
|
|
url: 'discSpinning/updateDiscSpinning',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
export default {
|
|
add
|
|
, del,
|
|
get,getList,
|
|
update
|
|
} |