|
|
@@ -172,7 +172,7 @@ export default {
|
|
|
} else {
|
|
|
this.menuList = []
|
|
|
this.$store.state.bigScreen.groupName = label
|
|
|
- this.$store.state.bigScreen.groupCodeValue = pid == 0 ? value : label //设置指标代码,总公司为0,分公司为指标名称
|
|
|
+ this.$store.state.bigScreen.groupCodeValue = pid == 0 ? value : label //设置指标代码,总公司为null,分公司为指标名称
|
|
|
this.$store.state.bigScreen.isShowGroupPage = true //切换显示为公司级大屏
|
|
|
}
|
|
|
},
|
|
|
@@ -305,12 +305,16 @@ export default {
|
|
|
},
|
|
|
async onProjectSelect() {
|
|
|
const row = this.currentProjectInfo
|
|
|
- // 这里设置当前项目
|
|
|
- setParams(row.gcfw)
|
|
|
- const { id } = row || {}
|
|
|
+ const { id, geo_info, gcfw, wkid } = row || {}
|
|
|
+ if (!geo_info || !wkid) {
|
|
|
+ this.$message.info('此项目暂未设置GIS信息(geo_info,wkid)')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ // 这里设置当前项目信息
|
|
|
+ setParams(row)
|
|
|
this.$store.commit('project/UPDATE', row)
|
|
|
- setSessionStorage('initPosition', row.geo_info) //项目初始位置
|
|
|
- setSessionStorage('currentPrj', row.id) //项目ID
|
|
|
+ setSessionStorage('initPosition', geo_info) //项目初始位置
|
|
|
+ setSessionStorage('currentPrj', id) //项目ID
|
|
|
if (id) {
|
|
|
const { result } = await setProjectKey(id)
|
|
|
if (result) {
|