From ea10117a46fbbe7dd831c3816217493d0da01bf9 Mon Sep 17 00:00:00 2001 From: yangys <y_ys79@sina.com> Date: 星期六, 13 一月 2024 22:46:44 +0800 Subject: [PATCH] 设备类型1 --- src/api/Api.js | 27 ++++++++++++++++++++++++++- 1 files changed, 26 insertions(+), 1 deletions(-) diff --git a/src/api/Api.js b/src/api/Api.js index 7025fd6..c1738cf 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 10:48:47 * @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,7 +24,16 @@ accountQuery: { url: '/account/remainings', method: 'GET' + }, + componentQuery: { + url: '/component/pageQuery', + method: 'POST' + }, + deviceTypeQuery: { + url: '/devicetype/pageQuery', + method: 'POST' } + } // 姝e紡鐜閰嶇疆鍦板潃 export const URL_CFG = { @@ -65,6 +78,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