diff --git a/data-room-ui/example/main.js b/data-room-ui/example/main.js index a50acf96..acc4c5b4 100644 --- a/data-room-ui/example/main.js +++ b/data-room-ui/example/main.js @@ -9,11 +9,11 @@ import store from './store' import router from './router' import 'element-ui/lib/theme-chalk/index.css' import '@/assets/styles/index.scss' +import * as $dataRoomAxios from 'data-room-ui/js/utils/http.js' import { registerConfig } from '@gcpaas/data-room-ui' import remoteComponents from '@/remoteComponents/exports.js' import customDatasetComponents from '@/customDatasetComponents/exports.js' Vue.use(ElementUI, { size: 'mini' }) - registerConfig( { routers: { @@ -62,6 +62,7 @@ registerConfig( promise.polyfill() // 自定义指令 Vue.use(ElementUI, { size: 'mini' }) +Vue.prototype.$dataRoomAxios = $dataRoomAxios Vue.config.productionTip = false /* eslint-disable no-new */ diff --git a/data-room-ui/packages/BigScreenDesign/ComponentDialog/index.vue b/data-room-ui/packages/BigScreenDesign/ComponentDialog/index.vue index ac6dae09..2793cb3e 100644 --- a/data-room-ui/packages/BigScreenDesign/ComponentDialog/index.vue +++ b/data-room-ui/packages/BigScreenDesign/ComponentDialog/index.vue @@ -423,7 +423,7 @@ export default { }, getDataList () { this.loading = true - get('/bigScreen/design/page', { + this.$dataRoomAxios.get('/bigScreen/design/page', { parentCode: this.code || null, current: this.current, size: this.size, diff --git a/data-room-ui/packages/BigScreenDesign/OverallSetting/BgImgDialog.vue b/data-room-ui/packages/BigScreenDesign/OverallSetting/BgImgDialog.vue index 03f063c5..95c3df5c 100644 --- a/data-room-ui/packages/BigScreenDesign/OverallSetting/BgImgDialog.vue +++ b/data-room-ui/packages/BigScreenDesign/OverallSetting/BgImgDialog.vue @@ -122,7 +122,7 @@ export default { }] : [] this.hideUploadImgBtn = this.fileList.length !== 0 - get('/bigScreen/design/bg/list').then(list => { + this.$dataRoomAxios.get('/bigScreen/design/bg/list').then(list => { this.bgImgList = list }) }, diff --git a/data-room-ui/packages/BigScreenDesign/OverallSetting/index.vue b/data-room-ui/packages/BigScreenDesign/OverallSetting/index.vue index 9835ad48..2a92a9e3 100644 --- a/data-room-ui/packages/BigScreenDesign/OverallSetting/index.vue +++ b/data-room-ui/packages/BigScreenDesign/OverallSetting/index.vue @@ -365,7 +365,6 @@ export default { this.pageInfo.pageConfig.refreshConfig = [] } this.form = { ...this.pageInfo.pageConfig } - console.log('this.form', this.form) this.drawerVisible = true if (this.pageInfo.chartList.length === 0) { this.pageInfo.pageConfig.refreshConfig = [] diff --git a/data-room-ui/packages/BigScreenDesign/SourceDialog/index.vue b/data-room-ui/packages/BigScreenDesign/SourceDialog/index.vue index 609d9821..47bb9867 100644 --- a/data-room-ui/packages/BigScreenDesign/SourceDialog/index.vue +++ b/data-room-ui/packages/BigScreenDesign/SourceDialog/index.vue @@ -186,7 +186,7 @@ export default { }, getDataList () { this.loading = true - get('/bigScreen/file', { + this.$dataRoomAxios.get('/bigScreen/file', { module: this.code, current: this.current, size: this.size, @@ -203,7 +203,7 @@ export default { }, // 获取目录的列表 getCatalogList () { - get('/bigScreen/type/list/resourceCatalog') + this.$dataRoomAxios.get('/bigScreen/type/list/resourceCatalog') .then((data) => { this.options = data }) diff --git a/data-room-ui/packages/BigScreenDesign/index.vue b/data-room-ui/packages/BigScreenDesign/index.vue index 8647fa7c..63805766 100644 --- a/data-room-ui/packages/BigScreenDesign/index.vue +++ b/data-room-ui/packages/BigScreenDesign/index.vue @@ -275,7 +275,7 @@ export default { ]), // 判断页面权限 permission () { - get(`/bigScreen/permission/check/${this.pageCode}`).then(res => { + this.$dataRoomAxios.get(`/bigScreen/permission/check/${this.pageCode}`).then(res => { this.hasPermission = res if (res) { this.init() diff --git a/data-room-ui/packages/BigScreenList/CatalogEditForm.vue b/data-room-ui/packages/BigScreenList/CatalogEditForm.vue index 26d383df..3c7437df 100644 --- a/data-room-ui/packages/BigScreenList/CatalogEditForm.vue +++ b/data-room-ui/packages/BigScreenList/CatalogEditForm.vue @@ -134,8 +134,8 @@