fast(配置): 调整设备列表样式,大屏iframe地址token为动态,适配长城配置

This commit is contained in:
fhysy 2024-09-27 09:29:51 +08:00
parent 4b3e70e195
commit 4f998d267a
4 changed files with 10 additions and 5 deletions

View File

@ -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

View File

@ -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 = ''

View File

@ -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() {

View File

@ -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="设备码"