mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-10-31 10:18:42 +08:00 
			
		
		
		
	feat: grid add delete api
This commit is contained in:
		| @@ -87,6 +87,15 @@ export const useVxeGrid = <T = any>(config?: UseVxeGridConfig<T>) => { | ||||
|             resolve(await config?.getListApi(queryParams)) | ||||
|           }) | ||||
|         }, | ||||
|         delete: ({ body }) => { | ||||
|           return new Promise(async (resolve) => { | ||||
|             if (config?.deleteApi) { | ||||
|               resolve(await config?.deleteApi(JSON.stringify(body))) | ||||
|             } else { | ||||
|               Promise.reject('未设置deleteApi') | ||||
|             } | ||||
|           }) | ||||
|         }, | ||||
|         queryAll: ({ form }) => { | ||||
|           const queryParams = Object.assign({}, JSON.parse(JSON.stringify(form))) | ||||
|           return new Promise(async (resolve) => { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 xingyu
					xingyu