fast(配置): 调整设备列表样式,大屏iframe地址token为动态,适配长城配置
This commit is contained in:
parent
4b3e70e195
commit
4f998d267a
5
.env.cc
5
.env.cc
|
@ -32,6 +32,11 @@ VUE_APP_THEME_CLASS = 'theme-grey-red'
|
|||
# 智慧用电管理系统/开发环境
|
||||
VUE_APP_BASE_API = '/dev-api'
|
||||
|
||||
#平台大屏地址
|
||||
VUE_APP_BIGSCREEN_PLATFORM_URL = 'https://goview.drgyen.cn/#/chart/preview/202409111020297'
|
||||
#项目大屏地址
|
||||
VUE_APP_BIGSCREEN_PROJECT_URL = ''
|
||||
|
||||
# 路由懒加载
|
||||
VUE_CLI_BABEL_TRANSPILE_MODULES = true
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ VUE_APP_THEME_CLASS = 'theme-grey-red'
|
|||
VUE_APP_BASE_API = '/prod-api'
|
||||
|
||||
#平台大屏地址
|
||||
VUE_APP_BIGSCREEN_PLATFORM_URL = 'https://goview.drgyen.cn/#/chart/preview/202409060982078'
|
||||
VUE_APP_BIGSCREEN_PLATFORM_URL = 'https://goview.drgyen.cn/#/chart/preview/202409111020297'
|
||||
#项目大屏地址
|
||||
VUE_APP_BIGSCREEN_PROJECT_URL = ''
|
||||
|
||||
|
|
|
@ -20,14 +20,14 @@ export default {
|
|||
let token = this.getCookie("Admin-Token");
|
||||
let src = this.$store.getters.attributeInfo['bigScreenUrl'];
|
||||
if(src){
|
||||
return src + "?token=" + token || this.src;
|
||||
return src + "?token=" + this.token || this.src;
|
||||
}else{
|
||||
return process.env.VUE_APP_BIGSCREEN_PLATFORM_URL + "?token=" + token;
|
||||
return process.env.VUE_APP_BIGSCREEN_PLATFORM_URL + "?token=" + this.token;
|
||||
}
|
||||
},
|
||||
},
|
||||
created() {
|
||||
// this.token = this.getCookie("Admin-Token");
|
||||
this.token = this.getCookie("Admin-Token");
|
||||
// this.src = process.env.VUE_APP_BIGSCREEN_PLATFORM_URL + "?token=" + this.token;
|
||||
},
|
||||
mounted() {
|
||||
|
|
|
@ -133,7 +133,7 @@
|
|||
></el-table-column>
|
||||
<el-table-column align="left" label="设备名称" prop="deviceName" />
|
||||
<el-table-column align="left" label="所属型号" prop="modelName" />
|
||||
<el-table-column align="left" label="设备key" prop="deviceKey" />
|
||||
<el-table-column align="left" label="设备key" prop="deviceKey" width="150px" />
|
||||
<el-table-column
|
||||
align="center"
|
||||
label="设备码"
|
||||
|
|
Loading…
Reference in New Issue