| | |
| | | /* |
| | | * @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' |
| | |
| | | // 台账保存 |
| | | accountCreate: '/account/create', |
| | | accountUpdate: '/account/update', |
| | | //设备类型 |
| | | deviceTypeCreate: '/devicetype/create', |
| | | deviceTypeUpdate: '/devicetype/update', |
| | | deviceTypeDelete: '/devicetype/delete', |
| | | // 车间 工段下啦数据 |
| | | getWsl: '/machine/workshopList', |
| | | getPcl: '/machine/protocolList' |
| | |
| | | url: '/component/pageQuery', |
| | | method: 'POST' |
| | | }, |
| | | deviceTypeQuery: { |
| | | url: '/devicetype/pageQuery', |
| | | method: 'POST' |
| | | }, |
| | | maintainCreate: { |
| | | url: '/maintain/save', |
| | | method: 'POST' |
| | |
| | | url: '/devicetype/update', |
| | | method: 'POST' |
| | | }, |
| | | deviceTypeDel: { |
| | | deviceTypeDelete: { |
| | | url: '/devicetype/delete', |
| | | method: 'POST' |
| | | }, |
| | |
| | | }, |
| | | machineConcern: { |
| | | url: '/machine/concern', |
| | | method: 'POST' |
| | | }, |
| | | machineQuery: { |
| | | url: '/machine/pageQuery', |
| | | method: 'POST' |
| | | }, |
| | | machineSave: { |
| | | url: '/machine/save', |
| | | method: 'POST' |
| | | }, |
| | | machineUpdate: { |
| | | url: '/machine/modify', |
| | | method: 'POST' |
| | | } |
| | | } |
| | |
| | | export function accountUpdate(params) { |
| | | return sendRequest(HttpConstants.accountUpdate, params) |
| | | } |
| | | |
| | | // 设备类型保存 |
| | | export function deviceTypeCreate(params) { |
| | | return sendRequest(HttpConstants.deviceTypeCreate, params) |
| | | } |
| | | 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) { |
| | | return getData(HttpConstants.getWsl, params) |