yangys
2024-01-14 4d18d6d118e265cb131c1ece7a0f0ab0a2db4ce7
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 16:44:10
 * @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'
@@ -25,6 +26,10 @@
        url: '/account/remainings',
        method: 'GET'
    },
    accountDel: {
        url: '/account/delete',
        method: 'POST'
    },
    componentQuery: {
        url: '/component/pageQuery',
        method: 'POST'
@@ -32,13 +37,17 @@
    deviceTypeQuery: {
        url: '/devicetype/pageQuery',
        method: 'POST'
   }
   },
    maintainCreate: {
        url: '/maintain/save',
        method: 'POST'
    },
    maintainUpdate: {
        url: '/maintain/update',
        method: 'POST'
    },
    maintainDel: {
        url: '/maintain/delete',
        method: 'POST'
    },
    maintaindelete: {
@@ -57,7 +66,7 @@
        url: '/devicetype/update',
        method: 'POST'
    },
    deviceTypeDel: {
    deviceTypeDelete: {
        url: '/devicetype/delete',
        method: 'POST'
    },
@@ -68,6 +77,22 @@
    machineConcern: {
        url: '/machine/concern',
        method: 'POST'
    },
    machineQuery: {
        url: '/machine/pageQuery',
        method: 'POST'
    },
    machineSave: {
        url: '/machine/save',
        method: 'POST'
    },
    machineUpdate: {
        url: '/machine/modify',
        method: 'POST'
    },
    userList: {
        url: '/user/list',
        method: 'GET'
    }
}
// 正式环境配置地址
@@ -124,6 +149,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) {