mirror of
				https://gitee.com/hhyykk/ipms-sjy-ui.git
				synced 2025-10-31 18:28:44 +08:00 
			
		
		
		
	Vue3 重构:重构工作流的表单
This commit is contained in:
		| @@ -11,7 +11,7 @@ export type FormVO = { | ||||
| } | ||||
|  | ||||
| // 创建工作流的表单定义 | ||||
| export const createFormApi = async (data: FormVO) => { | ||||
| export const createForm = async (data: FormVO) => { | ||||
|   return await request.post({ | ||||
|     url: '/bpm/form/create', | ||||
|     data: data | ||||
| @@ -19,7 +19,7 @@ export const createFormApi = async (data: FormVO) => { | ||||
| } | ||||
|  | ||||
| // 更新工作流的表单定义 | ||||
| export const updateFormApi = async (data: FormVO) => { | ||||
| export const updateForm = async (data: FormVO) => { | ||||
|   return await request.put({ | ||||
|     url: '/bpm/form/update', | ||||
|     data: data | ||||
| @@ -27,21 +27,21 @@ export const updateFormApi = async (data: FormVO) => { | ||||
| } | ||||
|  | ||||
| // 删除工作流的表单定义 | ||||
| export const deleteFormApi = async (id: number) => { | ||||
| export const deleteForm = async (id: number) => { | ||||
|   return await request.delete({ | ||||
|     url: '/bpm/form/delete?id=' + id | ||||
|   }) | ||||
| } | ||||
|  | ||||
| // 获得工作流的表单定义 | ||||
| export const getFormApi = async (id: number) => { | ||||
| export const getForm = async (id: number) => { | ||||
|   return await request.get({ | ||||
|     url: '/bpm/form/get?id=' + id | ||||
|   }) | ||||
| } | ||||
|  | ||||
| // 获得工作流的表单定义分页 | ||||
| export const getFormPageApi = async (params) => { | ||||
| export const getFormPage = async (params) => { | ||||
|   return await request.get({ | ||||
|     url: '/bpm/form/page', | ||||
|     params | ||||
| @@ -49,7 +49,7 @@ export const getFormPageApi = async (params) => { | ||||
| } | ||||
|  | ||||
| // 获得动态表单的精简列表 | ||||
| export const getSimpleFormsApi = async () => { | ||||
| export const getSimpleFormList = async () => { | ||||
|   return await request.get({ | ||||
|     url: '/bpm/form/list-all-simple' | ||||
|   }) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 YunaiV
					YunaiV