refactor(图表): 视图统一定义为图表

This commit is contained in:
wisonic-s
2024-03-04 17:08:58 +08:00
parent 092c994e12
commit 017490cbb3
58 changed files with 131 additions and 131 deletions

View File

@@ -32,7 +32,7 @@ export const getFieldByDQ = async (id, chartId): Promise<IResponse> => {
})
}
// 通过图对象获取数据
// 通过图对象获取数据
export const getData = async (data): Promise<IResponse> => {
delete data.data
return request.post({ url: '/chartData/getData', data }).then(res => {
@@ -54,14 +54,14 @@ export const innerExportDetails = async (data): Promise<IResponse> => {
})
}
// 通过图id获取数据
// 通过图id获取数据
export const getChart = async (id): Promise<IResponse> => {
return request.post({ url: `/chart/getChart/${id}`, data: {} }).then(res => {
return res?.data
})
}
// 单个图保存测试
// 单个图保存测试
export const saveChart = async (data): Promise<IResponse> => {
delete data.data
return request.post({ url: '/chart/save', data }).then(res => {