暂降治理评估
This commit is contained in:
@@ -3,7 +3,18 @@ import createAxios from '@/utils/request'
|
||||
const ADVANCE_BOOT = '/advance-boot'
|
||||
|
||||
/**
|
||||
* 新增业务用户
|
||||
* 查询进线数据
|
||||
*/
|
||||
export const querySgIncomingLineByUserId = (data: any) => {
|
||||
return createAxios({
|
||||
url: ADVANCE_BOOT + '/sgIncomingLine/list?userId=' + data,
|
||||
method: 'GET'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 新增进线
|
||||
*/
|
||||
export const addSgIncomingLine = (data: any) => {
|
||||
return createAxios({
|
||||
@@ -15,7 +26,7 @@ export const addSgIncomingLine = (data: any) => {
|
||||
|
||||
|
||||
/**
|
||||
* 更新业务用户
|
||||
* 更新进线
|
||||
*/
|
||||
export const updateSgIncomingLine = (data: any) => {
|
||||
return createAxios({
|
||||
@@ -27,7 +38,7 @@ export const updateSgIncomingLine = (data: any) => {
|
||||
|
||||
|
||||
/**
|
||||
* 删除业务用户
|
||||
* 删除进线
|
||||
*/
|
||||
export const deleteSgIncomingLine = (data: any) => {
|
||||
let ids = [data]
|
||||
|
||||
65
src/api/advance-boot/sgGroven/sgEvent.ts
Normal file
65
src/api/advance-boot/sgGroven/sgEvent.ts
Normal file
@@ -0,0 +1,65 @@
|
||||
import createAxios from '@/utils/request'
|
||||
|
||||
const ADVANCE_BOOT = '/advance-boot'
|
||||
|
||||
|
||||
/**
|
||||
* 导出暂降模板
|
||||
*/
|
||||
export const downloadTemplate = () => {
|
||||
return createAxios({
|
||||
url: ADVANCE_BOOT + '/sgEvent/downloadTemplate',
|
||||
method: 'GET',
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出暂降数据
|
||||
*/
|
||||
export const exportEventData = (data: any) => {
|
||||
return createAxios({
|
||||
url: ADVANCE_BOOT + '/sgEvent/exportEventData',
|
||||
method: 'GET',
|
||||
data: data,
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 新增业务用户
|
||||
*/
|
||||
export const importEventData = (data: any) => {
|
||||
return createAxios({
|
||||
url: ADVANCE_BOOT + '/sgEvent/importEventData',
|
||||
method: 'POST',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 更新业务用户
|
||||
*/
|
||||
export const updateSgEvent = (data: any) => {
|
||||
return createAxios({
|
||||
url: ADVANCE_BOOT + '/sgEvent/update',
|
||||
method: 'POST',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 删除业务用户
|
||||
*/
|
||||
export const deleteSgEvent = (data: any) => {
|
||||
let ids = [data]
|
||||
return createAxios({
|
||||
url: ADVANCE_BOOT + '/sgEvent/delete',
|
||||
method: 'POST',
|
||||
data: ids
|
||||
})
|
||||
}
|
||||
|
||||
40
src/api/advance-boot/sgGroven/sgMachine.ts
Normal file
40
src/api/advance-boot/sgGroven/sgMachine.ts
Normal file
@@ -0,0 +1,40 @@
|
||||
import createAxios from '@/utils/request'
|
||||
|
||||
const ADVANCE_BOOT = '/advance-boot'
|
||||
|
||||
|
||||
/**
|
||||
* 新增设备
|
||||
*/
|
||||
export const addSgMachine = (data: any) => {
|
||||
return createAxios({
|
||||
url: ADVANCE_BOOT + '/sgMachine/add',
|
||||
method: 'POST',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 更新设备
|
||||
*/
|
||||
export const updateSgMachine = (data: any) => {
|
||||
return createAxios({
|
||||
url: ADVANCE_BOOT + '/sgMachine/update',
|
||||
method: 'POST',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 删除设备
|
||||
*/
|
||||
export const deleteSgMachine = (data: any) => {
|
||||
let ids = [data]
|
||||
return createAxios({
|
||||
url: ADVANCE_BOOT + '/sgMachine/delete',
|
||||
method: 'POST',
|
||||
data: ids
|
||||
})
|
||||
}
|
||||
52
src/api/advance-boot/sgGroven/sgProductLine.ts
Normal file
52
src/api/advance-boot/sgGroven/sgProductLine.ts
Normal file
@@ -0,0 +1,52 @@
|
||||
import createAxios from '@/utils/request'
|
||||
|
||||
const ADVANCE_BOOT = '/advance-boot'
|
||||
|
||||
|
||||
/**
|
||||
* 根据用户id查询所有生产线
|
||||
*/
|
||||
export const querySgProductLineByUserId = (data: any) => {
|
||||
return createAxios({
|
||||
url: ADVANCE_BOOT + '/sgProductLine/querySgProductLineByUserId?userId='+data,
|
||||
method: 'GET',
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 新增生产线
|
||||
*/
|
||||
export const addSgProductLine = (data: any) => {
|
||||
return createAxios({
|
||||
url: ADVANCE_BOOT + '/sgProductLine/add',
|
||||
method: 'POST',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 更新生产线
|
||||
*/
|
||||
export const updateSgProductLine = (data: any) => {
|
||||
return createAxios({
|
||||
url: ADVANCE_BOOT + '/sgProductLine/update',
|
||||
method: 'POST',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 删除生产线
|
||||
*/
|
||||
export const deleteSgProductLine = (data: any) => {
|
||||
let ids = [data]
|
||||
return createAxios({
|
||||
url: ADVANCE_BOOT + '/sgProductLine/delete',
|
||||
method: 'POST',
|
||||
data: ids
|
||||
})
|
||||
}
|
||||
16
src/api/advance-boot/sgGroven/sgScheme.ts
Normal file
16
src/api/advance-boot/sgGroven/sgScheme.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import createAxios from '@/utils/request'
|
||||
|
||||
const ADVANCE_BOOT = '/advance-boot'
|
||||
|
||||
|
||||
/**
|
||||
* 评估各方案
|
||||
*/
|
||||
export const calc = (data:any) => {
|
||||
return createAxios({
|
||||
url: ADVANCE_BOOT + '/sagGovernScheme/calc',
|
||||
method: 'POST',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
40
src/api/advance-boot/sgGroven/sgSensitiveUnit.ts
Normal file
40
src/api/advance-boot/sgGroven/sgSensitiveUnit.ts
Normal file
@@ -0,0 +1,40 @@
|
||||
import createAxios from '@/utils/request'
|
||||
|
||||
const ADVANCE_BOOT = '/advance-boot'
|
||||
|
||||
|
||||
/**
|
||||
* 新增设备
|
||||
*/
|
||||
export const addSgSensitiveUnit = (data: any) => {
|
||||
return createAxios({
|
||||
url: ADVANCE_BOOT + '/sgSensitiveUnit/add',
|
||||
method: 'POST',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 更新设备
|
||||
*/
|
||||
export const updateSgSensitiveUnit = (data: any) => {
|
||||
return createAxios({
|
||||
url: ADVANCE_BOOT + '/sgSensitiveUnit/update',
|
||||
method: 'POST',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 删除设备
|
||||
*/
|
||||
export const deleteSgSensitiveUnit = (data: any) => {
|
||||
let ids = [data]
|
||||
return createAxios({
|
||||
url: ADVANCE_BOOT + '/sgSensitiveUnit/delete',
|
||||
method: 'POST',
|
||||
data: ids
|
||||
})
|
||||
}
|
||||
@@ -2,6 +2,18 @@ import createAxios from '@/utils/request'
|
||||
|
||||
const ADVANCE_BOOT = '/advance-boot'
|
||||
|
||||
|
||||
/**
|
||||
* 查询业务用户
|
||||
*/
|
||||
export const sgUserList = () => {
|
||||
return createAxios({
|
||||
url: ADVANCE_BOOT + '/sgUser/sgUserList',
|
||||
method: 'GET'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 新增业务用户
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user