From 10562a6dac1492fe3dda566a800a4fec1f6e3bca Mon Sep 17 00:00:00 2001 From: gaosp <gaosp> Date: 星期日, 14 一月 2024 15:09:34 +0800 Subject: [PATCH] Merge branch 'master' of http://www.beijingsoft.cn:9090/r/mdc-front --- src/api/Api.js | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 54 insertions(+), 2 deletions(-) diff --git a/src/api/Api.js b/src/api/Api.js index c1738cf..0ee9a99 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-13 10:48:47 + * @LastEditTime: 2024-01-14 15:03:32 * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/api/Api.js */ import ajax from '@/utils/ajax' @@ -16,6 +16,7 @@ //璁惧绫诲瀷 deviceTypeCreate: '/devicetype/create', deviceTypeUpdate: '/devicetype/update', + deviceTypeDelete: '/devicetype/delete', // 杞﹂棿 宸ユ涓嬪暒鏁版嵁 getWsl: '/machine/workshopList', getPcl: '/machine/protocolList' @@ -32,8 +33,55 @@ 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' + }, + deviceTypeDelete: { + url: '/devicetype/delete', + method: 'POST' + }, + machineList: { + url: '/machine/list', + method: 'POST' + }, + machineConcern: { + url: '/machine/concern', + method: 'POST' + }, + machineQuery: { + url: '/machine/pageQuery', + method: 'POST' + }, + machineSave: { + url: '/machine/save', + method: 'POST' + }, + machineUpdate: { + url: '/machine/modify', + method: 'POST' } - } // 姝e紡鐜閰嶇疆鍦板潃 export const URL_CFG = { @@ -89,6 +137,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