代码微调
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import createAxios from '@/utils/request'
|
||||
|
||||
const ADVANCE_BOOT = '/advance-boot'
|
||||
import {ADVANCE_BOOT} from '@/utils/constantRequest'
|
||||
|
||||
/**
|
||||
* 查询进线数据
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import createAxios from '@/utils/request'
|
||||
|
||||
const ADVANCE_BOOT = '/advance-boot'
|
||||
import {ADVANCE_BOOT} from '@/utils/constantRequest'
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import createAxios from '@/utils/request'
|
||||
|
||||
const ADVANCE_BOOT = '/advance-boot'
|
||||
import {ADVANCE_BOOT} from '@/utils/constantRequest'
|
||||
|
||||
/**
|
||||
* 新增设备
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import createAxios from '@/utils/request'
|
||||
|
||||
const ADVANCE_BOOT = '/advance-boot'
|
||||
import {ADVANCE_BOOT} from '@/utils/constantRequest'
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import createAxios from '@/utils/request'
|
||||
|
||||
const ADVANCE_BOOT = '/advance-boot'
|
||||
import {ADVANCE_BOOT} from '@/utils/constantRequest'
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import createAxios from '@/utils/request'
|
||||
|
||||
const ADVANCE_BOOT = '/advance-boot'
|
||||
import {ADVANCE_BOOT} from '@/utils/constantRequest'
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import createAxios from '@/utils/request'
|
||||
|
||||
const ADVANCE_BOOT = '/advance-boot'
|
||||
import {ADVANCE_BOOT} from '@/utils/constantRequest'
|
||||
|
||||
|
||||
/**
|
||||
|
||||
53
src/api/process-boot/workflow/category.ts
Normal file
53
src/api/process-boot/workflow/category.ts
Normal file
@@ -0,0 +1,53 @@
|
||||
import createAxios from '@/utils/request'
|
||||
|
||||
import { PROCESS_BOOT } from '@/utils/constantRequest'
|
||||
|
||||
const MAPPING_PATH = PROCESS_BOOT +'/workflow/category'
|
||||
|
||||
/**
|
||||
* 查询流程分类数据
|
||||
*/
|
||||
export const listCategory = (data: any) => {
|
||||
return createAxios({
|
||||
url: MAPPING_PATH + '/list',
|
||||
method: 'POST',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 新增流程分类
|
||||
*/
|
||||
export const addCategory = (data: any) => {
|
||||
return createAxios({
|
||||
url: MAPPING_PATH + '/add',
|
||||
method: 'POST',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 更新流程分类
|
||||
*/
|
||||
export const updateCategory = (data: any) => {
|
||||
return createAxios({
|
||||
url: MAPPING_PATH + '/update',
|
||||
method: 'POST',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 删除流程分类
|
||||
*/
|
||||
export const deleteCategory = (data: any) => {
|
||||
let ids = [data]
|
||||
return createAxios({
|
||||
url: MAPPING_PATH + '/delete',
|
||||
method: 'POST',
|
||||
data: ids
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user