add
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { MasterVO, MasterForm, MasterQuery } from '@/api/patch/master/types';
|
||||
import { MasterVO, MasterForm, MasterQuery } from '@/api/patch/types';
|
||||
|
||||
/**
|
||||
* 查询派单列表
|
||||
@ -33,7 +33,7 @@ export const getMaster = (id: string | number): AxiosPromise<MasterVO> => {
|
||||
*/
|
||||
export const addMaster = (data: MasterForm) => {
|
||||
return request({
|
||||
url: '/patch/',
|
||||
url: '/patch',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
@ -45,7 +45,7 @@ export const addMaster = (data: MasterForm) => {
|
||||
*/
|
||||
export const updateMaster = (data: MasterForm) => {
|
||||
return request({
|
||||
url: '/patch/',
|
||||
url: '/patch',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
@ -61,3 +61,47 @@ export const delMaster = (id: string | number | Array<string | number>) => {
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 完成进度
|
||||
* @param masterId
|
||||
*/
|
||||
export function getProgressDetail(masterId: string | number) {
|
||||
return request({
|
||||
url: `/patch/getProgressList/${masterId}`, // 你的后端进度详情接口地址
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
|
||||
// 弹窗新增进度
|
||||
export const addProgress = (data) => {
|
||||
return request({
|
||||
url: '/patch/progress',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
};
|
||||
|
||||
// 弹窗修改进度
|
||||
export const editProgress = (data) => {
|
||||
return request({
|
||||
url: '/patch/editProgress',
|
||||
method: 'put',
|
||||
data
|
||||
});
|
||||
};
|
||||
|
||||
// 删除进度
|
||||
export const deleteProgress = (id) => {
|
||||
return request({
|
||||
url: `/removeProgress/{id}`,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
export const getUserName = () => {
|
||||
return request({
|
||||
url: `/patch/findThis`,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
Reference in New Issue
Block a user