|
@@ -38,14 +38,13 @@
|
|
const homeJson = arr[0]
|
|
const homeJson = arr[0]
|
|
this.$store.dispatch('updateHomeJson',homeJson)
|
|
this.$store.dispatch('updateHomeJson',homeJson)
|
|
|
|
|
|
-
|
|
|
|
// 获取大屏,信号源,设备数据,label数据并保存到vuex中
|
|
// 获取大屏,信号源,设备数据,label数据并保存到vuex中
|
|
const bigScreenJson = await reqBigScreen()
|
|
const bigScreenJson = await reqBigScreen()
|
|
const signalListJson = await reqPreviewSourceList()
|
|
const signalListJson = await reqPreviewSourceList()
|
|
const deviceJson = await reqDevice()
|
|
const deviceJson = await reqDevice()
|
|
const labelJson = await getStaticFile('EnityLable.Data')
|
|
const labelJson = await getStaticFile('EnityLable.Data')
|
|
this.$store.dispatch('updateLabelJson',labelJson)
|
|
this.$store.dispatch('updateLabelJson',labelJson)
|
|
- this.$store.dispatch('saveBigscreen',bigScreenJson.filter(item => item.IsVisibility === true))
|
|
|
|
|
|
+ this.$store.dispatch('saveBigscreen',bigScreenJson)
|
|
this.$store.dispatch('saveSignalList',signalListJson)
|
|
this.$store.dispatch('saveSignalList',signalListJson)
|
|
this.$store.dispatch('saveDevice',deviceJson)
|
|
this.$store.dispatch('saveDevice',deviceJson)
|
|
}
|
|
}
|
|
@@ -56,10 +55,10 @@
|
|
axios.get('static/Data/EnityWindow.Data').then(async res => {
|
|
axios.get('static/Data/EnityWindow.Data').then(async res => {
|
|
if (res.status === 200) {
|
|
if (res.status === 200) {
|
|
// 当屏幕分辨率小于客户端分辨率时,所有元素大小位置同样缩小
|
|
// 当屏幕分辨率小于客户端分辨率时,所有元素大小位置同样缩小
|
|
- if(window.screen.width<res.data[0].Width){
|
|
|
|
|
|
+ /*if(window.screen.width<res.data[0].Width){
|
|
const bigScale = window.screen.width/res.data[0].Width
|
|
const bigScale = window.screen.width/res.data[0].Width
|
|
this.$store.dispatch('updateScale',bigScale)
|
|
this.$store.dispatch('updateScale',bigScale)
|
|
- }
|
|
|
|
|
|
+ }*/
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|