12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- import Vue from 'vue'
- export function getScreenInfo (code) {
- return Vue.prototype.$dataRoomAxios.get(`/bigScreen/design/info/code/${code}`)
- }
- export function saveScreen(data) {
- data.chartList.forEach((item) => {
- if (item.type == 'customComponent') {
- item.setting=item.setting.map((x) => {
- const {field,value,...obj}=x
- return {field,value}
- })
- }
- })
- return Vue.prototype.$dataRoomAxios.post('/bigScreen/design/update', data)
- }
- export function getDataSetDetails (id) {
- return Vue.prototype.$dataRoomAxios.get('/dataset/datasetInfo/' + id)
- }
- export function getDataByDataSetId (dataSetId) {
- return Vue.prototype.$dataRoomAxios.post('/dataset/execute', {
- dataSetId,
- params: []
- })
- }
- export function getChatInfo (params) {
- return Vue.prototype.$dataRoomAxios.post('/bigScreen/chart/data/list', params)
- }
- export function getUpdateChartInfo (params) {
- return Vue.prototype.$dataRoomAxios.post('/bigScreen/chart/data/chart', params)
- }
- export function getBizComponentPage (params) {
- return Vue.prototype.$dataRoomAxios.get('/bigScreen/bizComponent/page', params)
- }
- export function getBizComponentInfo (code) {
- return Vue.prototype.$dataRoomAxios.get(`/bigScreen/bizComponent/info/${code}`)
- }
- export function updateBizComponent (params) {
- return Vue.prototype.$dataRoomAxios.post('/bigScreen/bizComponent/update', params)
- }
|