From d91893dbd49538d312e299c1cc507a7792abd7d7 Mon Sep 17 00:00:00 2001 From: yangys <y_ys79@sina.com> Date: 星期日, 14 一月 2024 14:20:25 +0800 Subject: [PATCH] 设备类型假如修改删除 --- src/api/Api.js | 44 ++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 42 insertions(+), 2 deletions(-) diff --git a/src/api/Api.js b/src/api/Api.js index c1738cf..8599214 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-13 21:27:18 * @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,43 @@ 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' } - } // 姝e紡鐜閰嶇疆鍦板潃 export const URL_CFG = { @@ -89,6 +125,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