gaosp
2024-01-14 10562a6dac1492fe3dda566a800a4fec1f6e3bca
src/api/Api.js
@@ -1,7 +1,7 @@
/*
 * @Date: 2024-01-10 20:37:45
 * @LastEditors: Sneed
 * @LastEditTime: 2024-01-13 21:27:18
 * @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,7 +33,7 @@
    deviceTypeQuery: {
        url: '/devicetype/pageQuery',
        method: 'POST'
   }
   },
    maintainCreate: {
        url: '/maintain/save',
        method: 'POST'
@@ -57,7 +58,7 @@
        url: '/devicetype/update',
        method: 'POST'
    },
    deviceTypeDel: {
    deviceTypeDelete: {
        url: '/devicetype/delete',
        method: 'POST'
    },
@@ -67,6 +68,18 @@
    },
    machineConcern: {
        url: '/machine/concern',
        method: 'POST'
    },
    machineQuery: {
        url: '/machine/pageQuery',
        method: 'POST'
    },
    machineSave: {
        url: '/machine/save',
        method: 'POST'
    },
    machineUpdate: {
        url: '/machine/modify',
        method: 'POST'
    }
}
@@ -124,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) {