From 909e611a0ac4d72333f75c53b2cd69062ff9c903 Mon Sep 17 00:00:00 2001 From: yangys <y_ys79@sina.com> Date: 星期六, 13 一月 2024 22:59:23 +0800 Subject: [PATCH] 修改api里的错误 --- src/api/Api.js | 62 ++++++++++++++++++++++++++++++ 1 files changed, 61 insertions(+), 1 deletions(-) diff --git a/src/api/Api.js b/src/api/Api.js index 7025fd6..3f044ed 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-12 21:14:57 + * @LastEditTime: 2024-01-13 21:27:18 * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/api/Api.js */ import ajax from '@/utils/ajax' @@ -12,6 +12,10 @@ useDepartments: '/account/useDepartments', // 鍙拌处淇濆瓨 accountCreate: '/account/create', + accountUpdate: '/account/update', + //璁惧绫诲瀷 + deviceTypeCreate: '/devicetype/create', + deviceTypeUpdate: '/devicetype/update', // 杞﹂棿 宸ユ涓嬪暒鏁版嵁 getWsl: '/machine/workshopList', getPcl: '/machine/protocolList' @@ -20,6 +24,50 @@ accountQuery: { url: '/account/remainings', method: 'GET' + }, + componentQuery: { + url: '/component/pageQuery', + method: 'POST' + }, + deviceTypeQuery: { + url: '/devicetype/pageQuery', + method: 'POST' + }, + maintainCreate: { + url: '/maintain/save', + method: 'POST' + }, + maintainUpdate: { + url: '/maintain/update', + method: 'POST' + }, + maintaindelete: { + url: '/devicetype/delete', + method: 'POST' + }, + deviceTypeQuery: { + url: '/devicetype/pageQuery', + method: 'POST' + }, + deviceTypeCreate: { + url: '/devicetype/save', + method: 'POST' + }, + deviceTypeUpdate: { + url: '/devicetype/update', + method: 'POST' + }, + deviceTypeDel: { + url: '/devicetype/delete', + method: 'POST' + }, + machineList: { + url: '/machine/list', + method: 'POST' + }, + machineConcern: { + url: '/machine/concern', + method: 'POST' } } // 姝e紡鐜閰嶇疆鍦板潃 @@ -65,6 +113,18 @@ export function accountCreate(params) { return sendRequest(HttpConstants.accountCreate, params) } +export function accountUpdate(params) { + return sendRequest(HttpConstants.accountUpdate, params) +} + +// 璁惧绫诲瀷淇濆瓨 +export function deviceTypeCreate(params) { + return sendRequest(HttpConstants.deviceTypeCreate, params) +} +export function deviceTypeUpdate(params) { + return sendRequest(HttpConstants.deviceTypeUpdate, params) +} + // export function getWsl(params) { return getData(HttpConstants.getWsl, params) -- Gitblit v1.9.3