From c55d9376565a78ce31a5b8d78dad89df16c2628e Mon Sep 17 00:00:00 2001 From: gaosp <gaosp> Date: 星期四, 18 一月 2024 23:34:54 +0800 Subject: [PATCH] 删除完 更新 --- src/api/Api.js | 33 +++++++++++++++++++++++++++++++-- 1 files changed, 31 insertions(+), 2 deletions(-) diff --git a/src/api/Api.js b/src/api/Api.js index 2ed11c1..f1b648b 100644 --- a/src/api/Api.js +++ b/src/api/Api.js @@ -1,7 +1,7 @@ /* * @Date: 2024-01-10 20:37:45 * @LastEditors: Sneed - * @LastEditTime: 2024-01-14 15:03:32 + * @LastEditTime: 2024-01-17 22:48:20 * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/api/Api.js */ import ajax from '@/utils/ajax' @@ -16,14 +16,27 @@ //璁惧绫诲瀷 deviceTypeCreate: '/devicetype/create', deviceTypeUpdate: '/devicetype/update', + deviceTypeDelete: '/devicetype/delete', // 杞﹂棿 宸ユ涓嬪暒鏁版嵁 getWsl: '/machine/workshopList', getPcl: '/machine/protocolList' } const getFnObj = { + login: { + url: '/user/login', + method: 'POST' + }, accountQuery: { url: '/account/remainings', method: 'GET' + }, + deviceRemainings: { + url: '/account/remainings', + method: 'GET' + }, + accountDel: { + url: '/account/delete', + method: 'POST' }, componentQuery: { url: '/component/pageQuery', @@ -39,6 +52,10 @@ }, maintainUpdate: { url: '/maintain/update', + method: 'POST' + }, + maintainDel: { + url: '/maintain/delete', method: 'POST' }, maintaindelete: { @@ -57,9 +74,13 @@ url: '/devicetype/update', method: 'POST' }, - deviceTypeDel: { + deviceTypeDelete: { url: '/devicetype/delete', method: 'POST' + }, + deviceTypeList: { + url: '/devicetype/list', + method: 'GET' }, machineList: { url: '/machine/list', @@ -80,6 +101,10 @@ machineUpdate: { url: '/machine/modify', method: 'POST' + }, + userList: { + url: '/user/list', + method: 'GET' } } // 姝e紡鐜閰嶇疆鍦板潃 @@ -136,6 +161,10 @@ export function deviceTypeUpdate(params) { return sendRequest(HttpConstants.deviceTypeUpdate, params) } +export function deviceTypeDelete(ids) { + console.log(HttpConstants.deviceTypeDelete) + return sendRequest(HttpConstants.deviceTypeDelete, { ids: ids }) +} // export function getWsl(params) { -- Gitblit v1.9.3