You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.3 KiB
JavaScript
54 lines
1.3 KiB
JavaScript
|
|
import { get, post } from 'packages/js/utils/http'
|
|
|
|
// 大屏详情
|
|
export function getScreenInfo (code) {
|
|
return get(`/bigScreen/design/info/code/${code}`)
|
|
}
|
|
|
|
// 保存更新大屏
|
|
export function saveScreen (data) {
|
|
return post('/bigScreen/design/update', data)
|
|
}
|
|
|
|
// 根据数据集获取数据集详情
|
|
export function getDataSetDetails (id) {
|
|
return get('/dataset/datasetInfo/' + id)
|
|
}
|
|
// 模拟后端返回自定义主题配置
|
|
export function getThemeConfig () {
|
|
return get('https://mock.mengxuegu.com/mock/64239ff6e24b4b4cfeaca5ea/example/theme')
|
|
}
|
|
|
|
// 根据数据集id获取数据
|
|
export function getDataByDataSetId (dataSetId) {
|
|
return post('/dataset/execute', {
|
|
dataSetId,
|
|
params: []
|
|
})
|
|
}
|
|
|
|
// 得到图表详情
|
|
export function getChatInfo (params) {
|
|
return post('/bigScreen/chart/data/list', params)
|
|
}
|
|
// 得到图表的更新数据
|
|
export function getUpdateChartInfo (params) {
|
|
return post('/bigScreen/chart/data/chart', params)
|
|
}
|
|
|
|
// 业务组件列表
|
|
export function getBizComponentPage (params) {
|
|
return get('/bigScreen/bizComponent/page', params)
|
|
}
|
|
|
|
// 根据code获得业务组件的信息
|
|
export function getBizComponentInfo (code) {
|
|
return get(`/bigScreen/bizComponent/info/${code}`)
|
|
}
|
|
|
|
// 更新业务组件
|
|
export function updateBizComponent (params) {
|
|
return post('/bigScreen/bizComponent/update', params)
|
|
}
|