暂降治理评估

This commit is contained in:
2024-04-19 14:35:12 +08:00
parent 997e8a9252
commit 444d06ee1a
29 changed files with 2594 additions and 722 deletions

View File

@@ -13,6 +13,16 @@ export const querySgIncomingLineByUserId = (data: any) => {
}
/**
* 查询所有监测信息
*/
export const lineOptionList = () => {
return createAxios({
url: ADVANCE_BOOT + '/sgIncomingLine/lineList',
method: 'GET'
})
}
/**
* 新增进线
*/

View File

@@ -20,7 +20,7 @@ export const downloadTemplate = () => {
export const exportEventData = (data: any) => {
return createAxios({
url: ADVANCE_BOOT + '/sgEvent/exportEventData',
method: 'GET',
method: 'POST',
data: data,
responseType: 'blob'
})
@@ -28,7 +28,7 @@ export const exportEventData = (data: any) => {
/**
* 新增业务用户
* 导入暂降数据
*/
export const importEventData = (data: any) => {
return createAxios({
@@ -38,13 +38,23 @@ export const importEventData = (data: any) => {
})
}
/**
* 新增业务用户
*/
export const calcEventLoss = (data: any) => {
return createAxios({
url: ADVANCE_BOOT + '/sgEvent/calcLoss?id=' + data,
method: 'GET'
})
}
/**
* 更新业务用户
* 查询生产线下所有暂降事件
*/
export const updateSgEvent = (data: any) => {
export const getEventDataByProductLineId = (data: any) => {
return createAxios({
url: ADVANCE_BOOT + '/sgEvent/update',
url: ADVANCE_BOOT + '/sgEvent/getEventDataByProductLineId',
method: 'POST',
data: data
})

View File

@@ -2,6 +2,30 @@ import createAxios from '@/utils/request'
const ADVANCE_BOOT = '/advance-boot'
/**
* 新增设备
*/
export const listMachine = (productLineId: any) => {
const data = {productLineId}
return createAxios({
url: ADVANCE_BOOT + '/sgMachine/list',
method: 'POST',
data: data
})
}
/**
* 根据生产线id查询所有设备
*/
export const querySgMachineByProductLineId = (data: any) => {
return createAxios({
url: ADVANCE_BOOT + '/sgMachine/querySgMachineByProductLineId?productId='+data,
method: 'GET',
})
}
/**
* 新增设备

View File

@@ -6,7 +6,7 @@ const ADVANCE_BOOT = '/advance-boot'
/**
* 评估各方案
*/
export const calc = (data:any) => {
export const calc = (data: any) => {
return createAxios({
url: ADVANCE_BOOT + '/sagGovernScheme/calc',
method: 'POST',
@@ -14,3 +14,40 @@ export const calc = (data:any) => {
})
}
/**
* 评估各方案
*/
export const list = (data: any) => {
return createAxios({
url: ADVANCE_BOOT + '/sagGovernScheme/list',
method: 'POST',
data
})
}
/**
* 删除治理方案结果
*/
export const deleteSgScheme = (data: any) => {
let ids = [data]
return createAxios({
url: ADVANCE_BOOT + '/sagGovernScheme/delete',
method: 'POST',
data: ids
})
}
/**
* 根据治理方案索引获取详情
*/
export const schemeDetail = (data: any) => {
return createAxios({
url: ADVANCE_BOOT + '/sagGovernScheme/detail?id=' + data,
method: 'GET'
})
}

View File

@@ -14,6 +14,16 @@ export const addSgSensitiveUnit = (data: any) => {
})
}
/**
* 根据设备id查询所有元器件
*/
export const queryUnitByMachineId = (data: any) => {
return createAxios({
url: ADVANCE_BOOT + '/sgSensitiveUnit/queryUnitByMachineId?machineId='+data,
method: 'GET',
})
}
/**
* 更新设备