feat: 新增锌线生产监控模块及相关API和组件
refactor(auth): 增加锌线系统token管理功能 feat(api): 添加锌线停机记录、生产报表和设备快照API feat(views): 实现锌线实时监控、生产统计和停机统计页面 feat(components): 开发锌线生产报表、停机统计和班组绩效组件 feat(utils): 新增锌线专用请求工具zinc1Request chore(vue.config): 配置锌线API代理
This commit is contained in:
20
klp-ui/src/api/pocket/deviceSnapshot.js
Normal file
20
klp-ui/src/api/pocket/deviceSnapshot.js
Normal file
@@ -0,0 +1,20 @@
|
||||
import zinc1Request from '@/utils/zinc1Request'
|
||||
|
||||
// 获取最新N条设备快照
|
||||
export function listDeviceSnapshotLatest(params) {
|
||||
return zinc1Request({
|
||||
url: '/api/deviceSnapshot/latest',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
// 按时间范围查询设备快照
|
||||
export function listDeviceSnapshotRange(params) {
|
||||
return zinc1Request({
|
||||
url: '/api/deviceSnapshot/range',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user