feat(zinc): 新增PDO接口和日期筛选组件,重构生产统计页面
refactor(api): 移除冗余API路径前缀 style(websocket): 移除重复的日志打印 feat(label): 新增原料标签组件并替换生产标签 refactor(lines): 移除废弃的流程图组件和配置 feat(utils): 新增日期范围工具函数 feat(statistic): 集成日期筛选和图表分析功能
This commit is contained in:
9
klp-ui/src/api/lines/zinc/pdo.js
Normal file
9
klp-ui/src/api/lines/zinc/pdo.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import zinc1Request from '@/utils/zinc1Request'
|
||||
|
||||
export function listPdo(queryParams) {
|
||||
return zinc1Request({
|
||||
url: '/pdo/list',
|
||||
method: 'post',
|
||||
data: queryParams
|
||||
})
|
||||
}
|
||||
@@ -2,7 +2,7 @@ import zinc1Request from '@/utils/zinc1Request'
|
||||
|
||||
export function listDeviceEnumAll() {
|
||||
return zinc1Request({
|
||||
url: '/api/deviceEnum/all',
|
||||
url: '/deviceEnum/all',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ import zinc1Request from '@/utils/zinc1Request'
|
||||
|
||||
export function getDeviceFieldMetaAll() {
|
||||
return zinc1Request({
|
||||
url: '/api/deviceFieldMeta/all',
|
||||
url: '/deviceFieldMeta/all',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ import zinc1Request from '@/utils/zinc1Request'
|
||||
// 获取最新N条设备快照
|
||||
export function listDeviceSnapshotLatest(params) {
|
||||
return zinc1Request({
|
||||
url: '/api/deviceSnapshot/latest',
|
||||
url: '/deviceSnapshot/latest',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
@@ -12,7 +12,7 @@ export function listDeviceSnapshotLatest(params) {
|
||||
// 按时间范围查询设备快照
|
||||
export function listDeviceSnapshotRange(params) {
|
||||
return zinc1Request({
|
||||
url: '/api/deviceSnapshot/range',
|
||||
url: '/deviceSnapshot/range',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user