更新任务请求接口
This commit is contained in:
@@ -1,34 +1,34 @@
|
|||||||
import $http from '@/utils/httpRequest'
|
import $http from '@/utils/httpRequest'
|
||||||
function add(data) {
|
function add(data) {
|
||||||
return $http({
|
return $http({
|
||||||
url: 'app/taskCenter/insertTaskCenter',
|
url: 'taskCenter/insertTaskCenter',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
function del(id) {
|
function del(id) {
|
||||||
return $http({
|
return $http({
|
||||||
url: 'app/taskCenter/deleteTaskCenter?id='+id,
|
url: 'taskCenter/deleteTaskCenter?id='+id,
|
||||||
method: 'post'
|
method: 'post'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
function getList(data) {
|
function getList(data) {
|
||||||
return $http({
|
return $http({
|
||||||
url: 'app/taskCenter/selectTaskCenter',
|
url: 'taskCenter/selectTaskCenter',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: data
|
params: data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
function get(id) {
|
function get(id) {
|
||||||
return $http({
|
return $http({
|
||||||
url: 'app/taskCenter' + id,
|
url: 'taskCenter' + id,
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: data
|
params: data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
function update(data) {
|
function update(data) {
|
||||||
return $http({
|
return $http({
|
||||||
url: 'app/taskCenter/updateTaskCenter',
|
url: 'taskCenter/updateTaskCenter',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user