12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- 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('/bigScreen/ds/getDataSetDetails', {
- id
- })
- }
- // 模拟后端返回自定义主题配置
- export function getThemeConfig () {
- return get('https://mock.mengxuegu.com/mock/64239ff6e24b4b4cfeaca5ea/example/theme')
- }
- // 根据数据集id获取数据
- export function getDataByDataSetId (dataSetId) {
- return post('/bigScreen/ds/getDataByDataSetId', {
- 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)
- }
|