gaosp
2024-01-14 0d626ae57149d5ed40a32bd8b808ca6069aa6d5e
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:17:20
 * @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'
@@ -24,6 +25,10 @@
    accountQuery: {
        url: '/account/remainings',
        method: 'GET'
    },
    accountDel: {
        url: '/account/delete',
        method: 'POST'
    },
    componentQuery: {
        url: '/component/pageQuery',
@@ -57,7 +62,7 @@
        url: '/devicetype/update',
        method: 'POST'
    },
    deviceTypeDel: {
    deviceTypeDelete: {
        url: '/devicetype/delete',
        method: 'POST'
    },
@@ -68,6 +73,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 +145,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) {