zjs_project 1 年之前
父節點
當前提交
dd4dc7afe9
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 1 1
      src/components/newBottomCom/viewPlot/viewPlot.vue
  2. 2 2
      src/pages/webgl_rxdz_test/webgl_rxdz_test.vue

+ 1 - 1
src/components/newBottomCom/viewPlot/viewPlot.vue

@@ -164,7 +164,7 @@
 					}
 				};
 				util.trackRequest(param);
-				this.$parent.$parent.userSelectPlot(plot);//告知页面,用户选择的布局id
+				this.$parent.$parent.userSelectPlot(plot,this.selectSpace);//告知页面,用户选择的布局id
 				this.lastTabIndex = this.tabIndex;
 			},
 			//去往详情页面

+ 2 - 2
src/pages/webgl_rxdz_test/webgl_rxdz_test.vue

@@ -1604,12 +1604,12 @@
 				this.changeSpaceColor(this.selectSpace.spaceId,1);//设置选中空间的颜色
 			},
 			//用户选择的布局id-需要切换到这个布局去
-			userSelectPlot(layoutObj){
+			userSelectPlot(layoutObj,space=null){
 				if(!layoutObj){
 					console.warn("***userSelectPlot***数据错误")
 					return false
 				}
-				let spaceId = this.selectSpace.spaceId;
+				let spaceId = space ? space.spaceId : this.selectSpace.spaceId;
 				console.warn("***userSelectPlot***",spaceId,layoutObj)
 				this.changeSingleLayout(spaceId,layoutObj);
 				this.updataLable(spaceId,layoutObj);