生产监控前端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

116 lines
1.9 KiB

2 years ago
import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { TableVo } from './types';
/**
*
*/
export function getMenu(): AxiosPromise<[]> {
return request({
url: '/bi/opt/getMenu',
method: 'get'
});
}
/**
*
*/
export function getStationInfo(): AxiosPromise<[]> {
return request({
url: '/bi/opt/getStationInfo',
method: 'get'
});
}
/**
* header
*/
export function getTableHeader(): AxiosPromise<[]> {
return request({
url: '/bi/opt/getTableHeader',
method: 'get'
});
}
1 year ago
// /**
// * 获取表格数据
// *
// * @param id
// */
// export function getTableData(params: number): AxiosPromise<TableVo> {
// return request({
// url: '/bi/opt/getTableData/' + params,
// method: 'get'
// });
// }
2 years ago
/**
*
2 years ago
*
1 year ago
* @param data
2 years ago
*/
1 year ago
export function getTableData(data: any) {
2 years ago
return request({
1 year ago
url: '/bi/opt/getTableDataPage',
method: 'post',
data: data
2 years ago
});
}
/**
*
*
* @param data
*/
export function getMockTableData(data: any) {
return request({
url: '/bi/opt/mock/getTableDataPage',
method: 'post',
data: data
});
}
2 years ago
/**
*
*
* @param data
*/
export function editConfig(data: any) {
return request({
url: '/dc/dcUserMonitorConfig/A',
method: 'post',
data: data
});
}
/**
*
*/
2 years ago
export function getTableFooter(params: number): AxiosPromise<[]> {
return request({
2 years ago
url: '/bi/opt/getTableFooter/' + params,
method: 'get'
});
}
/** 发送控制参数 */
export function sendCtrl(data: any) {
return request({
url: '/bi/opt/device/ctrl',
method: 'post',
data: data
});
1 year ago
}
/**
*
*
* @param queryParams
*/
export function dcBusiDayReport(queryParams: any) {
return request({
url: '/dc/dcBusiDayReport/list',
method: 'get',
params: queryParams
});
}