From fd285d6245ddd54c2eef8237eb878f573d665f94 Mon Sep 17 00:00:00 2001 From: Your Name <123456> Date: 星期四, 07 七月 2022 18:27:39 +0800 Subject: [PATCH] lct --- src/api/doublePreventSystem/productionDevice/index.ts | 21 +++++++++++++-------- 1 files changed, 13 insertions(+), 8 deletions(-) diff --git a/src/api/doublePreventSystem/productionDevice/index.ts b/src/api/doublePreventSystem/productionDevice/index.ts index 11acf60..4f59f32 100644 --- a/src/api/doublePreventSystem/productionDevice/index.ts +++ b/src/api/doublePreventSystem/productionDevice/index.ts @@ -1,40 +1,45 @@ -import request from '/@/utils/request' +import request from '/@/utils/request'; export function productionDeviceApi() { return { + // v1 getProductionDeviceList: (data: object) => { return request({ url: `/prevent/device/select/getDevicePage`, method: 'post', - data:data + data: data }); }, + // v1 addProductionDevice: (data: object) => { return request({ url: `/prevent/device/insert/saveDevice`, method: 'post', - data:data + data: data }); }, + // v1 modProductionDevice: (data: object) => { return request({ url: `/prevent/device/update/updateDevice`, method: 'post', - data:data + data: data }); }, + // v1 deleteProductionDevice: (data: object) => { return request({ url: `/prevent/device/delete/deleteDevice`, method: 'post', - data:data + data: data }); }, + // v1 getAllProductionDeviceList: () => { return request({ url: `/prevent/device/select/listDevices`, - method: 'post', + method: 'post' }); - }, - } + } + }; } -- Gitblit v1.9.2