mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-10-31 18:28:43 +08:00 
			
		
		
		
	优化流程 Model 的更新逻辑
This commit is contained in:
		| @@ -1,6 +1,6 @@ | ||||
| import request from '@/utils/request' | ||||
|  | ||||
| export function page(query) { | ||||
| export function getModelPage(query) { | ||||
|   return request({ | ||||
|     url: '/bpm/model/page', | ||||
|     method: 'get', | ||||
| @@ -15,15 +15,15 @@ export function getModel(id) { | ||||
|   }) | ||||
| } | ||||
|  | ||||
| export function modelUpdate(data) { | ||||
| export function updateModel(data) { | ||||
|   return request({ | ||||
|     url: '/bpm/model/update', | ||||
|     method: 'POST', | ||||
|     method: 'PUT', | ||||
|     data: data | ||||
|   }) | ||||
| } | ||||
|  | ||||
| export function modelSave(data) { | ||||
| export function createModel(data) { | ||||
|   return request({ | ||||
|     url: '/bpm/model/create', | ||||
|     method: 'POST', | ||||
| @@ -31,15 +31,14 @@ export function modelSave(data) { | ||||
|   }) | ||||
| } | ||||
|  | ||||
| export function modelDelete(data) { | ||||
| export function deleteModel(id) { | ||||
|   return request({ | ||||
|     url: '/bpm/model/delete?modelId='+ data.modelId, | ||||
|     method: 'POST', | ||||
|     data: data | ||||
|     url: '/bpm/model/delete?id=' + id, | ||||
|     method: 'DELETE' | ||||
|   }) | ||||
| } | ||||
|  | ||||
| export function modelDeploy(data) { | ||||
| export function deployModel(data) { | ||||
|   return request({ | ||||
|     url: '/bpm/model/deploy?modelId='+ data.modelId, | ||||
|     method: 'POST', | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 YunaiV
					YunaiV